configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libXtst 1.0.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libXtst'
730 PACKAGE_TARNAME='libXtst'
731 PACKAGE_VERSION='1.0.3'
732 PACKAGE_STRING='libXtst 1.0.3'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 am__isrc
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 MAINTAINER_MODE_TRUE
831 MAINTAINER_MODE_FALSE
832 MAINT
833 CC
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
849 build
850 build_cpu
851 build_vendor
852 build_os
853 host
854 host_cpu
855 host_vendor
856 host_os
857 GREP
858 EGREP
859 LN_S
860 ECHO
861 AR
862 RANLIB
863 CPP
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 XMLTO
876 HAVE_XMLTO_TRUE
877 HAVE_XMLTO_FALSE
878 PKG_CONFIG
879 XTST_CFLAGS
880 XTST_LIBS
881 LINT
882 LINT_FLAGS
883 LINT_TRUE
884 LINT_FALSE
885 LINTLIB
886 MAKE_LINT_LIB_TRUE
887 MAKE_LINT_LIB_FALSE
888 APP_MAN_SUFFIX
889 LIB_MAN_SUFFIX
890 FILE_MAN_SUFFIX
891 MISC_MAN_SUFFIX
892 DRIVER_MAN_SUFFIX
893 ADMIN_MAN_SUFFIX
894 APP_MAN_DIR
895 LIB_MAN_DIR
896 FILE_MAN_DIR
897 MISC_MAN_DIR
898 DRIVER_MAN_DIR
899 ADMIN_MAN_DIR
900 LIBOBJS
901 LTLIBOBJS'
902 ac_subst_files=''
903 ac_precious_vars='build_alias
904 host_alias
905 target_alias
906 CC
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
911 CPP
912 CXX
913 CXXFLAGS
914 CCC
915 CXXCPP
916 F77
917 FFLAGS
918 XMLTO
919 PKG_CONFIG
920 XTST_CFLAGS
921 XTST_LIBS'
922
923
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
943
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
969
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
980
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
991
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
996
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1001
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1011
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1016
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1023
1024 -disable-* | --disable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050 eval enable_$ac_feature=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=\$ac_optarg ;;
1248
1249 -without-* | --without-*)
1250 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=no ;;
1257
1258 --x)
1259 # Obsolete; use --with-x.
1260 with_x=yes ;;
1261
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1268
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1275
1276 -*) { echo "$as_me: error: unrecognized option: $ac_option
1277 Try \`$0 --help' for more information." >&2
1278 { (exit 1); exit 1; }; }
1279 ;;
1280
1281 *=*)
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286 { (exit 1); exit 1; }; }
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1289
1290 *)
1291 # FIXME: should be removed in autoconf 3.0.
1292 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296 ;;
1297
1298 esac
1299 done
1300
1301 if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 { echo "$as_me: error: missing argument to $ac_option" >&2
1304 { (exit 1); exit 1; }; }
1305 fi
1306
1307 # Be sure to have absolute directory names.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
1320 done
1321
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1328
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338 fi
1339
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343 test "$silent" = yes && exec 6>/dev/null
1344
1345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 { echo "$as_me: error: Working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1354
1355
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$0" ||
1361 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$0" : 'X\(//\)[^/]' \| \
1363 X"$0" : 'X\(//\)$' \| \
1364 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1365 echo X"$0" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387 else
1388 ac_srcdir_defaulted=no
1389 fi
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393 { (exit 1); exit 1; }; }
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398 { (exit 1); exit 1; }; }
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures libXtst 1.0.3 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/libXtst]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of libXtst 1.0.3:";;
1495 esac
1496 cat <<\_ACEOF
1497
1498 Optional Features:
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --enable-maintainer-mode enable make rules and dependencies not useful
1502 (and sometimes confusing) to the casual installer
1503 --disable-dependency-tracking speeds up one-time build
1504 --enable-dependency-tracking do not reject slow dependency extractors
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-static[=PKGS] build static libraries [default=yes]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --enable-lint-library Create lint library (default: disabled)
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 --with-pic try to use only PIC/non-PIC objects [default=use
1517 both]
1518 --with-tags[=TAGS] include additional configurations [automatic]
1519 --with-lint Use a lint-style source code checker (default:
1520 disabled)
1521 --with-release-version=STRING
1522 Use release version string in package name
1523
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1532 CPP C preprocessor
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 CXXCPP C++ preprocessor
1536 F77 Fortran 77 compiler command
1537 FFLAGS Fortran 77 compiler flags
1538 XMLTO Path to xmlto command
1539 PKG_CONFIG path to pkg-config utility
1540 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1541 XTST_LIBS linker flags for XTST, overriding pkg-config
1542
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1545
1546 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" || continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 libXtst configure 1.0.3
1608 generated by GNU Autoconf 2.61
1609
1610 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1611 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1616 fi
1617 cat >config.log <<_ACEOF
1618 This file contains any messages produced by compilers while
1619 running configure, to aid debugging if configure makes a mistake.
1620
1621 It was created by libXtst $as_me 1.0.3, which was
1622 generated by GNU Autoconf 2.61. Invocation command line was
1623
1624 $ $0 $@
1625
1626 _ACEOF
1627 exec 5>>config.log
1628 {
1629 cat <<_ASUNAME
1630 ## --------- ##
1631 ## Platform. ##
1632 ## --------- ##
1633
1634 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1639
1640 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1642
1643 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1644 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1645 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1646 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1647 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1648 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1649 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1650
1651 _ASUNAME
1652
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 echo "PATH: $as_dir"
1659 done
1660 IFS=$as_save_IFS
1661
1662 } >&5
1663
1664 cat >&5 <<_ACEOF
1665
1666
1667 ## ----------- ##
1668 ## Core tests. ##
1669 ## ----------- ##
1670
1671 _ACEOF
1672
1673
1674 # Keep a trace of the command line.
1675 # Strip out --no-create and --no-recursion so they do not pile up.
1676 # Strip out --silent because we don't want to record it for future runs.
1677 # Also quote any args containing shell meta-characters.
1678 # Make two passes to allow for proper duplicate-argument suppression.
1679 ac_configure_args=
1680 ac_configure_args0=
1681 ac_configure_args1=
1682 ac_must_keep_next=false
1683 for ac_pass in 1 2
1684 do
1685 for ac_arg
1686 do
1687 case $ac_arg in
1688 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690 | -silent | --silent | --silen | --sile | --sil)
1691 continue ;;
1692 *\'*)
1693 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1694 esac
1695 case $ac_pass in
1696 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1697 2)
1698 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1699 if test $ac_must_keep_next = true; then
1700 ac_must_keep_next=false # Got value, back to normal.
1701 else
1702 case $ac_arg in
1703 *=* | --config-cache | -C | -disable-* | --disable-* \
1704 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706 | -with-* | --with-* | -without-* | --without-* | --x)
1707 case "$ac_configure_args0 " in
1708 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709 esac
1710 ;;
1711 -* ) ac_must_keep_next=true ;;
1712 esac
1713 fi
1714 ac_configure_args="$ac_configure_args '$ac_arg'"
1715 ;;
1716 esac
1717 done
1718 done
1719 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1720 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1721
1722 # When interrupted or exit'd, cleanup temporary files, and complete
1723 # config.log. We remove comments because anyway the quotes in there
1724 # would cause problems or look ugly.
1725 # WARNING: Use '\'' to represent an apostrophe within the trap.
1726 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1727 trap 'exit_status=$?
1728 # Save into config.log some information that might help in debugging.
1729 {
1730 echo
1731
1732 cat <<\_ASBOX
1733 ## ---------------- ##
1734 ## Cache variables. ##
1735 ## ---------------- ##
1736 _ASBOX
1737 echo
1738 # The following way of writing the cache mishandles newlines in values,
1739 (
1740 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741 eval ac_val=\$$ac_var
1742 case $ac_val in #(
1743 *${as_nl}*)
1744 case $ac_var in #(
1745 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1746 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1747 esac
1748 case $ac_var in #(
1749 _ | IFS | as_nl) ;; #(
1750 *) $as_unset $ac_var ;;
1751 esac ;;
1752 esac
1753 done
1754 (set) 2>&1 |
1755 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1756 *${as_nl}ac_space=\ *)
1757 sed -n \
1758 "s/'\''/'\''\\\\'\'''\''/g;
1759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1760 ;; #(
1761 *)
1762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1763 ;;
1764 esac |
1765 sort
1766 )
1767 echo
1768
1769 cat <<\_ASBOX
1770 ## ----------------- ##
1771 ## Output variables. ##
1772 ## ----------------- ##
1773 _ASBOX
1774 echo
1775 for ac_var in $ac_subst_vars
1776 do
1777 eval ac_val=\$$ac_var
1778 case $ac_val in
1779 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 esac
1781 echo "$ac_var='\''$ac_val'\''"
1782 done | sort
1783 echo
1784
1785 if test -n "$ac_subst_files"; then
1786 cat <<\_ASBOX
1787 ## ------------------- ##
1788 ## File substitutions. ##
1789 ## ------------------- ##
1790 _ASBOX
1791 echo
1792 for ac_var in $ac_subst_files
1793 do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in
1796 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797 esac
1798 echo "$ac_var='\''$ac_val'\''"
1799 done | sort
1800 echo
1801 fi
1802
1803 if test -s confdefs.h; then
1804 cat <<\_ASBOX
1805 ## ----------- ##
1806 ## confdefs.h. ##
1807 ## ----------- ##
1808 _ASBOX
1809 echo
1810 cat confdefs.h
1811 echo
1812 fi
1813 test "$ac_signal" != 0 &&
1814 echo "$as_me: caught signal $ac_signal"
1815 echo "$as_me: exit $exit_status"
1816 } >&5
1817 rm -f core *.core core.conftest.* &&
1818 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1819 exit $exit_status
1820 ' 0
1821 for ac_signal in 1 2 13 15; do
1822 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1823 done
1824 ac_signal=0
1825
1826 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1827 rm -f -r conftest* confdefs.h
1828
1829 # Predefined preprocessor variables.
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_NAME "$PACKAGE_NAME"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_STRING "$PACKAGE_STRING"
1848 _ACEOF
1849
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1853 _ACEOF
1854
1855
1856 # Let the site file select an alternate cache file if it wants to.
1857 # Prefer explicitly selected file to automatically selected ones.
1858 if test -n "$CONFIG_SITE"; then
1859 set x "$CONFIG_SITE"
1860 elif test "x$prefix" != xNONE; then
1861 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1862 else
1863 set x "$ac_default_prefix/share/config.site" \
1864 "$ac_default_prefix/etc/config.site"
1865 fi
1866 shift
1867 for ac_site_file
1868 do
1869 if test -r "$ac_site_file"; then
1870 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1871 echo "$as_me: loading site script $ac_site_file" >&6;}
1872 sed 's/^/| /' "$ac_site_file" >&5
1873 . "$ac_site_file"
1874 fi
1875 done
1876
1877 if test -r "$cache_file"; then
1878 # Some versions of bash will fail to source /dev/null (special
1879 # files actually), so we avoid doing that.
1880 if test -f "$cache_file"; then
1881 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1882 echo "$as_me: loading cache $cache_file" >&6;}
1883 case $cache_file in
1884 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1885 *) . "./$cache_file";;
1886 esac
1887 fi
1888 else
1889 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1890 echo "$as_me: creating cache $cache_file" >&6;}
1891 >$cache_file
1892 fi
1893
1894 # Check that the precious variables saved in the cache have kept the same
1895 # value.
1896 ac_cache_corrupted=false
1897 for ac_var in $ac_precious_vars; do
1898 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1899 eval ac_new_set=\$ac_env_${ac_var}_set
1900 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1901 eval ac_new_val=\$ac_env_${ac_var}_value
1902 case $ac_old_set,$ac_new_set in
1903 set,)
1904 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1906 ac_cache_corrupted=: ;;
1907 ,set)
1908 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1909 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1910 ac_cache_corrupted=: ;;
1911 ,);;
1912 *)
1913 if test "x$ac_old_val" != "x$ac_new_val"; then
1914 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1915 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1916 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1917 echo "$as_me: former value: $ac_old_val" >&2;}
1918 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1919 echo "$as_me: current value: $ac_new_val" >&2;}
1920 ac_cache_corrupted=:
1921 fi;;
1922 esac
1923 # Pass precious variables to config.status.
1924 if test "$ac_new_set" = set; then
1925 case $ac_new_val in
1926 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 *) ac_arg=$ac_var=$ac_new_val ;;
1928 esac
1929 case " $ac_configure_args " in
1930 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1931 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932 esac
1933 fi
1934 done
1935 if $ac_cache_corrupted; then
1936 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1937 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1939 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1940 { (exit 1); exit 1; }; }
1941 fi
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972
1973
1974 am__api_version='1.10'
1975
1976 ac_aux_dir=
1977 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1978 if test -f "$ac_dir/install-sh"; then
1979 ac_aux_dir=$ac_dir
1980 ac_install_sh="$ac_aux_dir/install-sh -c"
1981 break
1982 elif test -f "$ac_dir/install.sh"; then
1983 ac_aux_dir=$ac_dir
1984 ac_install_sh="$ac_aux_dir/install.sh -c"
1985 break
1986 elif test -f "$ac_dir/shtool"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/shtool install -c"
1989 break
1990 fi
1991 done
1992 if test -z "$ac_aux_dir"; then
1993 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1994 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1995 { (exit 1); exit 1; }; }
1996 fi
1997
1998 # These three variables are undocumented and unsupported,
1999 # and are intended to be withdrawn in a future Autoconf release.
2000 # They can cause serious problems if a builder's source tree is in a directory
2001 # whose full name contains unusual characters.
2002 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2003 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2004 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2005
2006
2007 # Find a good install program. We prefer a C program (faster),
2008 # so one script is as good as another. But avoid the broken or
2009 # incompatible versions:
2010 # SysV /etc/install, /usr/sbin/install
2011 # SunOS /usr/etc/install
2012 # IRIX /sbin/install
2013 # AIX /bin/install
2014 # AmigaOS /C/install, which installs bootblocks on floppy discs
2015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018 # OS/2's system install, which has a completely different semantic
2019 # ./install, which can be erroneously created by make from ./install.sh.
2020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2022 if test -z "$INSTALL"; then
2023 if test "${ac_cv_path_install+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 # Account for people who put trailing slashes in PATH elements.
2032 case $as_dir/ in
2033 ./ | .// | /cC/* | \
2034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2035 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036 /usr/ucb/* ) ;;
2037 *)
2038 # OSF1 and SCO ODT 3.0 have their own names for install.
2039 # Don't use installbsd from OSF since it installs stuff as root
2040 # by default.
2041 for ac_prog in ginstall scoinst install; do
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2044 if test $ac_prog = install &&
2045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046 # AIX install. It has an incompatible calling convention.
2047 :
2048 elif test $ac_prog = install &&
2049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050 # program-specific install script used by HP pwplus--don't use.
2051 :
2052 else
2053 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054 break 3
2055 fi
2056 fi
2057 done
2058 done
2059 ;;
2060 esac
2061 done
2062 IFS=$as_save_IFS
2063
2064
2065 fi
2066 if test "${ac_cv_path_install+set}" = set; then
2067 INSTALL=$ac_cv_path_install
2068 else
2069 # As a last resort, use the slow shell script. Don't cache a
2070 # value for INSTALL within a source directory, because that will
2071 # break other packages using the cache if that directory is
2072 # removed, or if the value is a relative name.
2073 INSTALL=$ac_install_sh
2074 fi
2075 fi
2076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2077 echo "${ECHO_T}$INSTALL" >&6; }
2078
2079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2080 # It thinks the first close brace ends the variable substitution.
2081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2082
2083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2084
2085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2086
2087 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089 # Just in case
2090 sleep 1
2091 echo timestamp > conftest.file
2092 # Do `set' in a subshell so we don't clobber the current shell's
2093 # arguments. Must try -L first in case configure is actually a
2094 # symlink; some systems play weird games with the mod time of symlinks
2095 # (eg FreeBSD returns the mod time of the symlink's containing
2096 # directory).
2097 if (
2098 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099 if test "$*" = "X"; then
2100 # -L didn't work.
2101 set X `ls -t $srcdir/configure conftest.file`
2102 fi
2103 rm -f conftest.file
2104 if test "$*" != "X $srcdir/configure conftest.file" \
2105 && test "$*" != "X conftest.file $srcdir/configure"; then
2106
2107 # If neither matched, then we have a broken ls. This can happen
2108 # if, for instance, CONFIG_SHELL is bash and it inherits a
2109 # broken ls alias from the environment. This has actually
2110 # happened. Such a system could not be considered "sane".
2111 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2112 alias in your environment" >&5
2113 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2114 alias in your environment" >&2;}
2115 { (exit 1); exit 1; }; }
2116 fi
2117
2118 test "$2" = conftest.file
2119 )
2120 then
2121 # Ok.
2122 :
2123 else
2124 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125 Check your system clock" >&5
2126 echo "$as_me: error: newly created file is older than distributed files!
2127 Check your system clock" >&2;}
2128 { (exit 1); exit 1; }; }
2129 fi
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2132 test "$program_prefix" != NONE &&
2133 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134 # Use a double $ so make ignores it.
2135 test "$program_suffix" != NONE &&
2136 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137 # Double any \ or $. echo might interpret backslashes.
2138 # By default was `s,x,x', remove it if useless.
2139 cat <<\_ACEOF >conftest.sed
2140 s/[\\$]/&&/g;s/;s,x,x,$//
2141 _ACEOF
2142 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143 rm -f conftest.sed
2144
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir=`cd $ac_aux_dir && pwd`
2147
2148 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151 am_missing_run="$MISSING --run "
2152 else
2153 am_missing_run=
2154 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156 fi
2157
2158 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160 if test -z "$MKDIR_P"; then
2161 if test "${ac_cv_path_mkdir+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_prog in mkdir gmkdir; do
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173 'mkdir (GNU coreutils) '* | \
2174 'mkdir (coreutils) '* | \
2175 'mkdir (fileutils) '4.1*)
2176 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2177 break 3;;
2178 esac
2179 done
2180 done
2181 done
2182 IFS=$as_save_IFS
2183
2184 fi
2185
2186 if test "${ac_cv_path_mkdir+set}" = set; then
2187 MKDIR_P="$ac_cv_path_mkdir -p"
2188 else
2189 # As a last resort, use the slow shell script. Don't cache a
2190 # value for MKDIR_P within a source directory, because that will
2191 # break other packages using the cache if that directory is
2192 # removed, or if the value is a relative name.
2193 test -d ./--version && rmdir ./--version
2194 MKDIR_P="$ac_install_sh -d"
2195 fi
2196 fi
2197 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198 echo "${ECHO_T}$MKDIR_P" >&6; }
2199
2200 mkdir_p="$MKDIR_P"
2201 case $mkdir_p in
2202 [\\/$]* | ?:[\\/]*) ;;
2203 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204 esac
2205
2206 for ac_prog in gawk mawk nawk awk
2207 do
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$AWK"; then
2216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_AWK="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2228 fi
2229 done
2230 done
2231 IFS=$as_save_IFS
2232
2233 fi
2234 fi
2235 AWK=$ac_cv_prog_AWK
2236 if test -n "$AWK"; then
2237 { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2239 else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 fi
2243
2244
2245 test -n "$AWK" && break
2246 done
2247
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 cat >conftest.make <<\_ACEOF
2255 SHELL = /bin/sh
2256 all:
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2258 _ACEOF
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261 *@@@%%%=?*=@@@%%%*)
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2263 *)
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2265 esac
2266 rm -f conftest.make
2267 fi
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2271 SET_MAKE=
2272 else
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2276 fi
2277
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2281 am__leading_dot=.
2282 else
2283 am__leading_dot=_
2284 fi
2285 rmdir .tst 2>/dev/null
2286
2287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289 # is not polluted with repeated "-I."
2290 am__isrc=' -I$(srcdir)'
2291 # test to see if srcdir already configured
2292 if test -f $srcdir/config.status; then
2293 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295 { (exit 1); exit 1; }; }
2296 fi
2297 fi
2298
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301 if (cygpath --version) >/dev/null 2>/dev/null; then
2302 CYGPATH_W='cygpath -w'
2303 else
2304 CYGPATH_W=echo
2305 fi
2306 fi
2307
2308
2309 # Define the identity of the package.
2310 PACKAGE='libXtst'
2311 VERSION='1.0.3'
2312
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2316 _ACEOF
2317
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2321 _ACEOF
2322
2323 # Some tools Automake needs.
2324
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326
2327
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329
2330
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332
2333
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335
2336
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2338
2339 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2340
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'. However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376 { echo "$as_me:$LINENO: result: $STRIP" >&5
2377 echo "${ECHO_T}$STRIP" >&6; }
2378 else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2381 fi
2382
2383
2384 fi
2385 if test -z "$ac_cv_prog_STRIP"; then
2386 ac_ct_STRIP=$STRIP
2387 # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_STRIP="strip"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2418 else
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 fi
2422
2423 if test "x$ac_ct_STRIP" = x; then
2424 STRIP=":"
2425 else
2426 case $cross_compiling:$ac_tool_warned in
2427 yes:)
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2435 esac
2436 STRIP=$ac_ct_STRIP
2437 fi
2438 else
2439 STRIP="$ac_cv_prog_STRIP"
2440 fi
2441
2442 fi
2443 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2444
2445 # We need awk for the "check" target. The system "awk" is bad on
2446 # some platforms.
2447 # Always define AMTAR for backward compatibility.
2448
2449 AMTAR=${AMTAR-"${am_missing_run}tar"}
2450
2451 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2452
2453
2454
2455
2456
2457 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2458 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2459 # Check whether --enable-maintainer-mode was given.
2460 if test "${enable_maintainer_mode+set}" = set; then
2461 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2462 else
2463 USE_MAINTAINER_MODE=no
2464 fi
2465
2466 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2467 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2468 if test $USE_MAINTAINER_MODE = yes; then
2469 MAINTAINER_MODE_TRUE=
2470 MAINTAINER_MODE_FALSE='#'
2471 else
2472 MAINTAINER_MODE_TRUE='#'
2473 MAINTAINER_MODE_FALSE=
2474 fi
2475
2476 MAINT=$MAINTAINER_MODE_TRUE
2477
2478
2479
2480 ac_config_headers="$ac_config_headers config.h"
2481
2482
2483 # Check for progs
2484 ac_ext=c
2485 ac_cpp='$CPP $CPPFLAGS'
2486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 fi
2525
2526
2527 fi
2528 if test -z "$ac_cv_prog_CC"; then
2529 ac_ct_CC=$CC
2530 # Extract the first word of "gcc", so it can be a program name with args.
2531 set dummy gcc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 if test -n "$ac_ct_CC"; then
2538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_ac_ct_CC="gcc"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2558 if test -n "$ac_ct_CC"; then
2559 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2560 echo "${ECHO_T}$ac_ct_CC" >&6; }
2561 else
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2564 fi
2565
2566 if test "x$ac_ct_CC" = x; then
2567 CC=""
2568 else
2569 case $cross_compiling:$ac_tool_warned in
2570 yes:)
2571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2572 whose name does not start with the host triplet. If you think this
2573 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2575 whose name does not start with the host triplet. If you think this
2576 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2577 ac_tool_warned=yes ;;
2578 esac
2579 CC=$ac_ct_CC
2580 fi
2581 else
2582 CC="$ac_cv_prog_CC"
2583 fi
2584
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}cc; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="${ac_tool_prefix}cc"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 CC=$ac_cv_prog_CC
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2618 else
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2621 fi
2622
2623
2624 fi
2625 fi
2626 if test -z "$CC"; then
2627 # Extract the first word of "cc", so it can be a program name with args.
2628 set dummy cc; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2636 else
2637 ac_prog_rejected=no
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2646 ac_prog_rejected=yes
2647 continue
2648 fi
2649 ac_cv_prog_CC="cc"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 if test $ac_prog_rejected = yes; then
2658 # We found a bogon in the path, so make sure we never use it.
2659 set dummy $ac_cv_prog_CC
2660 shift
2661 if test $# != 0; then
2662 # We chose a different compiler from the bogus one.
2663 # However, it has the same basename, so the bogon will be chosen
2664 # first if we set CC to just the basename; use the full file name.
2665 shift
2666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2667 fi
2668 fi
2669 fi
2670 fi
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { echo "$as_me:$LINENO: result: $CC" >&5
2674 echo "${ECHO_T}$CC" >&6; }
2675 else
2676 { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2678 fi
2679
2680
2681 fi
2682 if test -z "$CC"; then
2683 if test -n "$ac_tool_prefix"; then
2684 for ac_prog in cl.exe
2685 do
2686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2690 if test "${ac_cv_prog_CC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 CC=$ac_cv_prog_CC
2714 if test -n "$CC"; then
2715 { echo "$as_me:$LINENO: result: $CC" >&5
2716 echo "${ECHO_T}$CC" >&6; }
2717 else
2718 { echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6; }
2720 fi
2721
2722
2723 test -n "$CC" && break
2724 done
2725 fi
2726 if test -z "$CC"; then
2727 ac_ct_CC=$CC
2728 for ac_prog in cl.exe
2729 do
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_ac_ct_CC="$ac_prog"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760 echo "${ECHO_T}$ac_ct_CC" >&6; }
2761 else
2762 { echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6; }
2764 fi
2765
2766
2767 test -n "$ac_ct_CC" && break
2768 done
2769
2770 if test "x$ac_ct_CC" = x; then
2771 CC=""
2772 else
2773 case $cross_compiling:$ac_tool_warned in
2774 yes:)
2775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2776 whose name does not start with the host triplet. If you think this
2777 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2779 whose name does not start with the host triplet. If you think this
2780 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783 CC=$ac_ct_CC
2784 fi
2785 fi
2786
2787 fi
2788
2789
2790 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: no acceptable C compiler found in \$PATH
2793 See \`config.log' for more details." >&2;}
2794 { (exit 1); exit 1; }; }
2795
2796 # Provide some information about the compiler.
2797 echo "$as_me:$LINENO: checking for C compiler version" >&5
2798 ac_compiler=`set X $ac_compile; echo $2`
2799 { (ac_try="$ac_compiler --version >&5"
2800 case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803 esac
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_compiler --version >&5") 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }
2809 { (ac_try="$ac_compiler -v >&5"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_compiler -v >&5") 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }
2819 { (ac_try="$ac_compiler -V >&5"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_compiler -V >&5") 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829
2830 cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h. */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2836
2837 int
2838 main ()
2839 {
2840
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 ac_clean_files_save=$ac_clean_files
2846 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2847 # Try to create an executable without -o first, disregard a.out.
2848 # It will help us diagnose broken compilers, and finding out an intuition
2849 # of exeext.
2850 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2851 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2852 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2853 #
2854 # List of possible output files, starting from the most likely.
2855 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2856 # only as a last resort. b.out is created by i960 compilers.
2857 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2858 #
2859 # The IRIX 6 linker writes into existing files which may not be
2860 # executable, retaining their permissions. Remove them first so a
2861 # subsequent execution test works.
2862 ac_rmfiles=
2863 for ac_file in $ac_files
2864 do
2865 case $ac_file in
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2867 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2868 esac
2869 done
2870 rm -f $ac_rmfiles
2871
2872 if { (ac_try="$ac_link_default"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_link_default") 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2883 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2884 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2885 # so that the user can short-circuit this test for compilers unknown to
2886 # Autoconf.
2887 for ac_file in $ac_files ''
2888 do
2889 test -f "$ac_file" || continue
2890 case $ac_file in
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2892 ;;
2893 [ab].out )
2894 # We found the default executable, but exeext='' is most
2895 # certainly right.
2896 break;;
2897 *.* )
2898 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2899 then :; else
2900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 fi
2902 # We set ac_cv_exeext here because the later test for it is not
2903 # safe: cross compilers may not add the suffix if given an `-o'
2904 # argument, so we may need to know it at that point already.
2905 # Even if this section looks crufty: it has the advantage of
2906 # actually working.
2907 break;;
2908 * )
2909 break;;
2910 esac
2911 done
2912 test "$ac_cv_exeext" = no && ac_cv_exeext=
2913
2914 else
2915 ac_file=''
2916 fi
2917
2918 { echo "$as_me:$LINENO: result: $ac_file" >&5
2919 echo "${ECHO_T}$ac_file" >&6; }
2920 if test -z "$ac_file"; then
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: C compiler cannot create executables
2927 See \`config.log' for more details." >&2;}
2928 { (exit 77); exit 77; }; }
2929 fi
2930
2931 ac_exeext=$ac_cv_exeext
2932
2933 # Check that the compiler produces executables we can run. If not, either
2934 # the compiler is broken, or we cross compile.
2935 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2938 # If not cross compiling, check that we can run a simple program.
2939 if test "$cross_compiling" != yes; then
2940 if { ac_try='./$ac_file'
2941 { (case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_try") 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 cross_compiling=no
2951 else
2952 if test "$cross_compiling" = maybe; then
2953 cross_compiling=yes
2954 else
2955 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2956 If you meant to cross compile, use \`--host'.
2957 See \`config.log' for more details." >&5
2958 echo "$as_me: error: cannot run C compiled programs.
2959 If you meant to cross compile, use \`--host'.
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2962 fi
2963 fi
2964 fi
2965 { echo "$as_me:$LINENO: result: yes" >&5
2966 echo "${ECHO_T}yes" >&6; }
2967
2968 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2969 ac_clean_files=$ac_clean_files_save
2970 # Check that the compiler produces executables we can run. If not, either
2971 # the compiler is broken, or we cross compile.
2972 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2973 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2974 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2975 echo "${ECHO_T}$cross_compiling" >&6; }
2976
2977 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2978 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2979 if { (ac_try="$ac_link"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_link") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2991 # work properly (i.e., refer to `conftest.exe'), while it won't with
2992 # `rm'.
2993 for ac_file in conftest.exe conftest conftest.*; do
2994 test -f "$ac_file" || continue
2995 case $ac_file in
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2998 break;;
2999 * ) break;;
3000 esac
3001 done
3002 else
3003 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3008 fi
3009
3010 rm -f conftest$ac_cv_exeext
3011 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3012 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3013
3014 rm -f conftest.$ac_ext
3015 EXEEXT=$ac_cv_exeext
3016 ac_exeext=$EXEEXT
3017 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3018 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3019 if test "${ac_cv_objext+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028
3029 int
3030 main ()
3031 {
3032
3033 ;
3034 return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.o conftest.obj
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 for ac_file in conftest.o conftest.obj conftest.*; do
3049 test -f "$ac_file" || continue;
3050 case $ac_file in
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3053 break;;
3054 esac
3055 done
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3061 See \`config.log' for more details." >&5
3062 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3063 See \`config.log' for more details." >&2;}
3064 { (exit 1); exit 1; }; }
3065 fi
3066
3067 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3068 fi
3069 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3070 echo "${ECHO_T}$ac_cv_objext" >&6; }
3071 OBJEXT=$ac_cv_objext
3072 ac_objext=$OBJEXT
3073 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3074 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3075 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h. */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084
3085 int
3086 main ()
3087 {
3088 #ifndef __GNUC__
3089 choke me
3090 #endif
3091
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_compiler_gnu=yes
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_compiler_gnu=no
3119 fi
3120
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123
3124 fi
3125 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3126 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3127 GCC=`test $ac_compiler_gnu = yes && echo yes`
3128 ac_test_CFLAGS=${CFLAGS+set}
3129 ac_save_CFLAGS=$CFLAGS
3130 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3132 if test "${ac_cv_prog_cc_g+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 ac_save_c_werror_flag=$ac_c_werror_flag
3136 ac_c_werror_flag=yes
3137 ac_cv_prog_cc_g=no
3138 CFLAGS="-g"
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145
3146 int
3147 main ()
3148 {
3149
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (ac_try="$ac_compile"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } && {
3168 test -z "$ac_c_werror_flag" ||
3169 test ! -s conftest.err
3170 } && test -s conftest.$ac_objext; then
3171 ac_cv_prog_cc_g=yes
3172 else
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 CFLAGS=""
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3183
3184 int
3185 main ()
3186 {
3187
3188 ;
3189 return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && {
3206 test -z "$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 } && test -s conftest.$ac_objext; then
3209 :
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3215 CFLAGS="-g"
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222
3223 int
3224 main ()
3225 {
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_compile") 2>conftest.er1
3239 ac_status=$?
3240 grep -v '^ *+' conftest.er1 >conftest.err
3241 rm -f conftest.er1
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } && {
3245 test -z "$ac_c_werror_flag" ||
3246 test ! -s conftest.err
3247 } && test -s conftest.$ac_objext; then
3248 ac_cv_prog_cc_g=yes
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253
3254 fi
3255
3256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 fi
3258
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3264 fi
3265 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3267 if test "$ac_test_CFLAGS" = set; then
3268 CFLAGS=$ac_save_CFLAGS
3269 elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3271 CFLAGS="-g -O2"
3272 else
3273 CFLAGS="-g"
3274 fi
3275 else
3276 if test "$GCC" = yes; then
3277 CFLAGS="-O2"
3278 else
3279 CFLAGS=
3280 fi
3281 fi
3282 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3283 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3284 if test "${ac_cv_prog_cc_c89+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 ac_cv_prog_cc_c89=no
3288 ac_save_CC=$CC
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <stdarg.h>
3296 #include <stdio.h>
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3303 char **p;
3304 int i;
3305 {
3306 return p[i];
3307 }
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3309 {
3310 char *s;
3311 va_list v;
3312 va_start (v,p);
3313 s = g (p, va_arg (v,int));
3314 va_end (v);
3315 return s;
3316 }
3317
3318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3319 function prototypes and stuff, but not '\xHH' hex character constants.
3320 These don't provoke an error unfortunately, instead are silently treated
3321 as 'x'. The following induces an error, until -std is added to get
3322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3323 array size at least. It's necessary to write '\x00'==0 to get something
3324 that's true only with -std. */
3325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326
3327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3328 inside strings and character constants. */
3329 #define FOO(x) 'x'
3330 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331
3332 int test (int i, double x);
3333 struct s1 {int (*f) (int a);};
3334 struct s2 {int (*f) (double a);};
3335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3336 int argc;
3337 char **argv;
3338 int
3339 main ()
3340 {
3341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348 do
3349 CC="$ac_save_CC $ac_arg"
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && {
3364 test -z "$ac_c_werror_flag" ||
3365 test ! -s conftest.err
3366 } && test -s conftest.$ac_objext; then
3367 ac_cv_prog_cc_c89=$ac_arg
3368 else
3369 echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373 fi
3374
3375 rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3377 done
3378 rm -f conftest.$ac_ext
3379 CC=$ac_save_CC
3380
3381 fi
3382 # AC_CACHE_VAL
3383 case "x$ac_cv_prog_cc_c89" in
3384 x)
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386 echo "${ECHO_T}none needed" >&6; } ;;
3387 xno)
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389 echo "${ECHO_T}unsupported" >&6; } ;;
3390 *)
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3394 esac
3395
3396
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402 DEPDIR="${am__leading_dot}deps"
3403
3404 ac_config_commands="$ac_config_commands depfiles"
3405
3406
3407 am_make=${MAKE-make}
3408 cat > confinc << 'END'
3409 am__doit:
3410 @echo done
3411 .PHONY: am__doit
3412 END
3413 # If we don't find an include directive, just comment out the code.
3414 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3415 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3416 am__include="#"
3417 am__quote=
3418 _am_result=none
3419 # First try GNU make style include.
3420 echo "include confinc" > confmf
3421 # We grep out `Entering directory' and `Leaving directory'
3422 # messages which can occur if `w' ends up in MAKEFLAGS.
3423 # In particular we don't look at `^make:' because GNU make might
3424 # be invoked under some other name (usually "gmake"), in which
3425 # case it prints its new name instead of `make'.
3426 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3427 am__include=include
3428 am__quote=
3429 _am_result=GNU
3430 fi
3431 # Now try BSD make style include.
3432 if test "$am__include" = "#"; then
3433 echo '.include "confinc"' > confmf
3434 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3435 am__include=.include
3436 am__quote="\""
3437 _am_result=BSD
3438 fi
3439 fi
3440
3441
3442 { echo "$as_me:$LINENO: result: $_am_result" >&5
3443 echo "${ECHO_T}$_am_result" >&6; }
3444 rm -f confinc confmf
3445
3446 # Check whether --enable-dependency-tracking was given.
3447 if test "${enable_dependency_tracking+set}" = set; then
3448 enableval=$enable_dependency_tracking;
3449 fi
3450
3451 if test "x$enable_dependency_tracking" != xno; then
3452 am_depcomp="$ac_aux_dir/depcomp"
3453 AMDEPBACKSLASH='\'
3454 fi
3455 if test "x$enable_dependency_tracking" != xno; then
3456 AMDEP_TRUE=
3457 AMDEP_FALSE='#'
3458 else
3459 AMDEP_TRUE='#'
3460 AMDEP_FALSE=
3461 fi
3462
3463
3464
3465 depcc="$CC" am_compiler_list=
3466
3467 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3468 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3473 # We make a subdir and do the tests there. Otherwise we can end up
3474 # making bogus files that we don't know about and never remove. For
3475 # instance it was reported that on HP-UX the gcc test will end up
3476 # making a dummy file named `D' -- because `-MD' means `put the output
3477 # in D'.
3478 mkdir conftest.dir
3479 # Copy depcomp to subdir because otherwise we won't find it if we're
3480 # using a relative directory.
3481 cp "$am_depcomp" conftest.dir
3482 cd conftest.dir
3483 # We will build objects and dependencies in a subdirectory because
3484 # it helps to detect inapplicable dependency modes. For instance
3485 # both Tru64's cc and ICC support -MD to output dependencies as a
3486 # side effect of compilation, but ICC will put the dependencies in
3487 # the current directory while Tru64 will put them in the object
3488 # directory.
3489 mkdir sub
3490
3491 am_cv_CC_dependencies_compiler_type=none
3492 if test "$am_compiler_list" = ""; then
3493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3494 fi
3495 for depmode in $am_compiler_list; do
3496 # Setup a source with many dependencies, because some compilers
3497 # like to wrap large dependency lists on column 80 (with \), and
3498 # we should not choose a depcomp mode which is confused by this.
3499 #
3500 # We need to recreate these files for each test, as the compiler may
3501 # overwrite some of them when testing with obscure command lines.
3502 # This happens at least with the AIX C compiler.
3503 : > sub/conftest.c
3504 for i in 1 2 3 4 5 6; do
3505 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3506 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3507 # Solaris 8's {/usr,}/bin/sh.
3508 touch sub/conftst$i.h
3509 done
3510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3511
3512 case $depmode in
3513 nosideeffect)
3514 # after this tag, mechanisms are not by side-effect, so they'll
3515 # only be used when explicitly requested
3516 if test "x$enable_dependency_tracking" = xyes; then
3517 continue
3518 else
3519 break
3520 fi
3521 ;;
3522 none) break ;;
3523 esac
3524 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3525 # mode. It turns out that the SunPro C++ compiler does not properly
3526 # handle `-M -o', and we need to detect this.
3527 if depmode=$depmode \
3528 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3529 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3530 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3531 >/dev/null 2>conftest.err &&
3532 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3533 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3534 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3535 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3536 # icc doesn't choke on unknown options, it will just issue warnings
3537 # or remarks (even with -Werror). So we grep stderr for any message
3538 # that says an option was ignored or not supported.
3539 # When given -MP, icc 7.0 and 7.1 complain thusly:
3540 # icc: Command line warning: ignoring option '-M'; no argument required
3541 # The diagnosis changed in icc 8.0:
3542 # icc: Command line remark: option '-MP' not supported
3543 if (grep 'ignoring option' conftest.err ||
3544 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3545 am_cv_CC_dependencies_compiler_type=$depmode
3546 break
3547 fi
3548 fi
3549 done
3550
3551 cd ..
3552 rm -rf conftest.dir
3553 else
3554 am_cv_CC_dependencies_compiler_type=none
3555 fi
3556
3557 fi
3558 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3559 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3560 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3561
3562 if
3563 test "x$enable_dependency_tracking" != xno \
3564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3565 am__fastdepCC_TRUE=
3566 am__fastdepCC_FALSE='#'
3567 else
3568 am__fastdepCC_TRUE='#'
3569 am__fastdepCC_FALSE=
3570 fi
3571
3572
3573 # Check whether --enable-shared was given.
3574 if test "${enable_shared+set}" = set; then
3575 enableval=$enable_shared; p=${PACKAGE-default}
3576 case $enableval in
3577 yes) enable_shared=yes ;;
3578 no) enable_shared=no ;;
3579 *)
3580 enable_shared=no
3581 # Look at the argument we got. We use all the common list separators.
3582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3583 for pkg in $enableval; do
3584 IFS="$lt_save_ifs"
3585 if test "X$pkg" = "X$p"; then
3586 enable_shared=yes
3587 fi
3588 done
3589 IFS="$lt_save_ifs"
3590 ;;
3591 esac
3592 else
3593 enable_shared=yes
3594 fi
3595
3596
3597 # Check whether --enable-static was given.
3598 if test "${enable_static+set}" = set; then
3599 enableval=$enable_static; p=${PACKAGE-default}
3600 case $enableval in
3601 yes) enable_static=yes ;;
3602 no) enable_static=no ;;
3603 *)
3604 enable_static=no
3605 # Look at the argument we got. We use all the common list separators.
3606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3607 for pkg in $enableval; do
3608 IFS="$lt_save_ifs"
3609 if test "X$pkg" = "X$p"; then
3610 enable_static=yes
3611 fi
3612 done
3613 IFS="$lt_save_ifs"
3614 ;;
3615 esac
3616 else
3617 enable_static=yes
3618 fi
3619
3620
3621 # Check whether --enable-fast-install was given.
3622 if test "${enable_fast_install+set}" = set; then
3623 enableval=$enable_fast_install; p=${PACKAGE-default}
3624 case $enableval in
3625 yes) enable_fast_install=yes ;;
3626 no) enable_fast_install=no ;;
3627 *)
3628 enable_fast_install=no
3629 # Look at the argument we got. We use all the common list separators.
3630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631 for pkg in $enableval; do
3632 IFS="$lt_save_ifs"
3633 if test "X$pkg" = "X$p"; then
3634 enable_fast_install=yes
3635 fi
3636 done
3637 IFS="$lt_save_ifs"
3638 ;;
3639 esac
3640 else
3641 enable_fast_install=yes
3642 fi
3643
3644
3645 # Make sure we can run config.sub.
3646 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3647 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3648 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3649 { (exit 1); exit 1; }; }
3650
3651 { echo "$as_me:$LINENO: checking build system type" >&5
3652 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3653 if test "${ac_cv_build+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 ac_build_alias=$build_alias
3657 test "x$ac_build_alias" = x &&
3658 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3659 test "x$ac_build_alias" = x &&
3660 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3661 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3662 { (exit 1); exit 1; }; }
3663 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3664 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3665 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3666 { (exit 1); exit 1; }; }
3667
3668 fi
3669 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3670 echo "${ECHO_T}$ac_cv_build" >&6; }
3671 case $ac_cv_build in
3672 *-*-*) ;;
3673 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3674 echo "$as_me: error: invalid value of canonical build" >&2;}
3675 { (exit 1); exit 1; }; };;
3676 esac
3677 build=$ac_cv_build
3678 ac_save_IFS=$IFS; IFS='-'
3679 set x $ac_cv_build
3680 shift
3681 build_cpu=$1
3682 build_vendor=$2
3683 shift; shift
3684 # Remember, the first character of IFS is used to create $*,
3685 # except with old shells:
3686 build_os=$*
3687 IFS=$ac_save_IFS
3688 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3689
3690
3691 { echo "$as_me:$LINENO: checking host system type" >&5
3692 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3693 if test "${ac_cv_host+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test "x$host_alias" = x; then
3697 ac_cv_host=$ac_cv_build
3698 else
3699 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3700 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3701 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3702 { (exit 1); exit 1; }; }
3703 fi
3704
3705 fi
3706 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3707 echo "${ECHO_T}$ac_cv_host" >&6; }
3708 case $ac_cv_host in
3709 *-*-*) ;;
3710 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3711 echo "$as_me: error: invalid value of canonical host" >&2;}
3712 { (exit 1); exit 1; }; };;
3713 esac
3714 host=$ac_cv_host
3715 ac_save_IFS=$IFS; IFS='-'
3716 set x $ac_cv_host
3717 shift
3718 host_cpu=$1
3719 host_vendor=$2
3720 shift; shift
3721 # Remember, the first character of IFS is used to create $*,
3722 # except with old shells:
3723 host_os=$*
3724 IFS=$ac_save_IFS
3725 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3726
3727
3728 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3729 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3730 if test "${lt_cv_path_SED+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733 # Loop through the user's path and test for sed and gsed.
3734 # Then use that list of sed's as ones to test for truncation.
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for lt_ac_prog in sed gsed; do
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3743 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3744 fi
3745 done
3746 done
3747 done
3748 lt_ac_max=0
3749 lt_ac_count=0
3750 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3751 # along with /bin/sed that truncates output.
3752 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3753 test ! -f $lt_ac_sed && continue
3754 cat /dev/null > conftest.in
3755 lt_ac_count=0
3756 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3757 # Check for GNU sed and select it if it is found.
3758 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3759 lt_cv_path_SED=$lt_ac_sed
3760 break
3761 fi
3762 while true; do
3763 cat conftest.in conftest.in >conftest.tmp
3764 mv conftest.tmp conftest.in
3765 cp conftest.in conftest.nl
3766 echo >>conftest.nl
3767 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3768 cmp -s conftest.out conftest.nl || break
3769 # 10000 chars as input seems more than enough
3770 test $lt_ac_count -gt 10 && break
3771 lt_ac_count=`expr $lt_ac_count + 1`
3772 if test $lt_ac_count -gt $lt_ac_max; then
3773 lt_ac_max=$lt_ac_count
3774 lt_cv_path_SED=$lt_ac_sed
3775 fi
3776 done
3777 done
3778
3779 fi
3780
3781 SED=$lt_cv_path_SED
3782 { echo "$as_me:$LINENO: result: $SED" >&5
3783 echo "${ECHO_T}$SED" >&6; }
3784
3785 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3786 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3787 if test "${ac_cv_path_GREP+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 # Extract the first word of "grep ggrep" to use in msg output
3791 if test -z "$GREP"; then
3792 set dummy grep ggrep; ac_prog_name=$2
3793 if test "${ac_cv_path_GREP+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796 ac_path_GREP_found=false
3797 # Loop through the user's path and test for each of PROGNAME-LIST
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_prog in grep ggrep; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3806 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3807 # Check for GNU ac_path_GREP and select it if it is found.
3808 # Check for GNU $ac_path_GREP
3809 case `"$ac_path_GREP" --version 2>&1` in
3810 *GNU*)
3811 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3812 *)
3813 ac_count=0
3814 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3815 while :
3816 do
3817 cat "conftest.in" "conftest.in" >"conftest.tmp"
3818 mv "conftest.tmp" "conftest.in"
3819 cp "conftest.in" "conftest.nl"
3820 echo 'GREP' >> "conftest.nl"
3821 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3823 ac_count=`expr $ac_count + 1`
3824 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3825 # Best one so far, save it but keep looking for a better one
3826 ac_cv_path_GREP="$ac_path_GREP"
3827 ac_path_GREP_max=$ac_count
3828 fi
3829 # 10*(2^10) chars as input seems more than enough
3830 test $ac_count -gt 10 && break
3831 done
3832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3833 esac
3834
3835
3836 $ac_path_GREP_found && break 3
3837 done
3838 done
3839
3840 done
3841 IFS=$as_save_IFS
3842
3843
3844 fi
3845
3846 GREP="$ac_cv_path_GREP"
3847 if test -z "$GREP"; then
3848 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3849 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3850 { (exit 1); exit 1; }; }
3851 fi
3852
3853 else
3854 ac_cv_path_GREP=$GREP
3855 fi
3856
3857
3858 fi
3859 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3860 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3861 GREP="$ac_cv_path_GREP"
3862
3863
3864 { echo "$as_me:$LINENO: checking for egrep" >&5
3865 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3866 if test "${ac_cv_path_EGREP+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3870 then ac_cv_path_EGREP="$GREP -E"
3871 else
3872 # Extract the first word of "egrep" to use in msg output
3873 if test -z "$EGREP"; then
3874 set dummy egrep; ac_prog_name=$2
3875 if test "${ac_cv_path_EGREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 ac_path_EGREP_found=false
3879 # Loop through the user's path and test for each of PROGNAME-LIST
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_prog in egrep; do
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3888 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3889 # Check for GNU ac_path_EGREP and select it if it is found.
3890 # Check for GNU $ac_path_EGREP
3891 case `"$ac_path_EGREP" --version 2>&1` in
3892 *GNU*)
3893 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3894 *)
3895 ac_count=0
3896 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3897 while :
3898 do
3899 cat "conftest.in" "conftest.in" >"conftest.tmp"
3900 mv "conftest.tmp" "conftest.in"
3901 cp "conftest.in" "conftest.nl"
3902 echo 'EGREP' >> "conftest.nl"
3903 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905 ac_count=`expr $ac_count + 1`
3906 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3907 # Best one so far, save it but keep looking for a better one
3908 ac_cv_path_EGREP="$ac_path_EGREP"
3909 ac_path_EGREP_max=$ac_count
3910 fi
3911 # 10*(2^10) chars as input seems more than enough
3912 test $ac_count -gt 10 && break
3913 done
3914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915 esac
3916
3917
3918 $ac_path_EGREP_found && break 3
3919 done
3920 done
3921
3922 done
3923 IFS=$as_save_IFS
3924
3925
3926 fi
3927
3928 EGREP="$ac_cv_path_EGREP"
3929 if test -z "$EGREP"; then
3930 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3931 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3932 { (exit 1); exit 1; }; }
3933 fi
3934
3935 else
3936 ac_cv_path_EGREP=$EGREP
3937 fi
3938
3939
3940 fi
3941 fi
3942 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3943 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3944 EGREP="$ac_cv_path_EGREP"
3945
3946
3947
3948 # Check whether --with-gnu-ld was given.
3949 if test "${with_gnu_ld+set}" = set; then
3950 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3951 else
3952 with_gnu_ld=no
3953 fi
3954
3955 ac_prog=ld
3956 if test "$GCC" = yes; then
3957 # Check if gcc -print-prog-name=ld gives a path.
3958 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3959 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3960 case $host in
3961 *-*-mingw*)
3962 # gcc leaves a trailing carriage return which upsets mingw
3963 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3964 *)
3965 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3966 esac
3967 case $ac_prog in
3968 # Accept absolute paths.
3969 [\\/]* | ?:[\\/]*)
3970 re_direlt='/[^/][^/]*/\.\./'
3971 # Canonicalize the pathname of ld
3972 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3973 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3974 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3975 done
3976 test -z "$LD" && LD="$ac_prog"
3977 ;;
3978 "")
3979 # If it fails, then pretend we aren't using GCC.
3980 ac_prog=ld
3981 ;;
3982 *)
3983 # If it is relative, then search for the first ld in PATH.
3984 with_gnu_ld=unknown
3985 ;;
3986 esac
3987 elif test "$with_gnu_ld" = yes; then
3988 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3989 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3990 else
3991 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3992 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3993 fi
3994 if test "${lt_cv_path_LD+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 if test -z "$LD"; then
3998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3999 for ac_dir in $PATH; do
4000 IFS="$lt_save_ifs"
4001 test -z "$ac_dir" && ac_dir=.
4002 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4003 lt_cv_path_LD="$ac_dir/$ac_prog"
4004 # Check to see if the program is GNU ld. I'd rather use --version,
4005 # but apparently some variants of GNU ld only accept -v.
4006 # Break only if it was the GNU/non-GNU ld that we prefer.
4007 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4008 *GNU* | *'with BFD'*)
4009 test "$with_gnu_ld" != no && break
4010 ;;
4011 *)
4012 test "$with_gnu_ld" != yes && break
4013 ;;
4014 esac
4015 fi
4016 done
4017 IFS="$lt_save_ifs"
4018 else
4019 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4020 fi
4021 fi
4022
4023 LD="$lt_cv_path_LD"
4024 if test -n "$LD"; then
4025 { echo "$as_me:$LINENO: result: $LD" >&5
4026 echo "${ECHO_T}$LD" >&6; }
4027 else
4028 { echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6; }
4030 fi
4031 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4032 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4033 { (exit 1); exit 1; }; }
4034 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4035 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4036 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4040 case `$LD -v 2>&1 </dev/null` in
4041 *GNU* | *'with BFD'*)
4042 lt_cv_prog_gnu_ld=yes
4043 ;;
4044 *)
4045 lt_cv_prog_gnu_ld=no
4046 ;;
4047 esac
4048 fi
4049 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4050 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4051 with_gnu_ld=$lt_cv_prog_gnu_ld
4052
4053
4054 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4055 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4056 if test "${lt_cv_ld_reload_flag+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 lt_cv_ld_reload_flag='-r'
4060 fi
4061 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4062 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4063 reload_flag=$lt_cv_ld_reload_flag
4064 case $reload_flag in
4065 "" | " "*) ;;
4066 *) reload_flag=" $reload_flag" ;;
4067 esac
4068 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4069 case $host_os in
4070 darwin*)
4071 if test "$GCC" = yes; then
4072 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4073 else
4074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4075 fi
4076 ;;
4077 esac
4078
4079 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4080 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4081 if test "${lt_cv_path_NM+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 if test -n "$NM"; then
4085 # Let the user override the test.
4086 lt_cv_path_NM="$NM"
4087 else
4088 lt_nm_to_check="${ac_tool_prefix}nm"
4089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4090 lt_nm_to_check="$lt_nm_to_check nm"
4091 fi
4092 for lt_tmp_nm in $lt_nm_to_check; do
4093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4095 IFS="$lt_save_ifs"
4096 test -z "$ac_dir" && ac_dir=.
4097 tmp_nm="$ac_dir/$lt_tmp_nm"
4098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4099 # Check to see if the nm accepts a BSD-compat flag.
4100 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4101 # nm: unknown option "B" ignored
4102 # Tru64's nm complains that /dev/null is an invalid object file
4103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4104 */dev/null* | *'Invalid file or object type'*)
4105 lt_cv_path_NM="$tmp_nm -B"
4106 break
4107 ;;
4108 *)
4109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4110 */dev/null*)
4111 lt_cv_path_NM="$tmp_nm -p"
4112 break
4113 ;;
4114 *)
4115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4116 continue # so that we can try to find one that supports BSD flags
4117 ;;
4118 esac
4119 ;;
4120 esac
4121 fi
4122 done
4123 IFS="$lt_save_ifs"
4124 done
4125 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4126 fi
4127 fi
4128 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4129 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4130 NM="$lt_cv_path_NM"
4131
4132 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4133 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4134 LN_S=$as_ln_s
4135 if test "$LN_S" = "ln -s"; then
4136 { echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6; }
4138 else
4139 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4140 echo "${ECHO_T}no, using $LN_S" >&6; }
4141 fi
4142
4143 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4144 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4145 if test "${lt_cv_deplibs_check_method+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 lt_cv_file_magic_cmd='$MAGIC_CMD'
4149 lt_cv_file_magic_test_file=
4150 lt_cv_deplibs_check_method='unknown'
4151 # Need to set the preceding variable on all platforms that support
4152 # interlibrary dependencies.
4153 # 'none' -- dependencies not supported.
4154 # `unknown' -- same as none, but documents that we really don't know.
4155 # 'pass_all' -- all dependencies passed with no checks.
4156 # 'test_compile' -- check by making test program.
4157 # 'file_magic [[regex]]' -- check by looking for files in library path
4158 # which responds to the $file_magic_cmd with a given extended regex.
4159 # If you have `file' or equivalent on your system and you're not sure
4160 # whether `pass_all' will *always* work, you probably want this one.
4161
4162 case $host_os in
4163 aix4* | aix5*)
4164 lt_cv_deplibs_check_method=pass_all
4165 ;;
4166
4167 beos*)
4168 lt_cv_deplibs_check_method=pass_all
4169 ;;
4170
4171 bsdi[45]*)
4172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4173 lt_cv_file_magic_cmd='/usr/bin/file -L'
4174 lt_cv_file_magic_test_file=/shlib/libc.so
4175 ;;
4176
4177 cygwin*)
4178 # func_win32_libid is a shell function defined in ltmain.sh
4179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4180 lt_cv_file_magic_cmd='func_win32_libid'
4181 ;;
4182
4183 mingw* | pw32*)
4184 # Base MSYS/MinGW do not provide the 'file' command needed by
4185 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4186 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4187 lt_cv_file_magic_cmd='$OBJDUMP -f'
4188 ;;
4189
4190 darwin* | rhapsody*)
4191 lt_cv_deplibs_check_method=pass_all
4192 ;;
4193
4194 freebsd* | kfreebsd*-gnu | dragonfly*)
4195 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4196 case $host_cpu in
4197 i*86 )
4198 # Not sure whether the presence of OpenBSD here was a mistake.
4199 # Let's accept both of them until this is cleared up.
4200 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4201 lt_cv_file_magic_cmd=/usr/bin/file
4202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4203 ;;
4204 esac
4205 else
4206 lt_cv_deplibs_check_method=pass_all
4207 fi
4208 ;;
4209
4210 gnu*)
4211 lt_cv_deplibs_check_method=pass_all
4212 ;;
4213
4214 hpux10.20* | hpux11*)
4215 lt_cv_file_magic_cmd=/usr/bin/file
4216 case $host_cpu in
4217 ia64*)
4218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4219 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4220 ;;
4221 hppa*64*)
4222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4223 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4224 ;;
4225 *)
4226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4227 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4228 ;;
4229 esac
4230 ;;
4231
4232 interix3*)
4233 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4235 ;;
4236
4237 irix5* | irix6* | nonstopux*)
4238 case $LD in
4239 *-32|*"-32 ") libmagic=32-bit;;
4240 *-n32|*"-n32 ") libmagic=N32;;
4241 *-64|*"-64 ") libmagic=64-bit;;
4242 *) libmagic=never-match;;
4243 esac
4244 lt_cv_deplibs_check_method=pass_all
4245 ;;
4246
4247 # This must be Linux ELF.
4248 linux*)
4249 lt_cv_deplibs_check_method=pass_all
4250 ;;
4251
4252 netbsd*)
4253 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4255 else
4256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4257 fi
4258 ;;
4259
4260 newos6*)
4261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4262 lt_cv_file_magic_cmd=/usr/bin/file
4263 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4264 ;;
4265
4266 nto-qnx*)
4267 lt_cv_deplibs_check_method=unknown
4268 ;;
4269
4270 openbsd*)
4271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4273 else
4274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4275 fi
4276 ;;
4277
4278 osf3* | osf4* | osf5*)
4279 lt_cv_deplibs_check_method=pass_all
4280 ;;
4281
4282 solaris*)
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285
4286 sysv4 | sysv4.3*)
4287 case $host_vendor in
4288 motorola)
4289 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]'
4290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4291 ;;
4292 ncr)
4293 lt_cv_deplibs_check_method=pass_all
4294 ;;
4295 sequent)
4296 lt_cv_file_magic_cmd='/bin/file'
4297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4298 ;;
4299 sni)
4300 lt_cv_file_magic_cmd='/bin/file'
4301 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4302 lt_cv_file_magic_test_file=/lib/libc.so
4303 ;;
4304 siemens)
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307 pc)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310 esac
4311 ;;
4312
4313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4314 lt_cv_deplibs_check_method=pass_all
4315 ;;
4316 esac
4317
4318 fi
4319 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4320 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4321 file_magic_cmd=$lt_cv_file_magic_cmd
4322 deplibs_check_method=$lt_cv_deplibs_check_method
4323 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4324
4325
4326
4327
4328 # If no C compiler was specified, use CC.
4329 LTCC=${LTCC-"$CC"}
4330
4331 # If no C compiler flags were specified, use CFLAGS.
4332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4333
4334 # Allow CC to be a program name with arguments.
4335 compiler=$CC
4336
4337
4338 # Check whether --enable-libtool-lock was given.
4339 if test "${enable_libtool_lock+set}" = set; then
4340 enableval=$enable_libtool_lock;
4341 fi
4342
4343 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4344
4345 # Some flags need to be propagated to the compiler or linker for good
4346 # libtool support.
4347 case $host in
4348 ia64-*-hpux*)
4349 # Find out which ABI we are using.
4350 echo 'int i;' > conftest.$ac_ext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352 (eval $ac_compile) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; then
4356 case `/usr/bin/file conftest.$ac_objext` in
4357 *ELF-32*)
4358 HPUX_IA64_MODE="32"
4359 ;;
4360 *ELF-64*)
4361 HPUX_IA64_MODE="64"
4362 ;;
4363 esac
4364 fi
4365 rm -rf conftest*
4366 ;;
4367 *-*-irix6*)
4368 # Find out which ABI we are using.
4369 echo '#line 4369 "configure"' > conftest.$ac_ext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371 (eval $ac_compile) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; then
4375 if test "$lt_cv_prog_gnu_ld" = yes; then
4376 case `/usr/bin/file conftest.$ac_objext` in
4377 *32-bit*)
4378 LD="${LD-ld} -melf32bsmip"
4379 ;;
4380 *N32*)
4381 LD="${LD-ld} -melf32bmipn32"
4382 ;;
4383 *64-bit*)
4384 LD="${LD-ld} -melf64bmip"
4385 ;;
4386 esac
4387 else
4388 case `/usr/bin/file conftest.$ac_objext` in
4389 *32-bit*)
4390 LD="${LD-ld} -32"
4391 ;;
4392 *N32*)
4393 LD="${LD-ld} -n32"
4394 ;;
4395 *64-bit*)
4396 LD="${LD-ld} -64"
4397 ;;
4398 esac
4399 fi
4400 fi
4401 rm -rf conftest*
4402 ;;
4403
4404 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4405 # Find out which ABI we are using.
4406 echo 'int i;' > conftest.$ac_ext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; then
4412 case `/usr/bin/file conftest.o` in
4413 *32-bit*)
4414 case $host in
4415 x86_64-*linux*)
4416 LD="${LD-ld} -m elf_i386"
4417 ;;
4418 ppc64-*linux*|powerpc64-*linux*)
4419 LD="${LD-ld} -m elf32ppclinux"
4420 ;;
4421 s390x-*linux*)
4422 LD="${LD-ld} -m elf_s390"
4423 ;;
4424 sparc64-*linux*)
4425 LD="${LD-ld} -m elf32_sparc"
4426 ;;
4427 esac
4428 ;;
4429 *64-bit*)
4430 case $host in
4431 x86_64-*linux*)
4432 LD="${LD-ld} -m elf_x86_64"
4433 ;;
4434 ppc*-*linux*|powerpc*-*linux*)
4435 LD="${LD-ld} -m elf64ppc"
4436 ;;
4437 s390*-*linux*)
4438 LD="${LD-ld} -m elf64_s390"
4439 ;;
4440 sparc*-*linux*)
4441 LD="${LD-ld} -m elf64_sparc"
4442 ;;
4443 esac
4444 ;;
4445 esac
4446 fi
4447 rm -rf conftest*
4448 ;;
4449
4450 *-*-sco3.2v5*)
4451 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4452 SAVE_CFLAGS="$CFLAGS"
4453 CFLAGS="$CFLAGS -belf"
4454 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4455 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4456 if test "${lt_cv_cc_needs_belf+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 ac_ext=c
4460 ac_cpp='$CPP $CPPFLAGS'
4461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h. */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471
4472 int
4473 main ()
4474 {
4475
4476 ;
4477 return 0;
4478 }
4479 _ACEOF
4480 rm -f conftest.$ac_objext conftest$ac_exeext
4481 if { (ac_try="$ac_link"
4482 case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485 esac
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_link") 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } && {
4494 test -z "$ac_c_werror_flag" ||
4495 test ! -s conftest.err
4496 } && test -s conftest$ac_exeext &&
4497 $as_test_x conftest$ac_exeext; then
4498 lt_cv_cc_needs_belf=yes
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 lt_cv_cc_needs_belf=no
4504 fi
4505
4506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4507 conftest$ac_exeext conftest.$ac_ext
4508 ac_ext=c
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514 fi
4515 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4516 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4517 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4518 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4519 CFLAGS="$SAVE_CFLAGS"
4520 fi
4521 ;;
4522 sparc*-*solaris*)
4523 # Find out which ABI we are using.
4524 echo 'int i;' > conftest.$ac_ext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; then
4530 case `/usr/bin/file conftest.o` in
4531 *64-bit*)
4532 case $lt_cv_prog_gnu_ld in
4533 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4534 *) LD="${LD-ld} -64" ;;
4535 esac
4536 ;;
4537 esac
4538 fi
4539 rm -rf conftest*
4540 ;;
4541
4542
4543 esac
4544
4545 need_locks="$enable_libtool_lock"
4546
4547
4548 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4554 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4555 # On Suns, sometimes $CPP names a directory.
4556 if test -n "$CPP" && test -d "$CPP"; then
4557 CPP=
4558 fi
4559 if test -z "$CPP"; then
4560 if test "${ac_cv_prog_CPP+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 # Double quotes because CPP needs to be expanded
4564 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4565 do
4566 ac_preproc_ok=false
4567 for ac_c_preproc_warn_flag in '' yes
4568 do
4569 # Use a header file that comes with gcc, so configuring glibc
4570 # with a fresh cross-compiler works.
4571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572 # <limits.h> exists even on freestanding compilers.
4573 # On the NeXT, cc -E runs the code through the compiler's parser,
4574 # not just through cpp. "Syntax error" is here to catch this case.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #ifdef __STDC__
4582 # include <limits.h>
4583 #else
4584 # include <assert.h>
4585 #endif
4586 Syntax error
4587 _ACEOF
4588 if { (ac_try="$ac_cpp conftest.$ac_ext"
4589 case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592 esac
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev/null && {
4601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4602 test ! -s conftest.err
4603 }; then
4604 :
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 # Broken: fails on valid input.
4610 continue
4611 fi
4612
4613 rm -f conftest.err conftest.$ac_ext
4614
4615 # OK, works on sane cases. Now check whether nonexistent headers
4616 # can be detected and how.
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #include <ac_nonexistent.h>
4624 _ACEOF
4625 if { (ac_try="$ac_cpp conftest.$ac_ext"
4626 case "(($ac_try" in
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4629 esac
4630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev/null && {
4638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4639 test ! -s conftest.err
4640 }; then
4641 # Broken: success on invalid input.
4642 continue
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 # Passes both tests.
4648 ac_preproc_ok=:
4649 break
4650 fi
4651
4652 rm -f conftest.err conftest.$ac_ext
4653
4654 done
4655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4656 rm -f conftest.err conftest.$ac_ext
4657 if $ac_preproc_ok; then
4658 break
4659 fi
4660
4661 done
4662 ac_cv_prog_CPP=$CPP
4663
4664 fi
4665 CPP=$ac_cv_prog_CPP
4666 else
4667 ac_cv_prog_CPP=$CPP
4668 fi
4669 { echo "$as_me:$LINENO: result: $CPP" >&5
4670 echo "${ECHO_T}$CPP" >&6; }
4671 ac_preproc_ok=false
4672 for ac_c_preproc_warn_flag in '' yes
4673 do
4674 # Use a header file that comes with gcc, so configuring glibc
4675 # with a fresh cross-compiler works.
4676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4677 # <limits.h> exists even on freestanding compilers.
4678 # On the NeXT, cc -E runs the code through the compiler's parser,
4679 # not just through cpp. "Syntax error" is here to catch this case.
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #ifdef __STDC__
4687 # include <limits.h>
4688 #else
4689 # include <assert.h>
4690 #endif
4691 Syntax error
4692 _ACEOF
4693 if { (ac_try="$ac_cpp conftest.$ac_ext"
4694 case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null && {
4706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4708 }; then
4709 :
4710 else
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 # Broken: fails on valid input.
4715 continue
4716 fi
4717
4718 rm -f conftest.err conftest.$ac_ext
4719
4720 # OK, works on sane cases. Now check whether nonexistent headers
4721 # can be detected and how.
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 #include <ac_nonexistent.h>
4729 _ACEOF
4730 if { (ac_try="$ac_cpp conftest.$ac_ext"
4731 case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } >/dev/null && {
4743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 }; then
4746 # Broken: success on invalid input.
4747 continue
4748 else
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752 # Passes both tests.
4753 ac_preproc_ok=:
4754 break
4755 fi
4756
4757 rm -f conftest.err conftest.$ac_ext
4758
4759 done
4760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4761 rm -f conftest.err conftest.$ac_ext
4762 if $ac_preproc_ok; then
4763 :
4764 else
4765 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4766 See \`config.log' for more details." >&5
4767 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4768 See \`config.log' for more details." >&2;}
4769 { (exit 1); exit 1; }; }
4770 fi
4771
4772 ac_ext=c
4773 ac_cpp='$CPP $CPPFLAGS'
4774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
4778
4779 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4780 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4781 if test "${ac_cv_header_stdc+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <stdlib.h>
4791 #include <stdarg.h>
4792 #include <string.h>
4793 #include <float.h>
4794
4795 int
4796 main ()
4797 {
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_compile") 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } && {
4817 test -z "$ac_c_werror_flag" ||
4818 test ! -s conftest.err
4819 } && test -s conftest.$ac_objext; then
4820 ac_cv_header_stdc=yes
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 ac_cv_header_stdc=no
4826 fi
4827
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829
4830 if test $ac_cv_header_stdc = yes; then
4831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #include <string.h>
4839
4840 _ACEOF
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842 $EGREP "memchr" >/dev/null 2>&1; then
4843 :
4844 else
4845 ac_cv_header_stdc=no
4846 fi
4847 rm -f conftest*
4848
4849 fi
4850
4851 if test $ac_cv_header_stdc = yes; then
4852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <stdlib.h>
4860
4861 _ACEOF
4862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4863 $EGREP "free" >/dev/null 2>&1; then
4864 :
4865 else
4866 ac_cv_header_stdc=no
4867 fi
4868 rm -f conftest*
4869
4870 fi
4871
4872 if test $ac_cv_header_stdc = yes; then
4873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4874 if test "$cross_compiling" = yes; then
4875 :
4876 else
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h. */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4883 #include <ctype.h>
4884 #include <stdlib.h>
4885 #if ((' ' & 0x0FF) == 0x020)
4886 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4887 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4888 #else
4889 # define ISLOWER(c) \
4890 (('a' <= (c) && (c) <= 'i') \
4891 || ('j' <= (c) && (c) <= 'r') \
4892 || ('s' <= (c) && (c) <= 'z'))
4893 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4894 #endif
4895
4896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4897 int
4898 main ()
4899 {
4900 int i;
4901 for (i = 0; i < 256; i++)
4902 if (XOR (islower (i), ISLOWER (i))
4903 || toupper (i) != TOUPPER (i))
4904 return 2;
4905 return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest$ac_exeext
4909 if { (ac_try="$ac_link"
4910 case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913 esac
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_link") 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4919 { (case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922 esac
4923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4924 (eval "$ac_try") 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 :
4929 else
4930 echo "$as_me: program exited with status $ac_status" >&5
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 ( exit $ac_status )
4935 ac_cv_header_stdc=no
4936 fi
4937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4938 fi
4939
4940
4941 fi
4942 fi
4943 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4944 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4945 if test $ac_cv_header_stdc = yes; then
4946
4947 cat >>confdefs.h <<\_ACEOF
4948 #define STDC_HEADERS 1
4949 _ACEOF
4950
4951 fi
4952
4953 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4964 inttypes.h stdint.h unistd.h
4965 do
4966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h. */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 $ac_includes_default
4979
4980 #include <$ac_header>
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (ac_try="$ac_compile"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_compile") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest.$ac_objext; then
4999 eval "$as_ac_Header=yes"
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 eval "$as_ac_Header=no"
5005 fi
5006
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 fi
5009 ac_res=`eval echo '${'$as_ac_Header'}'`
5010 { echo "$as_me:$LINENO: result: $ac_res" >&5
5011 echo "${ECHO_T}$ac_res" >&6; }
5012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5013 cat >>confdefs.h <<_ACEOF
5014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5015 _ACEOF
5016
5017 fi
5018
5019 done
5020
5021
5022
5023 for ac_header in dlfcn.h
5024 do
5025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 fi
5032 ac_res=`eval echo '${'$as_ac_Header'}'`
5033 { echo "$as_me:$LINENO: result: $ac_res" >&5
5034 echo "${ECHO_T}$ac_res" >&6; }
5035 else
5036 # Is the header compilable?
5037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h. */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 $ac_includes_default
5046 #include <$ac_header>
5047 _ACEOF
5048 rm -f conftest.$ac_objext
5049 if { (ac_try="$ac_compile"
5050 case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053 esac
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_compile") 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && {
5062 test -z "$ac_c_werror_flag" ||
5063 test ! -s conftest.err
5064 } && test -s conftest.$ac_objext; then
5065 ac_header_compiler=yes
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070 ac_header_compiler=no
5071 fi
5072
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5075 echo "${ECHO_T}$ac_header_compiler" >&6; }
5076
5077 # Is the header present?
5078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include <$ac_header>
5087 _ACEOF
5088 if { (ac_try="$ac_cpp conftest.$ac_ext"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 }; then
5104 ac_header_preproc=yes
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 ac_header_preproc=no
5110 fi
5111
5112 rm -f conftest.err conftest.$ac_ext
5113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5114 echo "${ECHO_T}$ac_header_preproc" >&6; }
5115
5116 # So? What about this header?
5117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5118 yes:no: )
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5123 ac_header_preproc=yes
5124 ;;
5125 no:yes:* )
5126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5138 ( cat <<\_ASBOX
5139 ## ---------------------------------------------------------------------- ##
5140 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5141 ## ---------------------------------------------------------------------- ##
5142 _ASBOX
5143 ) | sed "s/^/$as_me: WARNING: /" >&2
5144 ;;
5145 esac
5146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 eval "$as_ac_Header=\$ac_header_preproc"
5152 fi
5153 ac_res=`eval echo '${'$as_ac_Header'}'`
5154 { echo "$as_me:$LINENO: result: $ac_res" >&5
5155 echo "${ECHO_T}$ac_res" >&6; }
5156
5157 fi
5158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5159 cat >>confdefs.h <<_ACEOF
5160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5161 _ACEOF
5162
5163 fi
5164
5165 done
5166
5167 ac_ext=cpp
5168 ac_cpp='$CXXCPP $CPPFLAGS'
5169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5172 if test -z "$CXX"; then
5173 if test -n "$CCC"; then
5174 CXX=$CCC
5175 else
5176 if test -n "$ac_tool_prefix"; then
5177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5178 do
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5183 if test "${ac_cv_prog_CXX+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$CXX"; then
5187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 CXX=$ac_cv_prog_CXX
5207 if test -n "$CXX"; then
5208 { echo "$as_me:$LINENO: result: $CXX" >&5
5209 echo "${ECHO_T}$CXX" >&6; }
5210 else
5211 { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5213 fi
5214
5215
5216 test -n "$CXX" && break
5217 done
5218 fi
5219 if test -z "$CXX"; then
5220 ac_ct_CXX=$CXX
5221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222 do
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 if test -n "$ac_ct_CXX"; then
5231 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_ac_ct_CXX="$ac_prog"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248 fi
5249 fi
5250 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5251 if test -n "$ac_ct_CXX"; then
5252 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5253 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5254 else
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5257 fi
5258
5259
5260 test -n "$ac_ct_CXX" && break
5261 done
5262
5263 if test "x$ac_ct_CXX" = x; then
5264 CXX="g++"
5265 else
5266 case $cross_compiling:$ac_tool_warned in
5267 yes:)
5268 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5269 whose name does not start with the host triplet. If you think this
5270 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5271 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5272 whose name does not start with the host triplet. If you think this
5273 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 CXX=$ac_ct_CXX
5277 fi
5278 fi
5279
5280 fi
5281 fi
5282 # Provide some information about the compiler.
5283 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5284 ac_compiler=`set X $ac_compile; echo $2`
5285 { (ac_try="$ac_compiler --version >&5"
5286 case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler --version >&5") 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295 { (ac_try="$ac_compiler -v >&5"
5296 case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler -v >&5") 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (ac_try="$ac_compiler -V >&5"
5306 case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compiler -V >&5") 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5315
5316 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5318 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327
5328 int
5329 main ()
5330 {
5331 #ifndef __GNUC__
5332 choke me
5333 #endif
5334
5335 ;
5336 return 0;
5337 }
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5341 case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && {
5353 test -z "$ac_cxx_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
5356 ac_compiler_gnu=yes
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_compiler_gnu=no
5362 fi
5363
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5366
5367 fi
5368 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5369 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5370 GXX=`test $ac_compiler_gnu = yes && echo yes`
5371 ac_test_CXXFLAGS=${CXXFLAGS+set}
5372 ac_save_CXXFLAGS=$CXXFLAGS
5373 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5374 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5375 if test "${ac_cv_prog_cxx_g+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5379 ac_cxx_werror_flag=yes
5380 ac_cv_prog_cxx_g=no
5381 CXXFLAGS="-g"
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388
5389 int
5390 main ()
5391 {
5392
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5399 case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_cxx_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
5414 ac_cv_prog_cxx_g=yes
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5418
5419 CXXFLAGS=""
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426
5427 int
5428 main ()
5429 {
5430
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_cxx_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
5452 :
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5458 CXXFLAGS="-g"
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465
5466 int
5467 main ()
5468 {
5469
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5476 case "(($ac_try" in
5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_cxx_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_cv_prog_cxx_g=yes
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496
5497 fi
5498
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 fi
5501
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 fi
5504
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5507 fi
5508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5509 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5510 if test "$ac_test_CXXFLAGS" = set; then
5511 CXXFLAGS=$ac_save_CXXFLAGS
5512 elif test $ac_cv_prog_cxx_g = yes; then
5513 if test "$GXX" = yes; then
5514 CXXFLAGS="-g -O2"
5515 else
5516 CXXFLAGS="-g"
5517 fi
5518 else
5519 if test "$GXX" = yes; then
5520 CXXFLAGS="-O2"
5521 else
5522 CXXFLAGS=
5523 fi
5524 fi
5525 ac_ext=cpp
5526 ac_cpp='$CXXCPP $CPPFLAGS'
5527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5530
5531 depcc="$CXX" am_compiler_list=
5532
5533 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5534 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5535 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5539 # We make a subdir and do the tests there. Otherwise we can end up
5540 # making bogus files that we don't know about and never remove. For
5541 # instance it was reported that on HP-UX the gcc test will end up
5542 # making a dummy file named `D' -- because `-MD' means `put the output
5543 # in D'.
5544 mkdir conftest.dir
5545 # Copy depcomp to subdir because otherwise we won't find it if we're
5546 # using a relative directory.
5547 cp "$am_depcomp" conftest.dir
5548 cd conftest.dir
5549 # We will build objects and dependencies in a subdirectory because
5550 # it helps to detect inapplicable dependency modes. For instance
5551 # both Tru64's cc and ICC support -MD to output dependencies as a
5552 # side effect of compilation, but ICC will put the dependencies in
5553 # the current directory while Tru64 will put them in the object
5554 # directory.
5555 mkdir sub
5556
5557 am_cv_CXX_dependencies_compiler_type=none
5558 if test "$am_compiler_list" = ""; then
5559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5560 fi
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5565 #
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5569 : > sub/conftest.c
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5573 # Solaris 8's {/usr,}/bin/sh.
5574 touch sub/conftst$i.h
5575 done
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5577
5578 case $depmode in
5579 nosideeffect)
5580 # after this tag, mechanisms are not by side-effect, so they'll
5581 # only be used when explicitly requested
5582 if test "x$enable_dependency_tracking" = xyes; then
5583 continue
5584 else
5585 break
5586 fi
5587 ;;
5588 none) break ;;
5589 esac
5590 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5591 # mode. It turns out that the SunPro C++ compiler does not properly
5592 # handle `-M -o', and we need to detect this.
5593 if depmode=$depmode \
5594 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5595 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5596 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5597 >/dev/null 2>conftest.err &&
5598 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5599 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5600 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5601 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5602 # icc doesn't choke on unknown options, it will just issue warnings
5603 # or remarks (even with -Werror). So we grep stderr for any message
5604 # that says an option was ignored or not supported.
5605 # When given -MP, icc 7.0 and 7.1 complain thusly:
5606 # icc: Command line warning: ignoring option '-M'; no argument required
5607 # The diagnosis changed in icc 8.0:
5608 # icc: Command line remark: option '-MP' not supported
5609 if (grep 'ignoring option' conftest.err ||
5610 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5611 am_cv_CXX_dependencies_compiler_type=$depmode
5612 break
5613 fi
5614 fi
5615 done
5616
5617 cd ..
5618 rm -rf conftest.dir
5619 else
5620 am_cv_CXX_dependencies_compiler_type=none
5621 fi
5622
5623 fi
5624 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5625 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5626 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5627
5628 if
5629 test "x$enable_dependency_tracking" != xno \
5630 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5631 am__fastdepCXX_TRUE=
5632 am__fastdepCXX_FALSE='#'
5633 else
5634 am__fastdepCXX_TRUE='#'
5635 am__fastdepCXX_FALSE=
5636 fi
5637
5638
5639
5640
5641 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5642 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5643 (test "X$CXX" != "Xg++"))) ; then
5644 ac_ext=cpp
5645 ac_cpp='$CXXCPP $CPPFLAGS'
5646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5649 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5650 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5651 if test -z "$CXXCPP"; then
5652 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 # Double quotes because CXXCPP needs to be expanded
5656 for CXXCPP in "$CXX -E" "/lib/cpp"
5657 do
5658 ac_preproc_ok=false
5659 for ac_cxx_preproc_warn_flag in '' yes
5660 do
5661 # Use a header file that comes with gcc, so configuring glibc
5662 # with a fresh cross-compiler works.
5663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5664 # <limits.h> exists even on freestanding compilers.
5665 # On the NeXT, cc -E runs the code through the compiler's parser,
5666 # not just through cpp. "Syntax error" is here to catch this case.
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #ifdef __STDC__
5674 # include <limits.h>
5675 #else
5676 # include <assert.h>
5677 #endif
5678 Syntax error
5679 _ACEOF
5680 if { (ac_try="$ac_cpp conftest.$ac_ext"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } >/dev/null && {
5693 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5694 test ! -s conftest.err
5695 }; then
5696 :
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701 # Broken: fails on valid input.
5702 continue
5703 fi
5704
5705 rm -f conftest.err conftest.$ac_ext
5706
5707 # OK, works on sane cases. Now check whether nonexistent headers
5708 # can be detected and how.
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 #include <ac_nonexistent.h>
5716 _ACEOF
5717 if { (ac_try="$ac_cpp conftest.$ac_ext"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } >/dev/null && {
5730 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5731 test ! -s conftest.err
5732 }; then
5733 # Broken: success on invalid input.
5734 continue
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739 # Passes both tests.
5740 ac_preproc_ok=:
5741 break
5742 fi
5743
5744 rm -f conftest.err conftest.$ac_ext
5745
5746 done
5747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5748 rm -f conftest.err conftest.$ac_ext
5749 if $ac_preproc_ok; then
5750 break
5751 fi
5752
5753 done
5754 ac_cv_prog_CXXCPP=$CXXCPP
5755
5756 fi
5757 CXXCPP=$ac_cv_prog_CXXCPP
5758 else
5759 ac_cv_prog_CXXCPP=$CXXCPP
5760 fi
5761 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5762 echo "${ECHO_T}$CXXCPP" >&6; }
5763 ac_preproc_ok=false
5764 for ac_cxx_preproc_warn_flag in '' yes
5765 do
5766 # Use a header file that comes with gcc, so configuring glibc
5767 # with a fresh cross-compiler works.
5768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769 # <limits.h> exists even on freestanding compilers.
5770 # On the NeXT, cc -E runs the code through the compiler's parser,
5771 # not just through cpp. "Syntax error" is here to catch this case.
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #ifdef __STDC__
5779 # include <limits.h>
5780 #else
5781 # include <assert.h>
5782 #endif
5783 Syntax error
5784 _ACEOF
5785 if { (ac_try="$ac_cpp conftest.$ac_ext"
5786 case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789 esac
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } >/dev/null && {
5798 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5799 test ! -s conftest.err
5800 }; then
5801 :
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 # Broken: fails on valid input.
5807 continue
5808 fi
5809
5810 rm -f conftest.err conftest.$ac_ext
5811
5812 # OK, works on sane cases. Now check whether nonexistent headers
5813 # can be detected and how.
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <ac_nonexistent.h>
5821 _ACEOF
5822 if { (ac_try="$ac_cpp conftest.$ac_ext"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5836 test ! -s conftest.err
5837 }; then
5838 # Broken: success on invalid input.
5839 continue
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 # Passes both tests.
5845 ac_preproc_ok=:
5846 break
5847 fi
5848
5849 rm -f conftest.err conftest.$ac_ext
5850
5851 done
5852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853 rm -f conftest.err conftest.$ac_ext
5854 if $ac_preproc_ok; then
5855 :
5856 else
5857 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5858 See \`config.log' for more details." >&5
5859 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5860 See \`config.log' for more details." >&2;}
5861 { (exit 1); exit 1; }; }
5862 fi
5863
5864 ac_ext=cpp
5865 ac_cpp='$CXXCPP $CPPFLAGS'
5866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5869
5870 fi
5871
5872
5873 ac_ext=f
5874 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5875 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5877 if test -n "$ac_tool_prefix"; then
5878 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5879 do
5880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_prog_F77+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 if test -n "$F77"; then
5888 ac_cv_prog_F77="$F77" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 F77=$ac_cv_prog_F77
5908 if test -n "$F77"; then
5909 { echo "$as_me:$LINENO: result: $F77" >&5
5910 echo "${ECHO_T}$F77" >&6; }
5911 else
5912 { echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6; }
5914 fi
5915
5916
5917 test -n "$F77" && break
5918 done
5919 fi
5920 if test -z "$F77"; then
5921 ac_ct_F77=$F77
5922 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5923 do
5924 # Extract the first word of "$ac_prog", so it can be a program name with args.
5925 set dummy $ac_prog; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 if test -n "$ac_ct_F77"; then
5932 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_ac_ct_F77="$ac_prog"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5952 if test -n "$ac_ct_F77"; then
5953 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5954 echo "${ECHO_T}$ac_ct_F77" >&6; }
5955 else
5956 { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5958 fi
5959
5960
5961 test -n "$ac_ct_F77" && break
5962 done
5963
5964 if test "x$ac_ct_F77" = x; then
5965 F77=""
5966 else
5967 case $cross_compiling:$ac_tool_warned in
5968 yes:)
5969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5970 whose name does not start with the host triplet. If you think this
5971 configuration is useful to you, please write to autoconf@gnu.org." >&5
5972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5973 whose name does not start with the host triplet. If you think this
5974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977 F77=$ac_ct_F77
5978 fi
5979 fi
5980
5981
5982 # Provide some information about the compiler.
5983 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5984 ac_compiler=`set X $ac_compile; echo $2`
5985 { (ac_try="$ac_compiler --version >&5"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_compiler --version >&5") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }
5995 { (ac_try="$ac_compiler -v >&5"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_compiler -v >&5") 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }
6005 { (ac_try="$ac_compiler -V >&5"
6006 case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compiler -V >&5") 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }
6015 rm -f a.out
6016
6017 # If we don't use `.F' as extension, the preprocessor is not run on the
6018 # input file. (Note that this only needs to work for GNU compilers.)
6019 ac_save_ext=$ac_ext
6020 ac_ext=F
6021 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6022 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6023 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 cat >conftest.$ac_ext <<_ACEOF
6027 program main
6028 #ifndef __GNUC__
6029 choke me
6030 #endif
6031
6032 end
6033 _ACEOF
6034 rm -f conftest.$ac_objext
6035 if { (ac_try="$ac_compile"
6036 case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039 esac
6040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_compile") 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } && {
6048 test -z "$ac_f77_werror_flag" ||
6049 test ! -s conftest.err
6050 } && test -s conftest.$ac_objext; then
6051 ac_compiler_gnu=yes
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6055
6056 ac_compiler_gnu=no
6057 fi
6058
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6061
6062 fi
6063 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6064 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6065 ac_ext=$ac_save_ext
6066 ac_test_FFLAGS=${FFLAGS+set}
6067 ac_save_FFLAGS=$FFLAGS
6068 FFLAGS=
6069 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6070 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6071 if test "${ac_cv_prog_f77_g+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 FFLAGS=-g
6075 cat >conftest.$ac_ext <<_ACEOF
6076 program main
6077
6078 end
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_compile") 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_f77_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest.$ac_objext; then
6097 ac_cv_prog_f77_g=yes
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_prog_f77_g=no
6103 fi
6104
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106
6107 fi
6108 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6109 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6110 if test "$ac_test_FFLAGS" = set; then
6111 FFLAGS=$ac_save_FFLAGS
6112 elif test $ac_cv_prog_f77_g = yes; then
6113 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6114 FFLAGS="-g -O2"
6115 else
6116 FFLAGS="-g"
6117 fi
6118 else
6119 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6120 FFLAGS="-O2"
6121 else
6122 FFLAGS=
6123 fi
6124 fi
6125
6126 G77=`test $ac_compiler_gnu = yes && echo yes`
6127 ac_ext=c
6128 ac_cpp='$CPP $CPPFLAGS'
6129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133
6134
6135 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6136
6137 # find the maximum length of command line arguments
6138 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6139 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6140 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 i=0
6144 teststring="ABCD"
6145
6146 case $build_os in
6147 msdosdjgpp*)
6148 # On DJGPP, this test can blow up pretty badly due to problems in libc
6149 # (any single argument exceeding 2000 bytes causes a buffer overrun
6150 # during glob expansion). Even if it were fixed, the result of this
6151 # check would be larger than it should be.
6152 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6153 ;;
6154
6155 gnu*)
6156 # Under GNU Hurd, this test is not required because there is
6157 # no limit to the length of command line arguments.
6158 # Libtool will interpret -1 as no limit whatsoever
6159 lt_cv_sys_max_cmd_len=-1;
6160 ;;
6161
6162 cygwin* | mingw*)
6163 # On Win9x/ME, this test blows up -- it succeeds, but takes
6164 # about 5 minutes as the teststring grows exponentially.
6165 # Worse, since 9x/ME are not pre-emptively multitasking,
6166 # you end up with a "frozen" computer, even though with patience
6167 # the test eventually succeeds (with a max line length of 256k).
6168 # Instead, let's just punt: use the minimum linelength reported by
6169 # all of the supported platforms: 8192 (on NT/2K/XP).
6170 lt_cv_sys_max_cmd_len=8192;
6171 ;;
6172
6173 amigaos*)
6174 # On AmigaOS with pdksh, this test takes hours, literally.
6175 # So we just punt and use a minimum line length of 8192.
6176 lt_cv_sys_max_cmd_len=8192;
6177 ;;
6178
6179 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6180 # This has been around since 386BSD, at least. Likely further.
6181 if test -x /sbin/sysctl; then
6182 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6183 elif test -x /usr/sbin/sysctl; then
6184 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6185 else
6186 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6187 fi
6188 # And add a safety zone
6189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6191 ;;
6192
6193 interix*)
6194 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6195 lt_cv_sys_max_cmd_len=196608
6196 ;;
6197
6198 osf*)
6199 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6200 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6201 # nice to cause kernel panics so lets avoid the loop below.
6202 # First set a reasonable default.
6203 lt_cv_sys_max_cmd_len=16384
6204 #
6205 if test -x /sbin/sysconfig; then
6206 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6207 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6208 esac
6209 fi
6210 ;;
6211 sco3.2v5*)
6212 lt_cv_sys_max_cmd_len=102400
6213 ;;
6214 sysv5* | sco5v6* | sysv4.2uw2*)
6215 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6216 if test -n "$kargmax"; then
6217 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6218 else
6219 lt_cv_sys_max_cmd_len=32768
6220 fi
6221 ;;
6222 *)
6223 # If test is not a shell built-in, we'll probably end up computing a
6224 # maximum length that is only half of the actual maximum length, but
6225 # we can't tell.
6226 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6227 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6228 = "XX$teststring") >/dev/null 2>&1 &&
6229 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6230 lt_cv_sys_max_cmd_len=$new_result &&
6231 test $i != 17 # 1/2 MB should be enough
6232 do
6233 i=`expr $i + 1`
6234 teststring=$teststring$teststring
6235 done
6236 teststring=
6237 # Add a significant safety factor because C++ compilers can tack on massive
6238 # amounts of additional arguments before passing them to the linker.
6239 # It appears as though 1/2 is a usable value.
6240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6241 ;;
6242 esac
6243
6244 fi
6245
6246 if test -n $lt_cv_sys_max_cmd_len ; then
6247 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6248 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6249 else
6250 { echo "$as_me:$LINENO: result: none" >&5
6251 echo "${ECHO_T}none" >&6; }
6252 fi
6253
6254
6255
6256
6257 # Check for command to grab the raw symbol name followed by C symbol from nm.
6258 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6259 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6260 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263
6264 # These are sane defaults that work on at least a few old systems.
6265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6266
6267 # Character class describing NM global symbol codes.
6268 symcode='[BCDEGRST]'
6269
6270 # Regexp to match symbols that can be accessed directly from C.
6271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6272
6273 # Transform an extracted symbol line into a proper C declaration
6274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6275
6276 # Transform an extracted symbol line into symbol name and symbol address
6277 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6278
6279 # Define system-specific variables.
6280 case $host_os in
6281 aix*)
6282 symcode='[BCDT]'
6283 ;;
6284 cygwin* | mingw* | pw32*)
6285 symcode='[ABCDGISTW]'
6286 ;;
6287 hpux*) # Its linker distinguishes data from code symbols
6288 if test "$host_cpu" = ia64; then
6289 symcode='[ABCDEGRST]'
6290 fi
6291 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6292 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6293 ;;
6294 linux*)
6295 if test "$host_cpu" = ia64; then
6296 symcode='[ABCDGIRSTW]'
6297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6298 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6299 fi
6300 ;;
6301 irix* | nonstopux*)
6302 symcode='[BCDEGRST]'
6303 ;;
6304 osf*)
6305 symcode='[BCDEGQRST]'
6306 ;;
6307 solaris*)
6308 symcode='[BDRT]'
6309 ;;
6310 sco3.2v5*)
6311 symcode='[DT]'
6312 ;;
6313 sysv4.2uw2*)
6314 symcode='[DT]'
6315 ;;
6316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6317 symcode='[ABDT]'
6318 ;;
6319 sysv4)
6320 symcode='[DFNSTU]'
6321 ;;
6322 esac
6323
6324 # Handle CRLF in mingw tool chain
6325 opt_cr=
6326 case $build_os in
6327 mingw*)
6328 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6329 ;;
6330 esac
6331
6332 # If we're using GNU nm, then use its standard symbol codes.
6333 case `$NM -V 2>&1` in
6334 *GNU* | *'with BFD'*)
6335 symcode='[ABCDGIRSTW]' ;;
6336 esac
6337
6338 # Try without a prefix undercore, then with it.
6339 for ac_symprfx in "" "_"; do
6340
6341 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6342 symxfrm="\\1 $ac_symprfx\\2 \\2"
6343
6344 # Write the raw and C identifiers.
6345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6346
6347 # Check to see that the pipe works correctly.
6348 pipe_works=no
6349
6350 rm -f conftest*
6351 cat > conftest.$ac_ext <<EOF
6352 #ifdef __cplusplus
6353 extern "C" {
6354 #endif
6355 char nm_test_var;
6356 void nm_test_func(){}
6357 #ifdef __cplusplus
6358 }
6359 #endif
6360 int main(){nm_test_var='a';nm_test_func();return(0);}
6361 EOF
6362
6363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364 (eval $ac_compile) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; then
6368 # Now try to grab the symbols.
6369 nlist=conftest.nm
6370 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6371 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && test -s "$nlist"; then
6375 # Try sorting and uniquifying the output.
6376 if sort "$nlist" | uniq > "$nlist"T; then
6377 mv -f "$nlist"T "$nlist"
6378 else
6379 rm -f "$nlist"T
6380 fi
6381
6382 # Make sure that we snagged all the symbols we need.
6383 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6384 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6385 cat <<EOF > conftest.$ac_ext
6386 #ifdef __cplusplus
6387 extern "C" {
6388 #endif
6389
6390 EOF
6391 # Now generate the symbol file.
6392 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6393
6394 cat <<EOF >> conftest.$ac_ext
6395 #if defined (__STDC__) && __STDC__
6396 # define lt_ptr_t void *
6397 #else
6398 # define lt_ptr_t char *
6399 # define const
6400 #endif
6401
6402 /* The mapping between symbol names and symbols. */
6403 const struct {
6404 const char *name;
6405 lt_ptr_t address;
6406 }
6407 lt_preloaded_symbols[] =
6408 {
6409 EOF
6410 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6411 cat <<\EOF >> conftest.$ac_ext
6412 {0, (lt_ptr_t) 0}
6413 };
6414
6415 #ifdef __cplusplus
6416 }
6417 #endif
6418 EOF
6419 # Now try linking the two files.
6420 mv conftest.$ac_objext conftstm.$ac_objext
6421 lt_save_LIBS="$LIBS"
6422 lt_save_CFLAGS="$CFLAGS"
6423 LIBS="conftstm.$ac_objext"
6424 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6430 pipe_works=yes
6431 fi
6432 LIBS="$lt_save_LIBS"
6433 CFLAGS="$lt_save_CFLAGS"
6434 else
6435 echo "cannot find nm_test_func in $nlist" >&5
6436 fi
6437 else
6438 echo "cannot find nm_test_var in $nlist" >&5
6439 fi
6440 else
6441 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6442 fi
6443 else
6444 echo "$progname: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6446 fi
6447 rm -f conftest* conftst*
6448
6449 # Do not use the global_symbol_pipe unless it works.
6450 if test "$pipe_works" = yes; then
6451 break
6452 else
6453 lt_cv_sys_global_symbol_pipe=
6454 fi
6455 done
6456
6457 fi
6458
6459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6460 lt_cv_sys_global_symbol_to_cdecl=
6461 fi
6462 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6463 { echo "$as_me:$LINENO: result: failed" >&5
6464 echo "${ECHO_T}failed" >&6; }
6465 else
6466 { echo "$as_me:$LINENO: result: ok" >&5
6467 echo "${ECHO_T}ok" >&6; }
6468 fi
6469
6470 { echo "$as_me:$LINENO: checking for objdir" >&5
6471 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6472 if test "${lt_cv_objdir+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 rm -f .libs 2>/dev/null
6476 mkdir .libs 2>/dev/null
6477 if test -d .libs; then
6478 lt_cv_objdir=.libs
6479 else
6480 # MS-DOS does not allow filenames that begin with a dot.
6481 lt_cv_objdir=_libs
6482 fi
6483 rmdir .libs 2>/dev/null
6484 fi
6485 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6486 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6487 objdir=$lt_cv_objdir
6488
6489
6490
6491
6492
6493 case $host_os in
6494 aix3*)
6495 # AIX sometimes has problems with the GCC collect2 program. For some
6496 # reason, if we set the COLLECT_NAMES environment variable, the problems
6497 # vanish in a puff of smoke.
6498 if test "X${COLLECT_NAMES+set}" != Xset; then
6499 COLLECT_NAMES=
6500 export COLLECT_NAMES
6501 fi
6502 ;;
6503 esac
6504
6505 # Sed substitution that helps us do robust quoting. It backslashifies
6506 # metacharacters that are still active within double-quoted strings.
6507 Xsed='sed -e 1s/^X//'
6508 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6509
6510 # Same as above, but do not quote variable references.
6511 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6512
6513 # Sed substitution to delay expansion of an escaped shell variable in a
6514 # double_quote_subst'ed string.
6515 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6516
6517 # Sed substitution to avoid accidental globbing in evaled expressions
6518 no_glob_subst='s/\*/\\\*/g'
6519
6520 # Constants:
6521 rm="rm -f"
6522
6523 # Global variables:
6524 default_ofile=libtool
6525 can_build_shared=yes
6526
6527 # All known linkers require a `.a' archive for static linking (except MSVC,
6528 # which needs '.lib').
6529 libext=a
6530 ltmain="$ac_aux_dir/ltmain.sh"
6531 ofile="$default_ofile"
6532 with_gnu_ld="$lt_cv_prog_gnu_ld"
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}ar; ac_word=$2
6537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539 if test "${ac_cv_prog_AR+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 if test -n "$AR"; then
6543 ac_cv_prog_AR="$AR" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_AR="${ac_tool_prefix}ar"
6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 AR=$ac_cv_prog_AR
6563 if test -n "$AR"; then
6564 { echo "$as_me:$LINENO: result: $AR" >&5
6565 echo "${ECHO_T}$AR" >&6; }
6566 else
6567 { echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_AR"; then
6574 ac_ct_AR=$AR
6575 # Extract the first word of "ar", so it can be a program name with args.
6576 set dummy ar; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 if test -n "$ac_ct_AR"; then
6583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_AR="ar"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6603 if test -n "$ac_ct_AR"; then
6604 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6605 echo "${ECHO_T}$ac_ct_AR" >&6; }
6606 else
6607 { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6609 fi
6610
6611 if test "x$ac_ct_AR" = x; then
6612 AR="false"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6617 whose name does not start with the host triplet. If you think this
6618 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6620 whose name does not start with the host triplet. If you think this
6621 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624 AR=$ac_ct_AR
6625 fi
6626 else
6627 AR="$ac_cv_prog_AR"
6628 fi
6629
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_prog_RANLIB+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 if test -n "$RANLIB"; then
6639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 RANLIB=$ac_cv_prog_RANLIB
6659 if test -n "$RANLIB"; then
6660 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6661 echo "${ECHO_T}$RANLIB" >&6; }
6662 else
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6665 fi
6666
6667
6668 fi
6669 if test -z "$ac_cv_prog_RANLIB"; then
6670 ac_ct_RANLIB=$RANLIB
6671 # Extract the first word of "ranlib", so it can be a program name with args.
6672 set dummy ranlib; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 if test -n "$ac_ct_RANLIB"; then
6679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_RANLIB="ranlib"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6699 if test -n "$ac_ct_RANLIB"; then
6700 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6701 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6702 else
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706
6707 if test "x$ac_ct_RANLIB" = x; then
6708 RANLIB=":"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6713 whose name does not start with the host triplet. If you think this
6714 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6716 whose name does not start with the host triplet. If you think this
6717 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720 RANLIB=$ac_ct_RANLIB
6721 fi
6722 else
6723 RANLIB="$ac_cv_prog_RANLIB"
6724 fi
6725
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}strip; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_prog_STRIP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 if test -n "$STRIP"; then
6735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 STRIP=$ac_cv_prog_STRIP
6755 if test -n "$STRIP"; then
6756 { echo "$as_me:$LINENO: result: $STRIP" >&5
6757 echo "${ECHO_T}$STRIP" >&6; }
6758 else
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764 fi
6765 if test -z "$ac_cv_prog_STRIP"; then
6766 ac_ct_STRIP=$STRIP
6767 # Extract the first word of "strip", so it can be a program name with args.
6768 set dummy strip; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 if test -n "$ac_ct_STRIP"; then
6775 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_STRIP="strip"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6795 if test -n "$ac_ct_STRIP"; then
6796 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6797 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6798 else
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6801 fi
6802
6803 if test "x$ac_ct_STRIP" = x; then
6804 STRIP=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6809 whose name does not start with the host triplet. If you think this
6810 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6812 whose name does not start with the host triplet. If you think this
6813 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816 STRIP=$ac_ct_STRIP
6817 fi
6818 else
6819 STRIP="$ac_cv_prog_STRIP"
6820 fi
6821
6822
6823 old_CC="$CC"
6824 old_CFLAGS="$CFLAGS"
6825
6826 # Set sane defaults for various variables
6827 test -z "$AR" && AR=ar
6828 test -z "$AR_FLAGS" && AR_FLAGS=cru
6829 test -z "$AS" && AS=as
6830 test -z "$CC" && CC=cc
6831 test -z "$LTCC" && LTCC=$CC
6832 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6833 test -z "$DLLTOOL" && DLLTOOL=dlltool
6834 test -z "$LD" && LD=ld
6835 test -z "$LN_S" && LN_S="ln -s"
6836 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6837 test -z "$NM" && NM=nm
6838 test -z "$SED" && SED=sed
6839 test -z "$OBJDUMP" && OBJDUMP=objdump
6840 test -z "$RANLIB" && RANLIB=:
6841 test -z "$STRIP" && STRIP=:
6842 test -z "$ac_objext" && ac_objext=o
6843
6844 # Determine commands to create old-style static archives.
6845 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6846 old_postinstall_cmds='chmod 644 $oldlib'
6847 old_postuninstall_cmds=
6848
6849 if test -n "$RANLIB"; then
6850 case $host_os in
6851 openbsd*)
6852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6853 ;;
6854 *)
6855 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6856 ;;
6857 esac
6858 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6859 fi
6860
6861 for cc_temp in $compiler""; do
6862 case $cc_temp in
6863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6865 \-*) ;;
6866 *) break;;
6867 esac
6868 done
6869 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6870
6871
6872 # Only perform the check for file, if the check method requires it
6873 case $deplibs_check_method in
6874 file_magic*)
6875 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6876 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6877 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6878 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 case $MAGIC_CMD in
6882 [\\/*] | ?:[\\/]*)
6883 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6884 ;;
6885 *)
6886 lt_save_MAGIC_CMD="$MAGIC_CMD"
6887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6888 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6889 for ac_dir in $ac_dummy; do
6890 IFS="$lt_save_ifs"
6891 test -z "$ac_dir" && ac_dir=.
6892 if test -f $ac_dir/${ac_tool_prefix}file; then
6893 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6894 if test -n "$file_magic_test_file"; then
6895 case $deplibs_check_method in
6896 "file_magic "*)
6897 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6899 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6900 $EGREP "$file_magic_regex" > /dev/null; then
6901 :
6902 else
6903 cat <<EOF 1>&2
6904
6905 *** Warning: the command libtool uses to detect shared libraries,
6906 *** $file_magic_cmd, produces output that libtool cannot recognize.
6907 *** The result is that libtool may fail to recognize shared libraries
6908 *** as such. This will affect the creation of libtool libraries that
6909 *** depend on shared libraries, but programs linked with such libtool
6910 *** libraries will work regardless of this problem. Nevertheless, you
6911 *** may want to report the problem to your system manager and/or to
6912 *** bug-libtool@gnu.org
6913
6914 EOF
6915 fi ;;
6916 esac
6917 fi
6918 break
6919 fi
6920 done
6921 IFS="$lt_save_ifs"
6922 MAGIC_CMD="$lt_save_MAGIC_CMD"
6923 ;;
6924 esac
6925 fi
6926
6927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6928 if test -n "$MAGIC_CMD"; then
6929 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6930 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6931 else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6934 fi
6935
6936 if test -z "$lt_cv_path_MAGIC_CMD"; then
6937 if test -n "$ac_tool_prefix"; then
6938 { echo "$as_me:$LINENO: checking for file" >&5
6939 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 case $MAGIC_CMD in
6944 [\\/*] | ?:[\\/]*)
6945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6946 ;;
6947 *)
6948 lt_save_MAGIC_CMD="$MAGIC_CMD"
6949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6950 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6951 for ac_dir in $ac_dummy; do
6952 IFS="$lt_save_ifs"
6953 test -z "$ac_dir" && ac_dir=.
6954 if test -f $ac_dir/file; then
6955 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6956 if test -n "$file_magic_test_file"; then
6957 case $deplibs_check_method in
6958 "file_magic "*)
6959 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6961 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6962 $EGREP "$file_magic_regex" > /dev/null; then
6963 :
6964 else
6965 cat <<EOF 1>&2
6966
6967 *** Warning: the command libtool uses to detect shared libraries,
6968 *** $file_magic_cmd, produces output that libtool cannot recognize.
6969 *** The result is that libtool may fail to recognize shared libraries
6970 *** as such. This will affect the creation of libtool libraries that
6971 *** depend on shared libraries, but programs linked with such libtool
6972 *** libraries will work regardless of this problem. Nevertheless, you
6973 *** may want to report the problem to your system manager and/or to
6974 *** bug-libtool@gnu.org
6975
6976 EOF
6977 fi ;;
6978 esac
6979 fi
6980 break
6981 fi
6982 done
6983 IFS="$lt_save_ifs"
6984 MAGIC_CMD="$lt_save_MAGIC_CMD"
6985 ;;
6986 esac
6987 fi
6988
6989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990 if test -n "$MAGIC_CMD"; then
6991 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6992 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6993 else
6994 { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6996 fi
6997
6998 else
6999 MAGIC_CMD=:
7000 fi
7001 fi
7002
7003 fi
7004 ;;
7005 esac
7006
7007 enable_dlopen=no
7008 enable_win32_dll=no
7009
7010 # Check whether --enable-libtool-lock was given.
7011 if test "${enable_libtool_lock+set}" = set; then
7012 enableval=$enable_libtool_lock;
7013 fi
7014
7015 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7016
7017
7018 # Check whether --with-pic was given.
7019 if test "${with_pic+set}" = set; then
7020 withval=$with_pic; pic_mode="$withval"
7021 else
7022 pic_mode=default
7023 fi
7024
7025 test -z "$pic_mode" && pic_mode=default
7026
7027 # Use C for the default configuration in the libtool script
7028 tagname=
7029 lt_save_CC="$CC"
7030 ac_ext=c
7031 ac_cpp='$CPP $CPPFLAGS'
7032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035
7036
7037 # Source file extension for C test sources.
7038 ac_ext=c
7039
7040 # Object file extension for compiled C test sources.
7041 objext=o
7042 objext=$objext
7043
7044 # Code to be used in simple compile tests
7045 lt_simple_compile_test_code="int some_variable = 0;\n"
7046
7047 # Code to be used in simple link tests
7048 lt_simple_link_test_code='int main(){return(0);}\n'
7049
7050
7051 # If no C compiler was specified, use CC.
7052 LTCC=${LTCC-"$CC"}
7053
7054 # If no C compiler flags were specified, use CFLAGS.
7055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7056
7057 # Allow CC to be a program name with arguments.
7058 compiler=$CC
7059
7060
7061 # save warnings/boilerplate of simple test code
7062 ac_outfile=conftest.$ac_objext
7063 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7065 _lt_compiler_boilerplate=`cat conftest.err`
7066 $rm conftest*
7067
7068 ac_outfile=conftest.$ac_objext
7069 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7071 _lt_linker_boilerplate=`cat conftest.err`
7072 $rm conftest*
7073
7074
7075
7076 lt_prog_compiler_no_builtin_flag=
7077
7078 if test "$GCC" = yes; then
7079 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7080
7081
7082 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7083 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7084 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 lt_cv_prog_compiler_rtti_exceptions=no
7088 ac_outfile=conftest.$ac_objext
7089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7090 lt_compiler_flag="-fno-rtti -fno-exceptions"
7091 # Insert the option either (1) after the last *FLAGS variable, or
7092 # (2) before a word containing "conftest.", or (3) at the end.
7093 # Note that $ac_compile itself does not contain backslashes and begins
7094 # with a dollar sign (not a hyphen), so the echo should work correctly.
7095 # The option is referenced via a variable to avoid confusing sed.
7096 lt_compile=`echo "$ac_compile" | $SED \
7097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7099 -e 's:$: $lt_compiler_flag:'`
7100 (eval echo "\"\$as_me:7100: $lt_compile\"" >&5)
7101 (eval "$lt_compile" 2>conftest.err)
7102 ac_status=$?
7103 cat conftest.err >&5
7104 echo "$as_me:7104: \$? = $ac_status" >&5
7105 if (exit $ac_status) && test -s "$ac_outfile"; then
7106 # The compiler can only warn and ignore the option if not recognized
7107 # So say no if there are warnings other than the usual output.
7108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7111 lt_cv_prog_compiler_rtti_exceptions=yes
7112 fi
7113 fi
7114 $rm conftest*
7115
7116 fi
7117 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7118 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7119
7120 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7121 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7122 else
7123 :
7124 fi
7125
7126 fi
7127
7128 lt_prog_compiler_wl=
7129 lt_prog_compiler_pic=
7130 lt_prog_compiler_static=
7131
7132 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7133 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7134
7135 if test "$GCC" = yes; then
7136 lt_prog_compiler_wl='-Wl,'
7137 lt_prog_compiler_static='-static'
7138
7139 case $host_os in
7140 aix*)
7141 # All AIX code is PIC.
7142 if test "$host_cpu" = ia64; then
7143 # AIX 5 now supports IA64 processor
7144 lt_prog_compiler_static='-Bstatic'
7145 fi
7146 ;;
7147
7148 amigaos*)
7149 # FIXME: we need at least 68020 code to build shared libraries, but
7150 # adding the `-m68020' flag to GCC prevents building anything better,
7151 # like `-m68040'.
7152 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7153 ;;
7154
7155 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7156 # PIC is the default for these OSes.
7157 ;;
7158
7159 mingw* | pw32* | os2*)
7160 # This hack is so that the source file can tell whether it is being
7161 # built for inclusion in a dll (and should export symbols for example).
7162 lt_prog_compiler_pic='-DDLL_EXPORT'
7163 ;;
7164
7165 darwin* | rhapsody*)
7166 # PIC is the default on this platform
7167 # Common symbols not allowed in MH_DYLIB files
7168 lt_prog_compiler_pic='-fno-common'
7169 ;;
7170
7171 interix3*)
7172 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7173 # Instead, we relocate shared libraries at runtime.
7174 ;;
7175
7176 msdosdjgpp*)
7177 # Just because we use GCC doesn't mean we suddenly get shared libraries
7178 # on systems that don't support them.
7179 lt_prog_compiler_can_build_shared=no
7180 enable_shared=no
7181 ;;
7182
7183 sysv4*MP*)
7184 if test -d /usr/nec; then
7185 lt_prog_compiler_pic=-Kconform_pic
7186 fi
7187 ;;
7188
7189 hpux*)
7190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7191 # not for PA HP-UX.
7192 case $host_cpu in
7193 hppa*64*|ia64*)
7194 # +Z the default
7195 ;;
7196 *)
7197 lt_prog_compiler_pic='-fPIC'
7198 ;;
7199 esac
7200 ;;
7201
7202 *)
7203 lt_prog_compiler_pic='-fPIC'
7204 ;;
7205 esac
7206 else
7207 # PORTME Check for flag to pass linker flags through the system compiler.
7208 case $host_os in
7209 aix*)
7210 lt_prog_compiler_wl='-Wl,'
7211 if test "$host_cpu" = ia64; then
7212 # AIX 5 now supports IA64 processor
7213 lt_prog_compiler_static='-Bstatic'
7214 else
7215 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7216 fi
7217 ;;
7218 darwin*)
7219 # PIC is the default on this platform
7220 # Common symbols not allowed in MH_DYLIB files
7221 case $cc_basename in
7222 xlc*)
7223 lt_prog_compiler_pic='-qnocommon'
7224 lt_prog_compiler_wl='-Wl,'
7225 ;;
7226 esac
7227 ;;
7228
7229 mingw* | pw32* | os2*)
7230 # This hack is so that the source file can tell whether it is being
7231 # built for inclusion in a dll (and should export symbols for example).
7232 lt_prog_compiler_pic='-DDLL_EXPORT'
7233 ;;
7234
7235 hpux9* | hpux10* | hpux11*)
7236 lt_prog_compiler_wl='-Wl,'
7237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7238 # not for PA HP-UX.
7239 case $host_cpu in
7240 hppa*64*|ia64*)
7241 # +Z the default
7242 ;;
7243 *)
7244 lt_prog_compiler_pic='+Z'
7245 ;;
7246 esac
7247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7248 lt_prog_compiler_static='${wl}-a ${wl}archive'
7249 ;;
7250
7251 irix5* | irix6* | nonstopux*)
7252 lt_prog_compiler_wl='-Wl,'
7253 # PIC (with -KPIC) is the default.
7254 lt_prog_compiler_static='-non_shared'
7255 ;;
7256
7257 newsos6)
7258 lt_prog_compiler_pic='-KPIC'
7259 lt_prog_compiler_static='-Bstatic'
7260 ;;
7261
7262 linux*)
7263 case $cc_basename in
7264 icc* | ecc*)
7265 lt_prog_compiler_wl='-Wl,'
7266 lt_prog_compiler_pic='-KPIC'
7267 lt_prog_compiler_static='-static'
7268 ;;
7269 pgcc* | pgf77* | pgf90* | pgf95*)
7270 # Portland Group compilers (*not* the Pentium gcc compiler,
7271 # which looks to be a dead project)
7272 lt_prog_compiler_wl='-Wl,'
7273 lt_prog_compiler_pic='-fpic'
7274 lt_prog_compiler_static='-Bstatic'
7275 ;;
7276 ccc*)
7277 lt_prog_compiler_wl='-Wl,'
7278 # All Alpha code is PIC.
7279 lt_prog_compiler_static='-non_shared'
7280 ;;
7281 esac
7282 ;;
7283
7284 osf3* | osf4* | osf5*)
7285 lt_prog_compiler_wl='-Wl,'
7286 # All OSF/1 code is PIC.
7287 lt_prog_compiler_static='-non_shared'
7288 ;;
7289
7290 solaris*)
7291 lt_prog_compiler_pic='-KPIC'
7292 lt_prog_compiler_static='-Bstatic'
7293 case $cc_basename in
7294 f77* | f90* | f95*)
7295 lt_prog_compiler_wl='-Qoption ld ';;
7296 *)
7297 lt_prog_compiler_wl='-Wl,';;
7298 esac
7299 ;;
7300
7301 sunos4*)
7302 lt_prog_compiler_wl='-Qoption ld '
7303 lt_prog_compiler_pic='-PIC'
7304 lt_prog_compiler_static='-Bstatic'
7305 ;;
7306
7307 sysv4 | sysv4.2uw2* | sysv4.3*)
7308 lt_prog_compiler_wl='-Wl,'
7309 lt_prog_compiler_pic='-KPIC'
7310 lt_prog_compiler_static='-Bstatic'
7311 ;;
7312
7313 sysv4*MP*)
7314 if test -d /usr/nec ;then
7315 lt_prog_compiler_pic='-Kconform_pic'
7316 lt_prog_compiler_static='-Bstatic'
7317 fi
7318 ;;
7319
7320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7321 lt_prog_compiler_wl='-Wl,'
7322 lt_prog_compiler_pic='-KPIC'
7323 lt_prog_compiler_static='-Bstatic'
7324 ;;
7325
7326 unicos*)
7327 lt_prog_compiler_wl='-Wl,'
7328 lt_prog_compiler_can_build_shared=no
7329 ;;
7330
7331 uts4*)
7332 lt_prog_compiler_pic='-pic'
7333 lt_prog_compiler_static='-Bstatic'
7334 ;;
7335
7336 *)
7337 lt_prog_compiler_can_build_shared=no
7338 ;;
7339 esac
7340 fi
7341
7342 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7343 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7344
7345 #
7346 # Check to make sure the PIC flag actually works.
7347 #
7348 if test -n "$lt_prog_compiler_pic"; then
7349
7350 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7351 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7352 if test "${lt_prog_compiler_pic_works+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 lt_prog_compiler_pic_works=no
7356 ac_outfile=conftest.$ac_objext
7357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7358 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7359 # Insert the option either (1) after the last *FLAGS variable, or
7360 # (2) before a word containing "conftest.", or (3) at the end.
7361 # Note that $ac_compile itself does not contain backslashes and begins
7362 # with a dollar sign (not a hyphen), so the echo should work correctly.
7363 # The option is referenced via a variable to avoid confusing sed.
7364 lt_compile=`echo "$ac_compile" | $SED \
7365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7367 -e 's:$: $lt_compiler_flag:'`
7368 (eval echo "\"\$as_me:7368: $lt_compile\"" >&5)
7369 (eval "$lt_compile" 2>conftest.err)
7370 ac_status=$?
7371 cat conftest.err >&5
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 if (exit $ac_status) && test -s "$ac_outfile"; then
7374 # The compiler can only warn and ignore the option if not recognized
7375 # So say no if there are warnings other than the usual output.
7376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7379 lt_prog_compiler_pic_works=yes
7380 fi
7381 fi
7382 $rm conftest*
7383
7384 fi
7385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7386 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7387
7388 if test x"$lt_prog_compiler_pic_works" = xyes; then
7389 case $lt_prog_compiler_pic in
7390 "" | " "*) ;;
7391 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7392 esac
7393 else
7394 lt_prog_compiler_pic=
7395 lt_prog_compiler_can_build_shared=no
7396 fi
7397
7398 fi
7399 case $host_os in
7400 # For platforms which do not support PIC, -DPIC is meaningless:
7401 *djgpp*)
7402 lt_prog_compiler_pic=
7403 ;;
7404 *)
7405 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7406 ;;
7407 esac
7408
7409 #
7410 # Check to make sure the static flag actually works.
7411 #
7412 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7413 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7414 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7415 if test "${lt_prog_compiler_static_works+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 lt_prog_compiler_static_works=no
7419 save_LDFLAGS="$LDFLAGS"
7420 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7421 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7423 # The linker can only warn and ignore the option if not recognized
7424 # So say no if there are warnings
7425 if test -s conftest.err; then
7426 # Append any errors to the config.log.
7427 cat conftest.err 1>&5
7428 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7430 if diff conftest.exp conftest.er2 >/dev/null; then
7431 lt_prog_compiler_static_works=yes
7432 fi
7433 else
7434 lt_prog_compiler_static_works=yes
7435 fi
7436 fi
7437 $rm conftest*
7438 LDFLAGS="$save_LDFLAGS"
7439
7440 fi
7441 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7442 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7443
7444 if test x"$lt_prog_compiler_static_works" = xyes; then
7445 :
7446 else
7447 lt_prog_compiler_static=
7448 fi
7449
7450
7451 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7453 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 lt_cv_prog_compiler_c_o=no
7457 $rm -r conftest 2>/dev/null
7458 mkdir conftest
7459 cd conftest
7460 mkdir out
7461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7462
7463 lt_compiler_flag="-o out/conftest2.$ac_objext"
7464 # Insert the option either (1) after the last *FLAGS variable, or
7465 # (2) before a word containing "conftest.", or (3) at the end.
7466 # Note that $ac_compile itself does not contain backslashes and begins
7467 # with a dollar sign (not a hyphen), so the echo should work correctly.
7468 lt_compile=`echo "$ac_compile" | $SED \
7469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7471 -e 's:$: $lt_compiler_flag:'`
7472 (eval echo "\"\$as_me:7472: $lt_compile\"" >&5)
7473 (eval "$lt_compile" 2>out/conftest.err)
7474 ac_status=$?
7475 cat out/conftest.err >&5
7476 echo "$as_me:7476: \$? = $ac_status" >&5
7477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7478 then
7479 # The compiler can only warn and ignore the option if not recognized
7480 # So say no if there are warnings
7481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7484 lt_cv_prog_compiler_c_o=yes
7485 fi
7486 fi
7487 chmod u+w . 2>&5
7488 $rm conftest*
7489 # SGI C++ compiler will create directory out/ii_files/ for
7490 # template instantiation
7491 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7492 $rm out/* && rmdir out
7493 cd ..
7494 rmdir conftest
7495 $rm conftest*
7496
7497 fi
7498 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7499 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7500
7501
7502 hard_links="nottested"
7503 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7504 # do not overwrite the value of need_locks provided by the user
7505 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7506 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7507 hard_links=yes
7508 $rm conftest*
7509 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7510 touch conftest.a
7511 ln conftest.a conftest.b 2>&5 || hard_links=no
7512 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7513 { echo "$as_me:$LINENO: result: $hard_links" >&5
7514 echo "${ECHO_T}$hard_links" >&6; }
7515 if test "$hard_links" = no; then
7516 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7517 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7518 need_locks=warn
7519 fi
7520 else
7521 need_locks=no
7522 fi
7523
7524 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7525 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7526
7527 runpath_var=
7528 allow_undefined_flag=
7529 enable_shared_with_static_runtimes=no
7530 archive_cmds=
7531 archive_expsym_cmds=
7532 old_archive_From_new_cmds=
7533 old_archive_from_expsyms_cmds=
7534 export_dynamic_flag_spec=
7535 whole_archive_flag_spec=
7536 thread_safe_flag_spec=
7537 hardcode_libdir_flag_spec=
7538 hardcode_libdir_flag_spec_ld=
7539 hardcode_libdir_separator=
7540 hardcode_direct=no
7541 hardcode_minus_L=no
7542 hardcode_shlibpath_var=unsupported
7543 link_all_deplibs=unknown
7544 hardcode_automatic=no
7545 module_cmds=
7546 module_expsym_cmds=
7547 always_export_symbols=no
7548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7549 # include_expsyms should be a list of space-separated symbols to be *always*
7550 # included in the symbol list
7551 include_expsyms=
7552 # exclude_expsyms can be an extended regexp of symbols to exclude
7553 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7554 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7555 # as well as any symbol that contains `d'.
7556 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7558 # platforms (ab)use it in PIC code, but their linkers get confused if
7559 # the symbol is explicitly referenced. Since portable code cannot
7560 # rely on this symbol name, it's probably fine to never include it in
7561 # preloaded symbol tables.
7562 extract_expsyms_cmds=
7563 # Just being paranoid about ensuring that cc_basename is set.
7564 for cc_temp in $compiler""; do
7565 case $cc_temp in
7566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7568 \-*) ;;
7569 *) break;;
7570 esac
7571 done
7572 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7573
7574 case $host_os in
7575 cygwin* | mingw* | pw32*)
7576 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7577 # When not using gcc, we currently assume that we are using
7578 # Microsoft Visual C++.
7579 if test "$GCC" != yes; then
7580 with_gnu_ld=no
7581 fi
7582 ;;
7583 interix*)
7584 # we just hope/assume this is gcc and not c89 (= MSVC++)
7585 with_gnu_ld=yes
7586 ;;
7587 openbsd*)
7588 with_gnu_ld=no
7589 ;;
7590 esac
7591
7592 ld_shlibs=yes
7593 if test "$with_gnu_ld" = yes; then
7594 # If archive_cmds runs LD, not CC, wlarc should be empty
7595 wlarc='${wl}'
7596
7597 # Set some defaults for GNU ld with shared library support. These
7598 # are reset later if shared libraries are not supported. Putting them
7599 # here allows them to be overridden if necessary.
7600 runpath_var=LD_RUN_PATH
7601 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7602 export_dynamic_flag_spec='${wl}--export-dynamic'
7603 # ancient GNU ld didn't support --whole-archive et. al.
7604 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7605 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7606 else
7607 whole_archive_flag_spec=
7608 fi
7609 supports_anon_versioning=no
7610 case `$LD -v 2>/dev/null` in
7611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7614 *\ 2.11.*) ;; # other 2.11 versions
7615 *) supports_anon_versioning=yes ;;
7616 esac
7617
7618 # See if GNU ld supports shared libraries.
7619 case $host_os in
7620 aix3* | aix4* | aix5*)
7621 # On AIX/PPC, the GNU linker is very broken
7622 if test "$host_cpu" != ia64; then
7623 ld_shlibs=no
7624 cat <<EOF 1>&2
7625
7626 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7627 *** to be unable to reliably create shared libraries on AIX.
7628 *** Therefore, libtool is disabling shared libraries support. If you
7629 *** really care for shared libraries, you may want to modify your PATH
7630 *** so that a non-GNU linker is found, and then restart.
7631
7632 EOF
7633 fi
7634 ;;
7635
7636 amigaos*)
7637 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)'
7638 hardcode_libdir_flag_spec='-L$libdir'
7639 hardcode_minus_L=yes
7640
7641 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7642 # that the semantics of dynamic libraries on AmigaOS, at least up
7643 # to version 4, is to share data among multiple programs linked
7644 # with the same dynamic library. Since this doesn't match the
7645 # behavior of shared libraries on other platforms, we can't use
7646 # them.
7647 ld_shlibs=no
7648 ;;
7649
7650 beos*)
7651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7652 allow_undefined_flag=unsupported
7653 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7654 # support --undefined. This deserves some investigation. FIXME
7655 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7656 else
7657 ld_shlibs=no
7658 fi
7659 ;;
7660
7661 cygwin* | mingw* | pw32*)
7662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7663 # as there is no search path for DLLs.
7664 hardcode_libdir_flag_spec='-L$libdir'
7665 allow_undefined_flag=unsupported
7666 always_export_symbols=no
7667 enable_shared_with_static_runtimes=yes
7668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7669
7670 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7672 # If the export-symbols file already is a .def file (1st line
7673 # is EXPORTS), use it as is; otherwise, prepend...
7674 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7675 cp $export_symbols $output_objdir/$soname.def;
7676 else
7677 echo EXPORTS > $output_objdir/$soname.def;
7678 cat $export_symbols >> $output_objdir/$soname.def;
7679 fi~
7680 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7681 else
7682 ld_shlibs=no
7683 fi
7684 ;;
7685
7686 interix3*)
7687 hardcode_direct=no
7688 hardcode_shlibpath_var=no
7689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7690 export_dynamic_flag_spec='${wl}-E'
7691 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7692 # Instead, shared libraries are loaded at an image base (0x10000000 by
7693 # default) and relocated if they conflict, which is a slow very memory
7694 # consuming and fragmenting process. To avoid this, we pick a random,
7695 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7696 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7697 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7698 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'
7699 ;;
7700
7701 linux*)
7702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7703 tmp_addflag=
7704 case $cc_basename,$host_cpu in
7705 pgcc*) # Portland Group C compiler
7706 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7707 tmp_addflag=' $pic_flag'
7708 ;;
7709 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7710 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7711 tmp_addflag=' $pic_flag -Mnomain' ;;
7712 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7713 tmp_addflag=' -i_dynamic' ;;
7714 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7715 tmp_addflag=' -i_dynamic -nofor_main' ;;
7716 ifc* | ifort*) # Intel Fortran compiler
7717 tmp_addflag=' -nofor_main' ;;
7718 esac
7719 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7720
7721 if test $supports_anon_versioning = yes; then
7722 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7724 $echo "local: *; };" >> $output_objdir/$libname.ver~
7725 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7726 fi
7727 else
7728 ld_shlibs=no
7729 fi
7730 ;;
7731
7732 netbsd*)
7733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7734 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7735 wlarc=
7736 else
7737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7739 fi
7740 ;;
7741
7742 solaris*)
7743 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7744 ld_shlibs=no
7745 cat <<EOF 1>&2
7746
7747 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7748 *** create shared libraries on Solaris systems. Therefore, libtool
7749 *** is disabling shared libraries support. We urge you to upgrade GNU
7750 *** binutils to release 2.9.1 or newer. Another option is to modify
7751 *** your PATH or compiler configuration so that the native linker is
7752 *** used, and then restart.
7753
7754 EOF
7755 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7758 else
7759 ld_shlibs=no
7760 fi
7761 ;;
7762
7763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7764 case `$LD -v 2>&1` in
7765 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7766 ld_shlibs=no
7767 cat <<_LT_EOF 1>&2
7768
7769 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7770 *** reliably create shared libraries on SCO systems. Therefore, libtool
7771 *** is disabling shared libraries support. We urge you to upgrade GNU
7772 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7773 *** your PATH or compiler configuration so that the native linker is
7774 *** used, and then restart.
7775
7776 _LT_EOF
7777 ;;
7778 *)
7779 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7780 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7783 else
7784 ld_shlibs=no
7785 fi
7786 ;;
7787 esac
7788 ;;
7789
7790 sunos4*)
7791 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7792 wlarc=
7793 hardcode_direct=yes
7794 hardcode_shlibpath_var=no
7795 ;;
7796
7797 *)
7798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7801 else
7802 ld_shlibs=no
7803 fi
7804 ;;
7805 esac
7806
7807 if test "$ld_shlibs" = no; then
7808 runpath_var=
7809 hardcode_libdir_flag_spec=
7810 export_dynamic_flag_spec=
7811 whole_archive_flag_spec=
7812 fi
7813 else
7814 # PORTME fill in a description of your system's linker (not GNU ld)
7815 case $host_os in
7816 aix3*)
7817 allow_undefined_flag=unsupported
7818 always_export_symbols=yes
7819 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'
7820 # Note: this linker hardcodes the directories in LIBPATH if there
7821 # are no directories specified by -L.
7822 hardcode_minus_L=yes
7823 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7824 # Neither direct hardcoding nor static linking is supported with a
7825 # broken collect2.
7826 hardcode_direct=unsupported
7827 fi
7828 ;;
7829
7830 aix4* | aix5*)
7831 if test "$host_cpu" = ia64; then
7832 # On IA64, the linker does run time linking by default, so we don't
7833 # have to do anything special.
7834 aix_use_runtimelinking=no
7835 exp_sym_flag='-Bexport'
7836 no_entry_flag=""
7837 else
7838 # If we're using GNU nm, then we don't want the "-C" option.
7839 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7840 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7841 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7842 else
7843 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'
7844 fi
7845 aix_use_runtimelinking=no
7846
7847 # Test if we are trying to use run time linking or normal
7848 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7849 # need to do runtime linking.
7850 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7851 for ld_flag in $LDFLAGS; do
7852 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7853 aix_use_runtimelinking=yes
7854 break
7855 fi
7856 done
7857 ;;
7858 esac
7859
7860 exp_sym_flag='-bexport'
7861 no_entry_flag='-bnoentry'
7862 fi
7863
7864 # When large executables or shared objects are built, AIX ld can
7865 # have problems creating the table of contents. If linking a library
7866 # or program results in "error TOC overflow" add -mminimal-toc to
7867 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7868 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7869
7870 archive_cmds=''
7871 hardcode_direct=yes
7872 hardcode_libdir_separator=':'
7873 link_all_deplibs=yes
7874
7875 if test "$GCC" = yes; then
7876 case $host_os in aix4.[012]|aix4.[012].*)
7877 # We only want to do this on AIX 4.2 and lower, the check
7878 # below for broken collect2 doesn't work under 4.3+
7879 collect2name=`${CC} -print-prog-name=collect2`
7880 if test -f "$collect2name" && \
7881 strings "$collect2name" | grep resolve_lib_name >/dev/null
7882 then
7883 # We have reworked collect2
7884 hardcode_direct=yes
7885 else
7886 # We have old collect2
7887 hardcode_direct=unsupported
7888 # It fails to find uninstalled libraries when the uninstalled
7889 # path is not listed in the libpath. Setting hardcode_minus_L
7890 # to unsupported forces relinking
7891 hardcode_minus_L=yes
7892 hardcode_libdir_flag_spec='-L$libdir'
7893 hardcode_libdir_separator=
7894 fi
7895 ;;
7896 esac
7897 shared_flag='-shared'
7898 if test "$aix_use_runtimelinking" = yes; then
7899 shared_flag="$shared_flag "'${wl}-G'
7900 fi
7901 else
7902 # not using gcc
7903 if test "$host_cpu" = ia64; then
7904 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7905 # chokes on -Wl,-G. The following line is correct:
7906 shared_flag='-G'
7907 else
7908 if test "$aix_use_runtimelinking" = yes; then
7909 shared_flag='${wl}-G'
7910 else
7911 shared_flag='${wl}-bM:SRE'
7912 fi
7913 fi
7914 fi
7915
7916 # It seems that -bexpall does not export symbols beginning with
7917 # underscore (_), so it is better to generate a list of symbols to export.
7918 always_export_symbols=yes
7919 if test "$aix_use_runtimelinking" = yes; then
7920 # Warning - without using the other runtime loading flags (-brtl),
7921 # -berok will link without error, but may produce a broken library.
7922 allow_undefined_flag='-berok'
7923 # Determine the default libpath from the value encoded in an empty executable.
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930
7931 int
7932 main ()
7933 {
7934
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (ac_try="$ac_link"
7941 case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_link") 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest$ac_exeext &&
7956 $as_test_x conftest$ac_exeext; then
7957
7958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7959 }'`
7960 # Check for a 64-bit object if we didn't find anything.
7961 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7962 }'`; fi
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967
7968 fi
7969
7970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7971 conftest$ac_exeext conftest.$ac_ext
7972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7973
7974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7975 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7976 else
7977 if test "$host_cpu" = ia64; then
7978 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7979 allow_undefined_flag="-z nodefs"
7980 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"
7981 else
7982 # Determine the default libpath from the value encoded in an empty executable.
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989
7990 int
7991 main ()
7992 {
7993
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (ac_try="$ac_link"
8000 case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8003 esac
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_link") 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest$ac_exeext &&
8015 $as_test_x conftest$ac_exeext; then
8016
8017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8018 }'`
8019 # Check for a 64-bit object if we didn't find anything.
8020 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8021 }'`; fi
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026
8027 fi
8028
8029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8030 conftest$ac_exeext conftest.$ac_ext
8031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8032
8033 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8034 # Warning - without using the other run time loading flags,
8035 # -berok will link without error, but may produce a broken library.
8036 no_undefined_flag=' ${wl}-bernotok'
8037 allow_undefined_flag=' ${wl}-berok'
8038 # Exported symbols can be pulled into shared objects from archives
8039 whole_archive_flag_spec='$convenience'
8040 archive_cmds_need_lc=yes
8041 # This is similar to how AIX traditionally builds its shared libraries.
8042 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'
8043 fi
8044 fi
8045 ;;
8046
8047 amigaos*)
8048 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)'
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_minus_L=yes
8051 # see comment about different semantics on the GNU ld section
8052 ld_shlibs=no
8053 ;;
8054
8055 bsdi[45]*)
8056 export_dynamic_flag_spec=-rdynamic
8057 ;;
8058
8059 cygwin* | mingw* | pw32*)
8060 # When not using gcc, we currently assume that we are using
8061 # Microsoft Visual C++.
8062 # hardcode_libdir_flag_spec is actually meaningless, as there is
8063 # no search path for DLLs.
8064 hardcode_libdir_flag_spec=' '
8065 allow_undefined_flag=unsupported
8066 # Tell ltmain to make .lib files, not .a files.
8067 libext=lib
8068 # Tell ltmain to make .dll files, not .so files.
8069 shrext_cmds=".dll"
8070 # FIXME: Setting linknames here is a bad hack.
8071 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8072 # The linker will automatically build a .lib file if we build a DLL.
8073 old_archive_From_new_cmds='true'
8074 # FIXME: Should let the user specify the lib program.
8075 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8076 fix_srcfile_path='`cygpath -w "$srcfile"`'
8077 enable_shared_with_static_runtimes=yes
8078 ;;
8079
8080 darwin* | rhapsody*)
8081 case $host_os in
8082 rhapsody* | darwin1.[012])
8083 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8084 ;;
8085 *) # Darwin 1.3 on
8086 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8087 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8088 else
8089 case ${MACOSX_DEPLOYMENT_TARGET} in
8090 10.[012])
8091 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8092 ;;
8093 10.*)
8094 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8095 ;;
8096 esac
8097 fi
8098 ;;
8099 esac
8100 archive_cmds_need_lc=no
8101 hardcode_direct=no
8102 hardcode_automatic=yes
8103 hardcode_shlibpath_var=unsupported
8104 whole_archive_flag_spec=''
8105 link_all_deplibs=yes
8106 if test "$GCC" = yes ; then
8107 output_verbose_link_cmd='echo'
8108 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8109 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8110 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8111 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8112 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8113 else
8114 case $cc_basename in
8115 xlc*)
8116 output_verbose_link_cmd='echo'
8117 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8118 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8120 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8121 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8122 ;;
8123 *)
8124 ld_shlibs=no
8125 ;;
8126 esac
8127 fi
8128 ;;
8129
8130 dgux*)
8131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_libdir_flag_spec='-L$libdir'
8133 hardcode_shlibpath_var=no
8134 ;;
8135
8136 freebsd1*)
8137 ld_shlibs=no
8138 ;;
8139
8140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8141 # support. Future versions do this automatically, but an explicit c++rt0.o
8142 # does not break anything, and helps significantly (at the cost of a little
8143 # extra space).
8144 freebsd2.2*)
8145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8146 hardcode_libdir_flag_spec='-R$libdir'
8147 hardcode_direct=yes
8148 hardcode_shlibpath_var=no
8149 ;;
8150
8151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8152 freebsd2*)
8153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8154 hardcode_direct=yes
8155 hardcode_minus_L=yes
8156 hardcode_shlibpath_var=no
8157 ;;
8158
8159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8160 freebsd* | kfreebsd*-gnu | dragonfly*)
8161 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8162 hardcode_libdir_flag_spec='-R$libdir'
8163 hardcode_direct=yes
8164 hardcode_shlibpath_var=no
8165 ;;
8166
8167 hpux9*)
8168 if test "$GCC" = yes; then
8169 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8170 else
8171 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'
8172 fi
8173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8174 hardcode_libdir_separator=:
8175 hardcode_direct=yes
8176
8177 # hardcode_minus_L: Not really in the search PATH,
8178 # but as the default location of the library.
8179 hardcode_minus_L=yes
8180 export_dynamic_flag_spec='${wl}-E'
8181 ;;
8182
8183 hpux10*)
8184 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8186 else
8187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8188 fi
8189 if test "$with_gnu_ld" = no; then
8190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8191 hardcode_libdir_separator=:
8192
8193 hardcode_direct=yes
8194 export_dynamic_flag_spec='${wl}-E'
8195
8196 # hardcode_minus_L: Not really in the search PATH,
8197 # but as the default location of the library.
8198 hardcode_minus_L=yes
8199 fi
8200 ;;
8201
8202 hpux11*)
8203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8204 case $host_cpu in
8205 hppa*64*)
8206 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8207 ;;
8208 ia64*)
8209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8210 ;;
8211 *)
8212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8213 ;;
8214 esac
8215 else
8216 case $host_cpu in
8217 hppa*64*)
8218 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8219 ;;
8220 ia64*)
8221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8222 ;;
8223 *)
8224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8225 ;;
8226 esac
8227 fi
8228 if test "$with_gnu_ld" = no; then
8229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8230 hardcode_libdir_separator=:
8231
8232 case $host_cpu in
8233 hppa*64*|ia64*)
8234 hardcode_libdir_flag_spec_ld='+b $libdir'
8235 hardcode_direct=no
8236 hardcode_shlibpath_var=no
8237 ;;
8238 *)
8239 hardcode_direct=yes
8240 export_dynamic_flag_spec='${wl}-E'
8241
8242 # hardcode_minus_L: Not really in the search PATH,
8243 # but as the default location of the library.
8244 hardcode_minus_L=yes
8245 ;;
8246 esac
8247 fi
8248 ;;
8249
8250 irix5* | irix6* | nonstopux*)
8251 if test "$GCC" = yes; then
8252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8253 else
8254 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8255 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8256 fi
8257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8258 hardcode_libdir_separator=:
8259 link_all_deplibs=yes
8260 ;;
8261
8262 netbsd*)
8263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8265 else
8266 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8267 fi
8268 hardcode_libdir_flag_spec='-R$libdir'
8269 hardcode_direct=yes
8270 hardcode_shlibpath_var=no
8271 ;;
8272
8273 newsos6)
8274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_direct=yes
8276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8277 hardcode_libdir_separator=:
8278 hardcode_shlibpath_var=no
8279 ;;
8280
8281 openbsd*)
8282 hardcode_direct=yes
8283 hardcode_shlibpath_var=no
8284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8286 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8288 export_dynamic_flag_spec='${wl}-E'
8289 else
8290 case $host_os in
8291 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8293 hardcode_libdir_flag_spec='-R$libdir'
8294 ;;
8295 *)
8296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8298 ;;
8299 esac
8300 fi
8301 ;;
8302
8303 os2*)
8304 hardcode_libdir_flag_spec='-L$libdir'
8305 hardcode_minus_L=yes
8306 allow_undefined_flag=unsupported
8307 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'
8308 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8309 ;;
8310
8311 osf3*)
8312 if test "$GCC" = yes; then
8313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8314 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8315 else
8316 allow_undefined_flag=' -expect_unresolved \*'
8317 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8318 fi
8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320 hardcode_libdir_separator=:
8321 ;;
8322
8323 osf4* | osf5*) # as osf3* with the addition of -msym flag
8324 if test "$GCC" = yes; then
8325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8326 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8328 else
8329 allow_undefined_flag=' -expect_unresolved \*'
8330 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8331 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8332 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8333
8334 # Both c and cxx compiler support -rpath directly
8335 hardcode_libdir_flag_spec='-rpath $libdir'
8336 fi
8337 hardcode_libdir_separator=:
8338 ;;
8339
8340 solaris*)
8341 no_undefined_flag=' -z text'
8342 if test "$GCC" = yes; then
8343 wlarc='${wl}'
8344 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8345 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8346 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8347 else
8348 wlarc=''
8349 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8350 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8351 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8352 fi
8353 hardcode_libdir_flag_spec='-R$libdir'
8354 hardcode_shlibpath_var=no
8355 case $host_os in
8356 solaris2.[0-5] | solaris2.[0-5].*) ;;
8357 *)
8358 # The compiler driver will combine linker options so we
8359 # cannot just pass the convience library names through
8360 # without $wl, iff we do not link with $LD.
8361 # Luckily, gcc supports the same syntax we need for Sun Studio.
8362 # Supported since Solaris 2.6 (maybe 2.5.1?)
8363 case $wlarc in
8364 '')
8365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8366 *)
8367 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8368 esac ;;
8369 esac
8370 link_all_deplibs=yes
8371 ;;
8372
8373 sunos4*)
8374 if test "x$host_vendor" = xsequent; then
8375 # Use $CC to link under sequent, because it throws in some extra .o
8376 # files that make .init and .fini sections work.
8377 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8378 else
8379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8380 fi
8381 hardcode_libdir_flag_spec='-L$libdir'
8382 hardcode_direct=yes
8383 hardcode_minus_L=yes
8384 hardcode_shlibpath_var=no
8385 ;;
8386
8387 sysv4)
8388 case $host_vendor in
8389 sni)
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_direct=yes # is this really true???
8392 ;;
8393 siemens)
8394 ## LD is ld it makes a PLAMLIB
8395 ## CC just makes a GrossModule.
8396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8397 reload_cmds='$CC -r -o $output$reload_objs'
8398 hardcode_direct=no
8399 ;;
8400 motorola)
8401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8403 ;;
8404 esac
8405 runpath_var='LD_RUN_PATH'
8406 hardcode_shlibpath_var=no
8407 ;;
8408
8409 sysv4.3*)
8410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_shlibpath_var=no
8412 export_dynamic_flag_spec='-Bexport'
8413 ;;
8414
8415 sysv4*MP*)
8416 if test -d /usr/nec; then
8417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8418 hardcode_shlibpath_var=no
8419 runpath_var=LD_RUN_PATH
8420 hardcode_runpath_var=yes
8421 ld_shlibs=yes
8422 fi
8423 ;;
8424
8425 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8426 no_undefined_flag='${wl}-z,text'
8427 archive_cmds_need_lc=no
8428 hardcode_shlibpath_var=no
8429 runpath_var='LD_RUN_PATH'
8430
8431 if test "$GCC" = yes; then
8432 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434 else
8435 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8436 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8437 fi
8438 ;;
8439
8440 sysv5* | sco3.2v5* | sco5v6*)
8441 # Note: We can NOT use -z defs as we might desire, because we do not
8442 # link with -lc, and that would cause any symbols used from libc to
8443 # always be unresolved, which means just about no library would
8444 # ever link correctly. If we're not using GNU ld we use -z text
8445 # though, which does catch some bad symbols but isn't as heavy-handed
8446 # as -z defs.
8447 no_undefined_flag='${wl}-z,text'
8448 allow_undefined_flag='${wl}-z,nodefs'
8449 archive_cmds_need_lc=no
8450 hardcode_shlibpath_var=no
8451 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8452 hardcode_libdir_separator=':'
8453 link_all_deplibs=yes
8454 export_dynamic_flag_spec='${wl}-Bexport'
8455 runpath_var='LD_RUN_PATH'
8456
8457 if test "$GCC" = yes; then
8458 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460 else
8461 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8462 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463 fi
8464 ;;
8465
8466 uts4*)
8467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468 hardcode_libdir_flag_spec='-L$libdir'
8469 hardcode_shlibpath_var=no
8470 ;;
8471
8472 *)
8473 ld_shlibs=no
8474 ;;
8475 esac
8476 fi
8477
8478 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8479 echo "${ECHO_T}$ld_shlibs" >&6; }
8480 test "$ld_shlibs" = no && can_build_shared=no
8481
8482 #
8483 # Do we need to explicitly link libc?
8484 #
8485 case "x$archive_cmds_need_lc" in
8486 x|xyes)
8487 # Assume -lc should be added
8488 archive_cmds_need_lc=yes
8489
8490 if test "$enable_shared" = yes && test "$GCC" = yes; then
8491 case $archive_cmds in
8492 *'~'*)
8493 # FIXME: we may have to deal with multi-command sequences.
8494 ;;
8495 '$CC '*)
8496 # Test whether the compiler implicitly links with -lc since on some
8497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8498 # to ld, don't add -lc before -lgcc.
8499 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8500 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8501 $rm conftest*
8502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8503
8504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8505 (eval $ac_compile) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } 2>conftest.err; then
8509 soname=conftest
8510 lib=conftest
8511 libobjs=conftest.$ac_objext
8512 deplibs=
8513 wl=$lt_prog_compiler_wl
8514 pic_flag=$lt_prog_compiler_pic
8515 compiler_flags=-v
8516 linker_flags=-v
8517 verstring=
8518 output_objdir=.
8519 libname=conftest
8520 lt_save_allow_undefined_flag=$allow_undefined_flag
8521 allow_undefined_flag=
8522 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8523 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }
8527 then
8528 archive_cmds_need_lc=no
8529 else
8530 archive_cmds_need_lc=yes
8531 fi
8532 allow_undefined_flag=$lt_save_allow_undefined_flag
8533 else
8534 cat conftest.err 1>&5
8535 fi
8536 $rm conftest*
8537 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8538 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8539 ;;
8540 esac
8541 fi
8542 ;;
8543 esac
8544
8545 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8546 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8547 library_names_spec=
8548 libname_spec='lib$name'
8549 soname_spec=
8550 shrext_cmds=".so"
8551 postinstall_cmds=
8552 postuninstall_cmds=
8553 finish_cmds=
8554 finish_eval=
8555 shlibpath_var=
8556 shlibpath_overrides_runpath=unknown
8557 version_type=none
8558 dynamic_linker="$host_os ld.so"
8559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8560 if test "$GCC" = yes; then
8561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8562 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8563 # if the path contains ";" then we assume it to be the separator
8564 # otherwise default to the standard path separator (i.e. ":") - it is
8565 # assumed that no part of a normal pathname contains ";" but that should
8566 # okay in the real world where ";" in dirpaths is itself problematic.
8567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8568 else
8569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8570 fi
8571 else
8572 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8573 fi
8574 need_lib_prefix=unknown
8575 hardcode_into_libs=no
8576
8577 # when you set need_version to no, make sure it does not cause -set_version
8578 # flags to be left without arguments
8579 need_version=unknown
8580
8581 case $host_os in
8582 aix3*)
8583 version_type=linux
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8585 shlibpath_var=LIBPATH
8586
8587 # AIX 3 has no versioning support, so we append a major version to the name.
8588 soname_spec='${libname}${release}${shared_ext}$major'
8589 ;;
8590
8591 aix4* | aix5*)
8592 version_type=linux
8593 need_lib_prefix=no
8594 need_version=no
8595 hardcode_into_libs=yes
8596 if test "$host_cpu" = ia64; then
8597 # AIX 5 supports IA64
8598 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8599 shlibpath_var=LD_LIBRARY_PATH
8600 else
8601 # With GCC up to 2.95.x, collect2 would create an import file
8602 # for dependence libraries. The import file would start with
8603 # the line `#! .'. This would cause the generated library to
8604 # depend on `.', always an invalid library. This was fixed in
8605 # development snapshots of GCC prior to 3.0.
8606 case $host_os in
8607 aix4 | aix4.[01] | aix4.[01].*)
8608 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8609 echo ' yes '
8610 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8611 :
8612 else
8613 can_build_shared=no
8614 fi
8615 ;;
8616 esac
8617 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8618 # soname into executable. Probably we can add versioning support to
8619 # collect2, so additional links can be useful in future.
8620 if test "$aix_use_runtimelinking" = yes; then
8621 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8622 # instead of lib<name>.a to let people know that these are not
8623 # typical AIX shared libraries.
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625 else
8626 # We preserve .a as extension for shared libraries through AIX4.2
8627 # and later when we are not doing run time linking.
8628 library_names_spec='${libname}${release}.a $libname.a'
8629 soname_spec='${libname}${release}${shared_ext}$major'
8630 fi
8631 shlibpath_var=LIBPATH
8632 fi
8633 ;;
8634
8635 amigaos*)
8636 library_names_spec='$libname.ixlibrary $libname.a'
8637 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8638 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8639 ;;
8640
8641 beos*)
8642 library_names_spec='${libname}${shared_ext}'
8643 dynamic_linker="$host_os ld.so"
8644 shlibpath_var=LIBRARY_PATH
8645 ;;
8646
8647 bsdi[45]*)
8648 version_type=linux
8649 need_version=no
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8651 soname_spec='${libname}${release}${shared_ext}$major'
8652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8653 shlibpath_var=LD_LIBRARY_PATH
8654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8656 # the default ld.so.conf also contains /usr/contrib/lib and
8657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8658 # libtool to hard-code these into programs
8659 ;;
8660
8661 cygwin* | mingw* | pw32*)
8662 version_type=windows
8663 shrext_cmds=".dll"
8664 need_version=no
8665 need_lib_prefix=no
8666
8667 case $GCC,$host_os in
8668 yes,cygwin* | yes,mingw* | yes,pw32*)
8669 library_names_spec='$libname.dll.a'
8670 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8671 postinstall_cmds='base_file=`basename \${file}`~
8672 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8673 dldir=$destdir/`dirname \$dlpath`~
8674 test -d \$dldir || mkdir -p \$dldir~
8675 $install_prog $dir/$dlname \$dldir/$dlname~
8676 chmod a+x \$dldir/$dlname'
8677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8678 dlpath=$dir/\$dldll~
8679 $rm \$dlpath'
8680 shlibpath_overrides_runpath=yes
8681
8682 case $host_os in
8683 cygwin*)
8684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8687 ;;
8688 mingw*)
8689 # MinGW DLLs use traditional 'lib' prefix
8690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8693 # It is most probably a Windows format PATH printed by
8694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8695 # path with ; separators, and with drive letters. We can handle the
8696 # drive letters (cygwin fileutils understands them), so leave them,
8697 # especially as we might pass files found there to a mingw objdump,
8698 # which wouldn't understand a cygwinified path. Ahh.
8699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8700 else
8701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8702 fi
8703 ;;
8704 pw32*)
8705 # pw32 DLLs use 'pw' prefix rather than 'lib'
8706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8707 ;;
8708 esac
8709 ;;
8710
8711 *)
8712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8713 ;;
8714 esac
8715 dynamic_linker='Win32 ld.exe'
8716 # FIXME: first we should search . and the directory the executable is in
8717 shlibpath_var=PATH
8718 ;;
8719
8720 darwin* | rhapsody*)
8721 dynamic_linker="$host_os dyld"
8722 version_type=darwin
8723 need_lib_prefix=no
8724 need_version=no
8725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8726 soname_spec='${libname}${release}${major}$shared_ext'
8727 shlibpath_overrides_runpath=yes
8728 shlibpath_var=DYLD_LIBRARY_PATH
8729 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8731 if test "$GCC" = yes; then
8732 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8733 else
8734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8735 fi
8736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8737 ;;
8738
8739 dgux*)
8740 version_type=linux
8741 need_lib_prefix=no
8742 need_version=no
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 shlibpath_var=LD_LIBRARY_PATH
8746 ;;
8747
8748 freebsd1*)
8749 dynamic_linker=no
8750 ;;
8751
8752 kfreebsd*-gnu)
8753 version_type=linux
8754 need_lib_prefix=no
8755 need_version=no
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=no
8760 hardcode_into_libs=yes
8761 dynamic_linker='GNU ld.so'
8762 ;;
8763
8764 freebsd* | dragonfly*)
8765 # DragonFly does not have aout. When/if they implement a new
8766 # versioning mechanism, adjust this.
8767 if test -x /usr/bin/objformat; then
8768 objformat=`/usr/bin/objformat`
8769 else
8770 case $host_os in
8771 freebsd[123]*) objformat=aout ;;
8772 *) objformat=elf ;;
8773 esac
8774 fi
8775 version_type=freebsd-$objformat
8776 case $version_type in
8777 freebsd-elf*)
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8779 need_version=no
8780 need_lib_prefix=no
8781 ;;
8782 freebsd-*)
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8784 need_version=yes
8785 ;;
8786 esac
8787 shlibpath_var=LD_LIBRARY_PATH
8788 case $host_os in
8789 freebsd2*)
8790 shlibpath_overrides_runpath=yes
8791 ;;
8792 freebsd3.[01]* | freebsdelf3.[01]*)
8793 shlibpath_overrides_runpath=yes
8794 hardcode_into_libs=yes
8795 ;;
8796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8798 shlibpath_overrides_runpath=no
8799 hardcode_into_libs=yes
8800 ;;
8801 freebsd*) # from 4.6 on
8802 shlibpath_overrides_runpath=yes
8803 hardcode_into_libs=yes
8804 ;;
8805 esac
8806 ;;
8807
8808 gnu*)
8809 version_type=linux
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 hardcode_into_libs=yes
8816 ;;
8817
8818 hpux9* | hpux10* | hpux11*)
8819 # Give a soname corresponding to the major version so that dld.sl refuses to
8820 # link against other versions.
8821 version_type=sunos
8822 need_lib_prefix=no
8823 need_version=no
8824 case $host_cpu in
8825 ia64*)
8826 shrext_cmds='.so'
8827 hardcode_into_libs=yes
8828 dynamic_linker="$host_os dld.so"
8829 shlibpath_var=LD_LIBRARY_PATH
8830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8832 soname_spec='${libname}${release}${shared_ext}$major'
8833 if test "X$HPUX_IA64_MODE" = X32; then
8834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8835 else
8836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8837 fi
8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8839 ;;
8840 hppa*64*)
8841 shrext_cmds='.sl'
8842 hardcode_into_libs=yes
8843 dynamic_linker="$host_os dld.sl"
8844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8850 ;;
8851 *)
8852 shrext_cmds='.sl'
8853 dynamic_linker="$host_os dld.sl"
8854 shlibpath_var=SHLIB_PATH
8855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 ;;
8859 esac
8860 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8861 postinstall_cmds='chmod 555 $lib'
8862 ;;
8863
8864 interix3*)
8865 version_type=linux
8866 need_lib_prefix=no
8867 need_version=no
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8869 soname_spec='${libname}${release}${shared_ext}$major'
8870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8871 shlibpath_var=LD_LIBRARY_PATH
8872 shlibpath_overrides_runpath=no
8873 hardcode_into_libs=yes
8874 ;;
8875
8876 irix5* | irix6* | nonstopux*)
8877 case $host_os in
8878 nonstopux*) version_type=nonstopux ;;
8879 *)
8880 if test "$lt_cv_prog_gnu_ld" = yes; then
8881 version_type=linux
8882 else
8883 version_type=irix
8884 fi ;;
8885 esac
8886 need_lib_prefix=no
8887 need_version=no
8888 soname_spec='${libname}${release}${shared_ext}$major'
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8890 case $host_os in
8891 irix5* | nonstopux*)
8892 libsuff= shlibsuff=
8893 ;;
8894 *)
8895 case $LD in # libtool.m4 will add one of these switches to LD
8896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8897 libsuff= shlibsuff= libmagic=32-bit;;
8898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8899 libsuff=32 shlibsuff=N32 libmagic=N32;;
8900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8902 *) libsuff= shlibsuff= libmagic=never-match;;
8903 esac
8904 ;;
8905 esac
8906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8907 shlibpath_overrides_runpath=no
8908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8910 hardcode_into_libs=yes
8911 ;;
8912
8913 # No shared lib support for Linux oldld, aout, or coff.
8914 linux*oldld* | linux*aout* | linux*coff*)
8915 dynamic_linker=no
8916 ;;
8917
8918 # This must be Linux ELF.
8919 linux*)
8920 version_type=linux
8921 need_lib_prefix=no
8922 need_version=no
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8926 shlibpath_var=LD_LIBRARY_PATH
8927 shlibpath_overrides_runpath=no
8928 # This implies no fast_install, which is unacceptable.
8929 # Some rework will be needed to allow for fast_install
8930 # before this can be enabled.
8931 hardcode_into_libs=yes
8932
8933 # Append ld.so.conf contents to the search path
8934 if test -f /etc/ld.so.conf; then
8935 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8937 fi
8938
8939 # We used to test for /lib/ld.so.1 and disable shared libraries on
8940 # powerpc, because MkLinux only supported shared libraries with the
8941 # GNU dynamic linker. Since this was broken with cross compilers,
8942 # most powerpc-linux boxes support dynamic linking these days and
8943 # people can always --disable-shared, the test was removed, and we
8944 # assume the GNU/Linux dynamic linker is in use.
8945 dynamic_linker='GNU/Linux ld.so'
8946 ;;
8947
8948 knetbsd*-gnu)
8949 version_type=linux
8950 need_lib_prefix=no
8951 need_version=no
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=no
8956 hardcode_into_libs=yes
8957 dynamic_linker='GNU ld.so'
8958 ;;
8959
8960 netbsd*)
8961 version_type=sunos
8962 need_lib_prefix=no
8963 need_version=no
8964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8967 dynamic_linker='NetBSD (a.out) ld.so'
8968 else
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 dynamic_linker='NetBSD ld.elf_so'
8972 fi
8973 shlibpath_var=LD_LIBRARY_PATH
8974 shlibpath_overrides_runpath=yes
8975 hardcode_into_libs=yes
8976 ;;
8977
8978 newsos6)
8979 version_type=linux
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 ;;
8984
8985 nto-qnx*)
8986 version_type=linux
8987 need_lib_prefix=no
8988 need_version=no
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=yes
8993 ;;
8994
8995 openbsd*)
8996 version_type=sunos
8997 sys_lib_dlsearch_path_spec="/usr/lib"
8998 need_lib_prefix=no
8999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9000 case $host_os in
9001 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9002 *) need_version=no ;;
9003 esac
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9008 case $host_os in
9009 openbsd2.[89] | openbsd2.[89].*)
9010 shlibpath_overrides_runpath=no
9011 ;;
9012 *)
9013 shlibpath_overrides_runpath=yes
9014 ;;
9015 esac
9016 else
9017 shlibpath_overrides_runpath=yes
9018 fi
9019 ;;
9020
9021 os2*)
9022 libname_spec='$name'
9023 shrext_cmds=".dll"
9024 need_lib_prefix=no
9025 library_names_spec='$libname${shared_ext} $libname.a'
9026 dynamic_linker='OS/2 ld.exe'
9027 shlibpath_var=LIBPATH
9028 ;;
9029
9030 osf3* | osf4* | osf5*)
9031 version_type=osf
9032 need_lib_prefix=no
9033 need_version=no
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9039 ;;
9040
9041 solaris*)
9042 version_type=linux
9043 need_lib_prefix=no
9044 need_version=no
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 hardcode_into_libs=yes
9050 # ldd complains unless libraries are executable
9051 postinstall_cmds='chmod +x $lib'
9052 ;;
9053
9054 sunos4*)
9055 version_type=sunos
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes
9060 if test "$with_gnu_ld" = yes; then
9061 need_lib_prefix=no
9062 fi
9063 need_version=yes
9064 ;;
9065
9066 sysv4 | sysv4.3*)
9067 version_type=linux
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 case $host_vendor in
9072 sni)
9073 shlibpath_overrides_runpath=no
9074 need_lib_prefix=no
9075 export_dynamic_flag_spec='${wl}-Blargedynsym'
9076 runpath_var=LD_RUN_PATH
9077 ;;
9078 siemens)
9079 need_lib_prefix=no
9080 ;;
9081 motorola)
9082 need_lib_prefix=no
9083 need_version=no
9084 shlibpath_overrides_runpath=no
9085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9086 ;;
9087 esac
9088 ;;
9089
9090 sysv4*MP*)
9091 if test -d /usr/nec ;then
9092 version_type=linux
9093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9094 soname_spec='$libname${shared_ext}.$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 fi
9097 ;;
9098
9099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9100 version_type=freebsd-elf
9101 need_lib_prefix=no
9102 need_version=no
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 hardcode_into_libs=yes
9107 if test "$with_gnu_ld" = yes; then
9108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9109 shlibpath_overrides_runpath=no
9110 else
9111 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9112 shlibpath_overrides_runpath=yes
9113 case $host_os in
9114 sco3.2v5*)
9115 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9116 ;;
9117 esac
9118 fi
9119 sys_lib_dlsearch_path_spec='/usr/lib'
9120 ;;
9121
9122 uts4*)
9123 version_type=linux
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 ;;
9128
9129 *)
9130 dynamic_linker=no
9131 ;;
9132 esac
9133 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9134 echo "${ECHO_T}$dynamic_linker" >&6; }
9135 test "$dynamic_linker" = no && can_build_shared=no
9136
9137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9138 if test "$GCC" = yes; then
9139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9140 fi
9141
9142 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9143 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9144 hardcode_action=
9145 if test -n "$hardcode_libdir_flag_spec" || \
9146 test -n "$runpath_var" || \
9147 test "X$hardcode_automatic" = "Xyes" ; then
9148
9149 # We can hardcode non-existant directories.
9150 if test "$hardcode_direct" != no &&
9151 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9152 # have to relink, otherwise we might link with an installed library
9153 # when we should be linking with a yet-to-be-installed one
9154 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9155 test "$hardcode_minus_L" != no; then
9156 # Linking always hardcodes the temporary library directory.
9157 hardcode_action=relink
9158 else
9159 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9160 hardcode_action=immediate
9161 fi
9162 else
9163 # We cannot hardcode anything, or else we can only hardcode existing
9164 # directories.
9165 hardcode_action=unsupported
9166 fi
9167 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9168 echo "${ECHO_T}$hardcode_action" >&6; }
9169
9170 if test "$hardcode_action" = relink; then
9171 # Fast installation is not supported
9172 enable_fast_install=no
9173 elif test "$shlibpath_overrides_runpath" = yes ||
9174 test "$enable_shared" = no; then
9175 # Fast installation is not necessary
9176 enable_fast_install=needless
9177 fi
9178
9179 striplib=
9180 old_striplib=
9181 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9182 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9183 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9185 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9186 { echo "$as_me:$LINENO: result: yes" >&5
9187 echo "${ECHO_T}yes" >&6; }
9188 else
9189 # FIXME - insert some real tests, host_os isn't really good enough
9190 case $host_os in
9191 darwin*)
9192 if test -n "$STRIP" ; then
9193 striplib="$STRIP -x"
9194 { echo "$as_me:$LINENO: result: yes" >&5
9195 echo "${ECHO_T}yes" >&6; }
9196 else
9197 { echo "$as_me:$LINENO: result: no" >&5
9198 echo "${ECHO_T}no" >&6; }
9199 fi
9200 ;;
9201 *)
9202 { echo "$as_me:$LINENO: result: no" >&5
9203 echo "${ECHO_T}no" >&6; }
9204 ;;
9205 esac
9206 fi
9207
9208 if test "x$enable_dlopen" != xyes; then
9209 enable_dlopen=unknown
9210 enable_dlopen_self=unknown
9211 enable_dlopen_self_static=unknown
9212 else
9213 lt_cv_dlopen=no
9214 lt_cv_dlopen_libs=
9215
9216 case $host_os in
9217 beos*)
9218 lt_cv_dlopen="load_add_on"
9219 lt_cv_dlopen_libs=
9220 lt_cv_dlopen_self=yes
9221 ;;
9222
9223 mingw* | pw32*)
9224 lt_cv_dlopen="LoadLibrary"
9225 lt_cv_dlopen_libs=
9226 ;;
9227
9228 cygwin*)
9229 lt_cv_dlopen="dlopen"
9230 lt_cv_dlopen_libs=
9231 ;;
9232
9233 darwin*)
9234 # if libdl is installed we need to link against it
9235 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 ac_check_lib_save_LIBS=$LIBS
9241 LIBS="-ldl $LIBS"
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h. */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248
9249 /* Override any GCC internal prototype to avoid an error.
9250 Use char because int might match the return type of a GCC
9251 builtin and then its argument prototype would still apply. */
9252 #ifdef __cplusplus
9253 extern "C"
9254 #endif
9255 char dlopen ();
9256 int
9257 main ()
9258 {
9259 return dlopen ();
9260 ;
9261 return 0;
9262 }
9263 _ACEOF
9264 rm -f conftest.$ac_objext conftest$ac_exeext
9265 if { (ac_try="$ac_link"
9266 case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_link") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest$ac_exeext &&
9281 $as_test_x conftest$ac_exeext; then
9282 ac_cv_lib_dl_dlopen=yes
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287 ac_cv_lib_dl_dlopen=no
9288 fi
9289
9290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9291 conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_check_lib_save_LIBS
9293 fi
9294 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9295 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9296 if test $ac_cv_lib_dl_dlopen = yes; then
9297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9298 else
9299
9300 lt_cv_dlopen="dyld"
9301 lt_cv_dlopen_libs=
9302 lt_cv_dlopen_self=yes
9303
9304 fi
9305
9306 ;;
9307
9308 *)
9309 { echo "$as_me:$LINENO: checking for shl_load" >&5
9310 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9311 if test "${ac_cv_func_shl_load+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314 cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h. */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9320 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9322 #define shl_load innocuous_shl_load
9323
9324 /* System header to define __stub macros and hopefully few prototypes,
9325 which can conflict with char shl_load (); below.
9326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9327 <limits.h> exists even on freestanding compilers. */
9328
9329 #ifdef __STDC__
9330 # include <limits.h>
9331 #else
9332 # include <assert.h>
9333 #endif
9334
9335 #undef shl_load
9336
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char shl_load ();
9344 /* The GNU C library defines this for functions which it implements
9345 to always fail with ENOSYS. Some functions are actually named
9346 something starting with __ and the normal name is an alias. */
9347 #if defined __stub_shl_load || defined __stub___shl_load
9348 choke me
9349 #endif
9350
9351 int
9352 main ()
9353 {
9354 return shl_load ();
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext conftest$ac_exeext
9360 if { (ac_try="$ac_link"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_link") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest$ac_exeext &&
9376 $as_test_x conftest$ac_exeext; then
9377 ac_cv_func_shl_load=yes
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382 ac_cv_func_shl_load=no
9383 fi
9384
9385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9386 conftest$ac_exeext conftest.$ac_ext
9387 fi
9388 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9389 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9390 if test $ac_cv_func_shl_load = yes; then
9391 lt_cv_dlopen="shl_load"
9392 else
9393 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9394 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9395 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 else
9398 ac_check_lib_save_LIBS=$LIBS
9399 LIBS="-ldld $LIBS"
9400 cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h. */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char shl_load ();
9414 int
9415 main ()
9416 {
9417 return shl_load ();
9418 ;
9419 return 0;
9420 }
9421 _ACEOF
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext &&
9439 $as_test_x conftest$ac_exeext; then
9440 ac_cv_lib_dld_shl_load=yes
9441 else
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 ac_cv_lib_dld_shl_load=no
9446 fi
9447
9448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9449 conftest$ac_exeext conftest.$ac_ext
9450 LIBS=$ac_check_lib_save_LIBS
9451 fi
9452 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9453 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9454 if test $ac_cv_lib_dld_shl_load = yes; then
9455 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9456 else
9457 { echo "$as_me:$LINENO: checking for dlopen" >&5
9458 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9459 if test "${ac_cv_func_dlopen+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h. */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9468 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9470 #define dlopen innocuous_dlopen
9471
9472 /* System header to define __stub macros and hopefully few prototypes,
9473 which can conflict with char dlopen (); below.
9474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9475 <limits.h> exists even on freestanding compilers. */
9476
9477 #ifdef __STDC__
9478 # include <limits.h>
9479 #else
9480 # include <assert.h>
9481 #endif
9482
9483 #undef dlopen
9484
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 char dlopen ();
9492 /* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495 #if defined __stub_dlopen || defined __stub___dlopen
9496 choke me
9497 #endif
9498
9499 int
9500 main ()
9501 {
9502 return dlopen ();
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9509 case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_link") 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && {
9521 test -z "$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9523 } && test -s conftest$ac_exeext &&
9524 $as_test_x conftest$ac_exeext; then
9525 ac_cv_func_dlopen=yes
9526 else
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530 ac_cv_func_dlopen=no
9531 fi
9532
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534 conftest$ac_exeext conftest.$ac_ext
9535 fi
9536 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9537 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9538 if test $ac_cv_func_dlopen = yes; then
9539 lt_cv_dlopen="dlopen"
9540 else
9541 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-ldl $LIBS"
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 char dlopen ();
9562 int
9563 main ()
9564 {
9565 return dlopen ();
9566 ;
9567 return 0;
9568 }
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9572 case "(($ac_try" in
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_link") 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest$ac_exeext &&
9587 $as_test_x conftest$ac_exeext; then
9588 ac_cv_lib_dl_dlopen=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 ac_cv_lib_dl_dlopen=no
9594 fi
9595
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597 conftest$ac_exeext conftest.$ac_ext
9598 LIBS=$ac_check_lib_save_LIBS
9599 fi
9600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9602 if test $ac_cv_lib_dl_dlopen = yes; then
9603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9604 else
9605 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9606 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9607 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-lsvld $LIBS"
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 char dlopen ();
9626 int
9627 main ()
9628 {
9629 return dlopen ();
9630 ;
9631 return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest$ac_exeext &&
9651 $as_test_x conftest$ac_exeext; then
9652 ac_cv_lib_svld_dlopen=yes
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9656
9657 ac_cv_lib_svld_dlopen=no
9658 fi
9659
9660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9661 conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9663 fi
9664 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9665 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9666 if test $ac_cv_lib_svld_dlopen = yes; then
9667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9668 else
9669 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9670 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9671 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674 ac_check_lib_save_LIBS=$LIBS
9675 LIBS="-ldld $LIBS"
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682
9683 /* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686 #ifdef __cplusplus
9687 extern "C"
9688 #endif
9689 char dld_link ();
9690 int
9691 main ()
9692 {
9693 return dld_link ();
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9700 case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_link") 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest$ac_exeext &&
9715 $as_test_x conftest$ac_exeext; then
9716 ac_cv_lib_dld_dld_link=yes
9717 else
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_cv_lib_dld_dld_link=no
9722 fi
9723
9724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9725 conftest$ac_exeext conftest.$ac_ext
9726 LIBS=$ac_check_lib_save_LIBS
9727 fi
9728 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9729 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9730 if test $ac_cv_lib_dld_dld_link = yes; then
9731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9732 fi
9733
9734
9735 fi
9736
9737
9738 fi
9739
9740
9741 fi
9742
9743
9744 fi
9745
9746
9747 fi
9748
9749 ;;
9750 esac
9751
9752 if test "x$lt_cv_dlopen" != xno; then
9753 enable_dlopen=yes
9754 else
9755 enable_dlopen=no
9756 fi
9757
9758 case $lt_cv_dlopen in
9759 dlopen)
9760 save_CPPFLAGS="$CPPFLAGS"
9761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9762
9763 save_LDFLAGS="$LDFLAGS"
9764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9765
9766 save_LIBS="$LIBS"
9767 LIBS="$lt_cv_dlopen_libs $LIBS"
9768
9769 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9770 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9771 if test "${lt_cv_dlopen_self+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774 if test "$cross_compiling" = yes; then :
9775 lt_cv_dlopen_self=cross
9776 else
9777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9778 lt_status=$lt_dlunknown
9779 cat > conftest.$ac_ext <<EOF
9780 #line 9780 "configure"
9781 #include "confdefs.h"
9782
9783 #if HAVE_DLFCN_H
9784 #include <dlfcn.h>
9785 #endif
9786
9787 #include <stdio.h>
9788
9789 #ifdef RTLD_GLOBAL
9790 # define LT_DLGLOBAL RTLD_GLOBAL
9791 #else
9792 # ifdef DL_GLOBAL
9793 # define LT_DLGLOBAL DL_GLOBAL
9794 # else
9795 # define LT_DLGLOBAL 0
9796 # endif
9797 #endif
9798
9799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9800 find out it does not work in some platform. */
9801 #ifndef LT_DLLAZY_OR_NOW
9802 # ifdef RTLD_LAZY
9803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9804 # else
9805 # ifdef DL_LAZY
9806 # define LT_DLLAZY_OR_NOW DL_LAZY
9807 # else
9808 # ifdef RTLD_NOW
9809 # define LT_DLLAZY_OR_NOW RTLD_NOW
9810 # else
9811 # ifdef DL_NOW
9812 # define LT_DLLAZY_OR_NOW DL_NOW
9813 # else
9814 # define LT_DLLAZY_OR_NOW 0
9815 # endif
9816 # endif
9817 # endif
9818 # endif
9819 #endif
9820
9821 #ifdef __cplusplus
9822 extern "C" void exit (int);
9823 #endif
9824
9825 void fnord() { int i=42;}
9826 int main ()
9827 {
9828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9829 int status = $lt_dlunknown;
9830
9831 if (self)
9832 {
9833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9835 /* dlclose (self); */
9836 }
9837 else
9838 puts (dlerror ());
9839
9840 exit (status);
9841 }
9842 EOF
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9848 (./conftest; exit; ) >&5 2>/dev/null
9849 lt_status=$?
9850 case x$lt_status in
9851 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9852 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9853 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9854 esac
9855 else :
9856 # compilation failed
9857 lt_cv_dlopen_self=no
9858 fi
9859 fi
9860 rm -fr conftest*
9861
9862
9863 fi
9864 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9865 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9866
9867 if test "x$lt_cv_dlopen_self" = xyes; then
9868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9869 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9870 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9871 if test "${lt_cv_dlopen_self_static+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874 if test "$cross_compiling" = yes; then :
9875 lt_cv_dlopen_self_static=cross
9876 else
9877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9878 lt_status=$lt_dlunknown
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9880 "configure"
9881 #include "confdefs.h"
9882
9883 #if HAVE_DLFCN_H
9884 #include <dlfcn.h>
9885 #endif
9886
9887 #include <stdio.h>
9888
9889 #ifdef RTLD_GLOBAL
9890 # define LT_DLGLOBAL RTLD_GLOBAL
9891 #else
9892 # ifdef DL_GLOBAL
9893 # define LT_DLGLOBAL DL_GLOBAL
9894 # else
9895 # define LT_DLGLOBAL 0
9896 # endif
9897 #endif
9898
9899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9900 find out it does not work in some platform. */
9901 #ifndef LT_DLLAZY_OR_NOW
9902 # ifdef RTLD_LAZY
9903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9904 # else
9905 # ifdef DL_LAZY
9906 # define LT_DLLAZY_OR_NOW DL_LAZY
9907 # else
9908 # ifdef RTLD_NOW
9909 # define LT_DLLAZY_OR_NOW RTLD_NOW
9910 # else
9911 # ifdef DL_NOW
9912 # define LT_DLLAZY_OR_NOW DL_NOW
9913 # else
9914 # define LT_DLLAZY_OR_NOW 0
9915 # endif
9916 # endif
9917 # endif
9918 # endif
9919 #endif
9920
9921 #ifdef __cplusplus
9922 extern "C" void exit (int);
9923 #endif
9924
9925 void fnord() { int i=42;}
9926 int main ()
9927 {
9928 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9929 int status = $lt_dlunknown;
9930
9931 if (self)
9932 {
9933 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9934 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9935 /* dlclose (self); */
9936 }
9937 else
9938 puts (dlerror ());
9939
9940 exit (status);
9941 }
9942 EOF
9943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944 (eval $ac_link) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9948 (./conftest; exit; ) >&5 2>/dev/null
9949 lt_status=$?
9950 case x$lt_status in
9951 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9952 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9953 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9954 esac
9955 else :
9956 # compilation failed
9957 lt_cv_dlopen_self_static=no
9958 fi
9959 fi
9960 rm -fr conftest*
9961
9962
9963 fi
9964 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9965 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9966 fi
9967
9968 CPPFLAGS="$save_CPPFLAGS"
9969 LDFLAGS="$save_LDFLAGS"
9970 LIBS="$save_LIBS"
9971 ;;
9972 esac
9973
9974 case $lt_cv_dlopen_self in
9975 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9976 *) enable_dlopen_self=unknown ;;
9977 esac
9978
9979 case $lt_cv_dlopen_self_static in
9980 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9981 *) enable_dlopen_self_static=unknown ;;
9982 esac
9983 fi
9984
9985
9986 # Report which library types will actually be built
9987 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9988 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9989 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9990 echo "${ECHO_T}$can_build_shared" >&6; }
9991
9992 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9993 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9994 test "$can_build_shared" = "no" && enable_shared=no
9995
9996 # On AIX, shared libraries and static libraries use the same namespace, and
9997 # are all built from PIC.
9998 case $host_os in
9999 aix3*)
10000 test "$enable_shared" = yes && enable_static=no
10001 if test -n "$RANLIB"; then
10002 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10003 postinstall_cmds='$RANLIB $lib'
10004 fi
10005 ;;
10006
10007 aix4* | aix5*)
10008 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10009 test "$enable_shared" = yes && enable_static=no
10010 fi
10011 ;;
10012 esac
10013 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10014 echo "${ECHO_T}$enable_shared" >&6; }
10015
10016 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10017 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10018 # Make sure either enable_shared or enable_static is yes.
10019 test "$enable_shared" = yes || enable_static=yes
10020 { echo "$as_me:$LINENO: result: $enable_static" >&5
10021 echo "${ECHO_T}$enable_static" >&6; }
10022
10023 # The else clause should only fire when bootstrapping the
10024 # libtool distribution, otherwise you forgot to ship ltmain.sh
10025 # with your package, and you will get complaints that there are
10026 # no rules to generate ltmain.sh.
10027 if test -f "$ltmain"; then
10028 # See if we are running on zsh, and set the options which allow our commands through
10029 # without removal of \ escapes.
10030 if test -n "${ZSH_VERSION+set}" ; then
10031 setopt NO_GLOB_SUBST
10032 fi
10033 # Now quote all the things that may contain metacharacters while being
10034 # careful not to overquote the AC_SUBSTed values. We take copies of the
10035 # variables and quote the copies for generation of the libtool script.
10036 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10037 SED SHELL STRIP \
10038 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10039 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10040 deplibs_check_method reload_flag reload_cmds need_locks \
10041 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10042 lt_cv_sys_global_symbol_to_c_name_address \
10043 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10044 old_postinstall_cmds old_postuninstall_cmds \
10045 compiler \
10046 CC \
10047 LD \
10048 lt_prog_compiler_wl \
10049 lt_prog_compiler_pic \
10050 lt_prog_compiler_static \
10051 lt_prog_compiler_no_builtin_flag \
10052 export_dynamic_flag_spec \
10053 thread_safe_flag_spec \
10054 whole_archive_flag_spec \
10055 enable_shared_with_static_runtimes \
10056 old_archive_cmds \
10057 old_archive_from_new_cmds \
10058 predep_objects \
10059 postdep_objects \
10060 predeps \
10061 postdeps \
10062 compiler_lib_search_path \
10063 archive_cmds \
10064 archive_expsym_cmds \
10065 postinstall_cmds \
10066 postuninstall_cmds \
10067 old_archive_from_expsyms_cmds \
10068 allow_undefined_flag \
10069 no_undefined_flag \
10070 export_symbols_cmds \
10071 hardcode_libdir_flag_spec \
10072 hardcode_libdir_flag_spec_ld \
10073 hardcode_libdir_separator \
10074 hardcode_automatic \
10075 module_cmds \
10076 module_expsym_cmds \
10077 lt_cv_prog_compiler_c_o \
10078 exclude_expsyms \
10079 include_expsyms; do
10080
10081 case $var in
10082 old_archive_cmds | \
10083 old_archive_from_new_cmds | \
10084 archive_cmds | \
10085 archive_expsym_cmds | \
10086 module_cmds | \
10087 module_expsym_cmds | \
10088 old_archive_from_expsyms_cmds | \
10089 export_symbols_cmds | \
10090 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10091 postinstall_cmds | postuninstall_cmds | \
10092 old_postinstall_cmds | old_postuninstall_cmds | \
10093 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10094 # Double-quote double-evaled strings.
10095 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10096 ;;
10097 *)
10098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10099 ;;
10100 esac
10101 done
10102
10103 case $lt_echo in
10104 *'\$0 --fallback-echo"')
10105 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10106 ;;
10107 esac
10108
10109 cfgfile="${ofile}T"
10110 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10111 $rm -f "$cfgfile"
10112 { echo "$as_me:$LINENO: creating $ofile" >&5
10113 echo "$as_me: creating $ofile" >&6;}
10114
10115 cat <<__EOF__ >> "$cfgfile"
10116 #! $SHELL
10117
10118 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10119 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10120 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10121 #
10122 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10123 # Free Software Foundation, Inc.
10124 #
10125 # This file is part of GNU Libtool:
10126 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10127 #
10128 # This program is free software; you can redistribute it and/or modify
10129 # it under the terms of the GNU General Public License as published by
10130 # the Free Software Foundation; either version 2 of the License, or
10131 # (at your option) any later version.
10132 #
10133 # This program is distributed in the hope that it will be useful, but
10134 # WITHOUT ANY WARRANTY; without even the implied warranty of
10135 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10136 # General Public License for more details.
10137 #
10138 # You should have received a copy of the GNU General Public License
10139 # along with this program; if not, write to the Free Software
10140 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10141 #
10142 # As a special exception to the GNU General Public License, if you
10143 # distribute this file as part of a program that contains a
10144 # configuration script generated by Autoconf, you may include it under
10145 # the same distribution terms that you use for the rest of that program.
10146
10147 # A sed program that does not truncate output.
10148 SED=$lt_SED
10149
10150 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10151 Xsed="$SED -e 1s/^X//"
10152
10153 # The HP-UX ksh and POSIX shell print the target directory to stdout
10154 # if CDPATH is set.
10155 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10156
10157 # The names of the tagged configurations supported by this script.
10158 available_tags=
10159
10160 # ### BEGIN LIBTOOL CONFIG
10161
10162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10163
10164 # Shell to use when invoking shell scripts.
10165 SHELL=$lt_SHELL
10166
10167 # Whether or not to build shared libraries.
10168 build_libtool_libs=$enable_shared
10169
10170 # Whether or not to build static libraries.
10171 build_old_libs=$enable_static
10172
10173 # Whether or not to add -lc for building shared libraries.
10174 build_libtool_need_lc=$archive_cmds_need_lc
10175
10176 # Whether or not to disallow shared libs when runtime libs are static
10177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10178
10179 # Whether or not to optimize for fast installation.
10180 fast_install=$enable_fast_install
10181
10182 # The host system.
10183 host_alias=$host_alias
10184 host=$host
10185 host_os=$host_os
10186
10187 # The build system.
10188 build_alias=$build_alias
10189 build=$build
10190 build_os=$build_os
10191
10192 # An echo program that does not interpret backslashes.
10193 echo=$lt_echo
10194
10195 # The archiver.
10196 AR=$lt_AR
10197 AR_FLAGS=$lt_AR_FLAGS
10198
10199 # A C compiler.
10200 LTCC=$lt_LTCC
10201
10202 # LTCC compiler flags.
10203 LTCFLAGS=$lt_LTCFLAGS
10204
10205 # A language-specific compiler.
10206 CC=$lt_compiler
10207
10208 # Is the compiler the GNU C compiler?
10209 with_gcc=$GCC
10210
10211 # An ERE matcher.
10212 EGREP=$lt_EGREP
10213
10214 # The linker used to build libraries.
10215 LD=$lt_LD
10216
10217 # Whether we need hard or soft links.
10218 LN_S=$lt_LN_S
10219
10220 # A BSD-compatible nm program.
10221 NM=$lt_NM
10222
10223 # A symbol stripping program
10224 STRIP=$lt_STRIP
10225
10226 # Used to examine libraries when file_magic_cmd begins "file"
10227 MAGIC_CMD=$MAGIC_CMD
10228
10229 # Used on cygwin: DLL creation program.
10230 DLLTOOL="$DLLTOOL"
10231
10232 # Used on cygwin: object dumper.
10233 OBJDUMP="$OBJDUMP"
10234
10235 # Used on cygwin: assembler.
10236 AS="$AS"
10237
10238 # The name of the directory that contains temporary libtool files.
10239 objdir=$objdir
10240
10241 # How to create reloadable object files.
10242 reload_flag=$lt_reload_flag
10243 reload_cmds=$lt_reload_cmds
10244
10245 # How to pass a linker flag through the compiler.
10246 wl=$lt_lt_prog_compiler_wl
10247
10248 # Object file suffix (normally "o").
10249 objext="$ac_objext"
10250
10251 # Old archive suffix (normally "a").
10252 libext="$libext"
10253
10254 # Shared library suffix (normally ".so").
10255 shrext_cmds='$shrext_cmds'
10256
10257 # Executable file suffix (normally "").
10258 exeext="$exeext"
10259
10260 # Additional compiler flags for building library objects.
10261 pic_flag=$lt_lt_prog_compiler_pic
10262 pic_mode=$pic_mode
10263
10264 # What is the maximum length of a command?
10265 max_cmd_len=$lt_cv_sys_max_cmd_len
10266
10267 # Does compiler simultaneously support -c and -o options?
10268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10269
10270 # Must we lock files when doing compilation?
10271 need_locks=$lt_need_locks
10272
10273 # Do we need the lib prefix for modules?
10274 need_lib_prefix=$need_lib_prefix
10275
10276 # Do we need a version for libraries?
10277 need_version=$need_version
10278
10279 # Whether dlopen is supported.
10280 dlopen_support=$enable_dlopen
10281
10282 # Whether dlopen of programs is supported.
10283 dlopen_self=$enable_dlopen_self
10284
10285 # Whether dlopen of statically linked programs is supported.
10286 dlopen_self_static=$enable_dlopen_self_static
10287
10288 # Compiler flag to prevent dynamic linking.
10289 link_static_flag=$lt_lt_prog_compiler_static
10290
10291 # Compiler flag to turn off builtin functions.
10292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10293
10294 # Compiler flag to allow reflexive dlopens.
10295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10296
10297 # Compiler flag to generate shared objects directly from archives.
10298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10299
10300 # Compiler flag to generate thread-safe objects.
10301 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10302
10303 # Library versioning type.
10304 version_type=$version_type
10305
10306 # Format of library name prefix.
10307 libname_spec=$lt_libname_spec
10308
10309 # List of archive names. First name is the real one, the rest are links.
10310 # The last name is the one that the linker finds with -lNAME.
10311 library_names_spec=$lt_library_names_spec
10312
10313 # The coded name of the library, if different from the real name.
10314 soname_spec=$lt_soname_spec
10315
10316 # Commands used to build and install an old-style archive.
10317 RANLIB=$lt_RANLIB
10318 old_archive_cmds=$lt_old_archive_cmds
10319 old_postinstall_cmds=$lt_old_postinstall_cmds
10320 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10321
10322 # Create an old-style archive from a shared archive.
10323 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10324
10325 # Create a temporary old-style archive to link instead of a shared archive.
10326 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10327
10328 # Commands used to build and install a shared archive.
10329 archive_cmds=$lt_archive_cmds
10330 archive_expsym_cmds=$lt_archive_expsym_cmds
10331 postinstall_cmds=$lt_postinstall_cmds
10332 postuninstall_cmds=$lt_postuninstall_cmds
10333
10334 # Commands used to build a loadable module (assumed same as above if empty)
10335 module_cmds=$lt_module_cmds
10336 module_expsym_cmds=$lt_module_expsym_cmds
10337
10338 # Commands to strip libraries.
10339 old_striplib=$lt_old_striplib
10340 striplib=$lt_striplib
10341
10342 # Dependencies to place before the objects being linked to create a
10343 # shared library.
10344 predep_objects=$lt_predep_objects
10345
10346 # Dependencies to place after the objects being linked to create a
10347 # shared library.
10348 postdep_objects=$lt_postdep_objects
10349
10350 # Dependencies to place before the objects being linked to create a
10351 # shared library.
10352 predeps=$lt_predeps
10353
10354 # Dependencies to place after the objects being linked to create a
10355 # shared library.
10356 postdeps=$lt_postdeps
10357
10358 # The library search path used internally by the compiler when linking
10359 # a shared library.
10360 compiler_lib_search_path=$lt_compiler_lib_search_path
10361
10362 # Method to check whether dependent libraries are shared objects.
10363 deplibs_check_method=$lt_deplibs_check_method
10364
10365 # Command to use when deplibs_check_method == file_magic.
10366 file_magic_cmd=$lt_file_magic_cmd
10367
10368 # Flag that allows shared libraries with undefined symbols to be built.
10369 allow_undefined_flag=$lt_allow_undefined_flag
10370
10371 # Flag that forces no undefined symbols.
10372 no_undefined_flag=$lt_no_undefined_flag
10373
10374 # Commands used to finish a libtool library installation in a directory.
10375 finish_cmds=$lt_finish_cmds
10376
10377 # Same as above, but a single script fragment to be evaled but not shown.
10378 finish_eval=$lt_finish_eval
10379
10380 # Take the output of nm and produce a listing of raw symbols and C names.
10381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10382
10383 # Transform the output of nm in a proper C declaration
10384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10385
10386 # Transform the output of nm in a C name address pair
10387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10388
10389 # This is the shared library runtime path variable.
10390 runpath_var=$runpath_var
10391
10392 # This is the shared library path variable.
10393 shlibpath_var=$shlibpath_var
10394
10395 # Is shlibpath searched before the hard-coded library search path?
10396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10397
10398 # How to hardcode a shared library path into an executable.
10399 hardcode_action=$hardcode_action
10400
10401 # Whether we should hardcode library paths into libraries.
10402 hardcode_into_libs=$hardcode_into_libs
10403
10404 # Flag to hardcode \$libdir into a binary during linking.
10405 # This must work even if \$libdir does not exist.
10406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10407
10408 # If ld is used when linking, flag to hardcode \$libdir into
10409 # a binary during linking. This must work even if \$libdir does
10410 # not exist.
10411 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10412
10413 # Whether we need a single -rpath flag with a separated argument.
10414 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10415
10416 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10417 # resulting binary.
10418 hardcode_direct=$hardcode_direct
10419
10420 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10421 # resulting binary.
10422 hardcode_minus_L=$hardcode_minus_L
10423
10424 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10425 # the resulting binary.
10426 hardcode_shlibpath_var=$hardcode_shlibpath_var
10427
10428 # Set to yes if building a shared library automatically hardcodes DIR into the library
10429 # and all subsequent libraries and executables linked against it.
10430 hardcode_automatic=$hardcode_automatic
10431
10432 # Variables whose values should be saved in libtool wrapper scripts and
10433 # restored at relink time.
10434 variables_saved_for_relink="$variables_saved_for_relink"
10435
10436 # Whether libtool must link a program against all its dependency libraries.
10437 link_all_deplibs=$link_all_deplibs
10438
10439 # Compile-time system search path for libraries
10440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10441
10442 # Run-time system search path for libraries
10443 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10444
10445 # Fix the shell variable \$srcfile for the compiler.
10446 fix_srcfile_path="$fix_srcfile_path"
10447
10448 # Set to yes if exported symbols are required.
10449 always_export_symbols=$always_export_symbols
10450
10451 # The commands to list exported symbols.
10452 export_symbols_cmds=$lt_export_symbols_cmds
10453
10454 # The commands to extract the exported symbol list from a shared archive.
10455 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10456
10457 # Symbols that should not be listed in the preloaded symbols.
10458 exclude_expsyms=$lt_exclude_expsyms
10459
10460 # Symbols that must always be exported.
10461 include_expsyms=$lt_include_expsyms
10462
10463 # ### END LIBTOOL CONFIG
10464
10465 __EOF__
10466
10467
10468 case $host_os in
10469 aix3*)
10470 cat <<\EOF >> "$cfgfile"
10471
10472 # AIX sometimes has problems with the GCC collect2 program. For some
10473 # reason, if we set the COLLECT_NAMES environment variable, the problems
10474 # vanish in a puff of smoke.
10475 if test "X${COLLECT_NAMES+set}" != Xset; then
10476 COLLECT_NAMES=
10477 export COLLECT_NAMES
10478 fi
10479 EOF
10480 ;;
10481 esac
10482
10483 # We use sed instead of cat because bash on DJGPP gets confused if
10484 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10485 # text mode, it properly converts lines to CR/LF. This bash problem
10486 # is reportedly fixed, but why not run on old versions too?
10487 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10488
10489 mv -f "$cfgfile" "$ofile" || \
10490 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10491 chmod +x "$ofile"
10492
10493 else
10494 # If there is no Makefile yet, we rely on a make rule to execute
10495 # `config.status --recheck' to rerun these tests and create the
10496 # libtool script then.
10497 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10498 if test -f "$ltmain_in"; then
10499 test -f Makefile && make "$ltmain"
10500 fi
10501 fi
10502
10503
10504 ac_ext=c
10505 ac_cpp='$CPP $CPPFLAGS'
10506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10509
10510 CC="$lt_save_CC"
10511
10512
10513 # Check whether --with-tags was given.
10514 if test "${with_tags+set}" = set; then
10515 withval=$with_tags; tagnames="$withval"
10516 fi
10517
10518
10519 if test -f "$ltmain" && test -n "$tagnames"; then
10520 if test ! -f "${ofile}"; then
10521 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10522 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10523 fi
10524
10525 if test -z "$LTCC"; then
10526 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10527 if test -z "$LTCC"; then
10528 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10529 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10530 else
10531 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10532 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10533 fi
10534 fi
10535 if test -z "$LTCFLAGS"; then
10536 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10537 fi
10538
10539 # Extract list of available tagged configurations in $ofile.
10540 # Note that this assumes the entire list is on one line.
10541 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10542
10543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10544 for tagname in $tagnames; do
10545 IFS="$lt_save_ifs"
10546 # Check whether tagname contains only valid characters
10547 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10548 "") ;;
10549 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10550 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10551 { (exit 1); exit 1; }; }
10552 ;;
10553 esac
10554
10555 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10556 then
10557 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10558 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10559 { (exit 1); exit 1; }; }
10560 fi
10561
10562 # Update the list of available tags.
10563 if test -n "$tagname"; then
10564 echo appending configuration tag \"$tagname\" to $ofile
10565
10566 case $tagname in
10567 CXX)
10568 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10569 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10570 (test "X$CXX" != "Xg++"))) ; then
10571 ac_ext=cpp
10572 ac_cpp='$CXXCPP $CPPFLAGS'
10573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10576
10577
10578
10579
10580 archive_cmds_need_lc_CXX=no
10581 allow_undefined_flag_CXX=
10582 always_export_symbols_CXX=no
10583 archive_expsym_cmds_CXX=
10584 export_dynamic_flag_spec_CXX=
10585 hardcode_direct_CXX=no
10586 hardcode_libdir_flag_spec_CXX=
10587 hardcode_libdir_flag_spec_ld_CXX=
10588 hardcode_libdir_separator_CXX=
10589 hardcode_minus_L_CXX=no
10590 hardcode_shlibpath_var_CXX=unsupported
10591 hardcode_automatic_CXX=no
10592 module_cmds_CXX=
10593 module_expsym_cmds_CXX=
10594 link_all_deplibs_CXX=unknown
10595 old_archive_cmds_CXX=$old_archive_cmds
10596 no_undefined_flag_CXX=
10597 whole_archive_flag_spec_CXX=
10598 enable_shared_with_static_runtimes_CXX=no
10599
10600 # Dependencies to place before and after the object being linked:
10601 predep_objects_CXX=
10602 postdep_objects_CXX=
10603 predeps_CXX=
10604 postdeps_CXX=
10605 compiler_lib_search_path_CXX=
10606
10607 # Source file extension for C++ test sources.
10608 ac_ext=cpp
10609
10610 # Object file extension for compiled C++ test sources.
10611 objext=o
10612 objext_CXX=$objext
10613
10614 # Code to be used in simple compile tests
10615 lt_simple_compile_test_code="int some_variable = 0;\n"
10616
10617 # Code to be used in simple link tests
10618 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10619
10620 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10621
10622 # If no C compiler was specified, use CC.
10623 LTCC=${LTCC-"$CC"}
10624
10625 # If no C compiler flags were specified, use CFLAGS.
10626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10627
10628 # Allow CC to be a program name with arguments.
10629 compiler=$CC
10630
10631
10632 # save warnings/boilerplate of simple test code
10633 ac_outfile=conftest.$ac_objext
10634 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10635 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10636 _lt_compiler_boilerplate=`cat conftest.err`
10637 $rm conftest*
10638
10639 ac_outfile=conftest.$ac_objext
10640 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10641 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10642 _lt_linker_boilerplate=`cat conftest.err`
10643 $rm conftest*
10644
10645
10646 # Allow CC to be a program name with arguments.
10647 lt_save_CC=$CC
10648 lt_save_LD=$LD
10649 lt_save_GCC=$GCC
10650 GCC=$GXX
10651 lt_save_with_gnu_ld=$with_gnu_ld
10652 lt_save_path_LD=$lt_cv_path_LD
10653 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10654 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10655 else
10656 $as_unset lt_cv_prog_gnu_ld
10657 fi
10658 if test -n "${lt_cv_path_LDCXX+set}"; then
10659 lt_cv_path_LD=$lt_cv_path_LDCXX
10660 else
10661 $as_unset lt_cv_path_LD
10662 fi
10663 test -z "${LDCXX+set}" || LD=$LDCXX
10664 CC=${CXX-"c++"}
10665 compiler=$CC
10666 compiler_CXX=$CC
10667 for cc_temp in $compiler""; do
10668 case $cc_temp in
10669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10671 \-*) ;;
10672 *) break;;
10673 esac
10674 done
10675 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10676
10677
10678 # We don't want -fno-exception wen compiling C++ code, so set the
10679 # no_builtin_flag separately
10680 if test "$GXX" = yes; then
10681 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10682 else
10683 lt_prog_compiler_no_builtin_flag_CXX=
10684 fi
10685
10686 if test "$GXX" = yes; then
10687 # Set up default GNU C++ configuration
10688
10689
10690 # Check whether --with-gnu-ld was given.
10691 if test "${with_gnu_ld+set}" = set; then
10692 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10693 else
10694 with_gnu_ld=no
10695 fi
10696
10697 ac_prog=ld
10698 if test "$GCC" = yes; then
10699 # Check if gcc -print-prog-name=ld gives a path.
10700 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10701 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10702 case $host in
10703 *-*-mingw*)
10704 # gcc leaves a trailing carriage return which upsets mingw
10705 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10706 *)
10707 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10708 esac
10709 case $ac_prog in
10710 # Accept absolute paths.
10711 [\\/]* | ?:[\\/]*)
10712 re_direlt='/[^/][^/]*/\.\./'
10713 # Canonicalize the pathname of ld
10714 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10715 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10716 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10717 done
10718 test -z "$LD" && LD="$ac_prog"
10719 ;;
10720 "")
10721 # If it fails, then pretend we aren't using GCC.
10722 ac_prog=ld
10723 ;;
10724 *)
10725 # If it is relative, then search for the first ld in PATH.
10726 with_gnu_ld=unknown
10727 ;;
10728 esac
10729 elif test "$with_gnu_ld" = yes; then
10730 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10731 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10732 else
10733 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10734 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10735 fi
10736 if test "${lt_cv_path_LD+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739 if test -z "$LD"; then
10740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10741 for ac_dir in $PATH; do
10742 IFS="$lt_save_ifs"
10743 test -z "$ac_dir" && ac_dir=.
10744 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10745 lt_cv_path_LD="$ac_dir/$ac_prog"
10746 # Check to see if the program is GNU ld. I'd rather use --version,
10747 # but apparently some variants of GNU ld only accept -v.
10748 # Break only if it was the GNU/non-GNU ld that we prefer.
10749 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10750 *GNU* | *'with BFD'*)
10751 test "$with_gnu_ld" != no && break
10752 ;;
10753 *)
10754 test "$with_gnu_ld" != yes && break
10755 ;;
10756 esac
10757 fi
10758 done
10759 IFS="$lt_save_ifs"
10760 else
10761 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10762 fi
10763 fi
10764
10765 LD="$lt_cv_path_LD"
10766 if test -n "$LD"; then
10767 { echo "$as_me:$LINENO: result: $LD" >&5
10768 echo "${ECHO_T}$LD" >&6; }
10769 else
10770 { echo "$as_me:$LINENO: result: no" >&5
10771 echo "${ECHO_T}no" >&6; }
10772 fi
10773 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10774 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10775 { (exit 1); exit 1; }; }
10776 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10777 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10778 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10782 case `$LD -v 2>&1 </dev/null` in
10783 *GNU* | *'with BFD'*)
10784 lt_cv_prog_gnu_ld=yes
10785 ;;
10786 *)
10787 lt_cv_prog_gnu_ld=no
10788 ;;
10789 esac
10790 fi
10791 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10792 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10793 with_gnu_ld=$lt_cv_prog_gnu_ld
10794
10795
10796
10797 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10798 # archiving commands below assume that GNU ld is being used.
10799 if test "$with_gnu_ld" = yes; then
10800 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10801 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10802
10803 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10805
10806 # If archive_cmds runs LD, not CC, wlarc should be empty
10807 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10808 # investigate it a little bit more. (MM)
10809 wlarc='${wl}'
10810
10811 # ancient GNU ld didn't support --whole-archive et. al.
10812 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10813 grep 'no-whole-archive' > /dev/null; then
10814 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10815 else
10816 whole_archive_flag_spec_CXX=
10817 fi
10818 else
10819 with_gnu_ld=no
10820 wlarc=
10821
10822 # A generic and very simple default shared library creation
10823 # command for GNU C++ for the case where it uses the native
10824 # linker, instead of GNU ld. If possible, this setting should
10825 # overridden to take advantage of the native linker features on
10826 # the platform it is being used on.
10827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10828 fi
10829
10830 # Commands to make compiler produce verbose output that lists
10831 # what "hidden" libraries, object files and flags are used when
10832 # linking a shared library.
10833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10834
10835 else
10836 GXX=no
10837 with_gnu_ld=no
10838 wlarc=
10839 fi
10840
10841 # PORTME: fill in a description of your system's C++ link characteristics
10842 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10843 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10844 ld_shlibs_CXX=yes
10845 case $host_os in
10846 aix3*)
10847 # FIXME: insert proper C++ library support
10848 ld_shlibs_CXX=no
10849 ;;
10850 aix4* | aix5*)
10851 if test "$host_cpu" = ia64; then
10852 # On IA64, the linker does run time linking by default, so we don't
10853 # have to do anything special.
10854 aix_use_runtimelinking=no
10855 exp_sym_flag='-Bexport'
10856 no_entry_flag=""
10857 else
10858 aix_use_runtimelinking=no
10859
10860 # Test if we are trying to use run time linking or normal
10861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10862 # need to do runtime linking.
10863 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10864 for ld_flag in $LDFLAGS; do
10865 case $ld_flag in
10866 *-brtl*)
10867 aix_use_runtimelinking=yes
10868 break
10869 ;;
10870 esac
10871 done
10872 ;;
10873 esac
10874
10875 exp_sym_flag='-bexport'
10876 no_entry_flag='-bnoentry'
10877 fi
10878
10879 # When large executables or shared objects are built, AIX ld can
10880 # have problems creating the table of contents. If linking a library
10881 # or program results in "error TOC overflow" add -mminimal-toc to
10882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10884
10885 archive_cmds_CXX=''
10886 hardcode_direct_CXX=yes
10887 hardcode_libdir_separator_CXX=':'
10888 link_all_deplibs_CXX=yes
10889
10890 if test "$GXX" = yes; then
10891 case $host_os in aix4.[012]|aix4.[012].*)
10892 # We only want to do this on AIX 4.2 and lower, the check
10893 # below for broken collect2 doesn't work under 4.3+
10894 collect2name=`${CC} -print-prog-name=collect2`
10895 if test -f "$collect2name" && \
10896 strings "$collect2name" | grep resolve_lib_name >/dev/null
10897 then
10898 # We have reworked collect2
10899 hardcode_direct_CXX=yes
10900 else
10901 # We have old collect2
10902 hardcode_direct_CXX=unsupported
10903 # It fails to find uninstalled libraries when the uninstalled
10904 # path is not listed in the libpath. Setting hardcode_minus_L
10905 # to unsupported forces relinking
10906 hardcode_minus_L_CXX=yes
10907 hardcode_libdir_flag_spec_CXX='-L$libdir'
10908 hardcode_libdir_separator_CXX=
10909 fi
10910 ;;
10911 esac
10912 shared_flag='-shared'
10913 if test "$aix_use_runtimelinking" = yes; then
10914 shared_flag="$shared_flag "'${wl}-G'
10915 fi
10916 else
10917 # not using gcc
10918 if test "$host_cpu" = ia64; then
10919 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10920 # chokes on -Wl,-G. The following line is correct:
10921 shared_flag='-G'
10922 else
10923 if test "$aix_use_runtimelinking" = yes; then
10924 shared_flag='${wl}-G'
10925 else
10926 shared_flag='${wl}-bM:SRE'
10927 fi
10928 fi
10929 fi
10930
10931 # It seems that -bexpall does not export symbols beginning with
10932 # underscore (_), so it is better to generate a list of symbols to export.
10933 always_export_symbols_CXX=yes
10934 if test "$aix_use_runtimelinking" = yes; then
10935 # Warning - without using the other runtime loading flags (-brtl),
10936 # -berok will link without error, but may produce a broken library.
10937 allow_undefined_flag_CXX='-berok'
10938 # Determine the default libpath from the value encoded in an empty executable.
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945
10946 int
10947 main ()
10948 {
10949
10950 ;
10951 return 0;
10952 }
10953 _ACEOF
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (ac_try="$ac_link"
10956 case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10959 esac
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_link") 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_cxx_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest$ac_exeext &&
10971 $as_test_x conftest$ac_exeext; then
10972
10973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10974 }'`
10975 # Check for a 64-bit object if we didn't find anything.
10976 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10977 }'`; fi
10978 else
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10981
10982
10983 fi
10984
10985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10986 conftest$ac_exeext conftest.$ac_ext
10987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10988
10989 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10990
10991 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10992 else
10993 if test "$host_cpu" = ia64; then
10994 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10995 allow_undefined_flag_CXX="-z nodefs"
10996 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"
10997 else
10998 # Determine the default libpath from the value encoded in an empty executable.
10999 cat >conftest.$ac_ext <<_ACEOF
11000 /* confdefs.h. */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11005
11006 int
11007 main ()
11008 {
11009
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_link") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && {
11028 test -z "$ac_cxx_werror_flag" ||
11029 test ! -s conftest.err
11030 } && test -s conftest$ac_exeext &&
11031 $as_test_x conftest$ac_exeext; then
11032
11033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11034 }'`
11035 # Check for a 64-bit object if we didn't find anything.
11036 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11037 }'`; fi
11038 else
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042
11043 fi
11044
11045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11046 conftest$ac_exeext conftest.$ac_ext
11047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11048
11049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11050 # Warning - without using the other run time loading flags,
11051 # -berok will link without error, but may produce a broken library.
11052 no_undefined_flag_CXX=' ${wl}-bernotok'
11053 allow_undefined_flag_CXX=' ${wl}-berok'
11054 # Exported symbols can be pulled into shared objects from archives
11055 whole_archive_flag_spec_CXX='$convenience'
11056 archive_cmds_need_lc_CXX=yes
11057 # This is similar to how AIX traditionally builds its shared libraries.
11058 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'
11059 fi
11060 fi
11061 ;;
11062
11063 beos*)
11064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11065 allow_undefined_flag_CXX=unsupported
11066 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11067 # support --undefined. This deserves some investigation. FIXME
11068 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11069 else
11070 ld_shlibs_CXX=no
11071 fi
11072 ;;
11073
11074 chorus*)
11075 case $cc_basename in
11076 *)
11077 # FIXME: insert proper C++ library support
11078 ld_shlibs_CXX=no
11079 ;;
11080 esac
11081 ;;
11082
11083 cygwin* | mingw* | pw32*)
11084 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11085 # as there is no search path for DLLs.
11086 hardcode_libdir_flag_spec_CXX='-L$libdir'
11087 allow_undefined_flag_CXX=unsupported
11088 always_export_symbols_CXX=no
11089 enable_shared_with_static_runtimes_CXX=yes
11090
11091 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11092 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'
11093 # If the export-symbols file already is a .def file (1st line
11094 # is EXPORTS), use it as is; otherwise, prepend...
11095 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11096 cp $export_symbols $output_objdir/$soname.def;
11097 else
11098 echo EXPORTS > $output_objdir/$soname.def;
11099 cat $export_symbols >> $output_objdir/$soname.def;
11100 fi~
11101 $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'
11102 else
11103 ld_shlibs_CXX=no
11104 fi
11105 ;;
11106 darwin* | rhapsody*)
11107 case $host_os in
11108 rhapsody* | darwin1.[012])
11109 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11110 ;;
11111 *) # Darwin 1.3 on
11112 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11113 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11114 else
11115 case ${MACOSX_DEPLOYMENT_TARGET} in
11116 10.[012])
11117 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11118 ;;
11119 10.*)
11120 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11121 ;;
11122 esac
11123 fi
11124 ;;
11125 esac
11126 archive_cmds_need_lc_CXX=no
11127 hardcode_direct_CXX=no
11128 hardcode_automatic_CXX=yes
11129 hardcode_shlibpath_var_CXX=unsupported
11130 whole_archive_flag_spec_CXX=''
11131 link_all_deplibs_CXX=yes
11132
11133 if test "$GXX" = yes ; then
11134 lt_int_apple_cc_single_mod=no
11135 output_verbose_link_cmd='echo'
11136 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11137 lt_int_apple_cc_single_mod=yes
11138 fi
11139 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11140 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11141 else
11142 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'
11143 fi
11144 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11145 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11146 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11147 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11148 else
11149 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11150 fi
11151 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11152 else
11153 case $cc_basename in
11154 xlc*)
11155 output_verbose_link_cmd='echo'
11156 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11157 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11158 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11159 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11160 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11161 ;;
11162 *)
11163 ld_shlibs_CXX=no
11164 ;;
11165 esac
11166 fi
11167 ;;
11168
11169 dgux*)
11170 case $cc_basename in
11171 ec++*)
11172 # FIXME: insert proper C++ library support
11173 ld_shlibs_CXX=no
11174 ;;
11175 ghcx*)
11176 # Green Hills C++ Compiler
11177 # FIXME: insert proper C++ library support
11178 ld_shlibs_CXX=no
11179 ;;
11180 *)
11181 # FIXME: insert proper C++ library support
11182 ld_shlibs_CXX=no
11183 ;;
11184 esac
11185 ;;
11186 freebsd[12]*)
11187 # C++ shared libraries reported to be fairly broken before switch to ELF
11188 ld_shlibs_CXX=no
11189 ;;
11190 freebsd-elf*)
11191 archive_cmds_need_lc_CXX=no
11192 ;;
11193 freebsd* | kfreebsd*-gnu | dragonfly*)
11194 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11195 # conventions
11196 ld_shlibs_CXX=yes
11197 ;;
11198 gnu*)
11199 ;;
11200 hpux9*)
11201 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11202 hardcode_libdir_separator_CXX=:
11203 export_dynamic_flag_spec_CXX='${wl}-E'
11204 hardcode_direct_CXX=yes
11205 hardcode_minus_L_CXX=yes # Not in the search PATH,
11206 # but as the default
11207 # location of the library.
11208
11209 case $cc_basename in
11210 CC*)
11211 # FIXME: insert proper C++ library support
11212 ld_shlibs_CXX=no
11213 ;;
11214 aCC*)
11215 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'
11216 # Commands to make compiler produce verbose output that lists
11217 # what "hidden" libraries, object files and flags are used when
11218 # linking a shared library.
11219 #
11220 # There doesn't appear to be a way to prevent this compiler from
11221 # explicitly linking system object files so we need to strip them
11222 # from the output so that they don't get included in the library
11223 # dependencies.
11224 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; echo $list'
11225 ;;
11226 *)
11227 if test "$GXX" = yes; then
11228 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11229 else
11230 # FIXME: insert proper C++ library support
11231 ld_shlibs_CXX=no
11232 fi
11233 ;;
11234 esac
11235 ;;
11236 hpux10*|hpux11*)
11237 if test $with_gnu_ld = no; then
11238 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11239 hardcode_libdir_separator_CXX=:
11240
11241 case $host_cpu in
11242 hppa*64*|ia64*)
11243 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11244 ;;
11245 *)
11246 export_dynamic_flag_spec_CXX='${wl}-E'
11247 ;;
11248 esac
11249 fi
11250 case $host_cpu in
11251 hppa*64*|ia64*)
11252 hardcode_direct_CXX=no
11253 hardcode_shlibpath_var_CXX=no
11254 ;;
11255 *)
11256 hardcode_direct_CXX=yes
11257 hardcode_minus_L_CXX=yes # Not in the search PATH,
11258 # but as the default
11259 # location of the library.
11260 ;;
11261 esac
11262
11263 case $cc_basename in
11264 CC*)
11265 # FIXME: insert proper C++ library support
11266 ld_shlibs_CXX=no
11267 ;;
11268 aCC*)
11269 case $host_cpu in
11270 hppa*64*)
11271 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11272 ;;
11273 ia64*)
11274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11275 ;;
11276 *)
11277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11278 ;;
11279 esac
11280 # Commands to make compiler produce verbose output that lists
11281 # what "hidden" libraries, object files and flags are used when
11282 # linking a shared library.
11283 #
11284 # There doesn't appear to be a way to prevent this compiler from
11285 # explicitly linking system object files so we need to strip them
11286 # from the output so that they don't get included in the library
11287 # dependencies.
11288 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; echo $list'
11289 ;;
11290 *)
11291 if test "$GXX" = yes; then
11292 if test $with_gnu_ld = no; then
11293 case $host_cpu in
11294 hppa*64*)
11295 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11296 ;;
11297 ia64*)
11298 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11299 ;;
11300 *)
11301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11302 ;;
11303 esac
11304 fi
11305 else
11306 # FIXME: insert proper C++ library support
11307 ld_shlibs_CXX=no
11308 fi
11309 ;;
11310 esac
11311 ;;
11312 interix3*)
11313 hardcode_direct_CXX=no
11314 hardcode_shlibpath_var_CXX=no
11315 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11316 export_dynamic_flag_spec_CXX='${wl}-E'
11317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11318 # Instead, shared libraries are loaded at an image base (0x10000000 by
11319 # default) and relocated if they conflict, which is a slow very memory
11320 # consuming and fragmenting process. To avoid this, we pick a random,
11321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11323 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'
11324 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'
11325 ;;
11326 irix5* | irix6*)
11327 case $cc_basename in
11328 CC*)
11329 # SGI C++
11330 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11331
11332 # Archives containing C++ object files must be created using
11333 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11334 # necessary to make sure instantiated templates are included
11335 # in the archive.
11336 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11337 ;;
11338 *)
11339 if test "$GXX" = yes; then
11340 if test "$with_gnu_ld" = no; then
11341 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11342 else
11343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11344 fi
11345 fi
11346 link_all_deplibs_CXX=yes
11347 ;;
11348 esac
11349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11350 hardcode_libdir_separator_CXX=:
11351 ;;
11352 linux*)
11353 case $cc_basename in
11354 KCC*)
11355 # Kuck and Associates, Inc. (KAI) C++ Compiler
11356
11357 # KCC will only create a shared library if the output file
11358 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11359 # to its proper name (with version) after linking.
11360 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'
11361 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'
11362 # Commands to make compiler produce verbose output that lists
11363 # what "hidden" libraries, object files and flags are used when
11364 # linking a shared library.
11365 #
11366 # There doesn't appear to be a way to prevent this compiler from
11367 # explicitly linking system object files so we need to strip them
11368 # from the output so that they don't get included in the library
11369 # dependencies.
11370 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; echo $list'
11371
11372 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11374
11375 # Archives containing C++ object files must be created using
11376 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11377 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11378 ;;
11379 icpc*)
11380 # Intel C++
11381 with_gnu_ld=yes
11382 # version 8.0 and above of icpc choke on multiply defined symbols
11383 # if we add $predep_objects and $postdep_objects, however 7.1 and
11384 # earlier do not add the objects themselves.
11385 case `$CC -V 2>&1` in
11386 *"Version 7."*)
11387 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11388 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'
11389 ;;
11390 *) # Version 8.0 or newer
11391 tmp_idyn=
11392 case $host_cpu in
11393 ia64*) tmp_idyn=' -i_dynamic';;
11394 esac
11395 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11396 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'
11397 ;;
11398 esac
11399 archive_cmds_need_lc_CXX=no
11400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11402 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11403 ;;
11404 pgCC*)
11405 # Portland Group C++ compiler
11406 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11407 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'
11408
11409 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11411 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11412 ;;
11413 cxx*)
11414 # Compaq C++
11415 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11416 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'
11417
11418 runpath_var=LD_RUN_PATH
11419 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11420 hardcode_libdir_separator_CXX=:
11421
11422 # Commands to make compiler produce verbose output that lists
11423 # what "hidden" libraries, object files and flags are used when
11424 # linking a shared library.
11425 #
11426 # There doesn't appear to be a way to prevent this compiler from
11427 # explicitly linking system object files so we need to strip them
11428 # from the output so that they don't get included in the library
11429 # dependencies.
11430 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11431 ;;
11432 esac
11433 ;;
11434 lynxos*)
11435 # FIXME: insert proper C++ library support
11436 ld_shlibs_CXX=no
11437 ;;
11438 m88k*)
11439 # FIXME: insert proper C++ library support
11440 ld_shlibs_CXX=no
11441 ;;
11442 mvs*)
11443 case $cc_basename in
11444 cxx*)
11445 # FIXME: insert proper C++ library support
11446 ld_shlibs_CXX=no
11447 ;;
11448 *)
11449 # FIXME: insert proper C++ library support
11450 ld_shlibs_CXX=no
11451 ;;
11452 esac
11453 ;;
11454 netbsd*)
11455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11456 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11457 wlarc=
11458 hardcode_libdir_flag_spec_CXX='-R$libdir'
11459 hardcode_direct_CXX=yes
11460 hardcode_shlibpath_var_CXX=no
11461 fi
11462 # Workaround some broken pre-1.5 toolchains
11463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11464 ;;
11465 openbsd2*)
11466 # C++ shared libraries are fairly broken
11467 ld_shlibs_CXX=no
11468 ;;
11469 openbsd*)
11470 hardcode_direct_CXX=yes
11471 hardcode_shlibpath_var_CXX=no
11472 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11475 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11476 export_dynamic_flag_spec_CXX='${wl}-E'
11477 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11478 fi
11479 output_verbose_link_cmd='echo'
11480 ;;
11481 osf3*)
11482 case $cc_basename in
11483 KCC*)
11484 # Kuck and Associates, Inc. (KAI) C++ Compiler
11485
11486 # KCC will only create a shared library if the output file
11487 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11488 # to its proper name (with version) after linking.
11489 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'
11490
11491 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11492 hardcode_libdir_separator_CXX=:
11493
11494 # Archives containing C++ object files must be created using
11495 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11496 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11497
11498 ;;
11499 RCC*)
11500 # Rational C++ 2.4.1
11501 # FIXME: insert proper C++ library support
11502 ld_shlibs_CXX=no
11503 ;;
11504 cxx*)
11505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11506 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11507
11508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11509 hardcode_libdir_separator_CXX=:
11510
11511 # Commands to make compiler produce verbose output that lists
11512 # what "hidden" libraries, object files and flags are used when
11513 # linking a shared library.
11514 #
11515 # There doesn't appear to be a way to prevent this compiler from
11516 # explicitly linking system object files so we need to strip them
11517 # from the output so that they don't get included in the library
11518 # dependencies.
11519 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11520 ;;
11521 *)
11522 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11523 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11524 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11525
11526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11527 hardcode_libdir_separator_CXX=:
11528
11529 # Commands to make compiler produce verbose output that lists
11530 # what "hidden" libraries, object files and flags are used when
11531 # linking a shared library.
11532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11533
11534 else
11535 # FIXME: insert proper C++ library support
11536 ld_shlibs_CXX=no
11537 fi
11538 ;;
11539 esac
11540 ;;
11541 osf4* | osf5*)
11542 case $cc_basename in
11543 KCC*)
11544 # Kuck and Associates, Inc. (KAI) C++ Compiler
11545
11546 # KCC will only create a shared library if the output file
11547 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11548 # to its proper name (with version) after linking.
11549 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'
11550
11551 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11552 hardcode_libdir_separator_CXX=:
11553
11554 # Archives containing C++ object files must be created using
11555 # the KAI C++ compiler.
11556 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11557 ;;
11558 RCC*)
11559 # Rational C++ 2.4.1
11560 # FIXME: insert proper C++ library support
11561 ld_shlibs_CXX=no
11562 ;;
11563 cxx*)
11564 allow_undefined_flag_CXX=' -expect_unresolved \*'
11565 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11566 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11567 echo "-hidden">> $lib.exp~
11568 $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~
11569 $rm $lib.exp'
11570
11571 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11572 hardcode_libdir_separator_CXX=:
11573
11574 # Commands to make compiler produce verbose output that lists
11575 # what "hidden" libraries, object files and flags are used when
11576 # linking a shared library.
11577 #
11578 # There doesn't appear to be a way to prevent this compiler from
11579 # explicitly linking system object files so we need to strip them
11580 # from the output so that they don't get included in the library
11581 # dependencies.
11582 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11583 ;;
11584 *)
11585 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11586 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11587 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11588
11589 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11590 hardcode_libdir_separator_CXX=:
11591
11592 # Commands to make compiler produce verbose output that lists
11593 # what "hidden" libraries, object files and flags are used when
11594 # linking a shared library.
11595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11596
11597 else
11598 # FIXME: insert proper C++ library support
11599 ld_shlibs_CXX=no
11600 fi
11601 ;;
11602 esac
11603 ;;
11604 psos*)
11605 # FIXME: insert proper C++ library support
11606 ld_shlibs_CXX=no
11607 ;;
11608 sunos4*)
11609 case $cc_basename in
11610 CC*)
11611 # Sun C++ 4.x
11612 # FIXME: insert proper C++ library support
11613 ld_shlibs_CXX=no
11614 ;;
11615 lcc*)
11616 # Lucid
11617 # FIXME: insert proper C++ library support
11618 ld_shlibs_CXX=no
11619 ;;
11620 *)
11621 # FIXME: insert proper C++ library support
11622 ld_shlibs_CXX=no
11623 ;;
11624 esac
11625 ;;
11626 solaris*)
11627 case $cc_basename in
11628 CC*)
11629 # Sun C++ 4.2, 5.x and Centerline C++
11630 archive_cmds_need_lc_CXX=yes
11631 no_undefined_flag_CXX=' -zdefs'
11632 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11633 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11634 $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'
11635
11636 hardcode_libdir_flag_spec_CXX='-R$libdir'
11637 hardcode_shlibpath_var_CXX=no
11638 case $host_os in
11639 solaris2.[0-5] | solaris2.[0-5].*) ;;
11640 *)
11641 # The C++ compiler is used as linker so we must use $wl
11642 # flag to pass the commands to the underlying system
11643 # linker. We must also pass each convience library through
11644 # to the system linker between allextract/defaultextract.
11645 # The C++ compiler will combine linker options so we
11646 # cannot just pass the convience library names through
11647 # without $wl.
11648 # Supported since Solaris 2.6 (maybe 2.5.1?)
11649 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11650 ;;
11651 esac
11652 link_all_deplibs_CXX=yes
11653
11654 output_verbose_link_cmd='echo'
11655
11656 # Archives containing C++ object files must be created using
11657 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11658 # necessary to make sure instantiated templates are included
11659 # in the archive.
11660 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11661 ;;
11662 gcx*)
11663 # Green Hills C++ Compiler
11664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11665
11666 # The C++ compiler must be used to create the archive.
11667 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11668 ;;
11669 *)
11670 # GNU C++ compiler with Solaris linker
11671 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11672 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11673 if $CC --version | grep -v '^2\.7' > /dev/null; then
11674 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11675 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11676 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11677
11678 # Commands to make compiler produce verbose output that lists
11679 # what "hidden" libraries, object files and flags are used when
11680 # linking a shared library.
11681 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11682 else
11683 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11684 # platform.
11685 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11686 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11687 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11688
11689 # Commands to make compiler produce verbose output that lists
11690 # what "hidden" libraries, object files and flags are used when
11691 # linking a shared library.
11692 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11693 fi
11694
11695 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11696 fi
11697 ;;
11698 esac
11699 ;;
11700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11701 no_undefined_flag_CXX='${wl}-z,text'
11702 archive_cmds_need_lc_CXX=no
11703 hardcode_shlibpath_var_CXX=no
11704 runpath_var='LD_RUN_PATH'
11705
11706 case $cc_basename in
11707 CC*)
11708 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11709 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11710 ;;
11711 *)
11712 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11713 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11714 ;;
11715 esac
11716 ;;
11717 sysv5* | sco3.2v5* | sco5v6*)
11718 # Note: We can NOT use -z defs as we might desire, because we do not
11719 # link with -lc, and that would cause any symbols used from libc to
11720 # always be unresolved, which means just about no library would
11721 # ever link correctly. If we're not using GNU ld we use -z text
11722 # though, which does catch some bad symbols but isn't as heavy-handed
11723 # as -z defs.
11724 # For security reasons, it is highly recommended that you always
11725 # use absolute paths for naming shared libraries, and exclude the
11726 # DT_RUNPATH tag from executables and libraries. But doing so
11727 # requires that you compile everything twice, which is a pain.
11728 # So that behaviour is only enabled if SCOABSPATH is set to a
11729 # non-empty value in the environment. Most likely only useful for
11730 # creating official distributions of packages.
11731 # This is a hack until libtool officially supports absolute path
11732 # names for shared libraries.
11733 no_undefined_flag_CXX='${wl}-z,text'
11734 allow_undefined_flag_CXX='${wl}-z,nodefs'
11735 archive_cmds_need_lc_CXX=no
11736 hardcode_shlibpath_var_CXX=no
11737 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11738 hardcode_libdir_separator_CXX=':'
11739 link_all_deplibs_CXX=yes
11740 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11741 runpath_var='LD_RUN_PATH'
11742
11743 case $cc_basename in
11744 CC*)
11745 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11747 ;;
11748 *)
11749 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11750 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11751 ;;
11752 esac
11753 ;;
11754 tandem*)
11755 case $cc_basename in
11756 NCC*)
11757 # NonStop-UX NCC 3.20
11758 # FIXME: insert proper C++ library support
11759 ld_shlibs_CXX=no
11760 ;;
11761 *)
11762 # FIXME: insert proper C++ library support
11763 ld_shlibs_CXX=no
11764 ;;
11765 esac
11766 ;;
11767 vxworks*)
11768 # FIXME: insert proper C++ library support
11769 ld_shlibs_CXX=no
11770 ;;
11771 *)
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11774 ;;
11775 esac
11776 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11777 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11778 test "$ld_shlibs_CXX" = no && can_build_shared=no
11779
11780 GCC_CXX="$GXX"
11781 LD_CXX="$LD"
11782
11783
11784 cat > conftest.$ac_ext <<EOF
11785 class Foo
11786 {
11787 public:
11788 Foo (void) { a = 0; }
11789 private:
11790 int a;
11791 };
11792 EOF
11793
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; then
11799 # Parse the compiler output and extract the necessary
11800 # objects, libraries and library flags.
11801
11802 # Sentinel used to keep track of whether or not we are before
11803 # the conftest object file.
11804 pre_test_object_deps_done=no
11805
11806 # The `*' in the case matches for architectures that use `case' in
11807 # $output_verbose_cmd can trigger glob expansion during the loop
11808 # eval without this substitution.
11809 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11810
11811 for p in `eval $output_verbose_link_cmd`; do
11812 case $p in
11813
11814 -L* | -R* | -l*)
11815 # Some compilers place space between "-{L,R}" and the path.
11816 # Remove the space.
11817 if test $p = "-L" \
11818 || test $p = "-R"; then
11819 prev=$p
11820 continue
11821 else
11822 prev=
11823 fi
11824
11825 if test "$pre_test_object_deps_done" = no; then
11826 case $p in
11827 -L* | -R*)
11828 # Internal compiler library paths should come after those
11829 # provided the user. The postdeps already come after the
11830 # user supplied libs so there is no need to process them.
11831 if test -z "$compiler_lib_search_path_CXX"; then
11832 compiler_lib_search_path_CXX="${prev}${p}"
11833 else
11834 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11835 fi
11836 ;;
11837 # The "-l" case would never come before the object being
11838 # linked, so don't bother handling this case.
11839 esac
11840 else
11841 if test -z "$postdeps_CXX"; then
11842 postdeps_CXX="${prev}${p}"
11843 else
11844 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11845 fi
11846 fi
11847 ;;
11848
11849 *.$objext)
11850 # This assumes that the test object file only shows up
11851 # once in the compiler output.
11852 if test "$p" = "conftest.$objext"; then
11853 pre_test_object_deps_done=yes
11854 continue
11855 fi
11856
11857 if test "$pre_test_object_deps_done" = no; then
11858 if test -z "$predep_objects_CXX"; then
11859 predep_objects_CXX="$p"
11860 else
11861 predep_objects_CXX="$predep_objects_CXX $p"
11862 fi
11863 else
11864 if test -z "$postdep_objects_CXX"; then
11865 postdep_objects_CXX="$p"
11866 else
11867 postdep_objects_CXX="$postdep_objects_CXX $p"
11868 fi
11869 fi
11870 ;;
11871
11872 *) ;; # Ignore the rest.
11873
11874 esac
11875 done
11876
11877 # Clean up.
11878 rm -f a.out a.exe
11879 else
11880 echo "libtool.m4: error: problem compiling CXX test program"
11881 fi
11882
11883 $rm -f confest.$objext
11884
11885 # PORTME: override above test on systems where it is broken
11886 case $host_os in
11887 interix3*)
11888 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11889 # hack all around it, let's just trust "g++" to DTRT.
11890 predep_objects_CXX=
11891 postdep_objects_CXX=
11892 postdeps_CXX=
11893 ;;
11894
11895 solaris*)
11896 case $cc_basename in
11897 CC*)
11898 # Adding this requires a known-good setup of shared libraries for
11899 # Sun compiler versions before 5.6, else PIC objects from an old
11900 # archive will be linked into the output, leading to subtle bugs.
11901 postdeps_CXX='-lCstd -lCrun'
11902 ;;
11903 esac
11904 ;;
11905 esac
11906
11907
11908 case " $postdeps_CXX " in
11909 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11910 esac
11911
11912 lt_prog_compiler_wl_CXX=
11913 lt_prog_compiler_pic_CXX=
11914 lt_prog_compiler_static_CXX=
11915
11916 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11917 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11918
11919 # C++ specific cases for pic, static, wl, etc.
11920 if test "$GXX" = yes; then
11921 lt_prog_compiler_wl_CXX='-Wl,'
11922 lt_prog_compiler_static_CXX='-static'
11923
11924 case $host_os in
11925 aix*)
11926 # All AIX code is PIC.
11927 if test "$host_cpu" = ia64; then
11928 # AIX 5 now supports IA64 processor
11929 lt_prog_compiler_static_CXX='-Bstatic'
11930 fi
11931 ;;
11932 amigaos*)
11933 # FIXME: we need at least 68020 code to build shared libraries, but
11934 # adding the `-m68020' flag to GCC prevents building anything better,
11935 # like `-m68040'.
11936 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11937 ;;
11938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11939 # PIC is the default for these OSes.
11940 ;;
11941 mingw* | os2* | pw32*)
11942 # This hack is so that the source file can tell whether it is being
11943 # built for inclusion in a dll (and should export symbols for example).
11944 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11945 ;;
11946 darwin* | rhapsody*)
11947 # PIC is the default on this platform
11948 # Common symbols not allowed in MH_DYLIB files
11949 lt_prog_compiler_pic_CXX='-fno-common'
11950 ;;
11951 *djgpp*)
11952 # DJGPP does not support shared libraries at all
11953 lt_prog_compiler_pic_CXX=
11954 ;;
11955 interix3*)
11956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11957 # Instead, we relocate shared libraries at runtime.
11958 ;;
11959 sysv4*MP*)
11960 if test -d /usr/nec; then
11961 lt_prog_compiler_pic_CXX=-Kconform_pic
11962 fi
11963 ;;
11964 hpux*)
11965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11966 # not for PA HP-UX.
11967 case $host_cpu in
11968 hppa*64*|ia64*)
11969 ;;
11970 *)
11971 lt_prog_compiler_pic_CXX='-fPIC'
11972 ;;
11973 esac
11974 ;;
11975 *)
11976 lt_prog_compiler_pic_CXX='-fPIC'
11977 ;;
11978 esac
11979 else
11980 case $host_os in
11981 aix4* | aix5*)
11982 # All AIX code is PIC.
11983 if test "$host_cpu" = ia64; then
11984 # AIX 5 now supports IA64 processor
11985 lt_prog_compiler_static_CXX='-Bstatic'
11986 else
11987 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11988 fi
11989 ;;
11990 chorus*)
11991 case $cc_basename in
11992 cxch68*)
11993 # Green Hills C++ Compiler
11994 # _LT_AC_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"
11995 ;;
11996 esac
11997 ;;
11998 darwin*)
11999 # PIC is the default on this platform
12000 # Common symbols not allowed in MH_DYLIB files
12001 case $cc_basename in
12002 xlc*)
12003 lt_prog_compiler_pic_CXX='-qnocommon'
12004 lt_prog_compiler_wl_CXX='-Wl,'
12005 ;;
12006 esac
12007 ;;
12008 dgux*)
12009 case $cc_basename in
12010 ec++*)
12011 lt_prog_compiler_pic_CXX='-KPIC'
12012 ;;
12013 ghcx*)
12014 # Green Hills C++ Compiler
12015 lt_prog_compiler_pic_CXX='-pic'
12016 ;;
12017 *)
12018 ;;
12019 esac
12020 ;;
12021 freebsd* | kfreebsd*-gnu | dragonfly*)
12022 # FreeBSD uses GNU C++
12023 ;;
12024 hpux9* | hpux10* | hpux11*)
12025 case $cc_basename in
12026 CC*)
12027 lt_prog_compiler_wl_CXX='-Wl,'
12028 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12029 if test "$host_cpu" != ia64; then
12030 lt_prog_compiler_pic_CXX='+Z'
12031 fi
12032 ;;
12033 aCC*)
12034 lt_prog_compiler_wl_CXX='-Wl,'
12035 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12036 case $host_cpu in
12037 hppa*64*|ia64*)
12038 # +Z the default
12039 ;;
12040 *)
12041 lt_prog_compiler_pic_CXX='+Z'
12042 ;;
12043 esac
12044 ;;
12045 *)
12046 ;;
12047 esac
12048 ;;
12049 interix*)
12050 # This is c89, which is MS Visual C++ (no shared libs)
12051 # Anyone wants to do a port?
12052 ;;
12053 irix5* | irix6* | nonstopux*)
12054 case $cc_basename in
12055 CC*)
12056 lt_prog_compiler_wl_CXX='-Wl,'
12057 lt_prog_compiler_static_CXX='-non_shared'
12058 # CC pic flag -KPIC is the default.
12059 ;;
12060 *)
12061 ;;
12062 esac
12063 ;;
12064 linux*)
12065 case $cc_basename in
12066 KCC*)
12067 # KAI C++ Compiler
12068 lt_prog_compiler_wl_CXX='--backend -Wl,'
12069 lt_prog_compiler_pic_CXX='-fPIC'
12070 ;;
12071 icpc* | ecpc*)
12072 # Intel C++
12073 lt_prog_compiler_wl_CXX='-Wl,'
12074 lt_prog_compiler_pic_CXX='-KPIC'
12075 lt_prog_compiler_static_CXX='-static'
12076 ;;
12077 pgCC*)
12078 # Portland Group C++ compiler.
12079 lt_prog_compiler_wl_CXX='-Wl,'
12080 lt_prog_compiler_pic_CXX='-fpic'
12081 lt_prog_compiler_static_CXX='-Bstatic'
12082 ;;
12083 cxx*)
12084 # Compaq C++
12085 # Make sure the PIC flag is empty. It appears that all Alpha
12086 # Linux and Compaq Tru64 Unix objects are PIC.
12087 lt_prog_compiler_pic_CXX=
12088 lt_prog_compiler_static_CXX='-non_shared'
12089 ;;
12090 *)
12091 ;;
12092 esac
12093 ;;
12094 lynxos*)
12095 ;;
12096 m88k*)
12097 ;;
12098 mvs*)
12099 case $cc_basename in
12100 cxx*)
12101 lt_prog_compiler_pic_CXX='-W c,exportall'
12102 ;;
12103 *)
12104 ;;
12105 esac
12106 ;;
12107 netbsd*)
12108 ;;
12109 osf3* | osf4* | osf5*)
12110 case $cc_basename in
12111 KCC*)
12112 lt_prog_compiler_wl_CXX='--backend -Wl,'
12113 ;;
12114 RCC*)
12115 # Rational C++ 2.4.1
12116 lt_prog_compiler_pic_CXX='-pic'
12117 ;;
12118 cxx*)
12119 # Digital/Compaq C++
12120 lt_prog_compiler_wl_CXX='-Wl,'
12121 # Make sure the PIC flag is empty. It appears that all Alpha
12122 # Linux and Compaq Tru64 Unix objects are PIC.
12123 lt_prog_compiler_pic_CXX=
12124 lt_prog_compiler_static_CXX='-non_shared'
12125 ;;
12126 *)
12127 ;;
12128 esac
12129 ;;
12130 psos*)
12131 ;;
12132 solaris*)
12133 case $cc_basename in
12134 CC*)
12135 # Sun C++ 4.2, 5.x and Centerline C++
12136 lt_prog_compiler_pic_CXX='-KPIC'
12137 lt_prog_compiler_static_CXX='-Bstatic'
12138 lt_prog_compiler_wl_CXX='-Qoption ld '
12139 ;;
12140 gcx*)
12141 # Green Hills C++ Compiler
12142 lt_prog_compiler_pic_CXX='-PIC'
12143 ;;
12144 *)
12145 ;;
12146 esac
12147 ;;
12148 sunos4*)
12149 case $cc_basename in
12150 CC*)
12151 # Sun C++ 4.x
12152 lt_prog_compiler_pic_CXX='-pic'
12153 lt_prog_compiler_static_CXX='-Bstatic'
12154 ;;
12155 lcc*)
12156 # Lucid
12157 lt_prog_compiler_pic_CXX='-pic'
12158 ;;
12159 *)
12160 ;;
12161 esac
12162 ;;
12163 tandem*)
12164 case $cc_basename in
12165 NCC*)
12166 # NonStop-UX NCC 3.20
12167 lt_prog_compiler_pic_CXX='-KPIC'
12168 ;;
12169 *)
12170 ;;
12171 esac
12172 ;;
12173 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12174 case $cc_basename in
12175 CC*)
12176 lt_prog_compiler_wl_CXX='-Wl,'
12177 lt_prog_compiler_pic_CXX='-KPIC'
12178 lt_prog_compiler_static_CXX='-Bstatic'
12179 ;;
12180 esac
12181 ;;
12182 vxworks*)
12183 ;;
12184 *)
12185 lt_prog_compiler_can_build_shared_CXX=no
12186 ;;
12187 esac
12188 fi
12189
12190 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12191 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12192
12193 #
12194 # Check to make sure the PIC flag actually works.
12195 #
12196 if test -n "$lt_prog_compiler_pic_CXX"; then
12197
12198 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12200 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 else
12203 lt_prog_compiler_pic_works_CXX=no
12204 ac_outfile=conftest.$ac_objext
12205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12206 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12207 # Insert the option either (1) after the last *FLAGS variable, or
12208 # (2) before a word containing "conftest.", or (3) at the end.
12209 # Note that $ac_compile itself does not contain backslashes and begins
12210 # with a dollar sign (not a hyphen), so the echo should work correctly.
12211 # The option is referenced via a variable to avoid confusing sed.
12212 lt_compile=`echo "$ac_compile" | $SED \
12213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12215 -e 's:$: $lt_compiler_flag:'`
12216 (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
12217 (eval "$lt_compile" 2>conftest.err)
12218 ac_status=$?
12219 cat conftest.err >&5
12220 echo "$as_me:12220: \$? = $ac_status" >&5
12221 if (exit $ac_status) && test -s "$ac_outfile"; then
12222 # The compiler can only warn and ignore the option if not recognized
12223 # So say no if there are warnings other than the usual output.
12224 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12227 lt_prog_compiler_pic_works_CXX=yes
12228 fi
12229 fi
12230 $rm conftest*
12231
12232 fi
12233 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12234 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12235
12236 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12237 case $lt_prog_compiler_pic_CXX in
12238 "" | " "*) ;;
12239 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12240 esac
12241 else
12242 lt_prog_compiler_pic_CXX=
12243 lt_prog_compiler_can_build_shared_CXX=no
12244 fi
12245
12246 fi
12247 case $host_os in
12248 # For platforms which do not support PIC, -DPIC is meaningless:
12249 *djgpp*)
12250 lt_prog_compiler_pic_CXX=
12251 ;;
12252 *)
12253 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12254 ;;
12255 esac
12256
12257 #
12258 # Check to make sure the static flag actually works.
12259 #
12260 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12261 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12263 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 lt_prog_compiler_static_works_CXX=no
12267 save_LDFLAGS="$LDFLAGS"
12268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12269 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12271 # The linker can only warn and ignore the option if not recognized
12272 # So say no if there are warnings
12273 if test -s conftest.err; then
12274 # Append any errors to the config.log.
12275 cat conftest.err 1>&5
12276 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12278 if diff conftest.exp conftest.er2 >/dev/null; then
12279 lt_prog_compiler_static_works_CXX=yes
12280 fi
12281 else
12282 lt_prog_compiler_static_works_CXX=yes
12283 fi
12284 fi
12285 $rm conftest*
12286 LDFLAGS="$save_LDFLAGS"
12287
12288 fi
12289 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12290 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12291
12292 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12293 :
12294 else
12295 lt_prog_compiler_static_CXX=
12296 fi
12297
12298
12299 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12301 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304 lt_cv_prog_compiler_c_o_CXX=no
12305 $rm -r conftest 2>/dev/null
12306 mkdir conftest
12307 cd conftest
12308 mkdir out
12309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12310
12311 lt_compiler_flag="-o out/conftest2.$ac_objext"
12312 # Insert the option either (1) after the last *FLAGS variable, or
12313 # (2) before a word containing "conftest.", or (3) at the end.
12314 # Note that $ac_compile itself does not contain backslashes and begins
12315 # with a dollar sign (not a hyphen), so the echo should work correctly.
12316 lt_compile=`echo "$ac_compile" | $SED \
12317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12319 -e 's:$: $lt_compiler_flag:'`
12320 (eval echo "\"\$as_me:12320: $lt_compile\"" >&5)
12321 (eval "$lt_compile" 2>out/conftest.err)
12322 ac_status=$?
12323 cat out/conftest.err >&5
12324 echo "$as_me:12324: \$? = $ac_status" >&5
12325 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12326 then
12327 # The compiler can only warn and ignore the option if not recognized
12328 # So say no if there are warnings
12329 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12332 lt_cv_prog_compiler_c_o_CXX=yes
12333 fi
12334 fi
12335 chmod u+w . 2>&5
12336 $rm conftest*
12337 # SGI C++ compiler will create directory out/ii_files/ for
12338 # template instantiation
12339 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12340 $rm out/* && rmdir out
12341 cd ..
12342 rmdir conftest
12343 $rm conftest*
12344
12345 fi
12346 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12348
12349
12350 hard_links="nottested"
12351 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12352 # do not overwrite the value of need_locks provided by the user
12353 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12355 hard_links=yes
12356 $rm conftest*
12357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12358 touch conftest.a
12359 ln conftest.a conftest.b 2>&5 || hard_links=no
12360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12361 { echo "$as_me:$LINENO: result: $hard_links" >&5
12362 echo "${ECHO_T}$hard_links" >&6; }
12363 if test "$hard_links" = no; then
12364 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12366 need_locks=warn
12367 fi
12368 else
12369 need_locks=no
12370 fi
12371
12372 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12374
12375 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12376 case $host_os in
12377 aix4* | aix5*)
12378 # If we're using GNU nm, then we don't want the "-C" option.
12379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12380 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12381 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12382 else
12383 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'
12384 fi
12385 ;;
12386 pw32*)
12387 export_symbols_cmds_CXX="$ltdll_cmds"
12388 ;;
12389 cygwin* | mingw*)
12390 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12391 ;;
12392 *)
12393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12394 ;;
12395 esac
12396
12397 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12398 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12399 test "$ld_shlibs_CXX" = no && can_build_shared=no
12400
12401 #
12402 # Do we need to explicitly link libc?
12403 #
12404 case "x$archive_cmds_need_lc_CXX" in
12405 x|xyes)
12406 # Assume -lc should be added
12407 archive_cmds_need_lc_CXX=yes
12408
12409 if test "$enable_shared" = yes && test "$GCC" = yes; then
12410 case $archive_cmds_CXX in
12411 *'~'*)
12412 # FIXME: we may have to deal with multi-command sequences.
12413 ;;
12414 '$CC '*)
12415 # Test whether the compiler implicitly links with -lc since on some
12416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12417 # to ld, don't add -lc before -lgcc.
12418 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12419 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12420 $rm conftest*
12421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12422
12423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424 (eval $ac_compile) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } 2>conftest.err; then
12428 soname=conftest
12429 lib=conftest
12430 libobjs=conftest.$ac_objext
12431 deplibs=
12432 wl=$lt_prog_compiler_wl_CXX
12433 pic_flag=$lt_prog_compiler_pic_CXX
12434 compiler_flags=-v
12435 linker_flags=-v
12436 verstring=
12437 output_objdir=.
12438 libname=conftest
12439 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12440 allow_undefined_flag_CXX=
12441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12442 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }
12446 then
12447 archive_cmds_need_lc_CXX=no
12448 else
12449 archive_cmds_need_lc_CXX=yes
12450 fi
12451 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12452 else
12453 cat conftest.err 1>&5
12454 fi
12455 $rm conftest*
12456 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12457 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12458 ;;
12459 esac
12460 fi
12461 ;;
12462 esac
12463
12464 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12465 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12466 library_names_spec=
12467 libname_spec='lib$name'
12468 soname_spec=
12469 shrext_cmds=".so"
12470 postinstall_cmds=
12471 postuninstall_cmds=
12472 finish_cmds=
12473 finish_eval=
12474 shlibpath_var=
12475 shlibpath_overrides_runpath=unknown
12476 version_type=none
12477 dynamic_linker="$host_os ld.so"
12478 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12479 if test "$GCC" = yes; then
12480 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12481 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12482 # if the path contains ";" then we assume it to be the separator
12483 # otherwise default to the standard path separator (i.e. ":") - it is
12484 # assumed that no part of a normal pathname contains ";" but that should
12485 # okay in the real world where ";" in dirpaths is itself problematic.
12486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12487 else
12488 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12489 fi
12490 else
12491 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12492 fi
12493 need_lib_prefix=unknown
12494 hardcode_into_libs=no
12495
12496 # when you set need_version to no, make sure it does not cause -set_version
12497 # flags to be left without arguments
12498 need_version=unknown
12499
12500 case $host_os in
12501 aix3*)
12502 version_type=linux
12503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12504 shlibpath_var=LIBPATH
12505
12506 # AIX 3 has no versioning support, so we append a major version to the name.
12507 soname_spec='${libname}${release}${shared_ext}$major'
12508 ;;
12509
12510 aix4* | aix5*)
12511 version_type=linux
12512 need_lib_prefix=no
12513 need_version=no
12514 hardcode_into_libs=yes
12515 if test "$host_cpu" = ia64; then
12516 # AIX 5 supports IA64
12517 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12518 shlibpath_var=LD_LIBRARY_PATH
12519 else
12520 # With GCC up to 2.95.x, collect2 would create an import file
12521 # for dependence libraries. The import file would start with
12522 # the line `#! .'. This would cause the generated library to
12523 # depend on `.', always an invalid library. This was fixed in
12524 # development snapshots of GCC prior to 3.0.
12525 case $host_os in
12526 aix4 | aix4.[01] | aix4.[01].*)
12527 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12528 echo ' yes '
12529 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12530 :
12531 else
12532 can_build_shared=no
12533 fi
12534 ;;
12535 esac
12536 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12537 # soname into executable. Probably we can add versioning support to
12538 # collect2, so additional links can be useful in future.
12539 if test "$aix_use_runtimelinking" = yes; then
12540 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12541 # instead of lib<name>.a to let people know that these are not
12542 # typical AIX shared libraries.
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544 else
12545 # We preserve .a as extension for shared libraries through AIX4.2
12546 # and later when we are not doing run time linking.
12547 library_names_spec='${libname}${release}.a $libname.a'
12548 soname_spec='${libname}${release}${shared_ext}$major'
12549 fi
12550 shlibpath_var=LIBPATH
12551 fi
12552 ;;
12553
12554 amigaos*)
12555 library_names_spec='$libname.ixlibrary $libname.a'
12556 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12557 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12558 ;;
12559
12560 beos*)
12561 library_names_spec='${libname}${shared_ext}'
12562 dynamic_linker="$host_os ld.so"
12563 shlibpath_var=LIBRARY_PATH
12564 ;;
12565
12566 bsdi[45]*)
12567 version_type=linux
12568 need_version=no
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 soname_spec='${libname}${release}${shared_ext}$major'
12571 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12572 shlibpath_var=LD_LIBRARY_PATH
12573 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12574 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12575 # the default ld.so.conf also contains /usr/contrib/lib and
12576 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12577 # libtool to hard-code these into programs
12578 ;;
12579
12580 cygwin* | mingw* | pw32*)
12581 version_type=windows
12582 shrext_cmds=".dll"
12583 need_version=no
12584 need_lib_prefix=no
12585
12586 case $GCC,$host_os in
12587 yes,cygwin* | yes,mingw* | yes,pw32*)
12588 library_names_spec='$libname.dll.a'
12589 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12590 postinstall_cmds='base_file=`basename \${file}`~
12591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12592 dldir=$destdir/`dirname \$dlpath`~
12593 test -d \$dldir || mkdir -p \$dldir~
12594 $install_prog $dir/$dlname \$dldir/$dlname~
12595 chmod a+x \$dldir/$dlname'
12596 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12597 dlpath=$dir/\$dldll~
12598 $rm \$dlpath'
12599 shlibpath_overrides_runpath=yes
12600
12601 case $host_os in
12602 cygwin*)
12603 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12604 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12605 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12606 ;;
12607 mingw*)
12608 # MinGW DLLs use traditional 'lib' prefix
12609 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12610 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12611 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12612 # It is most probably a Windows format PATH printed by
12613 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12614 # path with ; separators, and with drive letters. We can handle the
12615 # drive letters (cygwin fileutils understands them), so leave them,
12616 # especially as we might pass files found there to a mingw objdump,
12617 # which wouldn't understand a cygwinified path. Ahh.
12618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12619 else
12620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12621 fi
12622 ;;
12623 pw32*)
12624 # pw32 DLLs use 'pw' prefix rather than 'lib'
12625 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12626 ;;
12627 esac
12628 ;;
12629
12630 *)
12631 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12632 ;;
12633 esac
12634 dynamic_linker='Win32 ld.exe'
12635 # FIXME: first we should search . and the directory the executable is in
12636 shlibpath_var=PATH
12637 ;;
12638
12639 darwin* | rhapsody*)
12640 dynamic_linker="$host_os dyld"
12641 version_type=darwin
12642 need_lib_prefix=no
12643 need_version=no
12644 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12645 soname_spec='${libname}${release}${major}$shared_ext'
12646 shlibpath_overrides_runpath=yes
12647 shlibpath_var=DYLD_LIBRARY_PATH
12648 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12649 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12650 if test "$GCC" = yes; then
12651 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12652 else
12653 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12654 fi
12655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12656 ;;
12657
12658 dgux*)
12659 version_type=linux
12660 need_lib_prefix=no
12661 need_version=no
12662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12663 soname_spec='${libname}${release}${shared_ext}$major'
12664 shlibpath_var=LD_LIBRARY_PATH
12665 ;;
12666
12667 freebsd1*)
12668 dynamic_linker=no
12669 ;;
12670
12671 kfreebsd*-gnu)
12672 version_type=linux
12673 need_lib_prefix=no
12674 need_version=no
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12676 soname_spec='${libname}${release}${shared_ext}$major'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=no
12679 hardcode_into_libs=yes
12680 dynamic_linker='GNU ld.so'
12681 ;;
12682
12683 freebsd* | dragonfly*)
12684 # DragonFly does not have aout. When/if they implement a new
12685 # versioning mechanism, adjust this.
12686 if test -x /usr/bin/objformat; then
12687 objformat=`/usr/bin/objformat`
12688 else
12689 case $host_os in
12690 freebsd[123]*) objformat=aout ;;
12691 *) objformat=elf ;;
12692 esac
12693 fi
12694 version_type=freebsd-$objformat
12695 case $version_type in
12696 freebsd-elf*)
12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12698 need_version=no
12699 need_lib_prefix=no
12700 ;;
12701 freebsd-*)
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12703 need_version=yes
12704 ;;
12705 esac
12706 shlibpath_var=LD_LIBRARY_PATH
12707 case $host_os in
12708 freebsd2*)
12709 shlibpath_overrides_runpath=yes
12710 ;;
12711 freebsd3.[01]* | freebsdelf3.[01]*)
12712 shlibpath_overrides_runpath=yes
12713 hardcode_into_libs=yes
12714 ;;
12715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12717 shlibpath_overrides_runpath=no
12718 hardcode_into_libs=yes
12719 ;;
12720 freebsd*) # from 4.6 on
12721 shlibpath_overrides_runpath=yes
12722 hardcode_into_libs=yes
12723 ;;
12724 esac
12725 ;;
12726
12727 gnu*)
12728 version_type=linux
12729 need_lib_prefix=no
12730 need_version=no
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 shlibpath_var=LD_LIBRARY_PATH
12734 hardcode_into_libs=yes
12735 ;;
12736
12737 hpux9* | hpux10* | hpux11*)
12738 # Give a soname corresponding to the major version so that dld.sl refuses to
12739 # link against other versions.
12740 version_type=sunos
12741 need_lib_prefix=no
12742 need_version=no
12743 case $host_cpu in
12744 ia64*)
12745 shrext_cmds='.so'
12746 hardcode_into_libs=yes
12747 dynamic_linker="$host_os dld.so"
12748 shlibpath_var=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12751 soname_spec='${libname}${release}${shared_ext}$major'
12752 if test "X$HPUX_IA64_MODE" = X32; then
12753 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12754 else
12755 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12756 fi
12757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12758 ;;
12759 hppa*64*)
12760 shrext_cmds='.sl'
12761 hardcode_into_libs=yes
12762 dynamic_linker="$host_os dld.sl"
12763 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12766 soname_spec='${libname}${release}${shared_ext}$major'
12767 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12769 ;;
12770 *)
12771 shrext_cmds='.sl'
12772 dynamic_linker="$host_os dld.sl"
12773 shlibpath_var=SHLIB_PATH
12774 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776 soname_spec='${libname}${release}${shared_ext}$major'
12777 ;;
12778 esac
12779 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12780 postinstall_cmds='chmod 555 $lib'
12781 ;;
12782
12783 interix3*)
12784 version_type=linux
12785 need_lib_prefix=no
12786 need_version=no
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12788 soname_spec='${libname}${release}${shared_ext}$major'
12789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 shlibpath_overrides_runpath=no
12792 hardcode_into_libs=yes
12793 ;;
12794
12795 irix5* | irix6* | nonstopux*)
12796 case $host_os in
12797 nonstopux*) version_type=nonstopux ;;
12798 *)
12799 if test "$lt_cv_prog_gnu_ld" = yes; then
12800 version_type=linux
12801 else
12802 version_type=irix
12803 fi ;;
12804 esac
12805 need_lib_prefix=no
12806 need_version=no
12807 soname_spec='${libname}${release}${shared_ext}$major'
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12809 case $host_os in
12810 irix5* | nonstopux*)
12811 libsuff= shlibsuff=
12812 ;;
12813 *)
12814 case $LD in # libtool.m4 will add one of these switches to LD
12815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12816 libsuff= shlibsuff= libmagic=32-bit;;
12817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12818 libsuff=32 shlibsuff=N32 libmagic=N32;;
12819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12821 *) libsuff= shlibsuff= libmagic=never-match;;
12822 esac
12823 ;;
12824 esac
12825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12826 shlibpath_overrides_runpath=no
12827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12829 hardcode_into_libs=yes
12830 ;;
12831
12832 # No shared lib support for Linux oldld, aout, or coff.
12833 linux*oldld* | linux*aout* | linux*coff*)
12834 dynamic_linker=no
12835 ;;
12836
12837 # This must be Linux ELF.
12838 linux*)
12839 version_type=linux
12840 need_lib_prefix=no
12841 need_version=no
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 shlibpath_overrides_runpath=no
12847 # This implies no fast_install, which is unacceptable.
12848 # Some rework will be needed to allow for fast_install
12849 # before this can be enabled.
12850 hardcode_into_libs=yes
12851
12852 # Append ld.so.conf contents to the search path
12853 if test -f /etc/ld.so.conf; then
12854 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12855 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12856 fi
12857
12858 # We used to test for /lib/ld.so.1 and disable shared libraries on
12859 # powerpc, because MkLinux only supported shared libraries with the
12860 # GNU dynamic linker. Since this was broken with cross compilers,
12861 # most powerpc-linux boxes support dynamic linking these days and
12862 # people can always --disable-shared, the test was removed, and we
12863 # assume the GNU/Linux dynamic linker is in use.
12864 dynamic_linker='GNU/Linux ld.so'
12865 ;;
12866
12867 knetbsd*-gnu)
12868 version_type=linux
12869 need_lib_prefix=no
12870 need_version=no
12871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12872 soname_spec='${libname}${release}${shared_ext}$major'
12873 shlibpath_var=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath=no
12875 hardcode_into_libs=yes
12876 dynamic_linker='GNU ld.so'
12877 ;;
12878
12879 netbsd*)
12880 version_type=sunos
12881 need_lib_prefix=no
12882 need_version=no
12883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12886 dynamic_linker='NetBSD (a.out) ld.so'
12887 else
12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12889 soname_spec='${libname}${release}${shared_ext}$major'
12890 dynamic_linker='NetBSD ld.elf_so'
12891 fi
12892 shlibpath_var=LD_LIBRARY_PATH
12893 shlibpath_overrides_runpath=yes
12894 hardcode_into_libs=yes
12895 ;;
12896
12897 newsos6)
12898 version_type=linux
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=yes
12902 ;;
12903
12904 nto-qnx*)
12905 version_type=linux
12906 need_lib_prefix=no
12907 need_version=no
12908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12909 soname_spec='${libname}${release}${shared_ext}$major'
12910 shlibpath_var=LD_LIBRARY_PATH
12911 shlibpath_overrides_runpath=yes
12912 ;;
12913
12914 openbsd*)
12915 version_type=sunos
12916 sys_lib_dlsearch_path_spec="/usr/lib"
12917 need_lib_prefix=no
12918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12919 case $host_os in
12920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12921 *) need_version=no ;;
12922 esac
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12927 case $host_os in
12928 openbsd2.[89] | openbsd2.[89].*)
12929 shlibpath_overrides_runpath=no
12930 ;;
12931 *)
12932 shlibpath_overrides_runpath=yes
12933 ;;
12934 esac
12935 else
12936 shlibpath_overrides_runpath=yes
12937 fi
12938 ;;
12939
12940 os2*)
12941 libname_spec='$name'
12942 shrext_cmds=".dll"
12943 need_lib_prefix=no
12944 library_names_spec='$libname${shared_ext} $libname.a'
12945 dynamic_linker='OS/2 ld.exe'
12946 shlibpath_var=LIBPATH
12947 ;;
12948
12949 osf3* | osf4* | osf5*)
12950 version_type=osf
12951 need_lib_prefix=no
12952 need_version=no
12953 soname_spec='${libname}${release}${shared_ext}$major'
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 shlibpath_var=LD_LIBRARY_PATH
12956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12958 ;;
12959
12960 solaris*)
12961 version_type=linux
12962 need_lib_prefix=no
12963 need_version=no
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 shlibpath_overrides_runpath=yes
12968 hardcode_into_libs=yes
12969 # ldd complains unless libraries are executable
12970 postinstall_cmds='chmod +x $lib'
12971 ;;
12972
12973 sunos4*)
12974 version_type=sunos
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12976 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=yes
12979 if test "$with_gnu_ld" = yes; then
12980 need_lib_prefix=no
12981 fi
12982 need_version=yes
12983 ;;
12984
12985 sysv4 | sysv4.3*)
12986 version_type=linux
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988 soname_spec='${libname}${release}${shared_ext}$major'
12989 shlibpath_var=LD_LIBRARY_PATH
12990 case $host_vendor in
12991 sni)
12992 shlibpath_overrides_runpath=no
12993 need_lib_prefix=no
12994 export_dynamic_flag_spec='${wl}-Blargedynsym'
12995 runpath_var=LD_RUN_PATH
12996 ;;
12997 siemens)
12998 need_lib_prefix=no
12999 ;;
13000 motorola)
13001 need_lib_prefix=no
13002 need_version=no
13003 shlibpath_overrides_runpath=no
13004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13005 ;;
13006 esac
13007 ;;
13008
13009 sysv4*MP*)
13010 if test -d /usr/nec ;then
13011 version_type=linux
13012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13013 soname_spec='$libname${shared_ext}.$major'
13014 shlibpath_var=LD_LIBRARY_PATH
13015 fi
13016 ;;
13017
13018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13019 version_type=freebsd-elf
13020 need_lib_prefix=no
13021 need_version=no
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13023 soname_spec='${libname}${release}${shared_ext}$major'
13024 shlibpath_var=LD_LIBRARY_PATH
13025 hardcode_into_libs=yes
13026 if test "$with_gnu_ld" = yes; then
13027 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13028 shlibpath_overrides_runpath=no
13029 else
13030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13031 shlibpath_overrides_runpath=yes
13032 case $host_os in
13033 sco3.2v5*)
13034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13035 ;;
13036 esac
13037 fi
13038 sys_lib_dlsearch_path_spec='/usr/lib'
13039 ;;
13040
13041 uts4*)
13042 version_type=linux
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13044 soname_spec='${libname}${release}${shared_ext}$major'
13045 shlibpath_var=LD_LIBRARY_PATH
13046 ;;
13047
13048 *)
13049 dynamic_linker=no
13050 ;;
13051 esac
13052 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13053 echo "${ECHO_T}$dynamic_linker" >&6; }
13054 test "$dynamic_linker" = no && can_build_shared=no
13055
13056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13057 if test "$GCC" = yes; then
13058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13059 fi
13060
13061 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13063 hardcode_action_CXX=
13064 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13065 test -n "$runpath_var_CXX" || \
13066 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13067
13068 # We can hardcode non-existant directories.
13069 if test "$hardcode_direct_CXX" != no &&
13070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13071 # have to relink, otherwise we might link with an installed library
13072 # when we should be linking with a yet-to-be-installed one
13073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13074 test "$hardcode_minus_L_CXX" != no; then
13075 # Linking always hardcodes the temporary library directory.
13076 hardcode_action_CXX=relink
13077 else
13078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13079 hardcode_action_CXX=immediate
13080 fi
13081 else
13082 # We cannot hardcode anything, or else we can only hardcode existing
13083 # directories.
13084 hardcode_action_CXX=unsupported
13085 fi
13086 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13087 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13088
13089 if test "$hardcode_action_CXX" = relink; then
13090 # Fast installation is not supported
13091 enable_fast_install=no
13092 elif test "$shlibpath_overrides_runpath" = yes ||
13093 test "$enable_shared" = no; then
13094 # Fast installation is not necessary
13095 enable_fast_install=needless
13096 fi
13097
13098
13099 # The else clause should only fire when bootstrapping the
13100 # libtool distribution, otherwise you forgot to ship ltmain.sh
13101 # with your package, and you will get complaints that there are
13102 # no rules to generate ltmain.sh.
13103 if test -f "$ltmain"; then
13104 # See if we are running on zsh, and set the options which allow our commands through
13105 # without removal of \ escapes.
13106 if test -n "${ZSH_VERSION+set}" ; then
13107 setopt NO_GLOB_SUBST
13108 fi
13109 # Now quote all the things that may contain metacharacters while being
13110 # careful not to overquote the AC_SUBSTed values. We take copies of the
13111 # variables and quote the copies for generation of the libtool script.
13112 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13113 SED SHELL STRIP \
13114 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13115 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13116 deplibs_check_method reload_flag reload_cmds need_locks \
13117 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13118 lt_cv_sys_global_symbol_to_c_name_address \
13119 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13120 old_postinstall_cmds old_postuninstall_cmds \
13121 compiler_CXX \
13122 CC_CXX \
13123 LD_CXX \
13124 lt_prog_compiler_wl_CXX \
13125 lt_prog_compiler_pic_CXX \
13126 lt_prog_compiler_static_CXX \
13127 lt_prog_compiler_no_builtin_flag_CXX \
13128 export_dynamic_flag_spec_CXX \
13129 thread_safe_flag_spec_CXX \
13130 whole_archive_flag_spec_CXX \
13131 enable_shared_with_static_runtimes_CXX \
13132 old_archive_cmds_CXX \
13133 old_archive_from_new_cmds_CXX \
13134 predep_objects_CXX \
13135 postdep_objects_CXX \
13136 predeps_CXX \
13137 postdeps_CXX \
13138 compiler_lib_search_path_CXX \
13139 archive_cmds_CXX \
13140 archive_expsym_cmds_CXX \
13141 postinstall_cmds_CXX \
13142 postuninstall_cmds_CXX \
13143 old_archive_from_expsyms_cmds_CXX \
13144 allow_undefined_flag_CXX \
13145 no_undefined_flag_CXX \
13146 export_symbols_cmds_CXX \
13147 hardcode_libdir_flag_spec_CXX \
13148 hardcode_libdir_flag_spec_ld_CXX \
13149 hardcode_libdir_separator_CXX \
13150 hardcode_automatic_CXX \
13151 module_cmds_CXX \
13152 module_expsym_cmds_CXX \
13153 lt_cv_prog_compiler_c_o_CXX \
13154 exclude_expsyms_CXX \
13155 include_expsyms_CXX; do
13156
13157 case $var in
13158 old_archive_cmds_CXX | \
13159 old_archive_from_new_cmds_CXX | \
13160 archive_cmds_CXX | \
13161 archive_expsym_cmds_CXX | \
13162 module_cmds_CXX | \
13163 module_expsym_cmds_CXX | \
13164 old_archive_from_expsyms_cmds_CXX | \
13165 export_symbols_cmds_CXX | \
13166 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13167 postinstall_cmds | postuninstall_cmds | \
13168 old_postinstall_cmds | old_postuninstall_cmds | \
13169 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13170 # Double-quote double-evaled strings.
13171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13172 ;;
13173 *)
13174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13175 ;;
13176 esac
13177 done
13178
13179 case $lt_echo in
13180 *'\$0 --fallback-echo"')
13181 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13182 ;;
13183 esac
13184
13185 cfgfile="$ofile"
13186
13187 cat <<__EOF__ >> "$cfgfile"
13188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13189
13190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13191
13192 # Shell to use when invoking shell scripts.
13193 SHELL=$lt_SHELL
13194
13195 # Whether or not to build shared libraries.
13196 build_libtool_libs=$enable_shared
13197
13198 # Whether or not to build static libraries.
13199 build_old_libs=$enable_static
13200
13201 # Whether or not to add -lc for building shared libraries.
13202 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13203
13204 # Whether or not to disallow shared libs when runtime libs are static
13205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13206
13207 # Whether or not to optimize for fast installation.
13208 fast_install=$enable_fast_install
13209
13210 # The host system.
13211 host_alias=$host_alias
13212 host=$host
13213 host_os=$host_os
13214
13215 # The build system.
13216 build_alias=$build_alias
13217 build=$build
13218 build_os=$build_os
13219
13220 # An echo program that does not interpret backslashes.
13221 echo=$lt_echo
13222
13223 # The archiver.
13224 AR=$lt_AR
13225 AR_FLAGS=$lt_AR_FLAGS
13226
13227 # A C compiler.
13228 LTCC=$lt_LTCC
13229
13230 # LTCC compiler flags.
13231 LTCFLAGS=$lt_LTCFLAGS
13232
13233 # A language-specific compiler.
13234 CC=$lt_compiler_CXX
13235
13236 # Is the compiler the GNU C compiler?
13237 with_gcc=$GCC_CXX
13238
13239 # An ERE matcher.
13240 EGREP=$lt_EGREP
13241
13242 # The linker used to build libraries.
13243 LD=$lt_LD_CXX
13244
13245 # Whether we need hard or soft links.
13246 LN_S=$lt_LN_S
13247
13248 # A BSD-compatible nm program.
13249 NM=$lt_NM
13250
13251 # A symbol stripping program
13252 STRIP=$lt_STRIP
13253
13254 # Used to examine libraries when file_magic_cmd begins "file"
13255 MAGIC_CMD=$MAGIC_CMD
13256
13257 # Used on cygwin: DLL creation program.
13258 DLLTOOL="$DLLTOOL"
13259
13260 # Used on cygwin: object dumper.
13261 OBJDUMP="$OBJDUMP"
13262
13263 # Used on cygwin: assembler.
13264 AS="$AS"
13265
13266 # The name of the directory that contains temporary libtool files.
13267 objdir=$objdir
13268
13269 # How to create reloadable object files.
13270 reload_flag=$lt_reload_flag
13271 reload_cmds=$lt_reload_cmds
13272
13273 # How to pass a linker flag through the compiler.
13274 wl=$lt_lt_prog_compiler_wl_CXX
13275
13276 # Object file suffix (normally "o").
13277 objext="$ac_objext"
13278
13279 # Old archive suffix (normally "a").
13280 libext="$libext"
13281
13282 # Shared library suffix (normally ".so").
13283 shrext_cmds='$shrext_cmds'
13284
13285 # Executable file suffix (normally "").
13286 exeext="$exeext"
13287
13288 # Additional compiler flags for building library objects.
13289 pic_flag=$lt_lt_prog_compiler_pic_CXX
13290 pic_mode=$pic_mode
13291
13292 # What is the maximum length of a command?
13293 max_cmd_len=$lt_cv_sys_max_cmd_len
13294
13295 # Does compiler simultaneously support -c and -o options?
13296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13297
13298 # Must we lock files when doing compilation?
13299 need_locks=$lt_need_locks
13300
13301 # Do we need the lib prefix for modules?
13302 need_lib_prefix=$need_lib_prefix
13303
13304 # Do we need a version for libraries?
13305 need_version=$need_version
13306
13307 # Whether dlopen is supported.
13308 dlopen_support=$enable_dlopen
13309
13310 # Whether dlopen of programs is supported.
13311 dlopen_self=$enable_dlopen_self
13312
13313 # Whether dlopen of statically linked programs is supported.
13314 dlopen_self_static=$enable_dlopen_self_static
13315
13316 # Compiler flag to prevent dynamic linking.
13317 link_static_flag=$lt_lt_prog_compiler_static_CXX
13318
13319 # Compiler flag to turn off builtin functions.
13320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13321
13322 # Compiler flag to allow reflexive dlopens.
13323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13324
13325 # Compiler flag to generate shared objects directly from archives.
13326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13327
13328 # Compiler flag to generate thread-safe objects.
13329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13330
13331 # Library versioning type.
13332 version_type=$version_type
13333
13334 # Format of library name prefix.
13335 libname_spec=$lt_libname_spec
13336
13337 # List of archive names. First name is the real one, the rest are links.
13338 # The last name is the one that the linker finds with -lNAME.
13339 library_names_spec=$lt_library_names_spec
13340
13341 # The coded name of the library, if different from the real name.
13342 soname_spec=$lt_soname_spec
13343
13344 # Commands used to build and install an old-style archive.
13345 RANLIB=$lt_RANLIB
13346 old_archive_cmds=$lt_old_archive_cmds_CXX
13347 old_postinstall_cmds=$lt_old_postinstall_cmds
13348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13349
13350 # Create an old-style archive from a shared archive.
13351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13352
13353 # Create a temporary old-style archive to link instead of a shared archive.
13354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13355
13356 # Commands used to build and install a shared archive.
13357 archive_cmds=$lt_archive_cmds_CXX
13358 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13359 postinstall_cmds=$lt_postinstall_cmds
13360 postuninstall_cmds=$lt_postuninstall_cmds
13361
13362 # Commands used to build a loadable module (assumed same as above if empty)
13363 module_cmds=$lt_module_cmds_CXX
13364 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13365
13366 # Commands to strip libraries.
13367 old_striplib=$lt_old_striplib
13368 striplib=$lt_striplib
13369
13370 # Dependencies to place before the objects being linked to create a
13371 # shared library.
13372 predep_objects=$lt_predep_objects_CXX
13373
13374 # Dependencies to place after the objects being linked to create a
13375 # shared library.
13376 postdep_objects=$lt_postdep_objects_CXX
13377
13378 # Dependencies to place before the objects being linked to create a
13379 # shared library.
13380 predeps=$lt_predeps_CXX
13381
13382 # Dependencies to place after the objects being linked to create a
13383 # shared library.
13384 postdeps=$lt_postdeps_CXX
13385
13386 # The library search path used internally by the compiler when linking
13387 # a shared library.
13388 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13389
13390 # Method to check whether dependent libraries are shared objects.
13391 deplibs_check_method=$lt_deplibs_check_method
13392
13393 # Command to use when deplibs_check_method == file_magic.
13394 file_magic_cmd=$lt_file_magic_cmd
13395
13396 # Flag that allows shared libraries with undefined symbols to be built.
13397 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13398
13399 # Flag that forces no undefined symbols.
13400 no_undefined_flag=$lt_no_undefined_flag_CXX
13401
13402 # Commands used to finish a libtool library installation in a directory.
13403 finish_cmds=$lt_finish_cmds
13404
13405 # Same as above, but a single script fragment to be evaled but not shown.
13406 finish_eval=$lt_finish_eval
13407
13408 # Take the output of nm and produce a listing of raw symbols and C names.
13409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13410
13411 # Transform the output of nm in a proper C declaration
13412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13413
13414 # Transform the output of nm in a C name address pair
13415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13416
13417 # This is the shared library runtime path variable.
13418 runpath_var=$runpath_var
13419
13420 # This is the shared library path variable.
13421 shlibpath_var=$shlibpath_var
13422
13423 # Is shlibpath searched before the hard-coded library search path?
13424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13425
13426 # How to hardcode a shared library path into an executable.
13427 hardcode_action=$hardcode_action_CXX
13428
13429 # Whether we should hardcode library paths into libraries.
13430 hardcode_into_libs=$hardcode_into_libs
13431
13432 # Flag to hardcode \$libdir into a binary during linking.
13433 # This must work even if \$libdir does not exist.
13434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13435
13436 # If ld is used when linking, flag to hardcode \$libdir into
13437 # a binary during linking. This must work even if \$libdir does
13438 # not exist.
13439 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13440
13441 # Whether we need a single -rpath flag with a separated argument.
13442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13443
13444 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13445 # resulting binary.
13446 hardcode_direct=$hardcode_direct_CXX
13447
13448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13449 # resulting binary.
13450 hardcode_minus_L=$hardcode_minus_L_CXX
13451
13452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13453 # the resulting binary.
13454 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13455
13456 # Set to yes if building a shared library automatically hardcodes DIR into the library
13457 # and all subsequent libraries and executables linked against it.
13458 hardcode_automatic=$hardcode_automatic_CXX
13459
13460 # Variables whose values should be saved in libtool wrapper scripts and
13461 # restored at relink time.
13462 variables_saved_for_relink="$variables_saved_for_relink"
13463
13464 # Whether libtool must link a program against all its dependency libraries.
13465 link_all_deplibs=$link_all_deplibs_CXX
13466
13467 # Compile-time system search path for libraries
13468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13469
13470 # Run-time system search path for libraries
13471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13472
13473 # Fix the shell variable \$srcfile for the compiler.
13474 fix_srcfile_path="$fix_srcfile_path_CXX"
13475
13476 # Set to yes if exported symbols are required.
13477 always_export_symbols=$always_export_symbols_CXX
13478
13479 # The commands to list exported symbols.
13480 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13481
13482 # The commands to extract the exported symbol list from a shared archive.
13483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13484
13485 # Symbols that should not be listed in the preloaded symbols.
13486 exclude_expsyms=$lt_exclude_expsyms_CXX
13487
13488 # Symbols that must always be exported.
13489 include_expsyms=$lt_include_expsyms_CXX
13490
13491 # ### END LIBTOOL TAG CONFIG: $tagname
13492
13493 __EOF__
13494
13495
13496 else
13497 # If there is no Makefile yet, we rely on a make rule to execute
13498 # `config.status --recheck' to rerun these tests and create the
13499 # libtool script then.
13500 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13501 if test -f "$ltmain_in"; then
13502 test -f Makefile && make "$ltmain"
13503 fi
13504 fi
13505
13506
13507 ac_ext=c
13508 ac_cpp='$CPP $CPPFLAGS'
13509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13512
13513 CC=$lt_save_CC
13514 LDCXX=$LD
13515 LD=$lt_save_LD
13516 GCC=$lt_save_GCC
13517 with_gnu_ldcxx=$with_gnu_ld
13518 with_gnu_ld=$lt_save_with_gnu_ld
13519 lt_cv_path_LDCXX=$lt_cv_path_LD
13520 lt_cv_path_LD=$lt_save_path_LD
13521 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13522 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13523
13524 else
13525 tagname=""
13526 fi
13527 ;;
13528
13529 F77)
13530 if test -n "$F77" && test "X$F77" != "Xno"; then
13531
13532 ac_ext=f
13533 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13534 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13536
13537
13538 archive_cmds_need_lc_F77=no
13539 allow_undefined_flag_F77=
13540 always_export_symbols_F77=no
13541 archive_expsym_cmds_F77=
13542 export_dynamic_flag_spec_F77=
13543 hardcode_direct_F77=no
13544 hardcode_libdir_flag_spec_F77=
13545 hardcode_libdir_flag_spec_ld_F77=
13546 hardcode_libdir_separator_F77=
13547 hardcode_minus_L_F77=no
13548 hardcode_automatic_F77=no
13549 module_cmds_F77=
13550 module_expsym_cmds_F77=
13551 link_all_deplibs_F77=unknown
13552 old_archive_cmds_F77=$old_archive_cmds
13553 no_undefined_flag_F77=
13554 whole_archive_flag_spec_F77=
13555 enable_shared_with_static_runtimes_F77=no
13556
13557 # Source file extension for f77 test sources.
13558 ac_ext=f
13559
13560 # Object file extension for compiled f77 test sources.
13561 objext=o
13562 objext_F77=$objext
13563
13564 # Code to be used in simple compile tests
13565 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13566
13567 # Code to be used in simple link tests
13568 lt_simple_link_test_code=" program t\n end\n"
13569
13570 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13571
13572 # If no C compiler was specified, use CC.
13573 LTCC=${LTCC-"$CC"}
13574
13575 # If no C compiler flags were specified, use CFLAGS.
13576 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13577
13578 # Allow CC to be a program name with arguments.
13579 compiler=$CC
13580
13581
13582 # save warnings/boilerplate of simple test code
13583 ac_outfile=conftest.$ac_objext
13584 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13585 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13586 _lt_compiler_boilerplate=`cat conftest.err`
13587 $rm conftest*
13588
13589 ac_outfile=conftest.$ac_objext
13590 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13591 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13592 _lt_linker_boilerplate=`cat conftest.err`
13593 $rm conftest*
13594
13595
13596 # Allow CC to be a program name with arguments.
13597 lt_save_CC="$CC"
13598 CC=${F77-"f77"}
13599 compiler=$CC
13600 compiler_F77=$CC
13601 for cc_temp in $compiler""; do
13602 case $cc_temp in
13603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13605 \-*) ;;
13606 *) break;;
13607 esac
13608 done
13609 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13610
13611
13612 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13613 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13614 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13615 echo "${ECHO_T}$can_build_shared" >&6; }
13616
13617 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13618 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13619 test "$can_build_shared" = "no" && enable_shared=no
13620
13621 # On AIX, shared libraries and static libraries use the same namespace, and
13622 # are all built from PIC.
13623 case $host_os in
13624 aix3*)
13625 test "$enable_shared" = yes && enable_static=no
13626 if test -n "$RANLIB"; then
13627 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13628 postinstall_cmds='$RANLIB $lib'
13629 fi
13630 ;;
13631 aix4* | aix5*)
13632 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13633 test "$enable_shared" = yes && enable_static=no
13634 fi
13635 ;;
13636 esac
13637 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13638 echo "${ECHO_T}$enable_shared" >&6; }
13639
13640 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13641 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13642 # Make sure either enable_shared or enable_static is yes.
13643 test "$enable_shared" = yes || enable_static=yes
13644 { echo "$as_me:$LINENO: result: $enable_static" >&5
13645 echo "${ECHO_T}$enable_static" >&6; }
13646
13647 GCC_F77="$G77"
13648 LD_F77="$LD"
13649
13650 lt_prog_compiler_wl_F77=
13651 lt_prog_compiler_pic_F77=
13652 lt_prog_compiler_static_F77=
13653
13654 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13655 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13656
13657 if test "$GCC" = yes; then
13658 lt_prog_compiler_wl_F77='-Wl,'
13659 lt_prog_compiler_static_F77='-static'
13660
13661 case $host_os in
13662 aix*)
13663 # All AIX code is PIC.
13664 if test "$host_cpu" = ia64; then
13665 # AIX 5 now supports IA64 processor
13666 lt_prog_compiler_static_F77='-Bstatic'
13667 fi
13668 ;;
13669
13670 amigaos*)
13671 # FIXME: we need at least 68020 code to build shared libraries, but
13672 # adding the `-m68020' flag to GCC prevents building anything better,
13673 # like `-m68040'.
13674 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13675 ;;
13676
13677 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13678 # PIC is the default for these OSes.
13679 ;;
13680
13681 mingw* | pw32* | os2*)
13682 # This hack is so that the source file can tell whether it is being
13683 # built for inclusion in a dll (and should export symbols for example).
13684 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13685 ;;
13686
13687 darwin* | rhapsody*)
13688 # PIC is the default on this platform
13689 # Common symbols not allowed in MH_DYLIB files
13690 lt_prog_compiler_pic_F77='-fno-common'
13691 ;;
13692
13693 interix3*)
13694 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13695 # Instead, we relocate shared libraries at runtime.
13696 ;;
13697
13698 msdosdjgpp*)
13699 # Just because we use GCC doesn't mean we suddenly get shared libraries
13700 # on systems that don't support them.
13701 lt_prog_compiler_can_build_shared_F77=no
13702 enable_shared=no
13703 ;;
13704
13705 sysv4*MP*)
13706 if test -d /usr/nec; then
13707 lt_prog_compiler_pic_F77=-Kconform_pic
13708 fi
13709 ;;
13710
13711 hpux*)
13712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13713 # not for PA HP-UX.
13714 case $host_cpu in
13715 hppa*64*|ia64*)
13716 # +Z the default
13717 ;;
13718 *)
13719 lt_prog_compiler_pic_F77='-fPIC'
13720 ;;
13721 esac
13722 ;;
13723
13724 *)
13725 lt_prog_compiler_pic_F77='-fPIC'
13726 ;;
13727 esac
13728 else
13729 # PORTME Check for flag to pass linker flags through the system compiler.
13730 case $host_os in
13731 aix*)
13732 lt_prog_compiler_wl_F77='-Wl,'
13733 if test "$host_cpu" = ia64; then
13734 # AIX 5 now supports IA64 processor
13735 lt_prog_compiler_static_F77='-Bstatic'
13736 else
13737 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13738 fi
13739 ;;
13740 darwin*)
13741 # PIC is the default on this platform
13742 # Common symbols not allowed in MH_DYLIB files
13743 case $cc_basename in
13744 xlc*)
13745 lt_prog_compiler_pic_F77='-qnocommon'
13746 lt_prog_compiler_wl_F77='-Wl,'
13747 ;;
13748 esac
13749 ;;
13750
13751 mingw* | pw32* | os2*)
13752 # This hack is so that the source file can tell whether it is being
13753 # built for inclusion in a dll (and should export symbols for example).
13754 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13755 ;;
13756
13757 hpux9* | hpux10* | hpux11*)
13758 lt_prog_compiler_wl_F77='-Wl,'
13759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13760 # not for PA HP-UX.
13761 case $host_cpu in
13762 hppa*64*|ia64*)
13763 # +Z the default
13764 ;;
13765 *)
13766 lt_prog_compiler_pic_F77='+Z'
13767 ;;
13768 esac
13769 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13770 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13771 ;;
13772
13773 irix5* | irix6* | nonstopux*)
13774 lt_prog_compiler_wl_F77='-Wl,'
13775 # PIC (with -KPIC) is the default.
13776 lt_prog_compiler_static_F77='-non_shared'
13777 ;;
13778
13779 newsos6)
13780 lt_prog_compiler_pic_F77='-KPIC'
13781 lt_prog_compiler_static_F77='-Bstatic'
13782 ;;
13783
13784 linux*)
13785 case $cc_basename in
13786 icc* | ecc*)
13787 lt_prog_compiler_wl_F77='-Wl,'
13788 lt_prog_compiler_pic_F77='-KPIC'
13789 lt_prog_compiler_static_F77='-static'
13790 ;;
13791 pgcc* | pgf77* | pgf90* | pgf95*)
13792 # Portland Group compilers (*not* the Pentium gcc compiler,
13793 # which looks to be a dead project)
13794 lt_prog_compiler_wl_F77='-Wl,'
13795 lt_prog_compiler_pic_F77='-fpic'
13796 lt_prog_compiler_static_F77='-Bstatic'
13797 ;;
13798 ccc*)
13799 lt_prog_compiler_wl_F77='-Wl,'
13800 # All Alpha code is PIC.
13801 lt_prog_compiler_static_F77='-non_shared'
13802 ;;
13803 esac
13804 ;;
13805
13806 osf3* | osf4* | osf5*)
13807 lt_prog_compiler_wl_F77='-Wl,'
13808 # All OSF/1 code is PIC.
13809 lt_prog_compiler_static_F77='-non_shared'
13810 ;;
13811
13812 solaris*)
13813 lt_prog_compiler_pic_F77='-KPIC'
13814 lt_prog_compiler_static_F77='-Bstatic'
13815 case $cc_basename in
13816 f77* | f90* | f95*)
13817 lt_prog_compiler_wl_F77='-Qoption ld ';;
13818 *)
13819 lt_prog_compiler_wl_F77='-Wl,';;
13820 esac
13821 ;;
13822
13823 sunos4*)
13824 lt_prog_compiler_wl_F77='-Qoption ld '
13825 lt_prog_compiler_pic_F77='-PIC'
13826 lt_prog_compiler_static_F77='-Bstatic'
13827 ;;
13828
13829 sysv4 | sysv4.2uw2* | sysv4.3*)
13830 lt_prog_compiler_wl_F77='-Wl,'
13831 lt_prog_compiler_pic_F77='-KPIC'
13832 lt_prog_compiler_static_F77='-Bstatic'
13833 ;;
13834
13835 sysv4*MP*)
13836 if test -d /usr/nec ;then
13837 lt_prog_compiler_pic_F77='-Kconform_pic'
13838 lt_prog_compiler_static_F77='-Bstatic'
13839 fi
13840 ;;
13841
13842 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13843 lt_prog_compiler_wl_F77='-Wl,'
13844 lt_prog_compiler_pic_F77='-KPIC'
13845 lt_prog_compiler_static_F77='-Bstatic'
13846 ;;
13847
13848 unicos*)
13849 lt_prog_compiler_wl_F77='-Wl,'
13850 lt_prog_compiler_can_build_shared_F77=no
13851 ;;
13852
13853 uts4*)
13854 lt_prog_compiler_pic_F77='-pic'
13855 lt_prog_compiler_static_F77='-Bstatic'
13856 ;;
13857
13858 *)
13859 lt_prog_compiler_can_build_shared_F77=no
13860 ;;
13861 esac
13862 fi
13863
13864 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13865 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13866
13867 #
13868 # Check to make sure the PIC flag actually works.
13869 #
13870 if test -n "$lt_prog_compiler_pic_F77"; then
13871
13872 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13873 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13874 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877 lt_prog_compiler_pic_works_F77=no
13878 ac_outfile=conftest.$ac_objext
13879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13880 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13881 # Insert the option either (1) after the last *FLAGS variable, or
13882 # (2) before a word containing "conftest.", or (3) at the end.
13883 # Note that $ac_compile itself does not contain backslashes and begins
13884 # with a dollar sign (not a hyphen), so the echo should work correctly.
13885 # The option is referenced via a variable to avoid confusing sed.
13886 lt_compile=`echo "$ac_compile" | $SED \
13887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13889 -e 's:$: $lt_compiler_flag:'`
13890 (eval echo "\"\$as_me:13890: $lt_compile\"" >&5)
13891 (eval "$lt_compile" 2>conftest.err)
13892 ac_status=$?
13893 cat conftest.err >&5
13894 echo "$as_me:13894: \$? = $ac_status" >&5
13895 if (exit $ac_status) && test -s "$ac_outfile"; then
13896 # The compiler can only warn and ignore the option if not recognized
13897 # So say no if there are warnings other than the usual output.
13898 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13901 lt_prog_compiler_pic_works_F77=yes
13902 fi
13903 fi
13904 $rm conftest*
13905
13906 fi
13907 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13908 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13909
13910 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13911 case $lt_prog_compiler_pic_F77 in
13912 "" | " "*) ;;
13913 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13914 esac
13915 else
13916 lt_prog_compiler_pic_F77=
13917 lt_prog_compiler_can_build_shared_F77=no
13918 fi
13919
13920 fi
13921 case $host_os in
13922 # For platforms which do not support PIC, -DPIC is meaningless:
13923 *djgpp*)
13924 lt_prog_compiler_pic_F77=
13925 ;;
13926 *)
13927 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13928 ;;
13929 esac
13930
13931 #
13932 # Check to make sure the static flag actually works.
13933 #
13934 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13935 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13936 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13937 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940 lt_prog_compiler_static_works_F77=no
13941 save_LDFLAGS="$LDFLAGS"
13942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13943 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13945 # The linker can only warn and ignore the option if not recognized
13946 # So say no if there are warnings
13947 if test -s conftest.err; then
13948 # Append any errors to the config.log.
13949 cat conftest.err 1>&5
13950 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13952 if diff conftest.exp conftest.er2 >/dev/null; then
13953 lt_prog_compiler_static_works_F77=yes
13954 fi
13955 else
13956 lt_prog_compiler_static_works_F77=yes
13957 fi
13958 fi
13959 $rm conftest*
13960 LDFLAGS="$save_LDFLAGS"
13961
13962 fi
13963 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13964 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13965
13966 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13967 :
13968 else
13969 lt_prog_compiler_static_F77=
13970 fi
13971
13972
13973 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13974 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13975 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978 lt_cv_prog_compiler_c_o_F77=no
13979 $rm -r conftest 2>/dev/null
13980 mkdir conftest
13981 cd conftest
13982 mkdir out
13983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13984
13985 lt_compiler_flag="-o out/conftest2.$ac_objext"
13986 # Insert the option either (1) after the last *FLAGS variable, or
13987 # (2) before a word containing "conftest.", or (3) at the end.
13988 # Note that $ac_compile itself does not contain backslashes and begins
13989 # with a dollar sign (not a hyphen), so the echo should work correctly.
13990 lt_compile=`echo "$ac_compile" | $SED \
13991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13993 -e 's:$: $lt_compiler_flag:'`
13994 (eval echo "\"\$as_me:13994: $lt_compile\"" >&5)
13995 (eval "$lt_compile" 2>out/conftest.err)
13996 ac_status=$?
13997 cat out/conftest.err >&5
13998 echo "$as_me:13998: \$? = $ac_status" >&5
13999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14000 then
14001 # The compiler can only warn and ignore the option if not recognized
14002 # So say no if there are warnings
14003 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14006 lt_cv_prog_compiler_c_o_F77=yes
14007 fi
14008 fi
14009 chmod u+w . 2>&5
14010 $rm conftest*
14011 # SGI C++ compiler will create directory out/ii_files/ for
14012 # template instantiation
14013 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14014 $rm out/* && rmdir out
14015 cd ..
14016 rmdir conftest
14017 $rm conftest*
14018
14019 fi
14020 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14021 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14022
14023
14024 hard_links="nottested"
14025 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14026 # do not overwrite the value of need_locks provided by the user
14027 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14028 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14029 hard_links=yes
14030 $rm conftest*
14031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14032 touch conftest.a
14033 ln conftest.a conftest.b 2>&5 || hard_links=no
14034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14035 { echo "$as_me:$LINENO: result: $hard_links" >&5
14036 echo "${ECHO_T}$hard_links" >&6; }
14037 if test "$hard_links" = no; then
14038 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14039 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14040 need_locks=warn
14041 fi
14042 else
14043 need_locks=no
14044 fi
14045
14046 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14047 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14048
14049 runpath_var=
14050 allow_undefined_flag_F77=
14051 enable_shared_with_static_runtimes_F77=no
14052 archive_cmds_F77=
14053 archive_expsym_cmds_F77=
14054 old_archive_From_new_cmds_F77=
14055 old_archive_from_expsyms_cmds_F77=
14056 export_dynamic_flag_spec_F77=
14057 whole_archive_flag_spec_F77=
14058 thread_safe_flag_spec_F77=
14059 hardcode_libdir_flag_spec_F77=
14060 hardcode_libdir_flag_spec_ld_F77=
14061 hardcode_libdir_separator_F77=
14062 hardcode_direct_F77=no
14063 hardcode_minus_L_F77=no
14064 hardcode_shlibpath_var_F77=unsupported
14065 link_all_deplibs_F77=unknown
14066 hardcode_automatic_F77=no
14067 module_cmds_F77=
14068 module_expsym_cmds_F77=
14069 always_export_symbols_F77=no
14070 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14071 # include_expsyms should be a list of space-separated symbols to be *always*
14072 # included in the symbol list
14073 include_expsyms_F77=
14074 # exclude_expsyms can be an extended regexp of symbols to exclude
14075 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14076 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14077 # as well as any symbol that contains `d'.
14078 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14079 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14080 # platforms (ab)use it in PIC code, but their linkers get confused if
14081 # the symbol is explicitly referenced. Since portable code cannot
14082 # rely on this symbol name, it's probably fine to never include it in
14083 # preloaded symbol tables.
14084 extract_expsyms_cmds=
14085 # Just being paranoid about ensuring that cc_basename is set.
14086 for cc_temp in $compiler""; do
14087 case $cc_temp in
14088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14090 \-*) ;;
14091 *) break;;
14092 esac
14093 done
14094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14095
14096 case $host_os in
14097 cygwin* | mingw* | pw32*)
14098 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14099 # When not using gcc, we currently assume that we are using
14100 # Microsoft Visual C++.
14101 if test "$GCC" != yes; then
14102 with_gnu_ld=no
14103 fi
14104 ;;
14105 interix*)
14106 # we just hope/assume this is gcc and not c89 (= MSVC++)
14107 with_gnu_ld=yes
14108 ;;
14109 openbsd*)
14110 with_gnu_ld=no
14111 ;;
14112 esac
14113
14114 ld_shlibs_F77=yes
14115 if test "$with_gnu_ld" = yes; then
14116 # If archive_cmds runs LD, not CC, wlarc should be empty
14117 wlarc='${wl}'
14118
14119 # Set some defaults for GNU ld with shared library support. These
14120 # are reset later if shared libraries are not supported. Putting them
14121 # here allows them to be overridden if necessary.
14122 runpath_var=LD_RUN_PATH
14123 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14124 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14125 # ancient GNU ld didn't support --whole-archive et. al.
14126 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14127 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14128 else
14129 whole_archive_flag_spec_F77=
14130 fi
14131 supports_anon_versioning=no
14132 case `$LD -v 2>/dev/null` in
14133 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14134 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14135 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14136 *\ 2.11.*) ;; # other 2.11 versions
14137 *) supports_anon_versioning=yes ;;
14138 esac
14139
14140 # See if GNU ld supports shared libraries.
14141 case $host_os in
14142 aix3* | aix4* | aix5*)
14143 # On AIX/PPC, the GNU linker is very broken
14144 if test "$host_cpu" != ia64; then
14145 ld_shlibs_F77=no
14146 cat <<EOF 1>&2
14147
14148 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14149 *** to be unable to reliably create shared libraries on AIX.
14150 *** Therefore, libtool is disabling shared libraries support. If you
14151 *** really care for shared libraries, you may want to modify your PATH
14152 *** so that a non-GNU linker is found, and then restart.
14153
14154 EOF
14155 fi
14156 ;;
14157
14158 amigaos*)
14159 archive_cmds_F77='$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)'
14160 hardcode_libdir_flag_spec_F77='-L$libdir'
14161 hardcode_minus_L_F77=yes
14162
14163 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14164 # that the semantics of dynamic libraries on AmigaOS, at least up
14165 # to version 4, is to share data among multiple programs linked
14166 # with the same dynamic library. Since this doesn't match the
14167 # behavior of shared libraries on other platforms, we can't use
14168 # them.
14169 ld_shlibs_F77=no
14170 ;;
14171
14172 beos*)
14173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14174 allow_undefined_flag_F77=unsupported
14175 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14176 # support --undefined. This deserves some investigation. FIXME
14177 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14178 else
14179 ld_shlibs_F77=no
14180 fi
14181 ;;
14182
14183 cygwin* | mingw* | pw32*)
14184 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14185 # as there is no search path for DLLs.
14186 hardcode_libdir_flag_spec_F77='-L$libdir'
14187 allow_undefined_flag_F77=unsupported
14188 always_export_symbols_F77=no
14189 enable_shared_with_static_runtimes_F77=yes
14190 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14191
14192 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14193 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14194 # If the export-symbols file already is a .def file (1st line
14195 # is EXPORTS), use it as is; otherwise, prepend...
14196 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14197 cp $export_symbols $output_objdir/$soname.def;
14198 else
14199 echo EXPORTS > $output_objdir/$soname.def;
14200 cat $export_symbols >> $output_objdir/$soname.def;
14201 fi~
14202 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14203 else
14204 ld_shlibs_F77=no
14205 fi
14206 ;;
14207
14208 interix3*)
14209 hardcode_direct_F77=no
14210 hardcode_shlibpath_var_F77=no
14211 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14212 export_dynamic_flag_spec_F77='${wl}-E'
14213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14214 # Instead, shared libraries are loaded at an image base (0x10000000 by
14215 # default) and relocated if they conflict, which is a slow very memory
14216 # consuming and fragmenting process. To avoid this, we pick a random,
14217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14219 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14220 archive_expsym_cmds_F77='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'
14221 ;;
14222
14223 linux*)
14224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14225 tmp_addflag=
14226 case $cc_basename,$host_cpu in
14227 pgcc*) # Portland Group C compiler
14228 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14229 tmp_addflag=' $pic_flag'
14230 ;;
14231 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14232 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14233 tmp_addflag=' $pic_flag -Mnomain' ;;
14234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14235 tmp_addflag=' -i_dynamic' ;;
14236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14237 tmp_addflag=' -i_dynamic -nofor_main' ;;
14238 ifc* | ifort*) # Intel Fortran compiler
14239 tmp_addflag=' -nofor_main' ;;
14240 esac
14241 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242
14243 if test $supports_anon_versioning = yes; then
14244 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14246 $echo "local: *; };" >> $output_objdir/$libname.ver~
14247 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14248 fi
14249 else
14250 ld_shlibs_F77=no
14251 fi
14252 ;;
14253
14254 netbsd*)
14255 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14256 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14257 wlarc=
14258 else
14259 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14260 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14261 fi
14262 ;;
14263
14264 solaris*)
14265 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14266 ld_shlibs_F77=no
14267 cat <<EOF 1>&2
14268
14269 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14270 *** create shared libraries on Solaris systems. Therefore, libtool
14271 *** is disabling shared libraries support. We urge you to upgrade GNU
14272 *** binutils to release 2.9.1 or newer. Another option is to modify
14273 *** your PATH or compiler configuration so that the native linker is
14274 *** used, and then restart.
14275
14276 EOF
14277 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14278 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14279 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14280 else
14281 ld_shlibs_F77=no
14282 fi
14283 ;;
14284
14285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14286 case `$LD -v 2>&1` in
14287 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14288 ld_shlibs_F77=no
14289 cat <<_LT_EOF 1>&2
14290
14291 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14292 *** reliably create shared libraries on SCO systems. Therefore, libtool
14293 *** is disabling shared libraries support. We urge you to upgrade GNU
14294 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14295 *** your PATH or compiler configuration so that the native linker is
14296 *** used, and then restart.
14297
14298 _LT_EOF
14299 ;;
14300 *)
14301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14302 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14303 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14304 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14305 else
14306 ld_shlibs_F77=no
14307 fi
14308 ;;
14309 esac
14310 ;;
14311
14312 sunos4*)
14313 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14314 wlarc=
14315 hardcode_direct_F77=yes
14316 hardcode_shlibpath_var_F77=no
14317 ;;
14318
14319 *)
14320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14321 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14322 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14323 else
14324 ld_shlibs_F77=no
14325 fi
14326 ;;
14327 esac
14328
14329 if test "$ld_shlibs_F77" = no; then
14330 runpath_var=
14331 hardcode_libdir_flag_spec_F77=
14332 export_dynamic_flag_spec_F77=
14333 whole_archive_flag_spec_F77=
14334 fi
14335 else
14336 # PORTME fill in a description of your system's linker (not GNU ld)
14337 case $host_os in
14338 aix3*)
14339 allow_undefined_flag_F77=unsupported
14340 always_export_symbols_F77=yes
14341 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14342 # Note: this linker hardcodes the directories in LIBPATH if there
14343 # are no directories specified by -L.
14344 hardcode_minus_L_F77=yes
14345 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14346 # Neither direct hardcoding nor static linking is supported with a
14347 # broken collect2.
14348 hardcode_direct_F77=unsupported
14349 fi
14350 ;;
14351
14352 aix4* | aix5*)
14353 if test "$host_cpu" = ia64; then
14354 # On IA64, the linker does run time linking by default, so we don't
14355 # have to do anything special.
14356 aix_use_runtimelinking=no
14357 exp_sym_flag='-Bexport'
14358 no_entry_flag=""
14359 else
14360 # If we're using GNU nm, then we don't want the "-C" option.
14361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14362 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14363 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14364 else
14365 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14366 fi
14367 aix_use_runtimelinking=no
14368
14369 # Test if we are trying to use run time linking or normal
14370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14371 # need to do runtime linking.
14372 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14373 for ld_flag in $LDFLAGS; do
14374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14375 aix_use_runtimelinking=yes
14376 break
14377 fi
14378 done
14379 ;;
14380 esac
14381
14382 exp_sym_flag='-bexport'
14383 no_entry_flag='-bnoentry'
14384 fi
14385
14386 # When large executables or shared objects are built, AIX ld can
14387 # have problems creating the table of contents. If linking a library
14388 # or program results in "error TOC overflow" add -mminimal-toc to
14389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14391
14392 archive_cmds_F77=''
14393 hardcode_direct_F77=yes
14394 hardcode_libdir_separator_F77=':'
14395 link_all_deplibs_F77=yes
14396
14397 if test "$GCC" = yes; then
14398 case $host_os in aix4.[012]|aix4.[012].*)
14399 # We only want to do this on AIX 4.2 and lower, the check
14400 # below for broken collect2 doesn't work under 4.3+
14401 collect2name=`${CC} -print-prog-name=collect2`
14402 if test -f "$collect2name" && \
14403 strings "$collect2name" | grep resolve_lib_name >/dev/null
14404 then
14405 # We have reworked collect2
14406 hardcode_direct_F77=yes
14407 else
14408 # We have old collect2
14409 hardcode_direct_F77=unsupported
14410 # It fails to find uninstalled libraries when the uninstalled
14411 # path is not listed in the libpath. Setting hardcode_minus_L
14412 # to unsupported forces relinking
14413 hardcode_minus_L_F77=yes
14414 hardcode_libdir_flag_spec_F77='-L$libdir'
14415 hardcode_libdir_separator_F77=
14416 fi
14417 ;;
14418 esac
14419 shared_flag='-shared'
14420 if test "$aix_use_runtimelinking" = yes; then
14421 shared_flag="$shared_flag "'${wl}-G'
14422 fi
14423 else
14424 # not using gcc
14425 if test "$host_cpu" = ia64; then
14426 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14427 # chokes on -Wl,-G. The following line is correct:
14428 shared_flag='-G'
14429 else
14430 if test "$aix_use_runtimelinking" = yes; then
14431 shared_flag='${wl}-G'
14432 else
14433 shared_flag='${wl}-bM:SRE'
14434 fi
14435 fi
14436 fi
14437
14438 # It seems that -bexpall does not export symbols beginning with
14439 # underscore (_), so it is better to generate a list of symbols to export.
14440 always_export_symbols_F77=yes
14441 if test "$aix_use_runtimelinking" = yes; then
14442 # Warning - without using the other runtime loading flags (-brtl),
14443 # -berok will link without error, but may produce a broken library.
14444 allow_undefined_flag_F77='-berok'
14445 # Determine the default libpath from the value encoded in an empty executable.
14446 cat >conftest.$ac_ext <<_ACEOF
14447 program main
14448
14449 end
14450 _ACEOF
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (ac_try="$ac_link"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456 esac
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_link") 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } && {
14465 test -z "$ac_f77_werror_flag" ||
14466 test ! -s conftest.err
14467 } && test -s conftest$ac_exeext &&
14468 $as_test_x conftest$ac_exeext; then
14469
14470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14471 }'`
14472 # Check for a 64-bit object if we didn't find anything.
14473 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14474 }'`; fi
14475 else
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479
14480 fi
14481
14482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14483 conftest$ac_exeext conftest.$ac_ext
14484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14485
14486 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14487 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14488 else
14489 if test "$host_cpu" = ia64; then
14490 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14491 allow_undefined_flag_F77="-z nodefs"
14492 archive_expsym_cmds_F77="\$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"
14493 else
14494 # Determine the default libpath from the value encoded in an empty executable.
14495 cat >conftest.$ac_ext <<_ACEOF
14496 program main
14497
14498 end
14499 _ACEOF
14500 rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (ac_try="$ac_link"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_link") 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_f77_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest$ac_exeext &&
14517 $as_test_x conftest$ac_exeext; then
14518
14519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14520 }'`
14521 # Check for a 64-bit object if we didn't find anything.
14522 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14523 }'`; fi
14524 else
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528
14529 fi
14530
14531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14532 conftest$ac_exeext conftest.$ac_ext
14533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14534
14535 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14536 # Warning - without using the other run time loading flags,
14537 # -berok will link without error, but may produce a broken library.
14538 no_undefined_flag_F77=' ${wl}-bernotok'
14539 allow_undefined_flag_F77=' ${wl}-berok'
14540 # Exported symbols can be pulled into shared objects from archives
14541 whole_archive_flag_spec_F77='$convenience'
14542 archive_cmds_need_lc_F77=yes
14543 # This is similar to how AIX traditionally builds its shared libraries.
14544 archive_expsym_cmds_F77="\$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'
14545 fi
14546 fi
14547 ;;
14548
14549 amigaos*)
14550 archive_cmds_F77='$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)'
14551 hardcode_libdir_flag_spec_F77='-L$libdir'
14552 hardcode_minus_L_F77=yes
14553 # see comment about different semantics on the GNU ld section
14554 ld_shlibs_F77=no
14555 ;;
14556
14557 bsdi[45]*)
14558 export_dynamic_flag_spec_F77=-rdynamic
14559 ;;
14560
14561 cygwin* | mingw* | pw32*)
14562 # When not using gcc, we currently assume that we are using
14563 # Microsoft Visual C++.
14564 # hardcode_libdir_flag_spec is actually meaningless, as there is
14565 # no search path for DLLs.
14566 hardcode_libdir_flag_spec_F77=' '
14567 allow_undefined_flag_F77=unsupported
14568 # Tell ltmain to make .lib files, not .a files.
14569 libext=lib
14570 # Tell ltmain to make .dll files, not .so files.
14571 shrext_cmds=".dll"
14572 # FIXME: Setting linknames here is a bad hack.
14573 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14574 # The linker will automatically build a .lib file if we build a DLL.
14575 old_archive_From_new_cmds_F77='true'
14576 # FIXME: Should let the user specify the lib program.
14577 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14578 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14579 enable_shared_with_static_runtimes_F77=yes
14580 ;;
14581
14582 darwin* | rhapsody*)
14583 case $host_os in
14584 rhapsody* | darwin1.[012])
14585 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14586 ;;
14587 *) # Darwin 1.3 on
14588 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14589 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14590 else
14591 case ${MACOSX_DEPLOYMENT_TARGET} in
14592 10.[012])
14593 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14594 ;;
14595 10.*)
14596 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14597 ;;
14598 esac
14599 fi
14600 ;;
14601 esac
14602 archive_cmds_need_lc_F77=no
14603 hardcode_direct_F77=no
14604 hardcode_automatic_F77=yes
14605 hardcode_shlibpath_var_F77=unsupported
14606 whole_archive_flag_spec_F77=''
14607 link_all_deplibs_F77=yes
14608 if test "$GCC" = yes ; then
14609 output_verbose_link_cmd='echo'
14610 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14611 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14612 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14613 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14614 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14615 else
14616 case $cc_basename in
14617 xlc*)
14618 output_verbose_link_cmd='echo'
14619 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14620 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14621 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14622 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14623 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14624 ;;
14625 *)
14626 ld_shlibs_F77=no
14627 ;;
14628 esac
14629 fi
14630 ;;
14631
14632 dgux*)
14633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_libdir_flag_spec_F77='-L$libdir'
14635 hardcode_shlibpath_var_F77=no
14636 ;;
14637
14638 freebsd1*)
14639 ld_shlibs_F77=no
14640 ;;
14641
14642 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14643 # support. Future versions do this automatically, but an explicit c++rt0.o
14644 # does not break anything, and helps significantly (at the cost of a little
14645 # extra space).
14646 freebsd2.2*)
14647 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14648 hardcode_libdir_flag_spec_F77='-R$libdir'
14649 hardcode_direct_F77=yes
14650 hardcode_shlibpath_var_F77=no
14651 ;;
14652
14653 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14654 freebsd2*)
14655 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14656 hardcode_direct_F77=yes
14657 hardcode_minus_L_F77=yes
14658 hardcode_shlibpath_var_F77=no
14659 ;;
14660
14661 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14662 freebsd* | kfreebsd*-gnu | dragonfly*)
14663 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14664 hardcode_libdir_flag_spec_F77='-R$libdir'
14665 hardcode_direct_F77=yes
14666 hardcode_shlibpath_var_F77=no
14667 ;;
14668
14669 hpux9*)
14670 if test "$GCC" = yes; then
14671 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14672 else
14673 archive_cmds_F77='$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'
14674 fi
14675 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14676 hardcode_libdir_separator_F77=:
14677 hardcode_direct_F77=yes
14678
14679 # hardcode_minus_L: Not really in the search PATH,
14680 # but as the default location of the library.
14681 hardcode_minus_L_F77=yes
14682 export_dynamic_flag_spec_F77='${wl}-E'
14683 ;;
14684
14685 hpux10*)
14686 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14687 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14688 else
14689 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14690 fi
14691 if test "$with_gnu_ld" = no; then
14692 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14693 hardcode_libdir_separator_F77=:
14694
14695 hardcode_direct_F77=yes
14696 export_dynamic_flag_spec_F77='${wl}-E'
14697
14698 # hardcode_minus_L: Not really in the search PATH,
14699 # but as the default location of the library.
14700 hardcode_minus_L_F77=yes
14701 fi
14702 ;;
14703
14704 hpux11*)
14705 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14706 case $host_cpu in
14707 hppa*64*)
14708 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14709 ;;
14710 ia64*)
14711 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14712 ;;
14713 *)
14714 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14715 ;;
14716 esac
14717 else
14718 case $host_cpu in
14719 hppa*64*)
14720 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14721 ;;
14722 ia64*)
14723 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14724 ;;
14725 *)
14726 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14727 ;;
14728 esac
14729 fi
14730 if test "$with_gnu_ld" = no; then
14731 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14732 hardcode_libdir_separator_F77=:
14733
14734 case $host_cpu in
14735 hppa*64*|ia64*)
14736 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14737 hardcode_direct_F77=no
14738 hardcode_shlibpath_var_F77=no
14739 ;;
14740 *)
14741 hardcode_direct_F77=yes
14742 export_dynamic_flag_spec_F77='${wl}-E'
14743
14744 # hardcode_minus_L: Not really in the search PATH,
14745 # but as the default location of the library.
14746 hardcode_minus_L_F77=yes
14747 ;;
14748 esac
14749 fi
14750 ;;
14751
14752 irix5* | irix6* | nonstopux*)
14753 if test "$GCC" = yes; then
14754 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14755 else
14756 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14757 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14758 fi
14759 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14760 hardcode_libdir_separator_F77=:
14761 link_all_deplibs_F77=yes
14762 ;;
14763
14764 netbsd*)
14765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14767 else
14768 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14769 fi
14770 hardcode_libdir_flag_spec_F77='-R$libdir'
14771 hardcode_direct_F77=yes
14772 hardcode_shlibpath_var_F77=no
14773 ;;
14774
14775 newsos6)
14776 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777 hardcode_direct_F77=yes
14778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14779 hardcode_libdir_separator_F77=:
14780 hardcode_shlibpath_var_F77=no
14781 ;;
14782
14783 openbsd*)
14784 hardcode_direct_F77=yes
14785 hardcode_shlibpath_var_F77=no
14786 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14787 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14788 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14789 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14790 export_dynamic_flag_spec_F77='${wl}-E'
14791 else
14792 case $host_os in
14793 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14794 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14795 hardcode_libdir_flag_spec_F77='-R$libdir'
14796 ;;
14797 *)
14798 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14799 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14800 ;;
14801 esac
14802 fi
14803 ;;
14804
14805 os2*)
14806 hardcode_libdir_flag_spec_F77='-L$libdir'
14807 hardcode_minus_L_F77=yes
14808 allow_undefined_flag_F77=unsupported
14809 archive_cmds_F77='$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'
14810 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14811 ;;
14812
14813 osf3*)
14814 if test "$GCC" = yes; then
14815 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14816 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14817 else
14818 allow_undefined_flag_F77=' -expect_unresolved \*'
14819 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14820 fi
14821 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14822 hardcode_libdir_separator_F77=:
14823 ;;
14824
14825 osf4* | osf5*) # as osf3* with the addition of -msym flag
14826 if test "$GCC" = yes; then
14827 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14828 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14829 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14830 else
14831 allow_undefined_flag_F77=' -expect_unresolved \*'
14832 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14833 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14834 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14835
14836 # Both c and cxx compiler support -rpath directly
14837 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14838 fi
14839 hardcode_libdir_separator_F77=:
14840 ;;
14841
14842 solaris*)
14843 no_undefined_flag_F77=' -z text'
14844 if test "$GCC" = yes; then
14845 wlarc='${wl}'
14846 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14848 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14849 else
14850 wlarc=''
14851 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14853 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14854 fi
14855 hardcode_libdir_flag_spec_F77='-R$libdir'
14856 hardcode_shlibpath_var_F77=no
14857 case $host_os in
14858 solaris2.[0-5] | solaris2.[0-5].*) ;;
14859 *)
14860 # The compiler driver will combine linker options so we
14861 # cannot just pass the convience library names through
14862 # without $wl, iff we do not link with $LD.
14863 # Luckily, gcc supports the same syntax we need for Sun Studio.
14864 # Supported since Solaris 2.6 (maybe 2.5.1?)
14865 case $wlarc in
14866 '')
14867 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14868 *)
14869 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14870 esac ;;
14871 esac
14872 link_all_deplibs_F77=yes
14873 ;;
14874
14875 sunos4*)
14876 if test "x$host_vendor" = xsequent; then
14877 # Use $CC to link under sequent, because it throws in some extra .o
14878 # files that make .init and .fini sections work.
14879 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14880 else
14881 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14882 fi
14883 hardcode_libdir_flag_spec_F77='-L$libdir'
14884 hardcode_direct_F77=yes
14885 hardcode_minus_L_F77=yes
14886 hardcode_shlibpath_var_F77=no
14887 ;;
14888
14889 sysv4)
14890 case $host_vendor in
14891 sni)
14892 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14893 hardcode_direct_F77=yes # is this really true???
14894 ;;
14895 siemens)
14896 ## LD is ld it makes a PLAMLIB
14897 ## CC just makes a GrossModule.
14898 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14899 reload_cmds_F77='$CC -r -o $output$reload_objs'
14900 hardcode_direct_F77=no
14901 ;;
14902 motorola)
14903 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14905 ;;
14906 esac
14907 runpath_var='LD_RUN_PATH'
14908 hardcode_shlibpath_var_F77=no
14909 ;;
14910
14911 sysv4.3*)
14912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14913 hardcode_shlibpath_var_F77=no
14914 export_dynamic_flag_spec_F77='-Bexport'
14915 ;;
14916
14917 sysv4*MP*)
14918 if test -d /usr/nec; then
14919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920 hardcode_shlibpath_var_F77=no
14921 runpath_var=LD_RUN_PATH
14922 hardcode_runpath_var=yes
14923 ld_shlibs_F77=yes
14924 fi
14925 ;;
14926
14927 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14928 no_undefined_flag_F77='${wl}-z,text'
14929 archive_cmds_need_lc_F77=no
14930 hardcode_shlibpath_var_F77=no
14931 runpath_var='LD_RUN_PATH'
14932
14933 if test "$GCC" = yes; then
14934 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14935 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14936 else
14937 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14938 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14939 fi
14940 ;;
14941
14942 sysv5* | sco3.2v5* | sco5v6*)
14943 # Note: We can NOT use -z defs as we might desire, because we do not
14944 # link with -lc, and that would cause any symbols used from libc to
14945 # always be unresolved, which means just about no library would
14946 # ever link correctly. If we're not using GNU ld we use -z text
14947 # though, which does catch some bad symbols but isn't as heavy-handed
14948 # as -z defs.
14949 no_undefined_flag_F77='${wl}-z,text'
14950 allow_undefined_flag_F77='${wl}-z,nodefs'
14951 archive_cmds_need_lc_F77=no
14952 hardcode_shlibpath_var_F77=no
14953 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14954 hardcode_libdir_separator_F77=':'
14955 link_all_deplibs_F77=yes
14956 export_dynamic_flag_spec_F77='${wl}-Bexport'
14957 runpath_var='LD_RUN_PATH'
14958
14959 if test "$GCC" = yes; then
14960 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14962 else
14963 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14965 fi
14966 ;;
14967
14968 uts4*)
14969 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970 hardcode_libdir_flag_spec_F77='-L$libdir'
14971 hardcode_shlibpath_var_F77=no
14972 ;;
14973
14974 *)
14975 ld_shlibs_F77=no
14976 ;;
14977 esac
14978 fi
14979
14980 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14981 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14982 test "$ld_shlibs_F77" = no && can_build_shared=no
14983
14984 #
14985 # Do we need to explicitly link libc?
14986 #
14987 case "x$archive_cmds_need_lc_F77" in
14988 x|xyes)
14989 # Assume -lc should be added
14990 archive_cmds_need_lc_F77=yes
14991
14992 if test "$enable_shared" = yes && test "$GCC" = yes; then
14993 case $archive_cmds_F77 in
14994 *'~'*)
14995 # FIXME: we may have to deal with multi-command sequences.
14996 ;;
14997 '$CC '*)
14998 # Test whether the compiler implicitly links with -lc since on some
14999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15000 # to ld, don't add -lc before -lgcc.
15001 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15002 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15003 $rm conftest*
15004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15005
15006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15007 (eval $ac_compile) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } 2>conftest.err; then
15011 soname=conftest
15012 lib=conftest
15013 libobjs=conftest.$ac_objext
15014 deplibs=
15015 wl=$lt_prog_compiler_wl_F77
15016 pic_flag=$lt_prog_compiler_pic_F77
15017 compiler_flags=-v
15018 linker_flags=-v
15019 verstring=
15020 output_objdir=.
15021 libname=conftest
15022 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15023 allow_undefined_flag_F77=
15024 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15025 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }
15029 then
15030 archive_cmds_need_lc_F77=no
15031 else
15032 archive_cmds_need_lc_F77=yes
15033 fi
15034 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15035 else
15036 cat conftest.err 1>&5
15037 fi
15038 $rm conftest*
15039 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15040 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15041 ;;
15042 esac
15043 fi
15044 ;;
15045 esac
15046
15047 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15048 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15049 library_names_spec=
15050 libname_spec='lib$name'
15051 soname_spec=
15052 shrext_cmds=".so"
15053 postinstall_cmds=
15054 postuninstall_cmds=
15055 finish_cmds=
15056 finish_eval=
15057 shlibpath_var=
15058 shlibpath_overrides_runpath=unknown
15059 version_type=none
15060 dynamic_linker="$host_os ld.so"
15061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15062 if test "$GCC" = yes; then
15063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15064 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15065 # if the path contains ";" then we assume it to be the separator
15066 # otherwise default to the standard path separator (i.e. ":") - it is
15067 # assumed that no part of a normal pathname contains ";" but that should
15068 # okay in the real world where ";" in dirpaths is itself problematic.
15069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15070 else
15071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15072 fi
15073 else
15074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15075 fi
15076 need_lib_prefix=unknown
15077 hardcode_into_libs=no
15078
15079 # when you set need_version to no, make sure it does not cause -set_version
15080 # flags to be left without arguments
15081 need_version=unknown
15082
15083 case $host_os in
15084 aix3*)
15085 version_type=linux
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15087 shlibpath_var=LIBPATH
15088
15089 # AIX 3 has no versioning support, so we append a major version to the name.
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 ;;
15092
15093 aix4* | aix5*)
15094 version_type=linux
15095 need_lib_prefix=no
15096 need_version=no
15097 hardcode_into_libs=yes
15098 if test "$host_cpu" = ia64; then
15099 # AIX 5 supports IA64
15100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 else
15103 # With GCC up to 2.95.x, collect2 would create an import file
15104 # for dependence libraries. The import file would start with
15105 # the line `#! .'. This would cause the generated library to
15106 # depend on `.', always an invalid library. This was fixed in
15107 # development snapshots of GCC prior to 3.0.
15108 case $host_os in
15109 aix4 | aix4.[01] | aix4.[01].*)
15110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15111 echo ' yes '
15112 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15113 :
15114 else
15115 can_build_shared=no
15116 fi
15117 ;;
15118 esac
15119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15120 # soname into executable. Probably we can add versioning support to
15121 # collect2, so additional links can be useful in future.
15122 if test "$aix_use_runtimelinking" = yes; then
15123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15124 # instead of lib<name>.a to let people know that these are not
15125 # typical AIX shared libraries.
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15127 else
15128 # We preserve .a as extension for shared libraries through AIX4.2
15129 # and later when we are not doing run time linking.
15130 library_names_spec='${libname}${release}.a $libname.a'
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 fi
15133 shlibpath_var=LIBPATH
15134 fi
15135 ;;
15136
15137 amigaos*)
15138 library_names_spec='$libname.ixlibrary $libname.a'
15139 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15140 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15141 ;;
15142
15143 beos*)
15144 library_names_spec='${libname}${shared_ext}'
15145 dynamic_linker="$host_os ld.so"
15146 shlibpath_var=LIBRARY_PATH
15147 ;;
15148
15149 bsdi[45]*)
15150 version_type=linux
15151 need_version=no
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15157 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15158 # the default ld.so.conf also contains /usr/contrib/lib and
15159 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15160 # libtool to hard-code these into programs
15161 ;;
15162
15163 cygwin* | mingw* | pw32*)
15164 version_type=windows
15165 shrext_cmds=".dll"
15166 need_version=no
15167 need_lib_prefix=no
15168
15169 case $GCC,$host_os in
15170 yes,cygwin* | yes,mingw* | yes,pw32*)
15171 library_names_spec='$libname.dll.a'
15172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15173 postinstall_cmds='base_file=`basename \${file}`~
15174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15175 dldir=$destdir/`dirname \$dlpath`~
15176 test -d \$dldir || mkdir -p \$dldir~
15177 $install_prog $dir/$dlname \$dldir/$dlname~
15178 chmod a+x \$dldir/$dlname'
15179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15180 dlpath=$dir/\$dldll~
15181 $rm \$dlpath'
15182 shlibpath_overrides_runpath=yes
15183
15184 case $host_os in
15185 cygwin*)
15186 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15187 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15188 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15189 ;;
15190 mingw*)
15191 # MinGW DLLs use traditional 'lib' prefix
15192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15193 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15194 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15195 # It is most probably a Windows format PATH printed by
15196 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15197 # path with ; separators, and with drive letters. We can handle the
15198 # drive letters (cygwin fileutils understands them), so leave them,
15199 # especially as we might pass files found there to a mingw objdump,
15200 # which wouldn't understand a cygwinified path. Ahh.
15201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15202 else
15203 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15204 fi
15205 ;;
15206 pw32*)
15207 # pw32 DLLs use 'pw' prefix rather than 'lib'
15208 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15209 ;;
15210 esac
15211 ;;
15212
15213 *)
15214 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15215 ;;
15216 esac
15217 dynamic_linker='Win32 ld.exe'
15218 # FIXME: first we should search . and the directory the executable is in
15219 shlibpath_var=PATH
15220 ;;
15221
15222 darwin* | rhapsody*)
15223 dynamic_linker="$host_os dyld"
15224 version_type=darwin
15225 need_lib_prefix=no
15226 need_version=no
15227 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15228 soname_spec='${libname}${release}${major}$shared_ext'
15229 shlibpath_overrides_runpath=yes
15230 shlibpath_var=DYLD_LIBRARY_PATH
15231 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15232 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15233 if test "$GCC" = yes; then
15234 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15235 else
15236 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15237 fi
15238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15239 ;;
15240
15241 dgux*)
15242 version_type=linux
15243 need_lib_prefix=no
15244 need_version=no
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 ;;
15249
15250 freebsd1*)
15251 dynamic_linker=no
15252 ;;
15253
15254 kfreebsd*-gnu)
15255 version_type=linux
15256 need_lib_prefix=no
15257 need_version=no
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=no
15262 hardcode_into_libs=yes
15263 dynamic_linker='GNU ld.so'
15264 ;;
15265
15266 freebsd* | dragonfly*)
15267 # DragonFly does not have aout. When/if they implement a new
15268 # versioning mechanism, adjust this.
15269 if test -x /usr/bin/objformat; then
15270 objformat=`/usr/bin/objformat`
15271 else
15272 case $host_os in
15273 freebsd[123]*) objformat=aout ;;
15274 *) objformat=elf ;;
15275 esac
15276 fi
15277 version_type=freebsd-$objformat
15278 case $version_type in
15279 freebsd-elf*)
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15281 need_version=no
15282 need_lib_prefix=no
15283 ;;
15284 freebsd-*)
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15286 need_version=yes
15287 ;;
15288 esac
15289 shlibpath_var=LD_LIBRARY_PATH
15290 case $host_os in
15291 freebsd2*)
15292 shlibpath_overrides_runpath=yes
15293 ;;
15294 freebsd3.[01]* | freebsdelf3.[01]*)
15295 shlibpath_overrides_runpath=yes
15296 hardcode_into_libs=yes
15297 ;;
15298 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15299 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15300 shlibpath_overrides_runpath=no
15301 hardcode_into_libs=yes
15302 ;;
15303 freebsd*) # from 4.6 on
15304 shlibpath_overrides_runpath=yes
15305 hardcode_into_libs=yes
15306 ;;
15307 esac
15308 ;;
15309
15310 gnu*)
15311 version_type=linux
15312 need_lib_prefix=no
15313 need_version=no
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 hardcode_into_libs=yes
15318 ;;
15319
15320 hpux9* | hpux10* | hpux11*)
15321 # Give a soname corresponding to the major version so that dld.sl refuses to
15322 # link against other versions.
15323 version_type=sunos
15324 need_lib_prefix=no
15325 need_version=no
15326 case $host_cpu in
15327 ia64*)
15328 shrext_cmds='.so'
15329 hardcode_into_libs=yes
15330 dynamic_linker="$host_os dld.so"
15331 shlibpath_var=LD_LIBRARY_PATH
15332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 if test "X$HPUX_IA64_MODE" = X32; then
15336 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15337 else
15338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15339 fi
15340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15341 ;;
15342 hppa*64*)
15343 shrext_cmds='.sl'
15344 hardcode_into_libs=yes
15345 dynamic_linker="$host_os dld.sl"
15346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15352 ;;
15353 *)
15354 shrext_cmds='.sl'
15355 dynamic_linker="$host_os dld.sl"
15356 shlibpath_var=SHLIB_PATH
15357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 ;;
15361 esac
15362 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15363 postinstall_cmds='chmod 555 $lib'
15364 ;;
15365
15366 interix3*)
15367 version_type=linux
15368 need_lib_prefix=no
15369 need_version=no
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15373 shlibpath_var=LD_LIBRARY_PATH
15374 shlibpath_overrides_runpath=no
15375 hardcode_into_libs=yes
15376 ;;
15377
15378 irix5* | irix6* | nonstopux*)
15379 case $host_os in
15380 nonstopux*) version_type=nonstopux ;;
15381 *)
15382 if test "$lt_cv_prog_gnu_ld" = yes; then
15383 version_type=linux
15384 else
15385 version_type=irix
15386 fi ;;
15387 esac
15388 need_lib_prefix=no
15389 need_version=no
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15392 case $host_os in
15393 irix5* | nonstopux*)
15394 libsuff= shlibsuff=
15395 ;;
15396 *)
15397 case $LD in # libtool.m4 will add one of these switches to LD
15398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15399 libsuff= shlibsuff= libmagic=32-bit;;
15400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15401 libsuff=32 shlibsuff=N32 libmagic=N32;;
15402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15404 *) libsuff= shlibsuff= libmagic=never-match;;
15405 esac
15406 ;;
15407 esac
15408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15409 shlibpath_overrides_runpath=no
15410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15412 hardcode_into_libs=yes
15413 ;;
15414
15415 # No shared lib support for Linux oldld, aout, or coff.
15416 linux*oldld* | linux*aout* | linux*coff*)
15417 dynamic_linker=no
15418 ;;
15419
15420 # This must be Linux ELF.
15421 linux*)
15422 version_type=linux
15423 need_lib_prefix=no
15424 need_version=no
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=no
15430 # This implies no fast_install, which is unacceptable.
15431 # Some rework will be needed to allow for fast_install
15432 # before this can be enabled.
15433 hardcode_into_libs=yes
15434
15435 # Append ld.so.conf contents to the search path
15436 if test -f /etc/ld.so.conf; then
15437 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15438 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15439 fi
15440
15441 # We used to test for /lib/ld.so.1 and disable shared libraries on
15442 # powerpc, because MkLinux only supported shared libraries with the
15443 # GNU dynamic linker. Since this was broken with cross compilers,
15444 # most powerpc-linux boxes support dynamic linking these days and
15445 # people can always --disable-shared, the test was removed, and we
15446 # assume the GNU/Linux dynamic linker is in use.
15447 dynamic_linker='GNU/Linux ld.so'
15448 ;;
15449
15450 knetbsd*-gnu)
15451 version_type=linux
15452 need_lib_prefix=no
15453 need_version=no
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 shlibpath_var=LD_LIBRARY_PATH
15457 shlibpath_overrides_runpath=no
15458 hardcode_into_libs=yes
15459 dynamic_linker='GNU ld.so'
15460 ;;
15461
15462 netbsd*)
15463 version_type=sunos
15464 need_lib_prefix=no
15465 need_version=no
15466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15469 dynamic_linker='NetBSD (a.out) ld.so'
15470 else
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 dynamic_linker='NetBSD ld.elf_so'
15474 fi
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=yes
15477 hardcode_into_libs=yes
15478 ;;
15479
15480 newsos6)
15481 version_type=linux
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483 shlibpath_var=LD_LIBRARY_PATH
15484 shlibpath_overrides_runpath=yes
15485 ;;
15486
15487 nto-qnx*)
15488 version_type=linux
15489 need_lib_prefix=no
15490 need_version=no
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 shlibpath_var=LD_LIBRARY_PATH
15494 shlibpath_overrides_runpath=yes
15495 ;;
15496
15497 openbsd*)
15498 version_type=sunos
15499 sys_lib_dlsearch_path_spec="/usr/lib"
15500 need_lib_prefix=no
15501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15502 case $host_os in
15503 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15504 *) need_version=no ;;
15505 esac
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15510 case $host_os in
15511 openbsd2.[89] | openbsd2.[89].*)
15512 shlibpath_overrides_runpath=no
15513 ;;
15514 *)
15515 shlibpath_overrides_runpath=yes
15516 ;;
15517 esac
15518 else
15519 shlibpath_overrides_runpath=yes
15520 fi
15521 ;;
15522
15523 os2*)
15524 libname_spec='$name'
15525 shrext_cmds=".dll"
15526 need_lib_prefix=no
15527 library_names_spec='$libname${shared_ext} $libname.a'
15528 dynamic_linker='OS/2 ld.exe'
15529 shlibpath_var=LIBPATH
15530 ;;
15531
15532 osf3* | osf4* | osf5*)
15533 version_type=osf
15534 need_lib_prefix=no
15535 need_version=no
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15540 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15541 ;;
15542
15543 solaris*)
15544 version_type=linux
15545 need_lib_prefix=no
15546 need_version=no
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=yes
15551 hardcode_into_libs=yes
15552 # ldd complains unless libraries are executable
15553 postinstall_cmds='chmod +x $lib'
15554 ;;
15555
15556 sunos4*)
15557 version_type=sunos
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15560 shlibpath_var=LD_LIBRARY_PATH
15561 shlibpath_overrides_runpath=yes
15562 if test "$with_gnu_ld" = yes; then
15563 need_lib_prefix=no
15564 fi
15565 need_version=yes
15566 ;;
15567
15568 sysv4 | sysv4.3*)
15569 version_type=linux
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 soname_spec='${libname}${release}${shared_ext}$major'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 case $host_vendor in
15574 sni)
15575 shlibpath_overrides_runpath=no
15576 need_lib_prefix=no
15577 export_dynamic_flag_spec='${wl}-Blargedynsym'
15578 runpath_var=LD_RUN_PATH
15579 ;;
15580 siemens)
15581 need_lib_prefix=no
15582 ;;
15583 motorola)
15584 need_lib_prefix=no
15585 need_version=no
15586 shlibpath_overrides_runpath=no
15587 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15588 ;;
15589 esac
15590 ;;
15591
15592 sysv4*MP*)
15593 if test -d /usr/nec ;then
15594 version_type=linux
15595 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15596 soname_spec='$libname${shared_ext}.$major'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 fi
15599 ;;
15600
15601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15602 version_type=freebsd-elf
15603 need_lib_prefix=no
15604 need_version=no
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15606 soname_spec='${libname}${release}${shared_ext}$major'
15607 shlibpath_var=LD_LIBRARY_PATH
15608 hardcode_into_libs=yes
15609 if test "$with_gnu_ld" = yes; then
15610 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15611 shlibpath_overrides_runpath=no
15612 else
15613 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15614 shlibpath_overrides_runpath=yes
15615 case $host_os in
15616 sco3.2v5*)
15617 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15618 ;;
15619 esac
15620 fi
15621 sys_lib_dlsearch_path_spec='/usr/lib'
15622 ;;
15623
15624 uts4*)
15625 version_type=linux
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 ;;
15630
15631 *)
15632 dynamic_linker=no
15633 ;;
15634 esac
15635 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15636 echo "${ECHO_T}$dynamic_linker" >&6; }
15637 test "$dynamic_linker" = no && can_build_shared=no
15638
15639 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15640 if test "$GCC" = yes; then
15641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15642 fi
15643
15644 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15645 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15646 hardcode_action_F77=
15647 if test -n "$hardcode_libdir_flag_spec_F77" || \
15648 test -n "$runpath_var_F77" || \
15649 test "X$hardcode_automatic_F77" = "Xyes" ; then
15650
15651 # We can hardcode non-existant directories.
15652 if test "$hardcode_direct_F77" != no &&
15653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15654 # have to relink, otherwise we might link with an installed library
15655 # when we should be linking with a yet-to-be-installed one
15656 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15657 test "$hardcode_minus_L_F77" != no; then
15658 # Linking always hardcodes the temporary library directory.
15659 hardcode_action_F77=relink
15660 else
15661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15662 hardcode_action_F77=immediate
15663 fi
15664 else
15665 # We cannot hardcode anything, or else we can only hardcode existing
15666 # directories.
15667 hardcode_action_F77=unsupported
15668 fi
15669 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15670 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15671
15672 if test "$hardcode_action_F77" = relink; then
15673 # Fast installation is not supported
15674 enable_fast_install=no
15675 elif test "$shlibpath_overrides_runpath" = yes ||
15676 test "$enable_shared" = no; then
15677 # Fast installation is not necessary
15678 enable_fast_install=needless
15679 fi
15680
15681
15682 # The else clause should only fire when bootstrapping the
15683 # libtool distribution, otherwise you forgot to ship ltmain.sh
15684 # with your package, and you will get complaints that there are
15685 # no rules to generate ltmain.sh.
15686 if test -f "$ltmain"; then
15687 # See if we are running on zsh, and set the options which allow our commands through
15688 # without removal of \ escapes.
15689 if test -n "${ZSH_VERSION+set}" ; then
15690 setopt NO_GLOB_SUBST
15691 fi
15692 # Now quote all the things that may contain metacharacters while being
15693 # careful not to overquote the AC_SUBSTed values. We take copies of the
15694 # variables and quote the copies for generation of the libtool script.
15695 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15696 SED SHELL STRIP \
15697 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15698 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15699 deplibs_check_method reload_flag reload_cmds need_locks \
15700 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15701 lt_cv_sys_global_symbol_to_c_name_address \
15702 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15703 old_postinstall_cmds old_postuninstall_cmds \
15704 compiler_F77 \
15705 CC_F77 \
15706 LD_F77 \
15707 lt_prog_compiler_wl_F77 \
15708 lt_prog_compiler_pic_F77 \
15709 lt_prog_compiler_static_F77 \
15710 lt_prog_compiler_no_builtin_flag_F77 \
15711 export_dynamic_flag_spec_F77 \
15712 thread_safe_flag_spec_F77 \
15713 whole_archive_flag_spec_F77 \
15714 enable_shared_with_static_runtimes_F77 \
15715 old_archive_cmds_F77 \
15716 old_archive_from_new_cmds_F77 \
15717 predep_objects_F77 \
15718 postdep_objects_F77 \
15719 predeps_F77 \
15720 postdeps_F77 \
15721 compiler_lib_search_path_F77 \
15722 archive_cmds_F77 \
15723 archive_expsym_cmds_F77 \
15724 postinstall_cmds_F77 \
15725 postuninstall_cmds_F77 \
15726 old_archive_from_expsyms_cmds_F77 \
15727 allow_undefined_flag_F77 \
15728 no_undefined_flag_F77 \
15729 export_symbols_cmds_F77 \
15730 hardcode_libdir_flag_spec_F77 \
15731 hardcode_libdir_flag_spec_ld_F77 \
15732 hardcode_libdir_separator_F77 \
15733 hardcode_automatic_F77 \
15734 module_cmds_F77 \
15735 module_expsym_cmds_F77 \
15736 lt_cv_prog_compiler_c_o_F77 \
15737 exclude_expsyms_F77 \
15738 include_expsyms_F77; do
15739
15740 case $var in
15741 old_archive_cmds_F77 | \
15742 old_archive_from_new_cmds_F77 | \
15743 archive_cmds_F77 | \
15744 archive_expsym_cmds_F77 | \
15745 module_cmds_F77 | \
15746 module_expsym_cmds_F77 | \
15747 old_archive_from_expsyms_cmds_F77 | \
15748 export_symbols_cmds_F77 | \
15749 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15750 postinstall_cmds | postuninstall_cmds | \
15751 old_postinstall_cmds | old_postuninstall_cmds | \
15752 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15753 # Double-quote double-evaled strings.
15754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15755 ;;
15756 *)
15757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15758 ;;
15759 esac
15760 done
15761
15762 case $lt_echo in
15763 *'\$0 --fallback-echo"')
15764 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15765 ;;
15766 esac
15767
15768 cfgfile="$ofile"
15769
15770 cat <<__EOF__ >> "$cfgfile"
15771 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15772
15773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15774
15775 # Shell to use when invoking shell scripts.
15776 SHELL=$lt_SHELL
15777
15778 # Whether or not to build shared libraries.
15779 build_libtool_libs=$enable_shared
15780
15781 # Whether or not to build static libraries.
15782 build_old_libs=$enable_static
15783
15784 # Whether or not to add -lc for building shared libraries.
15785 build_libtool_need_lc=$archive_cmds_need_lc_F77
15786
15787 # Whether or not to disallow shared libs when runtime libs are static
15788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15789
15790 # Whether or not to optimize for fast installation.
15791 fast_install=$enable_fast_install
15792
15793 # The host system.
15794 host_alias=$host_alias
15795 host=$host
15796 host_os=$host_os
15797
15798 # The build system.
15799 build_alias=$build_alias
15800 build=$build
15801 build_os=$build_os
15802
15803 # An echo program that does not interpret backslashes.
15804 echo=$lt_echo
15805
15806 # The archiver.
15807 AR=$lt_AR
15808 AR_FLAGS=$lt_AR_FLAGS
15809
15810 # A C compiler.
15811 LTCC=$lt_LTCC
15812
15813 # LTCC compiler flags.
15814 LTCFLAGS=$lt_LTCFLAGS
15815
15816 # A language-specific compiler.
15817 CC=$lt_compiler_F77
15818
15819 # Is the compiler the GNU C compiler?
15820 with_gcc=$GCC_F77
15821
15822 # An ERE matcher.
15823 EGREP=$lt_EGREP
15824
15825 # The linker used to build libraries.
15826 LD=$lt_LD_F77
15827
15828 # Whether we need hard or soft links.
15829 LN_S=$lt_LN_S
15830
15831 # A BSD-compatible nm program.
15832 NM=$lt_NM
15833
15834 # A symbol stripping program
15835 STRIP=$lt_STRIP
15836
15837 # Used to examine libraries when file_magic_cmd begins "file"
15838 MAGIC_CMD=$MAGIC_CMD
15839
15840 # Used on cygwin: DLL creation program.
15841 DLLTOOL="$DLLTOOL"
15842
15843 # Used on cygwin: object dumper.
15844 OBJDUMP="$OBJDUMP"
15845
15846 # Used on cygwin: assembler.
15847 AS="$AS"
15848
15849 # The name of the directory that contains temporary libtool files.
15850 objdir=$objdir
15851
15852 # How to create reloadable object files.
15853 reload_flag=$lt_reload_flag
15854 reload_cmds=$lt_reload_cmds
15855
15856 # How to pass a linker flag through the compiler.
15857 wl=$lt_lt_prog_compiler_wl_F77
15858
15859 # Object file suffix (normally "o").
15860 objext="$ac_objext"
15861
15862 # Old archive suffix (normally "a").
15863 libext="$libext"
15864
15865 # Shared library suffix (normally ".so").
15866 shrext_cmds='$shrext_cmds'
15867
15868 # Executable file suffix (normally "").
15869 exeext="$exeext"
15870
15871 # Additional compiler flags for building library objects.
15872 pic_flag=$lt_lt_prog_compiler_pic_F77
15873 pic_mode=$pic_mode
15874
15875 # What is the maximum length of a command?
15876 max_cmd_len=$lt_cv_sys_max_cmd_len
15877
15878 # Does compiler simultaneously support -c and -o options?
15879 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15880
15881 # Must we lock files when doing compilation?
15882 need_locks=$lt_need_locks
15883
15884 # Do we need the lib prefix for modules?
15885 need_lib_prefix=$need_lib_prefix
15886
15887 # Do we need a version for libraries?
15888 need_version=$need_version
15889
15890 # Whether dlopen is supported.
15891 dlopen_support=$enable_dlopen
15892
15893 # Whether dlopen of programs is supported.
15894 dlopen_self=$enable_dlopen_self
15895
15896 # Whether dlopen of statically linked programs is supported.
15897 dlopen_self_static=$enable_dlopen_self_static
15898
15899 # Compiler flag to prevent dynamic linking.
15900 link_static_flag=$lt_lt_prog_compiler_static_F77
15901
15902 # Compiler flag to turn off builtin functions.
15903 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15904
15905 # Compiler flag to allow reflexive dlopens.
15906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15907
15908 # Compiler flag to generate shared objects directly from archives.
15909 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15910
15911 # Compiler flag to generate thread-safe objects.
15912 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15913
15914 # Library versioning type.
15915 version_type=$version_type
15916
15917 # Format of library name prefix.
15918 libname_spec=$lt_libname_spec
15919
15920 # List of archive names. First name is the real one, the rest are links.
15921 # The last name is the one that the linker finds with -lNAME.
15922 library_names_spec=$lt_library_names_spec
15923
15924 # The coded name of the library, if different from the real name.
15925 soname_spec=$lt_soname_spec
15926
15927 # Commands used to build and install an old-style archive.
15928 RANLIB=$lt_RANLIB
15929 old_archive_cmds=$lt_old_archive_cmds_F77
15930 old_postinstall_cmds=$lt_old_postinstall_cmds
15931 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15932
15933 # Create an old-style archive from a shared archive.
15934 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15935
15936 # Create a temporary old-style archive to link instead of a shared archive.
15937 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15938
15939 # Commands used to build and install a shared archive.
15940 archive_cmds=$lt_archive_cmds_F77
15941 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15942 postinstall_cmds=$lt_postinstall_cmds
15943 postuninstall_cmds=$lt_postuninstall_cmds
15944
15945 # Commands used to build a loadable module (assumed same as above if empty)
15946 module_cmds=$lt_module_cmds_F77
15947 module_expsym_cmds=$lt_module_expsym_cmds_F77
15948
15949 # Commands to strip libraries.
15950 old_striplib=$lt_old_striplib
15951 striplib=$lt_striplib
15952
15953 # Dependencies to place before the objects being linked to create a
15954 # shared library.
15955 predep_objects=$lt_predep_objects_F77
15956
15957 # Dependencies to place after the objects being linked to create a
15958 # shared library.
15959 postdep_objects=$lt_postdep_objects_F77
15960
15961 # Dependencies to place before the objects being linked to create a
15962 # shared library.
15963 predeps=$lt_predeps_F77
15964
15965 # Dependencies to place after the objects being linked to create a
15966 # shared library.
15967 postdeps=$lt_postdeps_F77
15968
15969 # The library search path used internally by the compiler when linking
15970 # a shared library.
15971 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15972
15973 # Method to check whether dependent libraries are shared objects.
15974 deplibs_check_method=$lt_deplibs_check_method
15975
15976 # Command to use when deplibs_check_method == file_magic.
15977 file_magic_cmd=$lt_file_magic_cmd
15978
15979 # Flag that allows shared libraries with undefined symbols to be built.
15980 allow_undefined_flag=$lt_allow_undefined_flag_F77
15981
15982 # Flag that forces no undefined symbols.
15983 no_undefined_flag=$lt_no_undefined_flag_F77
15984
15985 # Commands used to finish a libtool library installation in a directory.
15986 finish_cmds=$lt_finish_cmds
15987
15988 # Same as above, but a single script fragment to be evaled but not shown.
15989 finish_eval=$lt_finish_eval
15990
15991 # Take the output of nm and produce a listing of raw symbols and C names.
15992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15993
15994 # Transform the output of nm in a proper C declaration
15995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15996
15997 # Transform the output of nm in a C name address pair
15998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15999
16000 # This is the shared library runtime path variable.
16001 runpath_var=$runpath_var
16002
16003 # This is the shared library path variable.
16004 shlibpath_var=$shlibpath_var
16005
16006 # Is shlibpath searched before the hard-coded library search path?
16007 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16008
16009 # How to hardcode a shared library path into an executable.
16010 hardcode_action=$hardcode_action_F77
16011
16012 # Whether we should hardcode library paths into libraries.
16013 hardcode_into_libs=$hardcode_into_libs
16014
16015 # Flag to hardcode \$libdir into a binary during linking.
16016 # This must work even if \$libdir does not exist.
16017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16018
16019 # If ld is used when linking, flag to hardcode \$libdir into
16020 # a binary during linking. This must work even if \$libdir does
16021 # not exist.
16022 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16023
16024 # Whether we need a single -rpath flag with a separated argument.
16025 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16026
16027 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16028 # resulting binary.
16029 hardcode_direct=$hardcode_direct_F77
16030
16031 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16032 # resulting binary.
16033 hardcode_minus_L=$hardcode_minus_L_F77
16034
16035 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16036 # the resulting binary.
16037 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16038
16039 # Set to yes if building a shared library automatically hardcodes DIR into the library
16040 # and all subsequent libraries and executables linked against it.
16041 hardcode_automatic=$hardcode_automatic_F77
16042
16043 # Variables whose values should be saved in libtool wrapper scripts and
16044 # restored at relink time.
16045 variables_saved_for_relink="$variables_saved_for_relink"
16046
16047 # Whether libtool must link a program against all its dependency libraries.
16048 link_all_deplibs=$link_all_deplibs_F77
16049
16050 # Compile-time system search path for libraries
16051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16052
16053 # Run-time system search path for libraries
16054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16055
16056 # Fix the shell variable \$srcfile for the compiler.
16057 fix_srcfile_path="$fix_srcfile_path_F77"
16058
16059 # Set to yes if exported symbols are required.
16060 always_export_symbols=$always_export_symbols_F77
16061
16062 # The commands to list exported symbols.
16063 export_symbols_cmds=$lt_export_symbols_cmds_F77
16064
16065 # The commands to extract the exported symbol list from a shared archive.
16066 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16067
16068 # Symbols that should not be listed in the preloaded symbols.
16069 exclude_expsyms=$lt_exclude_expsyms_F77
16070
16071 # Symbols that must always be exported.
16072 include_expsyms=$lt_include_expsyms_F77
16073
16074 # ### END LIBTOOL TAG CONFIG: $tagname
16075
16076 __EOF__
16077
16078
16079 else
16080 # If there is no Makefile yet, we rely on a make rule to execute
16081 # `config.status --recheck' to rerun these tests and create the
16082 # libtool script then.
16083 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16084 if test -f "$ltmain_in"; then
16085 test -f Makefile && make "$ltmain"
16086 fi
16087 fi
16088
16089
16090 ac_ext=c
16091 ac_cpp='$CPP $CPPFLAGS'
16092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16095
16096 CC="$lt_save_CC"
16097
16098 else
16099 tagname=""
16100 fi
16101 ;;
16102
16103 GCJ)
16104 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16105
16106
16107 # Source file extension for Java test sources.
16108 ac_ext=java
16109
16110 # Object file extension for compiled Java test sources.
16111 objext=o
16112 objext_GCJ=$objext
16113
16114 # Code to be used in simple compile tests
16115 lt_simple_compile_test_code="class foo {}\n"
16116
16117 # Code to be used in simple link tests
16118 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16119
16120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16121
16122 # If no C compiler was specified, use CC.
16123 LTCC=${LTCC-"$CC"}
16124
16125 # If no C compiler flags were specified, use CFLAGS.
16126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16127
16128 # Allow CC to be a program name with arguments.
16129 compiler=$CC
16130
16131
16132 # save warnings/boilerplate of simple test code
16133 ac_outfile=conftest.$ac_objext
16134 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16136 _lt_compiler_boilerplate=`cat conftest.err`
16137 $rm conftest*
16138
16139 ac_outfile=conftest.$ac_objext
16140 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16142 _lt_linker_boilerplate=`cat conftest.err`
16143 $rm conftest*
16144
16145
16146 # Allow CC to be a program name with arguments.
16147 lt_save_CC="$CC"
16148 CC=${GCJ-"gcj"}
16149 compiler=$CC
16150 compiler_GCJ=$CC
16151 for cc_temp in $compiler""; do
16152 case $cc_temp in
16153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16155 \-*) ;;
16156 *) break;;
16157 esac
16158 done
16159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16160
16161
16162 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16163 archive_cmds_need_lc_GCJ=no
16164
16165 old_archive_cmds_GCJ=$old_archive_cmds
16166
16167
16168 lt_prog_compiler_no_builtin_flag_GCJ=
16169
16170 if test "$GCC" = yes; then
16171 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16172
16173
16174 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16175 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16176 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 else
16179 lt_cv_prog_compiler_rtti_exceptions=no
16180 ac_outfile=conftest.$ac_objext
16181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16182 lt_compiler_flag="-fno-rtti -fno-exceptions"
16183 # Insert the option either (1) after the last *FLAGS variable, or
16184 # (2) before a word containing "conftest.", or (3) at the end.
16185 # Note that $ac_compile itself does not contain backslashes and begins
16186 # with a dollar sign (not a hyphen), so the echo should work correctly.
16187 # The option is referenced via a variable to avoid confusing sed.
16188 lt_compile=`echo "$ac_compile" | $SED \
16189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16191 -e 's:$: $lt_compiler_flag:'`
16192 (eval echo "\"\$as_me:16192: $lt_compile\"" >&5)
16193 (eval "$lt_compile" 2>conftest.err)
16194 ac_status=$?
16195 cat conftest.err >&5
16196 echo "$as_me:16196: \$? = $ac_status" >&5
16197 if (exit $ac_status) && test -s "$ac_outfile"; then
16198 # The compiler can only warn and ignore the option if not recognized
16199 # So say no if there are warnings other than the usual output.
16200 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16203 lt_cv_prog_compiler_rtti_exceptions=yes
16204 fi
16205 fi
16206 $rm conftest*
16207
16208 fi
16209 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16210 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16211
16212 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16213 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16214 else
16215 :
16216 fi
16217
16218 fi
16219
16220 lt_prog_compiler_wl_GCJ=
16221 lt_prog_compiler_pic_GCJ=
16222 lt_prog_compiler_static_GCJ=
16223
16224 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16225 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16226
16227 if test "$GCC" = yes; then
16228 lt_prog_compiler_wl_GCJ='-Wl,'
16229 lt_prog_compiler_static_GCJ='-static'
16230
16231 case $host_os in
16232 aix*)
16233 # All AIX code is PIC.
16234 if test "$host_cpu" = ia64; then
16235 # AIX 5 now supports IA64 processor
16236 lt_prog_compiler_static_GCJ='-Bstatic'
16237 fi
16238 ;;
16239
16240 amigaos*)
16241 # FIXME: we need at least 68020 code to build shared libraries, but
16242 # adding the `-m68020' flag to GCC prevents building anything better,
16243 # like `-m68040'.
16244 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16245 ;;
16246
16247 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16248 # PIC is the default for these OSes.
16249 ;;
16250
16251 mingw* | pw32* | os2*)
16252 # This hack is so that the source file can tell whether it is being
16253 # built for inclusion in a dll (and should export symbols for example).
16254 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16255 ;;
16256
16257 darwin* | rhapsody*)
16258 # PIC is the default on this platform
16259 # Common symbols not allowed in MH_DYLIB files
16260 lt_prog_compiler_pic_GCJ='-fno-common'
16261 ;;
16262
16263 interix3*)
16264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16265 # Instead, we relocate shared libraries at runtime.
16266 ;;
16267
16268 msdosdjgpp*)
16269 # Just because we use GCC doesn't mean we suddenly get shared libraries
16270 # on systems that don't support them.
16271 lt_prog_compiler_can_build_shared_GCJ=no
16272 enable_shared=no
16273 ;;
16274
16275 sysv4*MP*)
16276 if test -d /usr/nec; then
16277 lt_prog_compiler_pic_GCJ=-Kconform_pic
16278 fi
16279 ;;
16280
16281 hpux*)
16282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16283 # not for PA HP-UX.
16284 case $host_cpu in
16285 hppa*64*|ia64*)
16286 # +Z the default
16287 ;;
16288 *)
16289 lt_prog_compiler_pic_GCJ='-fPIC'
16290 ;;
16291 esac
16292 ;;
16293
16294 *)
16295 lt_prog_compiler_pic_GCJ='-fPIC'
16296 ;;
16297 esac
16298 else
16299 # PORTME Check for flag to pass linker flags through the system compiler.
16300 case $host_os in
16301 aix*)
16302 lt_prog_compiler_wl_GCJ='-Wl,'
16303 if test "$host_cpu" = ia64; then
16304 # AIX 5 now supports IA64 processor
16305 lt_prog_compiler_static_GCJ='-Bstatic'
16306 else
16307 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16308 fi
16309 ;;
16310 darwin*)
16311 # PIC is the default on this platform
16312 # Common symbols not allowed in MH_DYLIB files
16313 case $cc_basename in
16314 xlc*)
16315 lt_prog_compiler_pic_GCJ='-qnocommon'
16316 lt_prog_compiler_wl_GCJ='-Wl,'
16317 ;;
16318 esac
16319 ;;
16320
16321 mingw* | pw32* | os2*)
16322 # This hack is so that the source file can tell whether it is being
16323 # built for inclusion in a dll (and should export symbols for example).
16324 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16325 ;;
16326
16327 hpux9* | hpux10* | hpux11*)
16328 lt_prog_compiler_wl_GCJ='-Wl,'
16329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16330 # not for PA HP-UX.
16331 case $host_cpu in
16332 hppa*64*|ia64*)
16333 # +Z the default
16334 ;;
16335 *)
16336 lt_prog_compiler_pic_GCJ='+Z'
16337 ;;
16338 esac
16339 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16340 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16341 ;;
16342
16343 irix5* | irix6* | nonstopux*)
16344 lt_prog_compiler_wl_GCJ='-Wl,'
16345 # PIC (with -KPIC) is the default.
16346 lt_prog_compiler_static_GCJ='-non_shared'
16347 ;;
16348
16349 newsos6)
16350 lt_prog_compiler_pic_GCJ='-KPIC'
16351 lt_prog_compiler_static_GCJ='-Bstatic'
16352 ;;
16353
16354 linux*)
16355 case $cc_basename in
16356 icc* | ecc*)
16357 lt_prog_compiler_wl_GCJ='-Wl,'
16358 lt_prog_compiler_pic_GCJ='-KPIC'
16359 lt_prog_compiler_static_GCJ='-static'
16360 ;;
16361 pgcc* | pgf77* | pgf90* | pgf95*)
16362 # Portland Group compilers (*not* the Pentium gcc compiler,
16363 # which looks to be a dead project)
16364 lt_prog_compiler_wl_GCJ='-Wl,'
16365 lt_prog_compiler_pic_GCJ='-fpic'
16366 lt_prog_compiler_static_GCJ='-Bstatic'
16367 ;;
16368 ccc*)
16369 lt_prog_compiler_wl_GCJ='-Wl,'
16370 # All Alpha code is PIC.
16371 lt_prog_compiler_static_GCJ='-non_shared'
16372 ;;
16373 esac
16374 ;;
16375
16376 osf3* | osf4* | osf5*)
16377 lt_prog_compiler_wl_GCJ='-Wl,'
16378 # All OSF/1 code is PIC.
16379 lt_prog_compiler_static_GCJ='-non_shared'
16380 ;;
16381
16382 solaris*)
16383 lt_prog_compiler_pic_GCJ='-KPIC'
16384 lt_prog_compiler_static_GCJ='-Bstatic'
16385 case $cc_basename in
16386 f77* | f90* | f95*)
16387 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16388 *)
16389 lt_prog_compiler_wl_GCJ='-Wl,';;
16390 esac
16391 ;;
16392
16393 sunos4*)
16394 lt_prog_compiler_wl_GCJ='-Qoption ld '
16395 lt_prog_compiler_pic_GCJ='-PIC'
16396 lt_prog_compiler_static_GCJ='-Bstatic'
16397 ;;
16398
16399 sysv4 | sysv4.2uw2* | sysv4.3*)
16400 lt_prog_compiler_wl_GCJ='-Wl,'
16401 lt_prog_compiler_pic_GCJ='-KPIC'
16402 lt_prog_compiler_static_GCJ='-Bstatic'
16403 ;;
16404
16405 sysv4*MP*)
16406 if test -d /usr/nec ;then
16407 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16408 lt_prog_compiler_static_GCJ='-Bstatic'
16409 fi
16410 ;;
16411
16412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16413 lt_prog_compiler_wl_GCJ='-Wl,'
16414 lt_prog_compiler_pic_GCJ='-KPIC'
16415 lt_prog_compiler_static_GCJ='-Bstatic'
16416 ;;
16417
16418 unicos*)
16419 lt_prog_compiler_wl_GCJ='-Wl,'
16420 lt_prog_compiler_can_build_shared_GCJ=no
16421 ;;
16422
16423 uts4*)
16424 lt_prog_compiler_pic_GCJ='-pic'
16425 lt_prog_compiler_static_GCJ='-Bstatic'
16426 ;;
16427
16428 *)
16429 lt_prog_compiler_can_build_shared_GCJ=no
16430 ;;
16431 esac
16432 fi
16433
16434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16435 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16436
16437 #
16438 # Check to make sure the PIC flag actually works.
16439 #
16440 if test -n "$lt_prog_compiler_pic_GCJ"; then
16441
16442 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16443 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16444 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447 lt_prog_compiler_pic_works_GCJ=no
16448 ac_outfile=conftest.$ac_objext
16449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16450 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16451 # Insert the option either (1) after the last *FLAGS variable, or
16452 # (2) before a word containing "conftest.", or (3) at the end.
16453 # Note that $ac_compile itself does not contain backslashes and begins
16454 # with a dollar sign (not a hyphen), so the echo should work correctly.
16455 # The option is referenced via a variable to avoid confusing sed.
16456 lt_compile=`echo "$ac_compile" | $SED \
16457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16459 -e 's:$: $lt_compiler_flag:'`
16460 (eval echo "\"\$as_me:16460: $lt_compile\"" >&5)
16461 (eval "$lt_compile" 2>conftest.err)
16462 ac_status=$?
16463 cat conftest.err >&5
16464 echo "$as_me:16464: \$? = $ac_status" >&5
16465 if (exit $ac_status) && test -s "$ac_outfile"; then
16466 # The compiler can only warn and ignore the option if not recognized
16467 # So say no if there are warnings other than the usual output.
16468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16471 lt_prog_compiler_pic_works_GCJ=yes
16472 fi
16473 fi
16474 $rm conftest*
16475
16476 fi
16477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16478 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16479
16480 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16481 case $lt_prog_compiler_pic_GCJ in
16482 "" | " "*) ;;
16483 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16484 esac
16485 else
16486 lt_prog_compiler_pic_GCJ=
16487 lt_prog_compiler_can_build_shared_GCJ=no
16488 fi
16489
16490 fi
16491 case $host_os in
16492 # For platforms which do not support PIC, -DPIC is meaningless:
16493 *djgpp*)
16494 lt_prog_compiler_pic_GCJ=
16495 ;;
16496 *)
16497 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16498 ;;
16499 esac
16500
16501 #
16502 # Check to make sure the static flag actually works.
16503 #
16504 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16505 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16506 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16507 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510 lt_prog_compiler_static_works_GCJ=no
16511 save_LDFLAGS="$LDFLAGS"
16512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16513 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16515 # The linker can only warn and ignore the option if not recognized
16516 # So say no if there are warnings
16517 if test -s conftest.err; then
16518 # Append any errors to the config.log.
16519 cat conftest.err 1>&5
16520 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16522 if diff conftest.exp conftest.er2 >/dev/null; then
16523 lt_prog_compiler_static_works_GCJ=yes
16524 fi
16525 else
16526 lt_prog_compiler_static_works_GCJ=yes
16527 fi
16528 fi
16529 $rm conftest*
16530 LDFLAGS="$save_LDFLAGS"
16531
16532 fi
16533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16534 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16535
16536 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16537 :
16538 else
16539 lt_prog_compiler_static_GCJ=
16540 fi
16541
16542
16543 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16544 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16545 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548 lt_cv_prog_compiler_c_o_GCJ=no
16549 $rm -r conftest 2>/dev/null
16550 mkdir conftest
16551 cd conftest
16552 mkdir out
16553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16554
16555 lt_compiler_flag="-o out/conftest2.$ac_objext"
16556 # Insert the option either (1) after the last *FLAGS variable, or
16557 # (2) before a word containing "conftest.", or (3) at the end.
16558 # Note that $ac_compile itself does not contain backslashes and begins
16559 # with a dollar sign (not a hyphen), so the echo should work correctly.
16560 lt_compile=`echo "$ac_compile" | $SED \
16561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16563 -e 's:$: $lt_compiler_flag:'`
16564 (eval echo "\"\$as_me:16564: $lt_compile\"" >&5)
16565 (eval "$lt_compile" 2>out/conftest.err)
16566 ac_status=$?
16567 cat out/conftest.err >&5
16568 echo "$as_me:16568: \$? = $ac_status" >&5
16569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16570 then
16571 # The compiler can only warn and ignore the option if not recognized
16572 # So say no if there are warnings
16573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16576 lt_cv_prog_compiler_c_o_GCJ=yes
16577 fi
16578 fi
16579 chmod u+w . 2>&5
16580 $rm conftest*
16581 # SGI C++ compiler will create directory out/ii_files/ for
16582 # template instantiation
16583 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16584 $rm out/* && rmdir out
16585 cd ..
16586 rmdir conftest
16587 $rm conftest*
16588
16589 fi
16590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16591 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16592
16593
16594 hard_links="nottested"
16595 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16596 # do not overwrite the value of need_locks provided by the user
16597 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16598 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16599 hard_links=yes
16600 $rm conftest*
16601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16602 touch conftest.a
16603 ln conftest.a conftest.b 2>&5 || hard_links=no
16604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16605 { echo "$as_me:$LINENO: result: $hard_links" >&5
16606 echo "${ECHO_T}$hard_links" >&6; }
16607 if test "$hard_links" = no; then
16608 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16609 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16610 need_locks=warn
16611 fi
16612 else
16613 need_locks=no
16614 fi
16615
16616 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16617 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16618
16619 runpath_var=
16620 allow_undefined_flag_GCJ=
16621 enable_shared_with_static_runtimes_GCJ=no
16622 archive_cmds_GCJ=
16623 archive_expsym_cmds_GCJ=
16624 old_archive_From_new_cmds_GCJ=
16625 old_archive_from_expsyms_cmds_GCJ=
16626 export_dynamic_flag_spec_GCJ=
16627 whole_archive_flag_spec_GCJ=
16628 thread_safe_flag_spec_GCJ=
16629 hardcode_libdir_flag_spec_GCJ=
16630 hardcode_libdir_flag_spec_ld_GCJ=
16631 hardcode_libdir_separator_GCJ=
16632 hardcode_direct_GCJ=no
16633 hardcode_minus_L_GCJ=no
16634 hardcode_shlibpath_var_GCJ=unsupported
16635 link_all_deplibs_GCJ=unknown
16636 hardcode_automatic_GCJ=no
16637 module_cmds_GCJ=
16638 module_expsym_cmds_GCJ=
16639 always_export_symbols_GCJ=no
16640 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16641 # include_expsyms should be a list of space-separated symbols to be *always*
16642 # included in the symbol list
16643 include_expsyms_GCJ=
16644 # exclude_expsyms can be an extended regexp of symbols to exclude
16645 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16646 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16647 # as well as any symbol that contains `d'.
16648 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16649 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16650 # platforms (ab)use it in PIC code, but their linkers get confused if
16651 # the symbol is explicitly referenced. Since portable code cannot
16652 # rely on this symbol name, it's probably fine to never include it in
16653 # preloaded symbol tables.
16654 extract_expsyms_cmds=
16655 # Just being paranoid about ensuring that cc_basename is set.
16656 for cc_temp in $compiler""; do
16657 case $cc_temp in
16658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16660 \-*) ;;
16661 *) break;;
16662 esac
16663 done
16664 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16665
16666 case $host_os in
16667 cygwin* | mingw* | pw32*)
16668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16669 # When not using gcc, we currently assume that we are using
16670 # Microsoft Visual C++.
16671 if test "$GCC" != yes; then
16672 with_gnu_ld=no
16673 fi
16674 ;;
16675 interix*)
16676 # we just hope/assume this is gcc and not c89 (= MSVC++)
16677 with_gnu_ld=yes
16678 ;;
16679 openbsd*)
16680 with_gnu_ld=no
16681 ;;
16682 esac
16683
16684 ld_shlibs_GCJ=yes
16685 if test "$with_gnu_ld" = yes; then
16686 # If archive_cmds runs LD, not CC, wlarc should be empty
16687 wlarc='${wl}'
16688
16689 # Set some defaults for GNU ld with shared library support. These
16690 # are reset later if shared libraries are not supported. Putting them
16691 # here allows them to be overridden if necessary.
16692 runpath_var=LD_RUN_PATH
16693 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16694 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16695 # ancient GNU ld didn't support --whole-archive et. al.
16696 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16697 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16698 else
16699 whole_archive_flag_spec_GCJ=
16700 fi
16701 supports_anon_versioning=no
16702 case `$LD -v 2>/dev/null` in
16703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16706 *\ 2.11.*) ;; # other 2.11 versions
16707 *) supports_anon_versioning=yes ;;
16708 esac
16709
16710 # See if GNU ld supports shared libraries.
16711 case $host_os in
16712 aix3* | aix4* | aix5*)
16713 # On AIX/PPC, the GNU linker is very broken
16714 if test "$host_cpu" != ia64; then
16715 ld_shlibs_GCJ=no
16716 cat <<EOF 1>&2
16717
16718 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16719 *** to be unable to reliably create shared libraries on AIX.
16720 *** Therefore, libtool is disabling shared libraries support. If you
16721 *** really care for shared libraries, you may want to modify your PATH
16722 *** so that a non-GNU linker is found, and then restart.
16723
16724 EOF
16725 fi
16726 ;;
16727
16728 amigaos*)
16729 archive_cmds_GCJ='$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)'
16730 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16731 hardcode_minus_L_GCJ=yes
16732
16733 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16734 # that the semantics of dynamic libraries on AmigaOS, at least up
16735 # to version 4, is to share data among multiple programs linked
16736 # with the same dynamic library. Since this doesn't match the
16737 # behavior of shared libraries on other platforms, we can't use
16738 # them.
16739 ld_shlibs_GCJ=no
16740 ;;
16741
16742 beos*)
16743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16744 allow_undefined_flag_GCJ=unsupported
16745 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16746 # support --undefined. This deserves some investigation. FIXME
16747 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16748 else
16749 ld_shlibs_GCJ=no
16750 fi
16751 ;;
16752
16753 cygwin* | mingw* | pw32*)
16754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16755 # as there is no search path for DLLs.
16756 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16757 allow_undefined_flag_GCJ=unsupported
16758 always_export_symbols_GCJ=no
16759 enable_shared_with_static_runtimes_GCJ=yes
16760 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16761
16762 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16763 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16764 # If the export-symbols file already is a .def file (1st line
16765 # is EXPORTS), use it as is; otherwise, prepend...
16766 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16767 cp $export_symbols $output_objdir/$soname.def;
16768 else
16769 echo EXPORTS > $output_objdir/$soname.def;
16770 cat $export_symbols >> $output_objdir/$soname.def;
16771 fi~
16772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16773 else
16774 ld_shlibs_GCJ=no
16775 fi
16776 ;;
16777
16778 interix3*)
16779 hardcode_direct_GCJ=no
16780 hardcode_shlibpath_var_GCJ=no
16781 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16782 export_dynamic_flag_spec_GCJ='${wl}-E'
16783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16784 # Instead, shared libraries are loaded at an image base (0x10000000 by
16785 # default) and relocated if they conflict, which is a slow very memory
16786 # consuming and fragmenting process. To avoid this, we pick a random,
16787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16789 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16790 archive_expsym_cmds_GCJ='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'
16791 ;;
16792
16793 linux*)
16794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16795 tmp_addflag=
16796 case $cc_basename,$host_cpu in
16797 pgcc*) # Portland Group C compiler
16798 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16799 tmp_addflag=' $pic_flag'
16800 ;;
16801 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16802 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16803 tmp_addflag=' $pic_flag -Mnomain' ;;
16804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16805 tmp_addflag=' -i_dynamic' ;;
16806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16807 tmp_addflag=' -i_dynamic -nofor_main' ;;
16808 ifc* | ifort*) # Intel Fortran compiler
16809 tmp_addflag=' -nofor_main' ;;
16810 esac
16811 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16812
16813 if test $supports_anon_versioning = yes; then
16814 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16816 $echo "local: *; };" >> $output_objdir/$libname.ver~
16817 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16818 fi
16819 else
16820 ld_shlibs_GCJ=no
16821 fi
16822 ;;
16823
16824 netbsd*)
16825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16826 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16827 wlarc=
16828 else
16829 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16830 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16831 fi
16832 ;;
16833
16834 solaris*)
16835 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16836 ld_shlibs_GCJ=no
16837 cat <<EOF 1>&2
16838
16839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16840 *** create shared libraries on Solaris systems. Therefore, libtool
16841 *** is disabling shared libraries support. We urge you to upgrade GNU
16842 *** binutils to release 2.9.1 or newer. Another option is to modify
16843 *** your PATH or compiler configuration so that the native linker is
16844 *** used, and then restart.
16845
16846 EOF
16847 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16848 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16849 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16850 else
16851 ld_shlibs_GCJ=no
16852 fi
16853 ;;
16854
16855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16856 case `$LD -v 2>&1` in
16857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16858 ld_shlibs_GCJ=no
16859 cat <<_LT_EOF 1>&2
16860
16861 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16862 *** reliably create shared libraries on SCO systems. Therefore, libtool
16863 *** is disabling shared libraries support. We urge you to upgrade GNU
16864 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16865 *** your PATH or compiler configuration so that the native linker is
16866 *** used, and then restart.
16867
16868 _LT_EOF
16869 ;;
16870 *)
16871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16872 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16873 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16874 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16875 else
16876 ld_shlibs_GCJ=no
16877 fi
16878 ;;
16879 esac
16880 ;;
16881
16882 sunos4*)
16883 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16884 wlarc=
16885 hardcode_direct_GCJ=yes
16886 hardcode_shlibpath_var_GCJ=no
16887 ;;
16888
16889 *)
16890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16891 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16892 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16893 else
16894 ld_shlibs_GCJ=no
16895 fi
16896 ;;
16897 esac
16898
16899 if test "$ld_shlibs_GCJ" = no; then
16900 runpath_var=
16901 hardcode_libdir_flag_spec_GCJ=
16902 export_dynamic_flag_spec_GCJ=
16903 whole_archive_flag_spec_GCJ=
16904 fi
16905 else
16906 # PORTME fill in a description of your system's linker (not GNU ld)
16907 case $host_os in
16908 aix3*)
16909 allow_undefined_flag_GCJ=unsupported
16910 always_export_symbols_GCJ=yes
16911 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16912 # Note: this linker hardcodes the directories in LIBPATH if there
16913 # are no directories specified by -L.
16914 hardcode_minus_L_GCJ=yes
16915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16916 # Neither direct hardcoding nor static linking is supported with a
16917 # broken collect2.
16918 hardcode_direct_GCJ=unsupported
16919 fi
16920 ;;
16921
16922 aix4* | aix5*)
16923 if test "$host_cpu" = ia64; then
16924 # On IA64, the linker does run time linking by default, so we don't
16925 # have to do anything special.
16926 aix_use_runtimelinking=no
16927 exp_sym_flag='-Bexport'
16928 no_entry_flag=""
16929 else
16930 # If we're using GNU nm, then we don't want the "-C" option.
16931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16933 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16934 else
16935 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16936 fi
16937 aix_use_runtimelinking=no
16938
16939 # Test if we are trying to use run time linking or normal
16940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16941 # need to do runtime linking.
16942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16943 for ld_flag in $LDFLAGS; do
16944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16945 aix_use_runtimelinking=yes
16946 break
16947 fi
16948 done
16949 ;;
16950 esac
16951
16952 exp_sym_flag='-bexport'
16953 no_entry_flag='-bnoentry'
16954 fi
16955
16956 # When large executables or shared objects are built, AIX ld can
16957 # have problems creating the table of contents. If linking a library
16958 # or program results in "error TOC overflow" add -mminimal-toc to
16959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16961
16962 archive_cmds_GCJ=''
16963 hardcode_direct_GCJ=yes
16964 hardcode_libdir_separator_GCJ=':'
16965 link_all_deplibs_GCJ=yes
16966
16967 if test "$GCC" = yes; then
16968 case $host_os in aix4.[012]|aix4.[012].*)
16969 # We only want to do this on AIX 4.2 and lower, the check
16970 # below for broken collect2 doesn't work under 4.3+
16971 collect2name=`${CC} -print-prog-name=collect2`
16972 if test -f "$collect2name" && \
16973 strings "$collect2name" | grep resolve_lib_name >/dev/null
16974 then
16975 # We have reworked collect2
16976 hardcode_direct_GCJ=yes
16977 else
16978 # We have old collect2
16979 hardcode_direct_GCJ=unsupported
16980 # It fails to find uninstalled libraries when the uninstalled
16981 # path is not listed in the libpath. Setting hardcode_minus_L
16982 # to unsupported forces relinking
16983 hardcode_minus_L_GCJ=yes
16984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985 hardcode_libdir_separator_GCJ=
16986 fi
16987 ;;
16988 esac
16989 shared_flag='-shared'
16990 if test "$aix_use_runtimelinking" = yes; then
16991 shared_flag="$shared_flag "'${wl}-G'
16992 fi
16993 else
16994 # not using gcc
16995 if test "$host_cpu" = ia64; then
16996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16997 # chokes on -Wl,-G. The following line is correct:
16998 shared_flag='-G'
16999 else
17000 if test "$aix_use_runtimelinking" = yes; then
17001 shared_flag='${wl}-G'
17002 else
17003 shared_flag='${wl}-bM:SRE'
17004 fi
17005 fi
17006 fi
17007
17008 # It seems that -bexpall does not export symbols beginning with
17009 # underscore (_), so it is better to generate a list of symbols to export.
17010 always_export_symbols_GCJ=yes
17011 if test "$aix_use_runtimelinking" = yes; then
17012 # Warning - without using the other runtime loading flags (-brtl),
17013 # -berok will link without error, but may produce a broken library.
17014 allow_undefined_flag_GCJ='-berok'
17015 # Determine the default libpath from the value encoded in an empty executable.
17016 cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h. */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022
17023 int
17024 main ()
17025 {
17026
17027 ;
17028 return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_link") 2>conftest.er1
17039 ac_status=$?
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && {
17045 test -z "$ac_c_werror_flag" ||
17046 test ! -s conftest.err
17047 } && test -s conftest$ac_exeext &&
17048 $as_test_x conftest$ac_exeext; then
17049
17050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17051 }'`
17052 # Check for a 64-bit object if we didn't find anything.
17053 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17054 }'`; fi
17055 else
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17058
17059
17060 fi
17061
17062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17063 conftest$ac_exeext conftest.$ac_ext
17064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17065
17066 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17067 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17068 else
17069 if test "$host_cpu" = ia64; then
17070 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17071 allow_undefined_flag_GCJ="-z nodefs"
17072 archive_expsym_cmds_GCJ="\$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"
17073 else
17074 # Determine the default libpath from the value encoded in an empty executable.
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081
17082 int
17083 main ()
17084 {
17085
17086 ;
17087 return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (ac_try="$ac_link"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_link") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest$ac_exeext &&
17107 $as_test_x conftest$ac_exeext; then
17108
17109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17110 }'`
17111 # Check for a 64-bit object if we didn't find anything.
17112 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17113 }'`; fi
17114 else
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118
17119 fi
17120
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17124
17125 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17126 # Warning - without using the other run time loading flags,
17127 # -berok will link without error, but may produce a broken library.
17128 no_undefined_flag_GCJ=' ${wl}-bernotok'
17129 allow_undefined_flag_GCJ=' ${wl}-berok'
17130 # Exported symbols can be pulled into shared objects from archives
17131 whole_archive_flag_spec_GCJ='$convenience'
17132 archive_cmds_need_lc_GCJ=yes
17133 # This is similar to how AIX traditionally builds its shared libraries.
17134 archive_expsym_cmds_GCJ="\$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'
17135 fi
17136 fi
17137 ;;
17138
17139 amigaos*)
17140 archive_cmds_GCJ='$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)'
17141 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17142 hardcode_minus_L_GCJ=yes
17143 # see comment about different semantics on the GNU ld section
17144 ld_shlibs_GCJ=no
17145 ;;
17146
17147 bsdi[45]*)
17148 export_dynamic_flag_spec_GCJ=-rdynamic
17149 ;;
17150
17151 cygwin* | mingw* | pw32*)
17152 # When not using gcc, we currently assume that we are using
17153 # Microsoft Visual C++.
17154 # hardcode_libdir_flag_spec is actually meaningless, as there is
17155 # no search path for DLLs.
17156 hardcode_libdir_flag_spec_GCJ=' '
17157 allow_undefined_flag_GCJ=unsupported
17158 # Tell ltmain to make .lib files, not .a files.
17159 libext=lib
17160 # Tell ltmain to make .dll files, not .so files.
17161 shrext_cmds=".dll"
17162 # FIXME: Setting linknames here is a bad hack.
17163 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17164 # The linker will automatically build a .lib file if we build a DLL.
17165 old_archive_From_new_cmds_GCJ='true'
17166 # FIXME: Should let the user specify the lib program.
17167 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17168 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17169 enable_shared_with_static_runtimes_GCJ=yes
17170 ;;
17171
17172 darwin* | rhapsody*)
17173 case $host_os in
17174 rhapsody* | darwin1.[012])
17175 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17176 ;;
17177 *) # Darwin 1.3 on
17178 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17179 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17180 else
17181 case ${MACOSX_DEPLOYMENT_TARGET} in
17182 10.[012])
17183 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17184 ;;
17185 10.*)
17186 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17187 ;;
17188 esac
17189 fi
17190 ;;
17191 esac
17192 archive_cmds_need_lc_GCJ=no
17193 hardcode_direct_GCJ=no
17194 hardcode_automatic_GCJ=yes
17195 hardcode_shlibpath_var_GCJ=unsupported
17196 whole_archive_flag_spec_GCJ=''
17197 link_all_deplibs_GCJ=yes
17198 if test "$GCC" = yes ; then
17199 output_verbose_link_cmd='echo'
17200 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17201 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17202 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17203 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17204 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17205 else
17206 case $cc_basename in
17207 xlc*)
17208 output_verbose_link_cmd='echo'
17209 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17210 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17211 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17212 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17213 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17214 ;;
17215 *)
17216 ld_shlibs_GCJ=no
17217 ;;
17218 esac
17219 fi
17220 ;;
17221
17222 dgux*)
17223 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17224 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17225 hardcode_shlibpath_var_GCJ=no
17226 ;;
17227
17228 freebsd1*)
17229 ld_shlibs_GCJ=no
17230 ;;
17231
17232 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17233 # support. Future versions do this automatically, but an explicit c++rt0.o
17234 # does not break anything, and helps significantly (at the cost of a little
17235 # extra space).
17236 freebsd2.2*)
17237 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17238 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17239 hardcode_direct_GCJ=yes
17240 hardcode_shlibpath_var_GCJ=no
17241 ;;
17242
17243 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17244 freebsd2*)
17245 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17246 hardcode_direct_GCJ=yes
17247 hardcode_minus_L_GCJ=yes
17248 hardcode_shlibpath_var_GCJ=no
17249 ;;
17250
17251 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17252 freebsd* | kfreebsd*-gnu | dragonfly*)
17253 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17254 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17255 hardcode_direct_GCJ=yes
17256 hardcode_shlibpath_var_GCJ=no
17257 ;;
17258
17259 hpux9*)
17260 if test "$GCC" = yes; then
17261 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17262 else
17263 archive_cmds_GCJ='$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'
17264 fi
17265 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17266 hardcode_libdir_separator_GCJ=:
17267 hardcode_direct_GCJ=yes
17268
17269 # hardcode_minus_L: Not really in the search PATH,
17270 # but as the default location of the library.
17271 hardcode_minus_L_GCJ=yes
17272 export_dynamic_flag_spec_GCJ='${wl}-E'
17273 ;;
17274
17275 hpux10*)
17276 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17277 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17278 else
17279 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17280 fi
17281 if test "$with_gnu_ld" = no; then
17282 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17283 hardcode_libdir_separator_GCJ=:
17284
17285 hardcode_direct_GCJ=yes
17286 export_dynamic_flag_spec_GCJ='${wl}-E'
17287
17288 # hardcode_minus_L: Not really in the search PATH,
17289 # but as the default location of the library.
17290 hardcode_minus_L_GCJ=yes
17291 fi
17292 ;;
17293
17294 hpux11*)
17295 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17296 case $host_cpu in
17297 hppa*64*)
17298 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17299 ;;
17300 ia64*)
17301 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17302 ;;
17303 *)
17304 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17305 ;;
17306 esac
17307 else
17308 case $host_cpu in
17309 hppa*64*)
17310 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17311 ;;
17312 ia64*)
17313 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17314 ;;
17315 *)
17316 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17317 ;;
17318 esac
17319 fi
17320 if test "$with_gnu_ld" = no; then
17321 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17322 hardcode_libdir_separator_GCJ=:
17323
17324 case $host_cpu in
17325 hppa*64*|ia64*)
17326 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17327 hardcode_direct_GCJ=no
17328 hardcode_shlibpath_var_GCJ=no
17329 ;;
17330 *)
17331 hardcode_direct_GCJ=yes
17332 export_dynamic_flag_spec_GCJ='${wl}-E'
17333
17334 # hardcode_minus_L: Not really in the search PATH,
17335 # but as the default location of the library.
17336 hardcode_minus_L_GCJ=yes
17337 ;;
17338 esac
17339 fi
17340 ;;
17341
17342 irix5* | irix6* | nonstopux*)
17343 if test "$GCC" = yes; then
17344 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17345 else
17346 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17347 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17348 fi
17349 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17350 hardcode_libdir_separator_GCJ=:
17351 link_all_deplibs_GCJ=yes
17352 ;;
17353
17354 netbsd*)
17355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17356 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17357 else
17358 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17359 fi
17360 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17361 hardcode_direct_GCJ=yes
17362 hardcode_shlibpath_var_GCJ=no
17363 ;;
17364
17365 newsos6)
17366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_direct_GCJ=yes
17368 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17369 hardcode_libdir_separator_GCJ=:
17370 hardcode_shlibpath_var_GCJ=no
17371 ;;
17372
17373 openbsd*)
17374 hardcode_direct_GCJ=yes
17375 hardcode_shlibpath_var_GCJ=no
17376 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17377 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17378 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17379 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17380 export_dynamic_flag_spec_GCJ='${wl}-E'
17381 else
17382 case $host_os in
17383 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17384 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17385 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17386 ;;
17387 *)
17388 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17390 ;;
17391 esac
17392 fi
17393 ;;
17394
17395 os2*)
17396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17397 hardcode_minus_L_GCJ=yes
17398 allow_undefined_flag_GCJ=unsupported
17399 archive_cmds_GCJ='$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'
17400 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17401 ;;
17402
17403 osf3*)
17404 if test "$GCC" = yes; then
17405 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17406 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17407 else
17408 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17409 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17410 fi
17411 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17412 hardcode_libdir_separator_GCJ=:
17413 ;;
17414
17415 osf4* | osf5*) # as osf3* with the addition of -msym flag
17416 if test "$GCC" = yes; then
17417 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17418 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17419 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17420 else
17421 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17422 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17423 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17424 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17425
17426 # Both c and cxx compiler support -rpath directly
17427 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17428 fi
17429 hardcode_libdir_separator_GCJ=:
17430 ;;
17431
17432 solaris*)
17433 no_undefined_flag_GCJ=' -z text'
17434 if test "$GCC" = yes; then
17435 wlarc='${wl}'
17436 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17437 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17438 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17439 else
17440 wlarc=''
17441 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17442 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17444 fi
17445 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17446 hardcode_shlibpath_var_GCJ=no
17447 case $host_os in
17448 solaris2.[0-5] | solaris2.[0-5].*) ;;
17449 *)
17450 # The compiler driver will combine linker options so we
17451 # cannot just pass the convience library names through
17452 # without $wl, iff we do not link with $LD.
17453 # Luckily, gcc supports the same syntax we need for Sun Studio.
17454 # Supported since Solaris 2.6 (maybe 2.5.1?)
17455 case $wlarc in
17456 '')
17457 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17458 *)
17459 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17460 esac ;;
17461 esac
17462 link_all_deplibs_GCJ=yes
17463 ;;
17464
17465 sunos4*)
17466 if test "x$host_vendor" = xsequent; then
17467 # Use $CC to link under sequent, because it throws in some extra .o
17468 # files that make .init and .fini sections work.
17469 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17470 else
17471 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17472 fi
17473 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17474 hardcode_direct_GCJ=yes
17475 hardcode_minus_L_GCJ=yes
17476 hardcode_shlibpath_var_GCJ=no
17477 ;;
17478
17479 sysv4)
17480 case $host_vendor in
17481 sni)
17482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17483 hardcode_direct_GCJ=yes # is this really true???
17484 ;;
17485 siemens)
17486 ## LD is ld it makes a PLAMLIB
17487 ## CC just makes a GrossModule.
17488 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17489 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17490 hardcode_direct_GCJ=no
17491 ;;
17492 motorola)
17493 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17494 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17495 ;;
17496 esac
17497 runpath_var='LD_RUN_PATH'
17498 hardcode_shlibpath_var_GCJ=no
17499 ;;
17500
17501 sysv4.3*)
17502 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17503 hardcode_shlibpath_var_GCJ=no
17504 export_dynamic_flag_spec_GCJ='-Bexport'
17505 ;;
17506
17507 sysv4*MP*)
17508 if test -d /usr/nec; then
17509 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17510 hardcode_shlibpath_var_GCJ=no
17511 runpath_var=LD_RUN_PATH
17512 hardcode_runpath_var=yes
17513 ld_shlibs_GCJ=yes
17514 fi
17515 ;;
17516
17517 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17518 no_undefined_flag_GCJ='${wl}-z,text'
17519 archive_cmds_need_lc_GCJ=no
17520 hardcode_shlibpath_var_GCJ=no
17521 runpath_var='LD_RUN_PATH'
17522
17523 if test "$GCC" = yes; then
17524 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17525 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17526 else
17527 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17528 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17529 fi
17530 ;;
17531
17532 sysv5* | sco3.2v5* | sco5v6*)
17533 # Note: We can NOT use -z defs as we might desire, because we do not
17534 # link with -lc, and that would cause any symbols used from libc to
17535 # always be unresolved, which means just about no library would
17536 # ever link correctly. If we're not using GNU ld we use -z text
17537 # though, which does catch some bad symbols but isn't as heavy-handed
17538 # as -z defs.
17539 no_undefined_flag_GCJ='${wl}-z,text'
17540 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17541 archive_cmds_need_lc_GCJ=no
17542 hardcode_shlibpath_var_GCJ=no
17543 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17544 hardcode_libdir_separator_GCJ=':'
17545 link_all_deplibs_GCJ=yes
17546 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17547 runpath_var='LD_RUN_PATH'
17548
17549 if test "$GCC" = yes; then
17550 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17551 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17552 else
17553 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17554 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17555 fi
17556 ;;
17557
17558 uts4*)
17559 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561 hardcode_shlibpath_var_GCJ=no
17562 ;;
17563
17564 *)
17565 ld_shlibs_GCJ=no
17566 ;;
17567 esac
17568 fi
17569
17570 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17571 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17572 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17573
17574 #
17575 # Do we need to explicitly link libc?
17576 #
17577 case "x$archive_cmds_need_lc_GCJ" in
17578 x|xyes)
17579 # Assume -lc should be added
17580 archive_cmds_need_lc_GCJ=yes
17581
17582 if test "$enable_shared" = yes && test "$GCC" = yes; then
17583 case $archive_cmds_GCJ in
17584 *'~'*)
17585 # FIXME: we may have to deal with multi-command sequences.
17586 ;;
17587 '$CC '*)
17588 # Test whether the compiler implicitly links with -lc since on some
17589 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17590 # to ld, don't add -lc before -lgcc.
17591 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17592 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17593 $rm conftest*
17594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17595
17596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17597 (eval $ac_compile) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } 2>conftest.err; then
17601 soname=conftest
17602 lib=conftest
17603 libobjs=conftest.$ac_objext
17604 deplibs=
17605 wl=$lt_prog_compiler_wl_GCJ
17606 pic_flag=$lt_prog_compiler_pic_GCJ
17607 compiler_flags=-v
17608 linker_flags=-v
17609 verstring=
17610 output_objdir=.
17611 libname=conftest
17612 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17613 allow_undefined_flag_GCJ=
17614 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17615 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }
17619 then
17620 archive_cmds_need_lc_GCJ=no
17621 else
17622 archive_cmds_need_lc_GCJ=yes
17623 fi
17624 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17625 else
17626 cat conftest.err 1>&5
17627 fi
17628 $rm conftest*
17629 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17630 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17631 ;;
17632 esac
17633 fi
17634 ;;
17635 esac
17636
17637 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17638 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17639 library_names_spec=
17640 libname_spec='lib$name'
17641 soname_spec=
17642 shrext_cmds=".so"
17643 postinstall_cmds=
17644 postuninstall_cmds=
17645 finish_cmds=
17646 finish_eval=
17647 shlibpath_var=
17648 shlibpath_overrides_runpath=unknown
17649 version_type=none
17650 dynamic_linker="$host_os ld.so"
17651 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17652 if test "$GCC" = yes; then
17653 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17654 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17655 # if the path contains ";" then we assume it to be the separator
17656 # otherwise default to the standard path separator (i.e. ":") - it is
17657 # assumed that no part of a normal pathname contains ";" but that should
17658 # okay in the real world where ";" in dirpaths is itself problematic.
17659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17660 else
17661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17662 fi
17663 else
17664 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17665 fi
17666 need_lib_prefix=unknown
17667 hardcode_into_libs=no
17668
17669 # when you set need_version to no, make sure it does not cause -set_version
17670 # flags to be left without arguments
17671 need_version=unknown
17672
17673 case $host_os in
17674 aix3*)
17675 version_type=linux
17676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17677 shlibpath_var=LIBPATH
17678
17679 # AIX 3 has no versioning support, so we append a major version to the name.
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 ;;
17682
17683 aix4* | aix5*)
17684 version_type=linux
17685 need_lib_prefix=no
17686 need_version=no
17687 hardcode_into_libs=yes
17688 if test "$host_cpu" = ia64; then
17689 # AIX 5 supports IA64
17690 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 else
17693 # With GCC up to 2.95.x, collect2 would create an import file
17694 # for dependence libraries. The import file would start with
17695 # the line `#! .'. This would cause the generated library to
17696 # depend on `.', always an invalid library. This was fixed in
17697 # development snapshots of GCC prior to 3.0.
17698 case $host_os in
17699 aix4 | aix4.[01] | aix4.[01].*)
17700 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17701 echo ' yes '
17702 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17703 :
17704 else
17705 can_build_shared=no
17706 fi
17707 ;;
17708 esac
17709 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17710 # soname into executable. Probably we can add versioning support to
17711 # collect2, so additional links can be useful in future.
17712 if test "$aix_use_runtimelinking" = yes; then
17713 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17714 # instead of lib<name>.a to let people know that these are not
17715 # typical AIX shared libraries.
17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17717 else
17718 # We preserve .a as extension for shared libraries through AIX4.2
17719 # and later when we are not doing run time linking.
17720 library_names_spec='${libname}${release}.a $libname.a'
17721 soname_spec='${libname}${release}${shared_ext}$major'
17722 fi
17723 shlibpath_var=LIBPATH
17724 fi
17725 ;;
17726
17727 amigaos*)
17728 library_names_spec='$libname.ixlibrary $libname.a'
17729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17730 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17731 ;;
17732
17733 beos*)
17734 library_names_spec='${libname}${shared_ext}'
17735 dynamic_linker="$host_os ld.so"
17736 shlibpath_var=LIBRARY_PATH
17737 ;;
17738
17739 bsdi[45]*)
17740 version_type=linux
17741 need_version=no
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17747 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17748 # the default ld.so.conf also contains /usr/contrib/lib and
17749 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17750 # libtool to hard-code these into programs
17751 ;;
17752
17753 cygwin* | mingw* | pw32*)
17754 version_type=windows
17755 shrext_cmds=".dll"
17756 need_version=no
17757 need_lib_prefix=no
17758
17759 case $GCC,$host_os in
17760 yes,cygwin* | yes,mingw* | yes,pw32*)
17761 library_names_spec='$libname.dll.a'
17762 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17763 postinstall_cmds='base_file=`basename \${file}`~
17764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17765 dldir=$destdir/`dirname \$dlpath`~
17766 test -d \$dldir || mkdir -p \$dldir~
17767 $install_prog $dir/$dlname \$dldir/$dlname~
17768 chmod a+x \$dldir/$dlname'
17769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17770 dlpath=$dir/\$dldll~
17771 $rm \$dlpath'
17772 shlibpath_overrides_runpath=yes
17773
17774 case $host_os in
17775 cygwin*)
17776 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17778 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17779 ;;
17780 mingw*)
17781 # MinGW DLLs use traditional 'lib' prefix
17782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17784 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17785 # It is most probably a Windows format PATH printed by
17786 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17787 # path with ; separators, and with drive letters. We can handle the
17788 # drive letters (cygwin fileutils understands them), so leave them,
17789 # especially as we might pass files found there to a mingw objdump,
17790 # which wouldn't understand a cygwinified path. Ahh.
17791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17792 else
17793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17794 fi
17795 ;;
17796 pw32*)
17797 # pw32 DLLs use 'pw' prefix rather than 'lib'
17798 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17799 ;;
17800 esac
17801 ;;
17802
17803 *)
17804 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17805 ;;
17806 esac
17807 dynamic_linker='Win32 ld.exe'
17808 # FIXME: first we should search . and the directory the executable is in
17809 shlibpath_var=PATH
17810 ;;
17811
17812 darwin* | rhapsody*)
17813 dynamic_linker="$host_os dyld"
17814 version_type=darwin
17815 need_lib_prefix=no
17816 need_version=no
17817 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17818 soname_spec='${libname}${release}${major}$shared_ext'
17819 shlibpath_overrides_runpath=yes
17820 shlibpath_var=DYLD_LIBRARY_PATH
17821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17822 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17823 if test "$GCC" = yes; then
17824 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17825 else
17826 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17827 fi
17828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17829 ;;
17830
17831 dgux*)
17832 version_type=linux
17833 need_lib_prefix=no
17834 need_version=no
17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17836 soname_spec='${libname}${release}${shared_ext}$major'
17837 shlibpath_var=LD_LIBRARY_PATH
17838 ;;
17839
17840 freebsd1*)
17841 dynamic_linker=no
17842 ;;
17843
17844 kfreebsd*-gnu)
17845 version_type=linux
17846 need_lib_prefix=no
17847 need_version=no
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17849 soname_spec='${libname}${release}${shared_ext}$major'
17850 shlibpath_var=LD_LIBRARY_PATH
17851 shlibpath_overrides_runpath=no
17852 hardcode_into_libs=yes
17853 dynamic_linker='GNU ld.so'
17854 ;;
17855
17856 freebsd* | dragonfly*)
17857 # DragonFly does not have aout. When/if they implement a new
17858 # versioning mechanism, adjust this.
17859 if test -x /usr/bin/objformat; then
17860 objformat=`/usr/bin/objformat`
17861 else
17862 case $host_os in
17863 freebsd[123]*) objformat=aout ;;
17864 *) objformat=elf ;;
17865 esac
17866 fi
17867 version_type=freebsd-$objformat
17868 case $version_type in
17869 freebsd-elf*)
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17871 need_version=no
17872 need_lib_prefix=no
17873 ;;
17874 freebsd-*)
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17876 need_version=yes
17877 ;;
17878 esac
17879 shlibpath_var=LD_LIBRARY_PATH
17880 case $host_os in
17881 freebsd2*)
17882 shlibpath_overrides_runpath=yes
17883 ;;
17884 freebsd3.[01]* | freebsdelf3.[01]*)
17885 shlibpath_overrides_runpath=yes
17886 hardcode_into_libs=yes
17887 ;;
17888 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17889 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17890 shlibpath_overrides_runpath=no
17891 hardcode_into_libs=yes
17892 ;;
17893 freebsd*) # from 4.6 on
17894 shlibpath_overrides_runpath=yes
17895 hardcode_into_libs=yes
17896 ;;
17897 esac
17898 ;;
17899
17900 gnu*)
17901 version_type=linux
17902 need_lib_prefix=no
17903 need_version=no
17904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 shlibpath_var=LD_LIBRARY_PATH
17907 hardcode_into_libs=yes
17908 ;;
17909
17910 hpux9* | hpux10* | hpux11*)
17911 # Give a soname corresponding to the major version so that dld.sl refuses to
17912 # link against other versions.
17913 version_type=sunos
17914 need_lib_prefix=no
17915 need_version=no
17916 case $host_cpu in
17917 ia64*)
17918 shrext_cmds='.so'
17919 hardcode_into_libs=yes
17920 dynamic_linker="$host_os dld.so"
17921 shlibpath_var=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924 soname_spec='${libname}${release}${shared_ext}$major'
17925 if test "X$HPUX_IA64_MODE" = X32; then
17926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17927 else
17928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17929 fi
17930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17931 ;;
17932 hppa*64*)
17933 shrext_cmds='.sl'
17934 hardcode_into_libs=yes
17935 dynamic_linker="$host_os dld.sl"
17936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939 soname_spec='${libname}${release}${shared_ext}$major'
17940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17942 ;;
17943 *)
17944 shrext_cmds='.sl'
17945 dynamic_linker="$host_os dld.sl"
17946 shlibpath_var=SHLIB_PATH
17947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949 soname_spec='${libname}${release}${shared_ext}$major'
17950 ;;
17951 esac
17952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17953 postinstall_cmds='chmod 555 $lib'
17954 ;;
17955
17956 interix3*)
17957 version_type=linux
17958 need_lib_prefix=no
17959 need_version=no
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17961 soname_spec='${libname}${release}${shared_ext}$major'
17962 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17963 shlibpath_var=LD_LIBRARY_PATH
17964 shlibpath_overrides_runpath=no
17965 hardcode_into_libs=yes
17966 ;;
17967
17968 irix5* | irix6* | nonstopux*)
17969 case $host_os in
17970 nonstopux*) version_type=nonstopux ;;
17971 *)
17972 if test "$lt_cv_prog_gnu_ld" = yes; then
17973 version_type=linux
17974 else
17975 version_type=irix
17976 fi ;;
17977 esac
17978 need_lib_prefix=no
17979 need_version=no
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17982 case $host_os in
17983 irix5* | nonstopux*)
17984 libsuff= shlibsuff=
17985 ;;
17986 *)
17987 case $LD in # libtool.m4 will add one of these switches to LD
17988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17989 libsuff= shlibsuff= libmagic=32-bit;;
17990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17991 libsuff=32 shlibsuff=N32 libmagic=N32;;
17992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17993 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17994 *) libsuff= shlibsuff= libmagic=never-match;;
17995 esac
17996 ;;
17997 esac
17998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17999 shlibpath_overrides_runpath=no
18000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18002 hardcode_into_libs=yes
18003 ;;
18004
18005 # No shared lib support for Linux oldld, aout, or coff.
18006 linux*oldld* | linux*aout* | linux*coff*)
18007 dynamic_linker=no
18008 ;;
18009
18010 # This must be Linux ELF.
18011 linux*)
18012 version_type=linux
18013 need_lib_prefix=no
18014 need_version=no
18015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18016 soname_spec='${libname}${release}${shared_ext}$major'
18017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18018 shlibpath_var=LD_LIBRARY_PATH
18019 shlibpath_overrides_runpath=no
18020 # This implies no fast_install, which is unacceptable.
18021 # Some rework will be needed to allow for fast_install
18022 # before this can be enabled.
18023 hardcode_into_libs=yes
18024
18025 # Append ld.so.conf contents to the search path
18026 if test -f /etc/ld.so.conf; then
18027 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18029 fi
18030
18031 # We used to test for /lib/ld.so.1 and disable shared libraries on
18032 # powerpc, because MkLinux only supported shared libraries with the
18033 # GNU dynamic linker. Since this was broken with cross compilers,
18034 # most powerpc-linux boxes support dynamic linking these days and
18035 # people can always --disable-shared, the test was removed, and we
18036 # assume the GNU/Linux dynamic linker is in use.
18037 dynamic_linker='GNU/Linux ld.so'
18038 ;;
18039
18040 knetbsd*-gnu)
18041 version_type=linux
18042 need_lib_prefix=no
18043 need_version=no
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18045 soname_spec='${libname}${release}${shared_ext}$major'
18046 shlibpath_var=LD_LIBRARY_PATH
18047 shlibpath_overrides_runpath=no
18048 hardcode_into_libs=yes
18049 dynamic_linker='GNU ld.so'
18050 ;;
18051
18052 netbsd*)
18053 version_type=sunos
18054 need_lib_prefix=no
18055 need_version=no
18056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18059 dynamic_linker='NetBSD (a.out) ld.so'
18060 else
18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18062 soname_spec='${libname}${release}${shared_ext}$major'
18063 dynamic_linker='NetBSD ld.elf_so'
18064 fi
18065 shlibpath_var=LD_LIBRARY_PATH
18066 shlibpath_overrides_runpath=yes
18067 hardcode_into_libs=yes
18068 ;;
18069
18070 newsos6)
18071 version_type=linux
18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18073 shlibpath_var=LD_LIBRARY_PATH
18074 shlibpath_overrides_runpath=yes
18075 ;;
18076
18077 nto-qnx*)
18078 version_type=linux
18079 need_lib_prefix=no
18080 need_version=no
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 shlibpath_var=LD_LIBRARY_PATH
18084 shlibpath_overrides_runpath=yes
18085 ;;
18086
18087 openbsd*)
18088 version_type=sunos
18089 sys_lib_dlsearch_path_spec="/usr/lib"
18090 need_lib_prefix=no
18091 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18092 case $host_os in
18093 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18094 *) need_version=no ;;
18095 esac
18096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18098 shlibpath_var=LD_LIBRARY_PATH
18099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18100 case $host_os in
18101 openbsd2.[89] | openbsd2.[89].*)
18102 shlibpath_overrides_runpath=no
18103 ;;
18104 *)
18105 shlibpath_overrides_runpath=yes
18106 ;;
18107 esac
18108 else
18109 shlibpath_overrides_runpath=yes
18110 fi
18111 ;;
18112
18113 os2*)
18114 libname_spec='$name'
18115 shrext_cmds=".dll"
18116 need_lib_prefix=no
18117 library_names_spec='$libname${shared_ext} $libname.a'
18118 dynamic_linker='OS/2 ld.exe'
18119 shlibpath_var=LIBPATH
18120 ;;
18121
18122 osf3* | osf4* | osf5*)
18123 version_type=osf
18124 need_lib_prefix=no
18125 need_version=no
18126 soname_spec='${libname}${release}${shared_ext}$major'
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 shlibpath_var=LD_LIBRARY_PATH
18129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18130 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18131 ;;
18132
18133 solaris*)
18134 version_type=linux
18135 need_lib_prefix=no
18136 need_version=no
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 shlibpath_overrides_runpath=yes
18141 hardcode_into_libs=yes
18142 # ldd complains unless libraries are executable
18143 postinstall_cmds='chmod +x $lib'
18144 ;;
18145
18146 sunos4*)
18147 version_type=sunos
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18150 shlibpath_var=LD_LIBRARY_PATH
18151 shlibpath_overrides_runpath=yes
18152 if test "$with_gnu_ld" = yes; then
18153 need_lib_prefix=no
18154 fi
18155 need_version=yes
18156 ;;
18157
18158 sysv4 | sysv4.3*)
18159 version_type=linux
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 shlibpath_var=LD_LIBRARY_PATH
18163 case $host_vendor in
18164 sni)
18165 shlibpath_overrides_runpath=no
18166 need_lib_prefix=no
18167 export_dynamic_flag_spec='${wl}-Blargedynsym'
18168 runpath_var=LD_RUN_PATH
18169 ;;
18170 siemens)
18171 need_lib_prefix=no
18172 ;;
18173 motorola)
18174 need_lib_prefix=no
18175 need_version=no
18176 shlibpath_overrides_runpath=no
18177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18178 ;;
18179 esac
18180 ;;
18181
18182 sysv4*MP*)
18183 if test -d /usr/nec ;then
18184 version_type=linux
18185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18186 soname_spec='$libname${shared_ext}.$major'
18187 shlibpath_var=LD_LIBRARY_PATH
18188 fi
18189 ;;
18190
18191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18192 version_type=freebsd-elf
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 hardcode_into_libs=yes
18199 if test "$with_gnu_ld" = yes; then
18200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18201 shlibpath_overrides_runpath=no
18202 else
18203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18204 shlibpath_overrides_runpath=yes
18205 case $host_os in
18206 sco3.2v5*)
18207 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18208 ;;
18209 esac
18210 fi
18211 sys_lib_dlsearch_path_spec='/usr/lib'
18212 ;;
18213
18214 uts4*)
18215 version_type=linux
18216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18217 soname_spec='${libname}${release}${shared_ext}$major'
18218 shlibpath_var=LD_LIBRARY_PATH
18219 ;;
18220
18221 *)
18222 dynamic_linker=no
18223 ;;
18224 esac
18225 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18226 echo "${ECHO_T}$dynamic_linker" >&6; }
18227 test "$dynamic_linker" = no && can_build_shared=no
18228
18229 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18230 if test "$GCC" = yes; then
18231 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18232 fi
18233
18234 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18235 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18236 hardcode_action_GCJ=
18237 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18238 test -n "$runpath_var_GCJ" || \
18239 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18240
18241 # We can hardcode non-existant directories.
18242 if test "$hardcode_direct_GCJ" != no &&
18243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18244 # have to relink, otherwise we might link with an installed library
18245 # when we should be linking with a yet-to-be-installed one
18246 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18247 test "$hardcode_minus_L_GCJ" != no; then
18248 # Linking always hardcodes the temporary library directory.
18249 hardcode_action_GCJ=relink
18250 else
18251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18252 hardcode_action_GCJ=immediate
18253 fi
18254 else
18255 # We cannot hardcode anything, or else we can only hardcode existing
18256 # directories.
18257 hardcode_action_GCJ=unsupported
18258 fi
18259 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18260 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18261
18262 if test "$hardcode_action_GCJ" = relink; then
18263 # Fast installation is not supported
18264 enable_fast_install=no
18265 elif test "$shlibpath_overrides_runpath" = yes ||
18266 test "$enable_shared" = no; then
18267 # Fast installation is not necessary
18268 enable_fast_install=needless
18269 fi
18270
18271
18272 # The else clause should only fire when bootstrapping the
18273 # libtool distribution, otherwise you forgot to ship ltmain.sh
18274 # with your package, and you will get complaints that there are
18275 # no rules to generate ltmain.sh.
18276 if test -f "$ltmain"; then
18277 # See if we are running on zsh, and set the options which allow our commands through
18278 # without removal of \ escapes.
18279 if test -n "${ZSH_VERSION+set}" ; then
18280 setopt NO_GLOB_SUBST
18281 fi
18282 # Now quote all the things that may contain metacharacters while being
18283 # careful not to overquote the AC_SUBSTed values. We take copies of the
18284 # variables and quote the copies for generation of the libtool script.
18285 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18286 SED SHELL STRIP \
18287 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18288 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18289 deplibs_check_method reload_flag reload_cmds need_locks \
18290 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18291 lt_cv_sys_global_symbol_to_c_name_address \
18292 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18293 old_postinstall_cmds old_postuninstall_cmds \
18294 compiler_GCJ \
18295 CC_GCJ \
18296 LD_GCJ \
18297 lt_prog_compiler_wl_GCJ \
18298 lt_prog_compiler_pic_GCJ \
18299 lt_prog_compiler_static_GCJ \
18300 lt_prog_compiler_no_builtin_flag_GCJ \
18301 export_dynamic_flag_spec_GCJ \
18302 thread_safe_flag_spec_GCJ \
18303 whole_archive_flag_spec_GCJ \
18304 enable_shared_with_static_runtimes_GCJ \
18305 old_archive_cmds_GCJ \
18306 old_archive_from_new_cmds_GCJ \
18307 predep_objects_GCJ \
18308 postdep_objects_GCJ \
18309 predeps_GCJ \
18310 postdeps_GCJ \
18311 compiler_lib_search_path_GCJ \
18312 archive_cmds_GCJ \
18313 archive_expsym_cmds_GCJ \
18314 postinstall_cmds_GCJ \
18315 postuninstall_cmds_GCJ \
18316 old_archive_from_expsyms_cmds_GCJ \
18317 allow_undefined_flag_GCJ \
18318 no_undefined_flag_GCJ \
18319 export_symbols_cmds_GCJ \
18320 hardcode_libdir_flag_spec_GCJ \
18321 hardcode_libdir_flag_spec_ld_GCJ \
18322 hardcode_libdir_separator_GCJ \
18323 hardcode_automatic_GCJ \
18324 module_cmds_GCJ \
18325 module_expsym_cmds_GCJ \
18326 lt_cv_prog_compiler_c_o_GCJ \
18327 exclude_expsyms_GCJ \
18328 include_expsyms_GCJ; do
18329
18330 case $var in
18331 old_archive_cmds_GCJ | \
18332 old_archive_from_new_cmds_GCJ | \
18333 archive_cmds_GCJ | \
18334 archive_expsym_cmds_GCJ | \
18335 module_cmds_GCJ | \
18336 module_expsym_cmds_GCJ | \
18337 old_archive_from_expsyms_cmds_GCJ | \
18338 export_symbols_cmds_GCJ | \
18339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18340 postinstall_cmds | postuninstall_cmds | \
18341 old_postinstall_cmds | old_postuninstall_cmds | \
18342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18343 # Double-quote double-evaled strings.
18344 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18345 ;;
18346 *)
18347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18348 ;;
18349 esac
18350 done
18351
18352 case $lt_echo in
18353 *'\$0 --fallback-echo"')
18354 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18355 ;;
18356 esac
18357
18358 cfgfile="$ofile"
18359
18360 cat <<__EOF__ >> "$cfgfile"
18361 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18362
18363 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18364
18365 # Shell to use when invoking shell scripts.
18366 SHELL=$lt_SHELL
18367
18368 # Whether or not to build shared libraries.
18369 build_libtool_libs=$enable_shared
18370
18371 # Whether or not to build static libraries.
18372 build_old_libs=$enable_static
18373
18374 # Whether or not to add -lc for building shared libraries.
18375 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18376
18377 # Whether or not to disallow shared libs when runtime libs are static
18378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18379
18380 # Whether or not to optimize for fast installation.
18381 fast_install=$enable_fast_install
18382
18383 # The host system.
18384 host_alias=$host_alias
18385 host=$host
18386 host_os=$host_os
18387
18388 # The build system.
18389 build_alias=$build_alias
18390 build=$build
18391 build_os=$build_os
18392
18393 # An echo program that does not interpret backslashes.
18394 echo=$lt_echo
18395
18396 # The archiver.
18397 AR=$lt_AR
18398 AR_FLAGS=$lt_AR_FLAGS
18399
18400 # A C compiler.
18401 LTCC=$lt_LTCC
18402
18403 # LTCC compiler flags.
18404 LTCFLAGS=$lt_LTCFLAGS
18405
18406 # A language-specific compiler.
18407 CC=$lt_compiler_GCJ
18408
18409 # Is the compiler the GNU C compiler?
18410 with_gcc=$GCC_GCJ
18411
18412 # An ERE matcher.
18413 EGREP=$lt_EGREP
18414
18415 # The linker used to build libraries.
18416 LD=$lt_LD_GCJ
18417
18418 # Whether we need hard or soft links.
18419 LN_S=$lt_LN_S
18420
18421 # A BSD-compatible nm program.
18422 NM=$lt_NM
18423
18424 # A symbol stripping program
18425 STRIP=$lt_STRIP
18426
18427 # Used to examine libraries when file_magic_cmd begins "file"
18428 MAGIC_CMD=$MAGIC_CMD
18429
18430 # Used on cygwin: DLL creation program.
18431 DLLTOOL="$DLLTOOL"
18432
18433 # Used on cygwin: object dumper.
18434 OBJDUMP="$OBJDUMP"
18435
18436 # Used on cygwin: assembler.
18437 AS="$AS"
18438
18439 # The name of the directory that contains temporary libtool files.
18440 objdir=$objdir
18441
18442 # How to create reloadable object files.
18443 reload_flag=$lt_reload_flag
18444 reload_cmds=$lt_reload_cmds
18445
18446 # How to pass a linker flag through the compiler.
18447 wl=$lt_lt_prog_compiler_wl_GCJ
18448
18449 # Object file suffix (normally "o").
18450 objext="$ac_objext"
18451
18452 # Old archive suffix (normally "a").
18453 libext="$libext"
18454
18455 # Shared library suffix (normally ".so").
18456 shrext_cmds='$shrext_cmds'
18457
18458 # Executable file suffix (normally "").
18459 exeext="$exeext"
18460
18461 # Additional compiler flags for building library objects.
18462 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18463 pic_mode=$pic_mode
18464
18465 # What is the maximum length of a command?
18466 max_cmd_len=$lt_cv_sys_max_cmd_len
18467
18468 # Does compiler simultaneously support -c and -o options?
18469 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18470
18471 # Must we lock files when doing compilation?
18472 need_locks=$lt_need_locks
18473
18474 # Do we need the lib prefix for modules?
18475 need_lib_prefix=$need_lib_prefix
18476
18477 # Do we need a version for libraries?
18478 need_version=$need_version
18479
18480 # Whether dlopen is supported.
18481 dlopen_support=$enable_dlopen
18482
18483 # Whether dlopen of programs is supported.
18484 dlopen_self=$enable_dlopen_self
18485
18486 # Whether dlopen of statically linked programs is supported.
18487 dlopen_self_static=$enable_dlopen_self_static
18488
18489 # Compiler flag to prevent dynamic linking.
18490 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18491
18492 # Compiler flag to turn off builtin functions.
18493 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18494
18495 # Compiler flag to allow reflexive dlopens.
18496 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18497
18498 # Compiler flag to generate shared objects directly from archives.
18499 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18500
18501 # Compiler flag to generate thread-safe objects.
18502 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18503
18504 # Library versioning type.
18505 version_type=$version_type
18506
18507 # Format of library name prefix.
18508 libname_spec=$lt_libname_spec
18509
18510 # List of archive names. First name is the real one, the rest are links.
18511 # The last name is the one that the linker finds with -lNAME.
18512 library_names_spec=$lt_library_names_spec
18513
18514 # The coded name of the library, if different from the real name.
18515 soname_spec=$lt_soname_spec
18516
18517 # Commands used to build and install an old-style archive.
18518 RANLIB=$lt_RANLIB
18519 old_archive_cmds=$lt_old_archive_cmds_GCJ
18520 old_postinstall_cmds=$lt_old_postinstall_cmds
18521 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18522
18523 # Create an old-style archive from a shared archive.
18524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18525
18526 # Create a temporary old-style archive to link instead of a shared archive.
18527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18528
18529 # Commands used to build and install a shared archive.
18530 archive_cmds=$lt_archive_cmds_GCJ
18531 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18532 postinstall_cmds=$lt_postinstall_cmds
18533 postuninstall_cmds=$lt_postuninstall_cmds
18534
18535 # Commands used to build a loadable module (assumed same as above if empty)
18536 module_cmds=$lt_module_cmds_GCJ
18537 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18538
18539 # Commands to strip libraries.
18540 old_striplib=$lt_old_striplib
18541 striplib=$lt_striplib
18542
18543 # Dependencies to place before the objects being linked to create a
18544 # shared library.
18545 predep_objects=$lt_predep_objects_GCJ
18546
18547 # Dependencies to place after the objects being linked to create a
18548 # shared library.
18549 postdep_objects=$lt_postdep_objects_GCJ
18550
18551 # Dependencies to place before the objects being linked to create a
18552 # shared library.
18553 predeps=$lt_predeps_GCJ
18554
18555 # Dependencies to place after the objects being linked to create a
18556 # shared library.
18557 postdeps=$lt_postdeps_GCJ
18558
18559 # The library search path used internally by the compiler when linking
18560 # a shared library.
18561 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18562
18563 # Method to check whether dependent libraries are shared objects.
18564 deplibs_check_method=$lt_deplibs_check_method
18565
18566 # Command to use when deplibs_check_method == file_magic.
18567 file_magic_cmd=$lt_file_magic_cmd
18568
18569 # Flag that allows shared libraries with undefined symbols to be built.
18570 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18571
18572 # Flag that forces no undefined symbols.
18573 no_undefined_flag=$lt_no_undefined_flag_GCJ
18574
18575 # Commands used to finish a libtool library installation in a directory.
18576 finish_cmds=$lt_finish_cmds
18577
18578 # Same as above, but a single script fragment to be evaled but not shown.
18579 finish_eval=$lt_finish_eval
18580
18581 # Take the output of nm and produce a listing of raw symbols and C names.
18582 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18583
18584 # Transform the output of nm in a proper C declaration
18585 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18586
18587 # Transform the output of nm in a C name address pair
18588 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18589
18590 # This is the shared library runtime path variable.
18591 runpath_var=$runpath_var
18592
18593 # This is the shared library path variable.
18594 shlibpath_var=$shlibpath_var
18595
18596 # Is shlibpath searched before the hard-coded library search path?
18597 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18598
18599 # How to hardcode a shared library path into an executable.
18600 hardcode_action=$hardcode_action_GCJ
18601
18602 # Whether we should hardcode library paths into libraries.
18603 hardcode_into_libs=$hardcode_into_libs
18604
18605 # Flag to hardcode \$libdir into a binary during linking.
18606 # This must work even if \$libdir does not exist.
18607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18608
18609 # If ld is used when linking, flag to hardcode \$libdir into
18610 # a binary during linking. This must work even if \$libdir does
18611 # not exist.
18612 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18613
18614 # Whether we need a single -rpath flag with a separated argument.
18615 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18616
18617 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18618 # resulting binary.
18619 hardcode_direct=$hardcode_direct_GCJ
18620
18621 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18622 # resulting binary.
18623 hardcode_minus_L=$hardcode_minus_L_GCJ
18624
18625 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18626 # the resulting binary.
18627 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18628
18629 # Set to yes if building a shared library automatically hardcodes DIR into the library
18630 # and all subsequent libraries and executables linked against it.
18631 hardcode_automatic=$hardcode_automatic_GCJ
18632
18633 # Variables whose values should be saved in libtool wrapper scripts and
18634 # restored at relink time.
18635 variables_saved_for_relink="$variables_saved_for_relink"
18636
18637 # Whether libtool must link a program against all its dependency libraries.
18638 link_all_deplibs=$link_all_deplibs_GCJ
18639
18640 # Compile-time system search path for libraries
18641 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18642
18643 # Run-time system search path for libraries
18644 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18645
18646 # Fix the shell variable \$srcfile for the compiler.
18647 fix_srcfile_path="$fix_srcfile_path_GCJ"
18648
18649 # Set to yes if exported symbols are required.
18650 always_export_symbols=$always_export_symbols_GCJ
18651
18652 # The commands to list exported symbols.
18653 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18654
18655 # The commands to extract the exported symbol list from a shared archive.
18656 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18657
18658 # Symbols that should not be listed in the preloaded symbols.
18659 exclude_expsyms=$lt_exclude_expsyms_GCJ
18660
18661 # Symbols that must always be exported.
18662 include_expsyms=$lt_include_expsyms_GCJ
18663
18664 # ### END LIBTOOL TAG CONFIG: $tagname
18665
18666 __EOF__
18667
18668
18669 else
18670 # If there is no Makefile yet, we rely on a make rule to execute
18671 # `config.status --recheck' to rerun these tests and create the
18672 # libtool script then.
18673 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18674 if test -f "$ltmain_in"; then
18675 test -f Makefile && make "$ltmain"
18676 fi
18677 fi
18678
18679
18680 ac_ext=c
18681 ac_cpp='$CPP $CPPFLAGS'
18682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18685
18686 CC="$lt_save_CC"
18687
18688 else
18689 tagname=""
18690 fi
18691 ;;
18692
18693 RC)
18694
18695
18696 # Source file extension for RC test sources.
18697 ac_ext=rc
18698
18699 # Object file extension for compiled RC test sources.
18700 objext=o
18701 objext_RC=$objext
18702
18703 # Code to be used in simple compile tests
18704 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18705
18706 # Code to be used in simple link tests
18707 lt_simple_link_test_code="$lt_simple_compile_test_code"
18708
18709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18710
18711 # If no C compiler was specified, use CC.
18712 LTCC=${LTCC-"$CC"}
18713
18714 # If no C compiler flags were specified, use CFLAGS.
18715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18716
18717 # Allow CC to be a program name with arguments.
18718 compiler=$CC
18719
18720
18721 # save warnings/boilerplate of simple test code
18722 ac_outfile=conftest.$ac_objext
18723 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18725 _lt_compiler_boilerplate=`cat conftest.err`
18726 $rm conftest*
18727
18728 ac_outfile=conftest.$ac_objext
18729 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18731 _lt_linker_boilerplate=`cat conftest.err`
18732 $rm conftest*
18733
18734
18735 # Allow CC to be a program name with arguments.
18736 lt_save_CC="$CC"
18737 CC=${RC-"windres"}
18738 compiler=$CC
18739 compiler_RC=$CC
18740 for cc_temp in $compiler""; do
18741 case $cc_temp in
18742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18744 \-*) ;;
18745 *) break;;
18746 esac
18747 done
18748 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18749
18750 lt_cv_prog_compiler_c_o_RC=yes
18751
18752 # The else clause should only fire when bootstrapping the
18753 # libtool distribution, otherwise you forgot to ship ltmain.sh
18754 # with your package, and you will get complaints that there are
18755 # no rules to generate ltmain.sh.
18756 if test -f "$ltmain"; then
18757 # See if we are running on zsh, and set the options which allow our commands through
18758 # without removal of \ escapes.
18759 if test -n "${ZSH_VERSION+set}" ; then
18760 setopt NO_GLOB_SUBST
18761 fi
18762 # Now quote all the things that may contain metacharacters while being
18763 # careful not to overquote the AC_SUBSTed values. We take copies of the
18764 # variables and quote the copies for generation of the libtool script.
18765 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18766 SED SHELL STRIP \
18767 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18768 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18769 deplibs_check_method reload_flag reload_cmds need_locks \
18770 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18771 lt_cv_sys_global_symbol_to_c_name_address \
18772 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18773 old_postinstall_cmds old_postuninstall_cmds \
18774 compiler_RC \
18775 CC_RC \
18776 LD_RC \
18777 lt_prog_compiler_wl_RC \
18778 lt_prog_compiler_pic_RC \
18779 lt_prog_compiler_static_RC \
18780 lt_prog_compiler_no_builtin_flag_RC \
18781 export_dynamic_flag_spec_RC \
18782 thread_safe_flag_spec_RC \
18783 whole_archive_flag_spec_RC \
18784 enable_shared_with_static_runtimes_RC \
18785 old_archive_cmds_RC \
18786 old_archive_from_new_cmds_RC \
18787 predep_objects_RC \
18788 postdep_objects_RC \
18789 predeps_RC \
18790 postdeps_RC \
18791 compiler_lib_search_path_RC \
18792 archive_cmds_RC \
18793 archive_expsym_cmds_RC \
18794 postinstall_cmds_RC \
18795 postuninstall_cmds_RC \
18796 old_archive_from_expsyms_cmds_RC \
18797 allow_undefined_flag_RC \
18798 no_undefined_flag_RC \
18799 export_symbols_cmds_RC \
18800 hardcode_libdir_flag_spec_RC \
18801 hardcode_libdir_flag_spec_ld_RC \
18802 hardcode_libdir_separator_RC \
18803 hardcode_automatic_RC \
18804 module_cmds_RC \
18805 module_expsym_cmds_RC \
18806 lt_cv_prog_compiler_c_o_RC \
18807 exclude_expsyms_RC \
18808 include_expsyms_RC; do
18809
18810 case $var in
18811 old_archive_cmds_RC | \
18812 old_archive_from_new_cmds_RC | \
18813 archive_cmds_RC | \
18814 archive_expsym_cmds_RC | \
18815 module_cmds_RC | \
18816 module_expsym_cmds_RC | \
18817 old_archive_from_expsyms_cmds_RC | \
18818 export_symbols_cmds_RC | \
18819 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18820 postinstall_cmds | postuninstall_cmds | \
18821 old_postinstall_cmds | old_postuninstall_cmds | \
18822 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18823 # Double-quote double-evaled strings.
18824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18825 ;;
18826 *)
18827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18828 ;;
18829 esac
18830 done
18831
18832 case $lt_echo in
18833 *'\$0 --fallback-echo"')
18834 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18835 ;;
18836 esac
18837
18838 cfgfile="$ofile"
18839
18840 cat <<__EOF__ >> "$cfgfile"
18841 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18842
18843 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18844
18845 # Shell to use when invoking shell scripts.
18846 SHELL=$lt_SHELL
18847
18848 # Whether or not to build shared libraries.
18849 build_libtool_libs=$enable_shared
18850
18851 # Whether or not to build static libraries.
18852 build_old_libs=$enable_static
18853
18854 # Whether or not to add -lc for building shared libraries.
18855 build_libtool_need_lc=$archive_cmds_need_lc_RC
18856
18857 # Whether or not to disallow shared libs when runtime libs are static
18858 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18859
18860 # Whether or not to optimize for fast installation.
18861 fast_install=$enable_fast_install
18862
18863 # The host system.
18864 host_alias=$host_alias
18865 host=$host
18866 host_os=$host_os
18867
18868 # The build system.
18869 build_alias=$build_alias
18870 build=$build
18871 build_os=$build_os
18872
18873 # An echo program that does not interpret backslashes.
18874 echo=$lt_echo
18875
18876 # The archiver.
18877 AR=$lt_AR
18878 AR_FLAGS=$lt_AR_FLAGS
18879
18880 # A C compiler.
18881 LTCC=$lt_LTCC
18882
18883 # LTCC compiler flags.
18884 LTCFLAGS=$lt_LTCFLAGS
18885
18886 # A language-specific compiler.
18887 CC=$lt_compiler_RC
18888
18889 # Is the compiler the GNU C compiler?
18890 with_gcc=$GCC_RC
18891
18892 # An ERE matcher.
18893 EGREP=$lt_EGREP
18894
18895 # The linker used to build libraries.
18896 LD=$lt_LD_RC
18897
18898 # Whether we need hard or soft links.
18899 LN_S=$lt_LN_S
18900
18901 # A BSD-compatible nm program.
18902 NM=$lt_NM
18903
18904 # A symbol stripping program
18905 STRIP=$lt_STRIP
18906
18907 # Used to examine libraries when file_magic_cmd begins "file"
18908 MAGIC_CMD=$MAGIC_CMD
18909
18910 # Used on cygwin: DLL creation program.
18911 DLLTOOL="$DLLTOOL"
18912
18913 # Used on cygwin: object dumper.
18914 OBJDUMP="$OBJDUMP"
18915
18916 # Used on cygwin: assembler.
18917 AS="$AS"
18918
18919 # The name of the directory that contains temporary libtool files.
18920 objdir=$objdir
18921
18922 # How to create reloadable object files.
18923 reload_flag=$lt_reload_flag
18924 reload_cmds=$lt_reload_cmds
18925
18926 # How to pass a linker flag through the compiler.
18927 wl=$lt_lt_prog_compiler_wl_RC
18928
18929 # Object file suffix (normally "o").
18930 objext="$ac_objext"
18931
18932 # Old archive suffix (normally "a").
18933 libext="$libext"
18934
18935 # Shared library suffix (normally ".so").
18936 shrext_cmds='$shrext_cmds'
18937
18938 # Executable file suffix (normally "").
18939 exeext="$exeext"
18940
18941 # Additional compiler flags for building library objects.
18942 pic_flag=$lt_lt_prog_compiler_pic_RC
18943 pic_mode=$pic_mode
18944
18945 # What is the maximum length of a command?
18946 max_cmd_len=$lt_cv_sys_max_cmd_len
18947
18948 # Does compiler simultaneously support -c and -o options?
18949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18950
18951 # Must we lock files when doing compilation?
18952 need_locks=$lt_need_locks
18953
18954 # Do we need the lib prefix for modules?
18955 need_lib_prefix=$need_lib_prefix
18956
18957 # Do we need a version for libraries?
18958 need_version=$need_version
18959
18960 # Whether dlopen is supported.
18961 dlopen_support=$enable_dlopen
18962
18963 # Whether dlopen of programs is supported.
18964 dlopen_self=$enable_dlopen_self
18965
18966 # Whether dlopen of statically linked programs is supported.
18967 dlopen_self_static=$enable_dlopen_self_static
18968
18969 # Compiler flag to prevent dynamic linking.
18970 link_static_flag=$lt_lt_prog_compiler_static_RC
18971
18972 # Compiler flag to turn off builtin functions.
18973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18974
18975 # Compiler flag to allow reflexive dlopens.
18976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18977
18978 # Compiler flag to generate shared objects directly from archives.
18979 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18980
18981 # Compiler flag to generate thread-safe objects.
18982 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18983
18984 # Library versioning type.
18985 version_type=$version_type
18986
18987 # Format of library name prefix.
18988 libname_spec=$lt_libname_spec
18989
18990 # List of archive names. First name is the real one, the rest are links.
18991 # The last name is the one that the linker finds with -lNAME.
18992 library_names_spec=$lt_library_names_spec
18993
18994 # The coded name of the library, if different from the real name.
18995 soname_spec=$lt_soname_spec
18996
18997 # Commands used to build and install an old-style archive.
18998 RANLIB=$lt_RANLIB
18999 old_archive_cmds=$lt_old_archive_cmds_RC
19000 old_postinstall_cmds=$lt_old_postinstall_cmds
19001 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19002
19003 # Create an old-style archive from a shared archive.
19004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19005
19006 # Create a temporary old-style archive to link instead of a shared archive.
19007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19008
19009 # Commands used to build and install a shared archive.
19010 archive_cmds=$lt_archive_cmds_RC
19011 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19012 postinstall_cmds=$lt_postinstall_cmds
19013 postuninstall_cmds=$lt_postuninstall_cmds
19014
19015 # Commands used to build a loadable module (assumed same as above if empty)
19016 module_cmds=$lt_module_cmds_RC
19017 module_expsym_cmds=$lt_module_expsym_cmds_RC
19018
19019 # Commands to strip libraries.
19020 old_striplib=$lt_old_striplib
19021 striplib=$lt_striplib
19022
19023 # Dependencies to place before the objects being linked to create a
19024 # shared library.
19025 predep_objects=$lt_predep_objects_RC
19026
19027 # Dependencies to place after the objects being linked to create a
19028 # shared library.
19029 postdep_objects=$lt_postdep_objects_RC
19030
19031 # Dependencies to place before the objects being linked to create a
19032 # shared library.
19033 predeps=$lt_predeps_RC
19034
19035 # Dependencies to place after the objects being linked to create a
19036 # shared library.
19037 postdeps=$lt_postdeps_RC
19038
19039 # The library search path used internally by the compiler when linking
19040 # a shared library.
19041 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19042
19043 # Method to check whether dependent libraries are shared objects.
19044 deplibs_check_method=$lt_deplibs_check_method
19045
19046 # Command to use when deplibs_check_method == file_magic.
19047 file_magic_cmd=$lt_file_magic_cmd
19048
19049 # Flag that allows shared libraries with undefined symbols to be built.
19050 allow_undefined_flag=$lt_allow_undefined_flag_RC
19051
19052 # Flag that forces no undefined symbols.
19053 no_undefined_flag=$lt_no_undefined_flag_RC
19054
19055 # Commands used to finish a libtool library installation in a directory.
19056 finish_cmds=$lt_finish_cmds
19057
19058 # Same as above, but a single script fragment to be evaled but not shown.
19059 finish_eval=$lt_finish_eval
19060
19061 # Take the output of nm and produce a listing of raw symbols and C names.
19062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19063
19064 # Transform the output of nm in a proper C declaration
19065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19066
19067 # Transform the output of nm in a C name address pair
19068 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19069
19070 # This is the shared library runtime path variable.
19071 runpath_var=$runpath_var
19072
19073 # This is the shared library path variable.
19074 shlibpath_var=$shlibpath_var
19075
19076 # Is shlibpath searched before the hard-coded library search path?
19077 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19078
19079 # How to hardcode a shared library path into an executable.
19080 hardcode_action=$hardcode_action_RC
19081
19082 # Whether we should hardcode library paths into libraries.
19083 hardcode_into_libs=$hardcode_into_libs
19084
19085 # Flag to hardcode \$libdir into a binary during linking.
19086 # This must work even if \$libdir does not exist.
19087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19088
19089 # If ld is used when linking, flag to hardcode \$libdir into
19090 # a binary during linking. This must work even if \$libdir does
19091 # not exist.
19092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19093
19094 # Whether we need a single -rpath flag with a separated argument.
19095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19096
19097 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19098 # resulting binary.
19099 hardcode_direct=$hardcode_direct_RC
19100
19101 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19102 # resulting binary.
19103 hardcode_minus_L=$hardcode_minus_L_RC
19104
19105 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19106 # the resulting binary.
19107 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19108
19109 # Set to yes if building a shared library automatically hardcodes DIR into the library
19110 # and all subsequent libraries and executables linked against it.
19111 hardcode_automatic=$hardcode_automatic_RC
19112
19113 # Variables whose values should be saved in libtool wrapper scripts and
19114 # restored at relink time.
19115 variables_saved_for_relink="$variables_saved_for_relink"
19116
19117 # Whether libtool must link a program against all its dependency libraries.
19118 link_all_deplibs=$link_all_deplibs_RC
19119
19120 # Compile-time system search path for libraries
19121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19122
19123 # Run-time system search path for libraries
19124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19125
19126 # Fix the shell variable \$srcfile for the compiler.
19127 fix_srcfile_path="$fix_srcfile_path_RC"
19128
19129 # Set to yes if exported symbols are required.
19130 always_export_symbols=$always_export_symbols_RC
19131
19132 # The commands to list exported symbols.
19133 export_symbols_cmds=$lt_export_symbols_cmds_RC
19134
19135 # The commands to extract the exported symbol list from a shared archive.
19136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19137
19138 # Symbols that should not be listed in the preloaded symbols.
19139 exclude_expsyms=$lt_exclude_expsyms_RC
19140
19141 # Symbols that must always be exported.
19142 include_expsyms=$lt_include_expsyms_RC
19143
19144 # ### END LIBTOOL TAG CONFIG: $tagname
19145
19146 __EOF__
19147
19148
19149 else
19150 # If there is no Makefile yet, we rely on a make rule to execute
19151 # `config.status --recheck' to rerun these tests and create the
19152 # libtool script then.
19153 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19154 if test -f "$ltmain_in"; then
19155 test -f Makefile && make "$ltmain"
19156 fi
19157 fi
19158
19159
19160 ac_ext=c
19161 ac_cpp='$CPP $CPPFLAGS'
19162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19165
19166 CC="$lt_save_CC"
19167
19168 ;;
19169
19170 *)
19171 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19172 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19173 { (exit 1); exit 1; }; }
19174 ;;
19175 esac
19176
19177 # Append the new tag name to the list of available tags.
19178 if test -n "$tagname" ; then
19179 available_tags="$available_tags $tagname"
19180 fi
19181 fi
19182 done
19183 IFS="$lt_save_ifs"
19184
19185 # Now substitute the updated list of available tags.
19186 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19187 mv "${ofile}T" "$ofile"
19188 chmod +x "$ofile"
19189 else
19190 rm -f "${ofile}T"
19191 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19192 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19193 { (exit 1); exit 1; }; }
19194 fi
19195 fi
19196
19197
19198
19199 # This can be used to rebuild libtool when needed
19200 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19201
19202 # Always use our own libtool.
19203 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19204
19205 # Prevent multiple expansion
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227 # Check for xmlto for man page conversion
19228 # (only needed by people building tarballs)
19229
19230 # Extract the first word of "xmlto", so it can be a program name with args.
19231 set dummy xmlto; ac_word=$2
19232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19234 if test "${ac_cv_path_XMLTO+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237 case $XMLTO in
19238 [\\/]* | ?:[\\/]*)
19239 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19240 ;;
19241 *)
19242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19243 for as_dir in $PATH
19244 do
19245 IFS=$as_save_IFS
19246 test -z "$as_dir" && as_dir=.
19247 for ac_exec_ext in '' $ac_executable_extensions; do
19248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19249 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
19250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19251 break 2
19252 fi
19253 done
19254 done
19255 IFS=$as_save_IFS
19256
19257 ;;
19258 esac
19259 fi
19260 XMLTO=$ac_cv_path_XMLTO
19261 if test -n "$XMLTO"; then
19262 { echo "$as_me:$LINENO: result: $XMLTO" >&5
19263 echo "${ECHO_T}$XMLTO" >&6; }
19264 else
19265 { echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6; }
19267 fi
19268
19269
19270 if test "x$XMLTO" != "x"; then
19271 HAVE_XMLTO_TRUE=
19272 HAVE_XMLTO_FALSE='#'
19273 else
19274 HAVE_XMLTO_TRUE='#'
19275 HAVE_XMLTO_FALSE=
19276 fi
19277
19278
19279 # Check for dependencies
19280
19281
19282 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19283 if test -n "$ac_tool_prefix"; then
19284 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19285 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19288 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291 case $PKG_CONFIG in
19292 [\\/]* | ?:[\\/]*)
19293 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19294 ;;
19295 *)
19296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19297 for as_dir in $PATH
19298 do
19299 IFS=$as_save_IFS
19300 test -z "$as_dir" && as_dir=.
19301 for ac_exec_ext in '' $ac_executable_extensions; do
19302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19303 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19305 break 2
19306 fi
19307 done
19308 done
19309 IFS=$as_save_IFS
19310
19311 ;;
19312 esac
19313 fi
19314 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19315 if test -n "$PKG_CONFIG"; then
19316 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19317 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19318 else
19319 { echo "$as_me:$LINENO: result: no" >&5
19320 echo "${ECHO_T}no" >&6; }
19321 fi
19322
19323
19324 fi
19325 if test -z "$ac_cv_path_PKG_CONFIG"; then
19326 ac_pt_PKG_CONFIG=$PKG_CONFIG
19327 # Extract the first word of "pkg-config", so it can be a program name with args.
19328 set dummy pkg-config; ac_word=$2
19329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19331 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334 case $ac_pt_PKG_CONFIG in
19335 [\\/]* | ?:[\\/]*)
19336 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19337 ;;
19338 *)
19339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19340 for as_dir in $PATH
19341 do
19342 IFS=$as_save_IFS
19343 test -z "$as_dir" && as_dir=.
19344 for ac_exec_ext in '' $ac_executable_extensions; do
19345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19346 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19348 break 2
19349 fi
19350 done
19351 done
19352 IFS=$as_save_IFS
19353
19354 ;;
19355 esac
19356 fi
19357 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19358 if test -n "$ac_pt_PKG_CONFIG"; then
19359 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19360 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19361 else
19362 { echo "$as_me:$LINENO: result: no" >&5
19363 echo "${ECHO_T}no" >&6; }
19364 fi
19365
19366 if test "x$ac_pt_PKG_CONFIG" = x; then
19367 PKG_CONFIG=""
19368 else
19369 case $cross_compiling:$ac_tool_warned in
19370 yes:)
19371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19372 whose name does not start with the host triplet. If you think this
19373 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19375 whose name does not start with the host triplet. If you think this
19376 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19377 ac_tool_warned=yes ;;
19378 esac
19379 PKG_CONFIG=$ac_pt_PKG_CONFIG
19380 fi
19381 else
19382 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19383 fi
19384
19385 fi
19386 if test -n "$PKG_CONFIG"; then
19387 _pkg_min_version=0.9.0
19388 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19389 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19390 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19391 { echo "$as_me:$LINENO: result: yes" >&5
19392 echo "${ECHO_T}yes" >&6; }
19393 else
19394 { echo "$as_me:$LINENO: result: no" >&5
19395 echo "${ECHO_T}no" >&6; }
19396 PKG_CONFIG=""
19397 fi
19398
19399 fi
19400
19401 pkg_failed=no
19402 { echo "$as_me:$LINENO: checking for XTST" >&5
19403 echo $ECHO_N "checking for XTST... $ECHO_C" >&6; }
19404
19405 if test -n "$PKG_CONFIG"; then
19406 if test -n "$PKG_CONFIG" && \
19407 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext recordproto xextproto inputproto\"") >&5
19408 ($PKG_CONFIG --exists --print-errors "x11 xext recordproto xextproto inputproto") 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; then
19412 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 xext recordproto xextproto inputproto" 2>/dev/null`
19413 else
19414 pkg_failed=yes
19415 fi
19416 else
19417 pkg_failed=untried
19418 fi
19419 if test -n "$PKG_CONFIG"; then
19420 if test -n "$PKG_CONFIG" && \
19421 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext recordproto xextproto inputproto\"") >&5
19422 ($PKG_CONFIG --exists --print-errors "x11 xext recordproto xextproto inputproto") 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; then
19426 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 xext recordproto xextproto inputproto" 2>/dev/null`
19427 else
19428 pkg_failed=yes
19429 fi
19430 else
19431 pkg_failed=untried
19432 fi
19433
19434 if test $pkg_failed = yes; then
19435 XTST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext recordproto xextproto inputproto"`
19436 # Put the nasty error message in config.log where it belongs
19437 echo "$XTST_PKG_ERRORS" 1>&5
19438
19439 { { echo "$as_me:$LINENO: error: Package requirements (x11 xext recordproto xextproto inputproto) were not met.
19440 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19441 installed software in a non-standard prefix.
19442
19443 Alternatively you may set the XTST_CFLAGS and XTST_LIBS environment variables
19444 to avoid the need to call pkg-config. See the pkg-config man page for
19445 more details." >&5
19446 echo "$as_me: error: Package requirements (x11 xext recordproto xextproto inputproto) were not met.
19447 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19448 installed software in a non-standard prefix.
19449
19450 Alternatively you may set the XTST_CFLAGS and XTST_LIBS environment variables
19451 to avoid the need to call pkg-config. See the pkg-config man page for
19452 more details." >&2;}
19453 { (exit 1); exit 1; }; }
19454 elif test $pkg_failed = untried; then
19455 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19456 is in your PATH or set the PKG_CONFIG environment variable to the full
19457 path to pkg-config.
19458
19459 Alternatively you may set the XTST_CFLAGS and XTST_LIBS environment variables
19460 to avoid the need to call pkg-config. See the pkg-config man page for
19461 more details.
19462
19463 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19464 See \`config.log' for more details." >&5
19465 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19466 is in your PATH or set the PKG_CONFIG environment variable to the full
19467 path to pkg-config.
19468
19469 Alternatively you may set the XTST_CFLAGS and XTST_LIBS environment variables
19470 to avoid the need to call pkg-config. See the pkg-config man page for
19471 more details.
19472
19473 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19474 See \`config.log' for more details." >&2;}
19475 { (exit 1); exit 1; }; }
19476 else
19477 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
19478 XTST_LIBS=$pkg_cv_XTST_LIBS
19479 { echo "$as_me:$LINENO: result: yes" >&5
19480 echo "${ECHO_T}yes" >&6; }
19481 :
19482 fi
19483
19484
19485
19486 # Allow checking code with lint, sparse, etc.
19487
19488 # Check whether --with-lint was given.
19489 if test "${with_lint+set}" = set; then
19490 withval=$with_lint; use_lint=$withval
19491 else
19492 use_lint=no
19493 fi
19494
19495 if test "x$use_lint" = "xyes" ; then
19496 LINT="lint"
19497 else
19498 LINT="$use_lint"
19499 fi
19500 if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
19501 case $LINT in
19502 lint|*/lint)
19503 case $host_os in
19504 solaris*)
19505 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19506 ;;
19507 esac
19508 ;;
19509 esac
19510 fi
19511
19512
19513
19514 if test x$LINT != xno; then
19515 LINT_TRUE=
19516 LINT_FALSE='#'
19517 else
19518 LINT_TRUE='#'
19519 LINT_FALSE=
19520 fi
19521
19522
19523
19524
19525
19526 # Build lint "library" for more indepth checks of programs calling this library
19527 # Check whether --enable-lint-library was given.
19528 if test "${enable_lint_library+set}" = set; then
19529 enableval=$enable_lint_library; make_lint_lib=$enableval
19530 else
19531 make_lint_lib=no
19532 fi
19533
19534 if test "x$make_lint_lib" != "xno" ; then
19535 if test "x$LINT" = "xno" ; then
19536 { { echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
19537 echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
19538 { (exit 1); exit 1; }; }
19539 fi
19540 if test "x$make_lint_lib" = "xyes" ; then
19541 LINTLIB=llib-lXtst.ln
19542 else
19543 LINTLIB=$make_lint_lib
19544 fi
19545 fi
19546
19547 if test x$make_lint_lib != xno; then
19548 MAKE_LINT_LIB_TRUE=
19549 MAKE_LINT_LIB_FALSE='#'
19550 else
19551 MAKE_LINT_LIB_TRUE='#'
19552 MAKE_LINT_LIB_FALSE=
19553 fi
19554
19555
19556
19557 LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}"
19558
19559
19560
19561
19562
19563
19564
19565 if test x$APP_MAN_SUFFIX = x ; then
19566 APP_MAN_SUFFIX=1
19567 fi
19568 if test x$APP_MAN_DIR = x ; then
19569 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19570 fi
19571
19572 if test x$LIB_MAN_SUFFIX = x ; then
19573 LIB_MAN_SUFFIX=3
19574 fi
19575 if test x$LIB_MAN_DIR = x ; then
19576 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19577 fi
19578
19579 if test x$FILE_MAN_SUFFIX = x ; then
19580 case $host_os in
19581 solaris*) FILE_MAN_SUFFIX=4 ;;
19582 *) FILE_MAN_SUFFIX=5 ;;
19583 esac
19584 fi
19585 if test x$FILE_MAN_DIR = x ; then
19586 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19587 fi
19588
19589 if test x$MISC_MAN_SUFFIX = x ; then
19590 case $host_os in
19591 solaris*) MISC_MAN_SUFFIX=5 ;;
19592 *) MISC_MAN_SUFFIX=7 ;;
19593 esac
19594 fi
19595 if test x$MISC_MAN_DIR = x ; then
19596 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19597 fi
19598
19599 if test x$DRIVER_MAN_SUFFIX = x ; then
19600 case $host_os in
19601 solaris*) DRIVER_MAN_SUFFIX=7 ;;
19602 *) DRIVER_MAN_SUFFIX=4 ;;
19603 esac
19604 fi
19605 if test x$DRIVER_MAN_DIR = x ; then
19606 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19607 fi
19608
19609 if test x$ADMIN_MAN_SUFFIX = x ; then
19610 case $host_os in
19611 solaris*) ADMIN_MAN_SUFFIX=1m ;;
19612 *) ADMIN_MAN_SUFFIX=8 ;;
19613 esac
19614 fi
19615 if test x$ADMIN_MAN_DIR = x ; then
19616 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19617 fi
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635 # Check whether --with-release-version was given.
19636 if test "${with_release_version+set}" = set; then
19637 withval=$with_release_version; RELEASE_VERSION="$withval"
19638 else
19639 RELEASE_VERSION=""
19640 fi
19641
19642 if test "x$RELEASE_VERSION" != "x"; then
19643 PACKAGE="$PACKAGE-$RELEASE_VERSION"
19644 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19645 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19646 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19647 fi
19648
19649 cat >>confdefs.h <<_ACEOF
19650 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19651 _ACEOF
19652
19653 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
19654 if test "x$PVM" = "x"; then
19655 PVM="0"
19656 fi
19657
19658 cat >>confdefs.h <<_ACEOF
19659 #define PACKAGE_VERSION_MINOR $PVM
19660 _ACEOF
19661
19662 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
19663 if test "x$PVP" = "x"; then
19664 PVP="0"
19665 fi
19666
19667 cat >>confdefs.h <<_ACEOF
19668 #define PACKAGE_VERSION_PATCHLEVEL $PVP
19669 _ACEOF
19670
19671
19672
19673 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile xtst.pc"
19674
19675 cat >confcache <<\_ACEOF
19676 # This file is a shell script that caches the results of configure
19677 # tests run on this system so they can be shared between configure
19678 # scripts and configure runs, see configure's option --config-cache.
19679 # It is not useful on other systems. If it contains results you don't
19680 # want to keep, you may remove or edit it.
19681 #
19682 # config.status only pays attention to the cache file if you give it
19683 # the --recheck option to rerun configure.
19684 #
19685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19687 # following values.
19688
19689 _ACEOF
19690
19691 # The following way of writing the cache mishandles newlines in values,
19692 # but we know of no workaround that is simple, portable, and efficient.
19693 # So, we kill variables containing newlines.
19694 # Ultrix sh set writes to stderr and can't be redirected directly,
19695 # and sets the high bit in the cache file unless we assign to the vars.
19696 (
19697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19698 eval ac_val=\$$ac_var
19699 case $ac_val in #(
19700 *${as_nl}*)
19701 case $ac_var in #(
19702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19704 esac
19705 case $ac_var in #(
19706 _ | IFS | as_nl) ;; #(
19707 *) $as_unset $ac_var ;;
19708 esac ;;
19709 esac
19710 done
19711
19712 (set) 2>&1 |
19713 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19714 *${as_nl}ac_space=\ *)
19715 # `set' does not quote correctly, so add quotes (double-quote
19716 # substitution turns \\\\ into \\, and sed turns \\ into \).
19717 sed -n \
19718 "s/'/'\\\\''/g;
19719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19720 ;; #(
19721 *)
19722 # `set' quotes correctly as required by POSIX, so do not add quotes.
19723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19724 ;;
19725 esac |
19726 sort
19727 ) |
19728 sed '
19729 /^ac_cv_env_/b end
19730 t clear
19731 :clear
19732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19733 t end
19734 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19735 :end' >>confcache
19736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19737 if test -w "$cache_file"; then
19738 test "x$cache_file" != "x/dev/null" &&
19739 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19740 echo "$as_me: updating cache $cache_file" >&6;}
19741 cat confcache >$cache_file
19742 else
19743 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19744 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19745 fi
19746 fi
19747 rm -f confcache
19748
19749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19750 # Let make expand exec_prefix.
19751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19752
19753 DEFS=-DHAVE_CONFIG_H
19754
19755 ac_libobjs=
19756 ac_ltlibobjs=
19757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19758 # 1. Remove the extension, and $U if already installed.
19759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19760 ac_i=`echo "$ac_i" | sed "$ac_script"`
19761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19762 # will be set to the directory where LIBOBJS objects are built.
19763 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19764 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19765 done
19766 LIBOBJS=$ac_libobjs
19767
19768 LTLIBOBJS=$ac_ltlibobjs
19769
19770
19771 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19772 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19773 Usually this means the macro was only invoked conditionally." >&5
19774 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19775 Usually this means the macro was only invoked conditionally." >&2;}
19776 { (exit 1); exit 1; }; }
19777 fi
19778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19779 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19780 Usually this means the macro was only invoked conditionally." >&5
19781 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19782 Usually this means the macro was only invoked conditionally." >&2;}
19783 { (exit 1); exit 1; }; }
19784 fi
19785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19786 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19787 Usually this means the macro was only invoked conditionally." >&5
19788 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19789 Usually this means the macro was only invoked conditionally." >&2;}
19790 { (exit 1); exit 1; }; }
19791 fi
19792 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19793 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19794 Usually this means the macro was only invoked conditionally." >&5
19795 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19796 Usually this means the macro was only invoked conditionally." >&2;}
19797 { (exit 1); exit 1; }; }
19798 fi
19799 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19800 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined.
19801 Usually this means the macro was only invoked conditionally." >&5
19802 echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined.
19803 Usually this means the macro was only invoked conditionally." >&2;}
19804 { (exit 1); exit 1; }; }
19805 fi
19806 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19807 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
19808 Usually this means the macro was only invoked conditionally." >&5
19809 echo "$as_me: error: conditional \"LINT\" was never defined.
19810 Usually this means the macro was only invoked conditionally." >&2;}
19811 { (exit 1); exit 1; }; }
19812 fi
19813 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
19814 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
19815 Usually this means the macro was only invoked conditionally." >&5
19816 echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
19817 Usually this means the macro was only invoked conditionally." >&2;}
19818 { (exit 1); exit 1; }; }
19819 fi
19820
19821 : ${CONFIG_STATUS=./config.status}
19822 ac_clean_files_save=$ac_clean_files
19823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19824 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19825 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19826 cat >$CONFIG_STATUS <<_ACEOF
19827 #! $SHELL
19828 # Generated by $as_me.
19829 # Run this file to recreate the current configuration.
19830 # Compiler output produced by configure, useful for debugging
19831 # configure, is in config.log if it exists.
19832
19833 debug=false
19834 ac_cs_recheck=false
19835 ac_cs_silent=false
19836 SHELL=\${CONFIG_SHELL-$SHELL}
19837 _ACEOF
19838
19839 cat >>$CONFIG_STATUS <<\_ACEOF
19840 ## --------------------- ##
19841 ## M4sh Initialization. ##
19842 ## --------------------- ##
19843
19844 # Be more Bourne compatible
19845 DUALCASE=1; export DUALCASE # for MKS sh
19846 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19847 emulate sh
19848 NULLCMD=:
19849 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19850 # is contrary to our usage. Disable this feature.
19851 alias -g '${1+"$@"}'='"$@"'
19852 setopt NO_GLOB_SUBST
19853 else
19854 case `(set -o) 2>/dev/null` in
19855 *posix*) set -o posix ;;
19856 esac
19857
19858 fi
19859
19860
19861
19862
19863 # PATH needs CR
19864 # Avoid depending upon Character Ranges.
19865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19868 as_cr_digits='0123456789'
19869 as_cr_alnum=$as_cr_Letters$as_cr_digits
19870
19871 # The user is always right.
19872 if test "${PATH_SEPARATOR+set}" != set; then
19873 echo "#! /bin/sh" >conf$$.sh
19874 echo "exit 0" >>conf$$.sh
19875 chmod +x conf$$.sh
19876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19877 PATH_SEPARATOR=';'
19878 else
19879 PATH_SEPARATOR=:
19880 fi
19881 rm -f conf$$.sh
19882 fi
19883
19884 # Support unset when possible.
19885 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19886 as_unset=unset
19887 else
19888 as_unset=false
19889 fi
19890
19891
19892 # IFS
19893 # We need space, tab and new line, in precisely that order. Quoting is
19894 # there to prevent editors from complaining about space-tab.
19895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19896 # splitting by setting IFS to empty value.)
19897 as_nl='
19898 '
19899 IFS=" "" $as_nl"
19900
19901 # Find who we are. Look in the path if we contain no directory separator.
19902 case $0 in
19903 *[\\/]* ) as_myself=$0 ;;
19904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19905 for as_dir in $PATH
19906 do
19907 IFS=$as_save_IFS
19908 test -z "$as_dir" && as_dir=.
19909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19910 done
19911 IFS=$as_save_IFS
19912
19913 ;;
19914 esac
19915 # We did not find ourselves, most probably we were run as `sh COMMAND'
19916 # in which case we are not to be found in the path.
19917 if test "x$as_myself" = x; then
19918 as_myself=$0
19919 fi
19920 if test ! -f "$as_myself"; then
19921 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19922 { (exit 1); exit 1; }
19923 fi
19924
19925 # Work around bugs in pre-3.0 UWIN ksh.
19926 for as_var in ENV MAIL MAILPATH
19927 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19928 done
19929 PS1='$ '
19930 PS2='> '
19931 PS4='+ '
19932
19933 # NLS nuisances.
19934 for as_var in \
19935 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19936 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19937 LC_TELEPHONE LC_TIME
19938 do
19939 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19940 eval $as_var=C; export $as_var
19941 else
19942 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19943 fi
19944 done
19945
19946 # Required to use basename.
19947 if expr a : '\(a\)' >/dev/null 2>&1 &&
19948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19949 as_expr=expr
19950 else
19951 as_expr=false
19952 fi
19953
19954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19955 as_basename=basename
19956 else
19957 as_basename=false
19958 fi
19959
19960
19961 # Name of the executable.
19962 as_me=`$as_basename -- "$0" ||
19963 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19964 X"$0" : 'X\(//\)$' \| \
19965 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19966 echo X/"$0" |
19967 sed '/^.*\/\([^/][^/]*\)\/*$/{
19968 s//\1/
19969 q
19970 }
19971 /^X\/\(\/\/\)$/{
19972 s//\1/
19973 q
19974 }
19975 /^X\/\(\/\).*/{
19976 s//\1/
19977 q
19978 }
19979 s/.*/./; q'`
19980
19981 # CDPATH.
19982 $as_unset CDPATH
19983
19984
19985
19986 as_lineno_1=$LINENO
19987 as_lineno_2=$LINENO
19988 test "x$as_lineno_1" != "x$as_lineno_2" &&
19989 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19990
19991 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19992 # uniformly replaced by the line number. The first 'sed' inserts a
19993 # line-number line after each line using $LINENO; the second 'sed'
19994 # does the real work. The second script uses 'N' to pair each
19995 # line-number line with the line containing $LINENO, and appends
19996 # trailing '-' during substitution so that $LINENO is not a special
19997 # case at line end.
19998 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19999 # scripts with optimization help from Paolo Bonzini. Blame Lee
20000 # E. McMahon (1931-1989) for sed's syntax. :-)
20001 sed -n '
20002 p
20003 /[$]LINENO/=
20004 ' <$as_myself |
20005 sed '
20006 s/[$]LINENO.*/&-/
20007 t lineno
20008 b
20009 :lineno
20010 N
20011 :loop
20012 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20013 t loop
20014 s/-\n.*//
20015 ' >$as_me.lineno &&
20016 chmod +x "$as_me.lineno" ||
20017 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20018 { (exit 1); exit 1; }; }
20019
20020 # Don't try to exec as it changes $[0], causing all sort of problems
20021 # (the dirname of $[0] is not the place where we might find the
20022 # original and so on. Autoconf is especially sensitive to this).
20023 . "./$as_me.lineno"
20024 # Exit status is that of the last command.
20025 exit
20026 }
20027
20028
20029 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20030 as_dirname=dirname
20031 else
20032 as_dirname=false
20033 fi
20034
20035 ECHO_C= ECHO_N= ECHO_T=
20036 case `echo -n x` in
20037 -n*)
20038 case `echo 'x\c'` in
20039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20040 *) ECHO_C='\c';;
20041 esac;;
20042 *)
20043 ECHO_N='-n';;
20044 esac
20045
20046 if expr a : '\(a\)' >/dev/null 2>&1 &&
20047 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20048 as_expr=expr
20049 else
20050 as_expr=false
20051 fi
20052
20053 rm -f conf$$ conf$$.exe conf$$.file
20054 if test -d conf$$.dir; then
20055 rm -f conf$$.dir/conf$$.file
20056 else
20057 rm -f conf$$.dir
20058 mkdir conf$$.dir
20059 fi
20060 echo >conf$$.file
20061 if ln -s conf$$.file conf$$ 2>/dev/null; then
20062 as_ln_s='ln -s'
20063 # ... but there are two gotchas:
20064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20066 # In both cases, we have to default to `cp -p'.
20067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20068 as_ln_s='cp -p'
20069 elif ln conf$$.file conf$$ 2>/dev/null; then
20070 as_ln_s=ln
20071 else
20072 as_ln_s='cp -p'
20073 fi
20074 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20075 rmdir conf$$.dir 2>/dev/null
20076
20077 if mkdir -p . 2>/dev/null; then
20078 as_mkdir_p=:
20079 else
20080 test -d ./-p && rmdir ./-p
20081 as_mkdir_p=false
20082 fi
20083
20084 if test -x / >/dev/null 2>&1; then
20085 as_test_x='test -x'
20086 else
20087 if ls -dL / >/dev/null 2>&1; then
20088 as_ls_L_option=L
20089 else
20090 as_ls_L_option=
20091 fi
20092 as_test_x='
20093 eval sh -c '\''
20094 if test -d "$1"; then
20095 test -d "$1/.";
20096 else
20097 case $1 in
20098 -*)set "./$1";;
20099 esac;
20100 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20101 ???[sx]*):;;*)false;;esac;fi
20102 '\'' sh
20103 '
20104 fi
20105 as_executable_p=$as_test_x
20106
20107 # Sed expression to map a string onto a valid CPP name.
20108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20109
20110 # Sed expression to map a string onto a valid variable name.
20111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20112
20113
20114 exec 6>&1
20115
20116 # Save the log message, to keep $[0] and so on meaningful, and to
20117 # report actual input values of CONFIG_FILES etc. instead of their
20118 # values after options handling.
20119 ac_log="
20120 This file was extended by libXtst $as_me 1.0.3, which was
20121 generated by GNU Autoconf 2.61. Invocation command line was
20122
20123 CONFIG_FILES = $CONFIG_FILES
20124 CONFIG_HEADERS = $CONFIG_HEADERS
20125 CONFIG_LINKS = $CONFIG_LINKS
20126 CONFIG_COMMANDS = $CONFIG_COMMANDS
20127 $ $0 $@
20128
20129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20130 "
20131
20132 _ACEOF
20133
20134 cat >>$CONFIG_STATUS <<_ACEOF
20135 # Files that config.status was made for.
20136 config_files="$ac_config_files"
20137 config_headers="$ac_config_headers"
20138 config_commands="$ac_config_commands"
20139
20140 _ACEOF
20141
20142 cat >>$CONFIG_STATUS <<\_ACEOF
20143 ac_cs_usage="\
20144 \`$as_me' instantiates files from templates according to the
20145 current configuration.
20146
20147 Usage: $0 [OPTIONS] [FILE]...
20148
20149 -h, --help print this help, then exit
20150 -V, --version print version number and configuration settings, then exit
20151 -q, --quiet do not print progress messages
20152 -d, --debug don't remove temporary files
20153 --recheck update $as_me by reconfiguring in the same conditions
20154 --file=FILE[:TEMPLATE]
20155 instantiate the configuration file FILE
20156 --header=FILE[:TEMPLATE]
20157 instantiate the configuration header FILE
20158
20159 Configuration files:
20160 $config_files
20161
20162 Configuration headers:
20163 $config_headers
20164
20165 Configuration commands:
20166 $config_commands
20167
20168 Report bugs to <bug-autoconf (at] gnu.org>."
20169
20170 _ACEOF
20171 cat >>$CONFIG_STATUS <<_ACEOF
20172 ac_cs_version="\\
20173 libXtst config.status 1.0.3
20174 configured by $0, generated by GNU Autoconf 2.61,
20175 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20176
20177 Copyright (C) 2006 Free Software Foundation, Inc.
20178 This config.status script is free software; the Free Software Foundation
20179 gives unlimited permission to copy, distribute and modify it."
20180
20181 ac_pwd='$ac_pwd'
20182 srcdir='$srcdir'
20183 INSTALL='$INSTALL'
20184 MKDIR_P='$MKDIR_P'
20185 _ACEOF
20186
20187 cat >>$CONFIG_STATUS <<\_ACEOF
20188 # If no file are specified by the user, then we need to provide default
20189 # value. By we need to know if files were specified by the user.
20190 ac_need_defaults=:
20191 while test $# != 0
20192 do
20193 case $1 in
20194 --*=*)
20195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20197 ac_shift=:
20198 ;;
20199 *)
20200 ac_option=$1
20201 ac_optarg=$2
20202 ac_shift=shift
20203 ;;
20204 esac
20205
20206 case $ac_option in
20207 # Handling of the options.
20208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20209 ac_cs_recheck=: ;;
20210 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20211 echo "$ac_cs_version"; exit ;;
20212 --debug | --debu | --deb | --de | --d | -d )
20213 debug=: ;;
20214 --file | --fil | --fi | --f )
20215 $ac_shift
20216 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20217 ac_need_defaults=false;;
20218 --header | --heade | --head | --hea )
20219 $ac_shift
20220 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20221 ac_need_defaults=false;;
20222 --he | --h)
20223 # Conflict between --help and --header
20224 { echo "$as_me: error: ambiguous option: $1
20225 Try \`$0 --help' for more information." >&2
20226 { (exit 1); exit 1; }; };;
20227 --help | --hel | -h )
20228 echo "$ac_cs_usage"; exit ;;
20229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20230 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20231 ac_cs_silent=: ;;
20232
20233 # This is an error.
20234 -*) { echo "$as_me: error: unrecognized option: $1
20235 Try \`$0 --help' for more information." >&2
20236 { (exit 1); exit 1; }; } ;;
20237
20238 *) ac_config_targets="$ac_config_targets $1"
20239 ac_need_defaults=false ;;
20240
20241 esac
20242 shift
20243 done
20244
20245 ac_configure_extra_args=
20246
20247 if $ac_cs_silent; then
20248 exec 6>/dev/null
20249 ac_configure_extra_args="$ac_configure_extra_args --silent"
20250 fi
20251
20252 _ACEOF
20253 cat >>$CONFIG_STATUS <<_ACEOF
20254 if \$ac_cs_recheck; then
20255 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20256 CONFIG_SHELL=$SHELL
20257 export CONFIG_SHELL
20258 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20259 fi
20260
20261 _ACEOF
20262 cat >>$CONFIG_STATUS <<\_ACEOF
20263 exec 5>>config.log
20264 {
20265 echo
20266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20267 ## Running $as_me. ##
20268 _ASBOX
20269 echo "$ac_log"
20270 } >&5
20271
20272 _ACEOF
20273 cat >>$CONFIG_STATUS <<_ACEOF
20274 #
20275 # INIT-COMMANDS
20276 #
20277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20278
20279 _ACEOF
20280
20281 cat >>$CONFIG_STATUS <<\_ACEOF
20282
20283 # Handling of arguments.
20284 for ac_config_target in $ac_config_targets
20285 do
20286 case $ac_config_target in
20287 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20288 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20289 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20290 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20291 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20292 "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;;
20293
20294 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20295 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20296 { (exit 1); exit 1; }; };;
20297 esac
20298 done
20299
20300
20301 # If the user did not use the arguments to specify the items to instantiate,
20302 # then the envvar interface is used. Set only those that are not.
20303 # We use the long form for the default assignment because of an extremely
20304 # bizarre bug on SunOS 4.1.3.
20305 if $ac_need_defaults; then
20306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20309 fi
20310
20311 # Have a temporary directory for convenience. Make it in the build tree
20312 # simply because there is no reason against having it here, and in addition,
20313 # creating and moving files from /tmp can sometimes cause problems.
20314 # Hook for its removal unless debugging.
20315 # Note that there is a small window in which the directory will not be cleaned:
20316 # after its creation but before its name has been assigned to `$tmp'.
20317 $debug ||
20318 {
20319 tmp=
20320 trap 'exit_status=$?
20321 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20322 ' 0
20323 trap '{ (exit 1); exit 1; }' 1 2 13 15
20324 }
20325 # Create a (secure) tmp directory for tmp files.
20326
20327 {
20328 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20329 test -n "$tmp" && test -d "$tmp"
20330 } ||
20331 {
20332 tmp=./conf$$-$RANDOM
20333 (umask 077 && mkdir "$tmp")
20334 } ||
20335 {
20336 echo "$me: cannot create a temporary directory in ." >&2
20337 { (exit 1); exit 1; }
20338 }
20339
20340 #
20341 # Set up the sed scripts for CONFIG_FILES section.
20342 #
20343
20344 # No need to generate the scripts if there are no CONFIG_FILES.
20345 # This happens for instance when ./config.status config.h
20346 if test -n "$CONFIG_FILES"; then
20347
20348 _ACEOF
20349
20350
20351
20352 ac_delim='%!_!# '
20353 for ac_last_try in false false false false false :; do
20354 cat >conf$$subs.sed <<_ACEOF
20355 SHELL!$SHELL$ac_delim
20356 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20357 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20358 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20359 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20360 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20361 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20362 exec_prefix!$exec_prefix$ac_delim
20363 prefix!$prefix$ac_delim
20364 program_transform_name!$program_transform_name$ac_delim
20365 bindir!$bindir$ac_delim
20366 sbindir!$sbindir$ac_delim
20367 libexecdir!$libexecdir$ac_delim
20368 datarootdir!$datarootdir$ac_delim
20369 datadir!$datadir$ac_delim
20370 sysconfdir!$sysconfdir$ac_delim
20371 sharedstatedir!$sharedstatedir$ac_delim
20372 localstatedir!$localstatedir$ac_delim
20373 includedir!$includedir$ac_delim
20374 oldincludedir!$oldincludedir$ac_delim
20375 docdir!$docdir$ac_delim
20376 infodir!$infodir$ac_delim
20377 htmldir!$htmldir$ac_delim
20378 dvidir!$dvidir$ac_delim
20379 pdfdir!$pdfdir$ac_delim
20380 psdir!$psdir$ac_delim
20381 libdir!$libdir$ac_delim
20382 localedir!$localedir$ac_delim
20383 mandir!$mandir$ac_delim
20384 DEFS!$DEFS$ac_delim
20385 ECHO_C!$ECHO_C$ac_delim
20386 ECHO_N!$ECHO_N$ac_delim
20387 ECHO_T!$ECHO_T$ac_delim
20388 LIBS!$LIBS$ac_delim
20389 build_alias!$build_alias$ac_delim
20390 host_alias!$host_alias$ac_delim
20391 target_alias!$target_alias$ac_delim
20392 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20393 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20394 INSTALL_DATA!$INSTALL_DATA$ac_delim
20395 am__isrc!$am__isrc$ac_delim
20396 CYGPATH_W!$CYGPATH_W$ac_delim
20397 PACKAGE!$PACKAGE$ac_delim
20398 VERSION!$VERSION$ac_delim
20399 ACLOCAL!$ACLOCAL$ac_delim
20400 AUTOCONF!$AUTOCONF$ac_delim
20401 AUTOMAKE!$AUTOMAKE$ac_delim
20402 AUTOHEADER!$AUTOHEADER$ac_delim
20403 MAKEINFO!$MAKEINFO$ac_delim
20404 install_sh!$install_sh$ac_delim
20405 STRIP!$STRIP$ac_delim
20406 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20407 mkdir_p!$mkdir_p$ac_delim
20408 AWK!$AWK$ac_delim
20409 SET_MAKE!$SET_MAKE$ac_delim
20410 am__leading_dot!$am__leading_dot$ac_delim
20411 AMTAR!$AMTAR$ac_delim
20412 am__tar!$am__tar$ac_delim
20413 am__untar!$am__untar$ac_delim
20414 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20415 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20416 MAINT!$MAINT$ac_delim
20417 CC!$CC$ac_delim
20418 CFLAGS!$CFLAGS$ac_delim
20419 LDFLAGS!$LDFLAGS$ac_delim
20420 CPPFLAGS!$CPPFLAGS$ac_delim
20421 ac_ct_CC!$ac_ct_CC$ac_delim
20422 EXEEXT!$EXEEXT$ac_delim
20423 OBJEXT!$OBJEXT$ac_delim
20424 DEPDIR!$DEPDIR$ac_delim
20425 am__include!$am__include$ac_delim
20426 am__quote!$am__quote$ac_delim
20427 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20428 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20429 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20430 CCDEPMODE!$CCDEPMODE$ac_delim
20431 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20432 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20433 build!$build$ac_delim
20434 build_cpu!$build_cpu$ac_delim
20435 build_vendor!$build_vendor$ac_delim
20436 build_os!$build_os$ac_delim
20437 host!$host$ac_delim
20438 host_cpu!$host_cpu$ac_delim
20439 host_vendor!$host_vendor$ac_delim
20440 host_os!$host_os$ac_delim
20441 GREP!$GREP$ac_delim
20442 EGREP!$EGREP$ac_delim
20443 LN_S!$LN_S$ac_delim
20444 ECHO!$ECHO$ac_delim
20445 AR!$AR$ac_delim
20446 RANLIB!$RANLIB$ac_delim
20447 CPP!$CPP$ac_delim
20448 CXX!$CXX$ac_delim
20449 CXXFLAGS!$CXXFLAGS$ac_delim
20450 ac_ct_CXX!$ac_ct_CXX$ac_delim
20451 CXXDEPMODE!$CXXDEPMODE$ac_delim
20452 _ACEOF
20453
20454 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20455 break
20456 elif $ac_last_try; then
20457 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20458 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20459 { (exit 1); exit 1; }; }
20460 else
20461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20462 fi
20463 done
20464
20465 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20466 if test -n "$ac_eof"; then
20467 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20468 ac_eof=`expr $ac_eof + 1`
20469 fi
20470
20471 cat >>$CONFIG_STATUS <<_ACEOF
20472 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20474 _ACEOF
20475 sed '
20476 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20477 s/^/s,@/; s/!/@,|#_!!_#|/
20478 :n
20479 t n
20480 s/'"$ac_delim"'$/,g/; t
20481 s/$/\\/; p
20482 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20483 ' >>$CONFIG_STATUS <conf$$subs.sed
20484 rm -f conf$$subs.sed
20485 cat >>$CONFIG_STATUS <<_ACEOF
20486 CEOF$ac_eof
20487 _ACEOF
20488
20489
20490 ac_delim='%!_!# '
20491 for ac_last_try in false false false false false :; do
20492 cat >conf$$subs.sed <<_ACEOF
20493 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20494 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20495 CXXCPP!$CXXCPP$ac_delim
20496 F77!$F77$ac_delim
20497 FFLAGS!$FFLAGS$ac_delim
20498 ac_ct_F77!$ac_ct_F77$ac_delim
20499 LIBTOOL!$LIBTOOL$ac_delim
20500 XMLTO!$XMLTO$ac_delim
20501 HAVE_XMLTO_TRUE!$HAVE_XMLTO_TRUE$ac_delim
20502 HAVE_XMLTO_FALSE!$HAVE_XMLTO_FALSE$ac_delim
20503 PKG_CONFIG!$PKG_CONFIG$ac_delim
20504 XTST_CFLAGS!$XTST_CFLAGS$ac_delim
20505 XTST_LIBS!$XTST_LIBS$ac_delim
20506 LINT!$LINT$ac_delim
20507 LINT_FLAGS!$LINT_FLAGS$ac_delim
20508 LINT_TRUE!$LINT_TRUE$ac_delim
20509 LINT_FALSE!$LINT_FALSE$ac_delim
20510 LINTLIB!$LINTLIB$ac_delim
20511 MAKE_LINT_LIB_TRUE!$MAKE_LINT_LIB_TRUE$ac_delim
20512 MAKE_LINT_LIB_FALSE!$MAKE_LINT_LIB_FALSE$ac_delim
20513 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
20514 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
20515 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
20516 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
20517 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
20518 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
20519 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
20520 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
20521 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
20522 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
20523 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
20524 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
20525 LIBOBJS!$LIBOBJS$ac_delim
20526 LTLIBOBJS!$LTLIBOBJS$ac_delim
20527 _ACEOF
20528
20529 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
20530 break
20531 elif $ac_last_try; then
20532 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20533 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20534 { (exit 1); exit 1; }; }
20535 else
20536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20537 fi
20538 done
20539
20540 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20541 if test -n "$ac_eof"; then
20542 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20543 ac_eof=`expr $ac_eof + 1`
20544 fi
20545
20546 cat >>$CONFIG_STATUS <<_ACEOF
20547 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20549 _ACEOF
20550 sed '
20551 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20552 s/^/s,@/; s/!/@,|#_!!_#|/
20553 :n
20554 t n
20555 s/'"$ac_delim"'$/,g/; t
20556 s/$/\\/; p
20557 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20558 ' >>$CONFIG_STATUS <conf$$subs.sed
20559 rm -f conf$$subs.sed
20560 cat >>$CONFIG_STATUS <<_ACEOF
20561 :end
20562 s/|#_!!_#|//g
20563 CEOF$ac_eof
20564 _ACEOF
20565
20566
20567 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20568 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20569 # trailing colons and then remove the whole line if VPATH becomes empty
20570 # (actually we leave an empty line to preserve line numbers).
20571 if test "x$srcdir" = x.; then
20572 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20573 s/:*\$(srcdir):*/:/
20574 s/:*\${srcdir}:*/:/
20575 s/:*@srcdir@:*/:/
20576 s/^\([^=]*=[ ]*\):*/\1/
20577 s/:*$//
20578 s/^[^=]*=[ ]*$//
20579 }'
20580 fi
20581
20582 cat >>$CONFIG_STATUS <<\_ACEOF
20583 fi # test -n "$CONFIG_FILES"
20584
20585
20586 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20587 do
20588 case $ac_tag in
20589 :[FHLC]) ac_mode=$ac_tag; continue;;
20590 esac
20591 case $ac_mode$ac_tag in
20592 :[FHL]*:*);;
20593 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20594 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20595 { (exit 1); exit 1; }; };;
20596 :[FH]-) ac_tag=-:-;;
20597 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20598 esac
20599 ac_save_IFS=$IFS
20600 IFS=:
20601 set x $ac_tag
20602 IFS=$ac_save_IFS
20603 shift
20604 ac_file=$1
20605 shift
20606
20607 case $ac_mode in
20608 :L) ac_source=$1;;
20609 :[FH])
20610 ac_file_inputs=
20611 for ac_f
20612 do
20613 case $ac_f in
20614 -) ac_f="$tmp/stdin";;
20615 *) # Look for the file first in the build tree, then in the source tree
20616 # (if the path is not absolute). The absolute path cannot be DOS-style,
20617 # because $ac_f cannot contain `:'.
20618 test -f "$ac_f" ||
20619 case $ac_f in
20620 [\\/$]*) false;;
20621 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20622 esac ||
20623 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20624 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20625 { (exit 1); exit 1; }; };;
20626 esac
20627 ac_file_inputs="$ac_file_inputs $ac_f"
20628 done
20629
20630 # Let's still pretend it is `configure' which instantiates (i.e., don't
20631 # use $as_me), people would be surprised to read:
20632 # /* config.h. Generated by config.status. */
20633 configure_input="Generated from "`IFS=:
20634 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20635 if test x"$ac_file" != x-; then
20636 configure_input="$ac_file. $configure_input"
20637 { echo "$as_me:$LINENO: creating $ac_file" >&5
20638 echo "$as_me: creating $ac_file" >&6;}
20639 fi
20640
20641 case $ac_tag in
20642 *:-:* | *:-) cat >"$tmp/stdin";;
20643 esac
20644 ;;
20645 esac
20646
20647 ac_dir=`$as_dirname -- "$ac_file" ||
20648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20649 X"$ac_file" : 'X\(//\)[^/]' \| \
20650 X"$ac_file" : 'X\(//\)$' \| \
20651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20652 echo X"$ac_file" |
20653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20654 s//\1/
20655 q
20656 }
20657 /^X\(\/\/\)[^/].*/{
20658 s//\1/
20659 q
20660 }
20661 /^X\(\/\/\)$/{
20662 s//\1/
20663 q
20664 }
20665 /^X\(\/\).*/{
20666 s//\1/
20667 q
20668 }
20669 s/.*/./; q'`
20670 { as_dir="$ac_dir"
20671 case $as_dir in #(
20672 -*) as_dir=./$as_dir;;
20673 esac
20674 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20675 as_dirs=
20676 while :; do
20677 case $as_dir in #(
20678 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20679 *) as_qdir=$as_dir;;
20680 esac
20681 as_dirs="'$as_qdir' $as_dirs"
20682 as_dir=`$as_dirname -- "$as_dir" ||
20683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20684 X"$as_dir" : 'X\(//\)[^/]' \| \
20685 X"$as_dir" : 'X\(//\)$' \| \
20686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20687 echo X"$as_dir" |
20688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20689 s//\1/
20690 q
20691 }
20692 /^X\(\/\/\)[^/].*/{
20693 s//\1/
20694 q
20695 }
20696 /^X\(\/\/\)$/{
20697 s//\1/
20698 q
20699 }
20700 /^X\(\/\).*/{
20701 s//\1/
20702 q
20703 }
20704 s/.*/./; q'`
20705 test -d "$as_dir" && break
20706 done
20707 test -z "$as_dirs" || eval "mkdir $as_dirs"
20708 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20709 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20710 { (exit 1); exit 1; }; }; }
20711 ac_builddir=.
20712
20713 case "$ac_dir" in
20714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20715 *)
20716 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20717 # A ".." for each directory in $ac_dir_suffix.
20718 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20719 case $ac_top_builddir_sub in
20720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20722 esac ;;
20723 esac
20724 ac_abs_top_builddir=$ac_pwd
20725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20726 # for backward compatibility:
20727 ac_top_builddir=$ac_top_build_prefix
20728
20729 case $srcdir in
20730 .) # We are building in place.
20731 ac_srcdir=.
20732 ac_top_srcdir=$ac_top_builddir_sub
20733 ac_abs_top_srcdir=$ac_pwd ;;
20734 [\\/]* | ?:[\\/]* ) # Absolute name.
20735 ac_srcdir=$srcdir$ac_dir_suffix;
20736 ac_top_srcdir=$srcdir
20737 ac_abs_top_srcdir=$srcdir ;;
20738 *) # Relative name.
20739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20740 ac_top_srcdir=$ac_top_build_prefix$srcdir
20741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20742 esac
20743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20744
20745
20746 case $ac_mode in
20747 :F)
20748 #
20749 # CONFIG_FILE
20750 #
20751
20752 case $INSTALL in
20753 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20754 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20755 esac
20756 ac_MKDIR_P=$MKDIR_P
20757 case $MKDIR_P in
20758 [\\/$]* | ?:[\\/]* ) ;;
20759 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20760 esac
20761 _ACEOF
20762
20763 cat >>$CONFIG_STATUS <<\_ACEOF
20764 # If the template does not know about datarootdir, expand it.
20765 # FIXME: This hack should be removed a few years after 2.60.
20766 ac_datarootdir_hack=; ac_datarootdir_seen=
20767
20768 case `sed -n '/datarootdir/ {
20769 p
20770 q
20771 }
20772 /@datadir@/p
20773 /@docdir@/p
20774 /@infodir@/p
20775 /@localedir@/p
20776 /@mandir@/p
20777 ' $ac_file_inputs` in
20778 *datarootdir*) ac_datarootdir_seen=yes;;
20779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20780 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20781 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20782 _ACEOF
20783 cat >>$CONFIG_STATUS <<_ACEOF
20784 ac_datarootdir_hack='
20785 s&@datadir@&$datadir&g
20786 s&@docdir@&$docdir&g
20787 s&@infodir@&$infodir&g
20788 s&@localedir@&$localedir&g
20789 s&@mandir@&$mandir&g
20790 s&\\\${datarootdir}&$datarootdir&g' ;;
20791 esac
20792 _ACEOF
20793
20794 # Neutralize VPATH when `$srcdir' = `.'.
20795 # Shell code in configure.ac might set extrasub.
20796 # FIXME: do we really want to maintain this feature?
20797 cat >>$CONFIG_STATUS <<_ACEOF
20798 sed "$ac_vpsub
20799 $extrasub
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<\_ACEOF
20802 :t
20803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20804 s&@configure_input@&$configure_input&;t t
20805 s&@top_builddir@&$ac_top_builddir_sub&;t t
20806 s&@srcdir@&$ac_srcdir&;t t
20807 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20808 s&@top_srcdir@&$ac_top_srcdir&;t t
20809 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20810 s&@builddir@&$ac_builddir&;t t
20811 s&@abs_builddir@&$ac_abs_builddir&;t t
20812 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20813 s&@INSTALL@&$ac_INSTALL&;t t
20814 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20815 $ac_datarootdir_hack
20816 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20817
20818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20819 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20821 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20822 which seems to be undefined. Please make sure it is defined." >&5
20823 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20824 which seems to be undefined. Please make sure it is defined." >&2;}
20825
20826 rm -f "$tmp/stdin"
20827 case $ac_file in
20828 -) cat "$tmp/out"; rm -f "$tmp/out";;
20829 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20830 esac
20831 ;;
20832 :H)
20833 #
20834 # CONFIG_HEADER
20835 #
20836 _ACEOF
20837
20838 # Transform confdefs.h into a sed script `conftest.defines', that
20839 # substitutes the proper values into config.h.in to produce config.h.
20840 rm -f conftest.defines conftest.tail
20841 # First, append a space to every undef/define line, to ease matching.
20842 echo 's/$/ /' >conftest.defines
20843 # Then, protect against being on the right side of a sed subst, or in
20844 # an unquoted here document, in config.status. If some macros were
20845 # called several times there might be several #defines for the same
20846 # symbol, which is useless. But do not sort them, since the last
20847 # AC_DEFINE must be honored.
20848 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20849 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20850 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20851 # PARAMS is the parameter list in the macro definition--in most cases, it's
20852 # just an empty string.
20853 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20854 ac_dB='\\)[ (].*,\\1define\\2'
20855 ac_dC=' '
20856 ac_dD=' ,'
20857
20858 uniq confdefs.h |
20859 sed -n '
20860 t rset
20861 :rset
20862 s/^[ ]*#[ ]*define[ ][ ]*//
20863 t ok
20864 d
20865 :ok
20866 s/[\\&,]/\\&/g
20867 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20868 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20869 ' >>conftest.defines
20870
20871 # Remove the space that was appended to ease matching.
20872 # Then replace #undef with comments. This is necessary, for
20873 # example, in the case of _POSIX_SOURCE, which is predefined and required
20874 # on some systems where configure will not decide to define it.
20875 # (The regexp can be short, since the line contains either #define or #undef.)
20876 echo 's/ $//
20877 s,^[ #]*u.*,/* & */,' >>conftest.defines
20878
20879 # Break up conftest.defines:
20880 ac_max_sed_lines=50
20881
20882 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20883 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20884 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20885 # et cetera.
20886 ac_in='$ac_file_inputs'
20887 ac_out='"$tmp/out1"'
20888 ac_nxt='"$tmp/out2"'
20889
20890 while :
20891 do
20892 # Write a here document:
20893 cat >>$CONFIG_STATUS <<_ACEOF
20894 # First, check the format of the line:
20895 cat >"\$tmp/defines.sed" <<\\CEOF
20896 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20897 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20898 b
20899 :def
20900 _ACEOF
20901 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20902 echo 'CEOF
20903 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20904 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20905 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20906 grep . conftest.tail >/dev/null || break
20907 rm -f conftest.defines
20908 mv conftest.tail conftest.defines
20909 done
20910 rm -f conftest.defines conftest.tail
20911
20912 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20913 cat >>$CONFIG_STATUS <<\_ACEOF
20914 if test x"$ac_file" != x-; then
20915 echo "/* $configure_input */" >"$tmp/config.h"
20916 cat "$ac_result" >>"$tmp/config.h"
20917 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20919 echo "$as_me: $ac_file is unchanged" >&6;}
20920 else
20921 rm -f $ac_file
20922 mv "$tmp/config.h" $ac_file
20923 fi
20924 else
20925 echo "/* $configure_input */"
20926 cat "$ac_result"
20927 fi
20928 rm -f "$tmp/out12"
20929 # Compute $ac_file's index in $config_headers.
20930 _am_stamp_count=1
20931 for _am_header in $config_headers :; do
20932 case $_am_header in
20933 $ac_file | $ac_file:* )
20934 break ;;
20935 * )
20936 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20937 esac
20938 done
20939 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20940 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20941 X$ac_file : 'X\(//\)[^/]' \| \
20942 X$ac_file : 'X\(//\)$' \| \
20943 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20944 echo X$ac_file |
20945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20946 s//\1/
20947 q
20948 }
20949 /^X\(\/\/\)[^/].*/{
20950 s//\1/
20951 q
20952 }
20953 /^X\(\/\/\)$/{
20954 s//\1/
20955 q
20956 }
20957 /^X\(\/\).*/{
20958 s//\1/
20959 q
20960 }
20961 s/.*/./; q'`/stamp-h$_am_stamp_count
20962 ;;
20963
20964 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20965 echo "$as_me: executing $ac_file commands" >&6;}
20966 ;;
20967 esac
20968
20969
20970 case $ac_file$ac_mode in
20971 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20972 # Strip MF so we end up with the name of the file.
20973 mf=`echo "$mf" | sed -e 's/:.*$//'`
20974 # Check whether this is an Automake generated Makefile or not.
20975 # We used to match only the files named `Makefile.in', but
20976 # some people rename them; so instead we look at the file content.
20977 # Grep'ing the first line is not enough: some people post-process
20978 # each Makefile.in and add a new line on top of each file to say so.
20979 # Grep'ing the whole file is not good either: AIX grep has a line
20980 # limit of 2048, but all sed's we know have understand at least 4000.
20981 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
20982 dirpart=`$as_dirname -- "$mf" ||
20983 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20984 X"$mf" : 'X\(//\)[^/]' \| \
20985 X"$mf" : 'X\(//\)$' \| \
20986 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20987 echo X"$mf" |
20988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20989 s//\1/
20990 q
20991 }
20992 /^X\(\/\/\)[^/].*/{
20993 s//\1/
20994 q
20995 }
20996 /^X\(\/\/\)$/{
20997 s//\1/
20998 q
20999 }
21000 /^X\(\/\).*/{
21001 s//\1/
21002 q
21003 }
21004 s/.*/./; q'`
21005 else
21006 continue
21007 fi
21008 # Extract the definition of DEPDIR, am__include, and am__quote
21009 # from the Makefile without running `make'.
21010 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21011 test -z "$DEPDIR" && continue
21012 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21013 test -z "am__include" && continue
21014 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21015 # When using ansi2knr, U may be empty or an underscore; expand it
21016 U=`sed -n 's/^U = //p' < "$mf"`
21017 # Find all dependency output files, they are included files with
21018 # $(DEPDIR) in their names. We invoke sed twice because it is the
21019 # simplest approach to changing $(DEPDIR) to its actual value in the
21020 # expansion.
21021 for file in `sed -n "
21022 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21023 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21024 # Make sure the directory exists.
21025 test -f "$dirpart/$file" && continue
21026 fdir=`$as_dirname -- "$file" ||
21027 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21028 X"$file" : 'X\(//\)[^/]' \| \
21029 X"$file" : 'X\(//\)$' \| \
21030 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21031 echo X"$file" |
21032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21033 s//\1/
21034 q
21035 }
21036 /^X\(\/\/\)[^/].*/{
21037 s//\1/
21038 q
21039 }
21040 /^X\(\/\/\)$/{
21041 s//\1/
21042 q
21043 }
21044 /^X\(\/\).*/{
21045 s//\1/
21046 q
21047 }
21048 s/.*/./; q'`
21049 { as_dir=$dirpart/$fdir
21050 case $as_dir in #(
21051 -*) as_dir=./$as_dir;;
21052 esac
21053 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21054 as_dirs=
21055 while :; do
21056 case $as_dir in #(
21057 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21058 *) as_qdir=$as_dir;;
21059 esac
21060 as_dirs="'$as_qdir' $as_dirs"
21061 as_dir=`$as_dirname -- "$as_dir" ||
21062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063 X"$as_dir" : 'X\(//\)[^/]' \| \
21064 X"$as_dir" : 'X\(//\)$' \| \
21065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21066 echo X"$as_dir" |
21067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21068 s//\1/
21069 q
21070 }
21071 /^X\(\/\/\)[^/].*/{
21072 s//\1/
21073 q
21074 }
21075 /^X\(\/\/\)$/{
21076 s//\1/
21077 q
21078 }
21079 /^X\(\/\).*/{
21080 s//\1/
21081 q
21082 }
21083 s/.*/./; q'`
21084 test -d "$as_dir" && break
21085 done
21086 test -z "$as_dirs" || eval "mkdir $as_dirs"
21087 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21088 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21089 { (exit 1); exit 1; }; }; }
21090 # echo "creating $dirpart/$file"
21091 echo '# dummy' > "$dirpart/$file"
21092 done
21093 done
21094 ;;
21095
21096 esac
21097 done # for ac_tag
21098
21099
21100 { (exit 0); exit 0; }
21101 _ACEOF
21102 chmod +x $CONFIG_STATUS
21103 ac_clean_files=$ac_clean_files_save
21104
21105
21106 # configure is writing to config.log, and then calls config.status.
21107 # config.status does its own redirection, appending to config.log.
21108 # Unfortunately, on DOS this fails, as config.log is still kept open
21109 # by configure, so config.status won't be able to write to it; its
21110 # output is simply discarded. So we exec the FD to /dev/null,
21111 # effectively closing config.log, so it can be properly (re)opened and
21112 # appended to by config.status. When coming back to configure, we
21113 # need to make the FD available again.
21114 if test "$no_create" != yes; then
21115 ac_cs_success=:
21116 ac_config_status_args=
21117 test "$silent" = yes &&
21118 ac_config_status_args="$ac_config_status_args --quiet"
21119 exec 5>/dev/null
21120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21121 exec 5>>config.log
21122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21123 # would make configure fail if this is the last instruction.
21124 $ac_cs_success || { (exit 1); exit 1; }
21125 fi
21126
21127