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 libpciaccess 0.10.6.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
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='libpciaccess'
730 PACKAGE_TARNAME='libpciaccess'
731 PACKAGE_VERSION='0.10.6'
732 PACKAGE_STRING='libpciaccess 0.10.6'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess'
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 CWARNFLAGS
876 PCIIDS_PATH
877 LINUX_TRUE
878 LINUX_FALSE
879 FREEBSD_TRUE
880 FREEBSD_FALSE
881 NETBSD_TRUE
882 NETBSD_FALSE
883 OPENBSD_TRUE
884 OPENBSD_FALSE
885 SOLARIS_TRUE
886 SOLARIS_FALSE
887 PCIACCESS_CFLAGS
888 PCIACCESS_LIBS
889 CHANGELOG_CMD
890 distcleancheck_listfiles
891 LIBOBJS
892 LTLIBOBJS'
893 ac_subst_files=''
894 ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CC
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CPP
903 CXX
904 CXXFLAGS
905 CCC
906 CXXCPP
907 F77
908 FFLAGS'
909
910
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1029
1030 -enable-* | --enable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=\$ac_optarg ;;
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1058
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1063
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1093
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1167
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=\$ac_optarg ;;
1235
1236 -without-* | --without-*)
1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243 eval with_$ac_package=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 ;;
1284
1285 esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1292 fi
1293
1294 # Be sure to have absolute directory names.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1299 do
1300 eval ac_val=\$$ac_var
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1341
1342
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$0" ||
1348 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352 echo X"$0" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\).*/{
1366 s//\1/
1367 q
1368 }
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1373 fi
1374 else
1375 ac_srcdir_defaulted=no
1376 fi
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures libpciaccess 0.10.6 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/libpciaccess]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1465
1466 cat <<\_ACEOF
1467
1468 Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of libpciaccess 0.10.6:";;
1482 esac
1483 cat <<\_ACEOF
1484
1485 Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-maintainer-mode enable make rules and dependencies not useful
1489 (and sometimes confusing) to the casual installer
1490 --disable-dependency-tracking speeds up one-time build
1491 --enable-dependency-tracking do not reject slow dependency extractors
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --disable-largefile omit support for large files
1498
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-pic try to use only PIC/non-PIC objects [default=use
1504 both]
1505 --with-tags[=TAGS] include additional configurations [automatic]
1506 --with-pciids-path=PCIIDS_PATH
1507 Path to pci.ids file
1508 --with-zlib Enable zlib support to read gzip compressed pci.ids
1509 --with-release-version=STRING
1510 Use release version string in package name
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CPP C preprocessor
1521 CXX C++ compiler command
1522 CXXFLAGS C++ compiler flags
1523 CXXCPP C++ preprocessor
1524 F77 Fortran 77 compiler command
1525 FFLAGS Fortran 77 compiler flags
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" || continue
1539 ac_builddir=.
1540
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *)
1544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1556
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1586 fi
1587
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 libpciaccess configure 0.10.6
1592 generated by GNU Autoconf 2.61
1593
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1600 fi
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1604
1605 It was created by libpciaccess $as_me 0.10.6, which was
1606 generated by GNU Autoconf 2.61. Invocation command line was
1607
1608 $ $0 $@
1609
1610 _ACEOF
1611 exec 5>>config.log
1612 {
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1617
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634
1635 _ASUNAME
1636
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1645
1646 } >&5
1647
1648 cat >&5 <<_ACEOF
1649
1650
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1654
1655 _ACEOF
1656
1657
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1668 do
1669 for ac_arg
1670 do
1671 case $ac_arg in
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 continue ;;
1676 *\'*)
1677 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 esac
1679 case $ac_pass in
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681 2)
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1685 else
1686 case $ac_arg in
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 esac
1694 ;;
1695 -* ) ac_must_keep_next=true ;;
1696 esac
1697 fi
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1699 ;;
1700 esac
1701 done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1713 {
1714 echo
1715
1716 cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721 echo
1722 # The following way of writing the cache mishandles newlines in values,
1723 (
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in #(
1727 *${as_nl}*)
1728 case $ac_var in #(
1729 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 esac
1732 case $ac_var in #(
1733 _ | IFS | as_nl) ;; #(
1734 *) $as_unset $ac_var ;;
1735 esac ;;
1736 esac
1737 done
1738 (set) 2>&1 |
1739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740 *${as_nl}ac_space=\ *)
1741 sed -n \
1742 "s/'\''/'\''\\\\'\'''\''/g;
1743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744 ;; #(
1745 *)
1746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747 ;;
1748 esac |
1749 sort
1750 )
1751 echo
1752
1753 cat <<\_ASBOX
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1757 _ASBOX
1758 echo
1759 for ac_var in $ac_subst_vars
1760 do
1761 eval ac_val=\$$ac_var
1762 case $ac_val in
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 esac
1765 echo "$ac_var='\''$ac_val'\''"
1766 done | sort
1767 echo
1768
1769 if test -n "$ac_subst_files"; then
1770 cat <<\_ASBOX
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1774 _ASBOX
1775 echo
1776 for ac_var in $ac_subst_files
1777 do
1778 eval ac_val=\$$ac_var
1779 case $ac_val in
1780 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781 esac
1782 echo "$ac_var='\''$ac_val'\''"
1783 done | sort
1784 echo
1785 fi
1786
1787 if test -s confdefs.h; then
1788 cat <<\_ASBOX
1789 ## ----------- ##
1790 ## confdefs.h. ##
1791 ## ----------- ##
1792 _ASBOX
1793 echo
1794 cat confdefs.h
1795 echo
1796 fi
1797 test "$ac_signal" != 0 &&
1798 echo "$as_me: caught signal $ac_signal"
1799 echo "$as_me: exit $exit_status"
1800 } >&5
1801 rm -f core *.core core.conftest.* &&
1802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803 exit $exit_status
1804 ' 0
1805 for ac_signal in 1 2 13 15; do
1806 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 done
1808 ac_signal=0
1809
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1812
1813 # Predefined preprocessor variables.
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 _ACEOF
1838
1839
1840 # Let the site file select an alternate cache file if it wants to.
1841 # Prefer explicitly selected file to automatically selected ones.
1842 if test -n "$CONFIG_SITE"; then
1843 set x "$CONFIG_SITE"
1844 elif test "x$prefix" != xNONE; then
1845 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1846 else
1847 set x "$ac_default_prefix/share/config.site" \
1848 "$ac_default_prefix/etc/config.site"
1849 fi
1850 shift
1851 for ac_site_file
1852 do
1853 if test -r "$ac_site_file"; then
1854 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855 echo "$as_me: loading site script $ac_site_file" >&6;}
1856 sed 's/^/| /' "$ac_site_file" >&5
1857 . "$ac_site_file"
1858 fi
1859 done
1860
1861 if test -r "$cache_file"; then
1862 # Some versions of bash will fail to source /dev/null (special
1863 # files actually), so we avoid doing that.
1864 if test -f "$cache_file"; then
1865 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866 echo "$as_me: loading cache $cache_file" >&6;}
1867 case $cache_file in
1868 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869 *) . "./$cache_file";;
1870 esac
1871 fi
1872 else
1873 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874 echo "$as_me: creating cache $cache_file" >&6;}
1875 >$cache_file
1876 fi
1877
1878 # Check that the precious variables saved in the cache have kept the same
1879 # value.
1880 ac_cache_corrupted=false
1881 for ac_var in $ac_precious_vars; do
1882 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883 eval ac_new_set=\$ac_env_${ac_var}_set
1884 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885 eval ac_new_val=\$ac_env_${ac_var}_value
1886 case $ac_old_set,$ac_new_set in
1887 set,)
1888 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890 ac_cache_corrupted=: ;;
1891 ,set)
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1895 ,);;
1896 *)
1897 if test "x$ac_old_val" != "x$ac_new_val"; then
1898 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1901 echo "$as_me: former value: $ac_old_val" >&2;}
1902 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1903 echo "$as_me: current value: $ac_new_val" >&2;}
1904 ac_cache_corrupted=:
1905 fi;;
1906 esac
1907 # Pass precious variables to config.status.
1908 if test "$ac_new_set" = set; then
1909 case $ac_new_val in
1910 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 *) ac_arg=$ac_var=$ac_new_val ;;
1912 esac
1913 case " $ac_configure_args " in
1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 esac
1917 fi
1918 done
1919 if $ac_cache_corrupted; then
1920 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924 { (exit 1); exit 1; }; }
1925 fi
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956
1957
1958 am__api_version='1.10'
1959
1960 ac_aux_dir=
1961 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1962 if test -f "$ac_dir/install-sh"; then
1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1965 break
1966 elif test -f "$ac_dir/install.sh"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1969 break
1970 elif test -f "$ac_dir/shtool"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1973 break
1974 fi
1975 done
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1979 { (exit 1); exit 1; }; }
1980 fi
1981
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1989
1990
1991 # Find a good install program. We prefer a C program (faster),
1992 # so one script is as good as another. But avoid the broken or
1993 # incompatible versions:
1994 # SysV /etc/install, /usr/sbin/install
1995 # SunOS /usr/etc/install
1996 # IRIX /sbin/install
1997 # AIX /bin/install
1998 # AmigaOS /C/install, which installs bootblocks on floppy discs
1999 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2000 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2001 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2002 # OS/2's system install, which has a completely different semantic
2003 # ./install, which can be erroneously created by make from ./install.sh.
2004 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2005 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2006 if test -z "$INSTALL"; then
2007 if test "${ac_cv_path_install+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 # Account for people who put trailing slashes in PATH elements.
2016 case $as_dir/ in
2017 ./ | .// | /cC/* | \
2018 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2019 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2020 /usr/ucb/* ) ;;
2021 *)
2022 # OSF1 and SCO ODT 3.0 have their own names for install.
2023 # Don't use installbsd from OSF since it installs stuff as root
2024 # by default.
2025 for ac_prog in ginstall scoinst install; do
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2028 if test $ac_prog = install &&
2029 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030 # AIX install. It has an incompatible calling convention.
2031 :
2032 elif test $ac_prog = install &&
2033 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2034 # program-specific install script used by HP pwplus--don't use.
2035 :
2036 else
2037 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2038 break 3
2039 fi
2040 fi
2041 done
2042 done
2043 ;;
2044 esac
2045 done
2046 IFS=$as_save_IFS
2047
2048
2049 fi
2050 if test "${ac_cv_path_install+set}" = set; then
2051 INSTALL=$ac_cv_path_install
2052 else
2053 # As a last resort, use the slow shell script. Don't cache a
2054 # value for INSTALL within a source directory, because that will
2055 # break other packages using the cache if that directory is
2056 # removed, or if the value is a relative name.
2057 INSTALL=$ac_install_sh
2058 fi
2059 fi
2060 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2061 echo "${ECHO_T}$INSTALL" >&6; }
2062
2063 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2064 # It thinks the first close brace ends the variable substitution.
2065 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2066
2067 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2068
2069 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2070
2071 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2072 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2073 # Just in case
2074 sleep 1
2075 echo timestamp > conftest.file
2076 # Do `set' in a subshell so we don't clobber the current shell's
2077 # arguments. Must try -L first in case configure is actually a
2078 # symlink; some systems play weird games with the mod time of symlinks
2079 # (eg FreeBSD returns the mod time of the symlink's containing
2080 # directory).
2081 if (
2082 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2083 if test "$*" = "X"; then
2084 # -L didn't work.
2085 set X `ls -t $srcdir/configure conftest.file`
2086 fi
2087 rm -f conftest.file
2088 if test "$*" != "X $srcdir/configure conftest.file" \
2089 && test "$*" != "X conftest.file $srcdir/configure"; then
2090
2091 # If neither matched, then we have a broken ls. This can happen
2092 # if, for instance, CONFIG_SHELL is bash and it inherits a
2093 # broken ls alias from the environment. This has actually
2094 # happened. Such a system could not be considered "sane".
2095 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2096 alias in your environment" >&5
2097 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2098 alias in your environment" >&2;}
2099 { (exit 1); exit 1; }; }
2100 fi
2101
2102 test "$2" = conftest.file
2103 )
2104 then
2105 # Ok.
2106 :
2107 else
2108 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2109 Check your system clock" >&5
2110 echo "$as_me: error: newly created file is older than distributed files!
2111 Check your system clock" >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114 { echo "$as_me:$LINENO: result: yes" >&5
2115 echo "${ECHO_T}yes" >&6; }
2116 test "$program_prefix" != NONE &&
2117 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2118 # Use a double $ so make ignores it.
2119 test "$program_suffix" != NONE &&
2120 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2121 # Double any \ or $. echo might interpret backslashes.
2122 # By default was `s,x,x', remove it if useless.
2123 cat <<\_ACEOF >conftest.sed
2124 s/[\\$]/&&/g;s/;s,x,x,$//
2125 _ACEOF
2126 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2127 rm -f conftest.sed
2128
2129 # expand $ac_aux_dir to an absolute path
2130 am_aux_dir=`cd $ac_aux_dir && pwd`
2131
2132 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2133 # Use eval to expand $SHELL
2134 if eval "$MISSING --run true"; then
2135 am_missing_run="$MISSING --run "
2136 else
2137 am_missing_run=
2138 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2139 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2140 fi
2141
2142 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2143 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2144 if test -z "$MKDIR_P"; then
2145 if test "${ac_cv_path_mkdir+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2150 do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_prog in mkdir gmkdir; do
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2156 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2157 'mkdir (GNU coreutils) '* | \
2158 'mkdir (coreutils) '* | \
2159 'mkdir (fileutils) '4.1*)
2160 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2161 break 3;;
2162 esac
2163 done
2164 done
2165 done
2166 IFS=$as_save_IFS
2167
2168 fi
2169
2170 if test "${ac_cv_path_mkdir+set}" = set; then
2171 MKDIR_P="$ac_cv_path_mkdir -p"
2172 else
2173 # As a last resort, use the slow shell script. Don't cache a
2174 # value for MKDIR_P within a source directory, because that will
2175 # break other packages using the cache if that directory is
2176 # removed, or if the value is a relative name.
2177 test -d ./--version && rmdir ./--version
2178 MKDIR_P="$ac_install_sh -d"
2179 fi
2180 fi
2181 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2182 echo "${ECHO_T}$MKDIR_P" >&6; }
2183
2184 mkdir_p="$MKDIR_P"
2185 case $mkdir_p in
2186 [\\/$]* | ?:[\\/]*) ;;
2187 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2188 esac
2189
2190 for ac_prog in gawk mawk nawk awk
2191 do
2192 # Extract the first word of "$ac_prog", so it can be a program name with args.
2193 set dummy $ac_prog; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_AWK+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 if test -n "$AWK"; then
2200 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_AWK="$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213 done
2214 done
2215 IFS=$as_save_IFS
2216
2217 fi
2218 fi
2219 AWK=$ac_cv_prog_AWK
2220 if test -n "$AWK"; then
2221 { echo "$as_me:$LINENO: result: $AWK" >&5
2222 echo "${ECHO_T}$AWK" >&6; }
2223 else
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2226 fi
2227
2228
2229 test -n "$AWK" && break
2230 done
2231
2232 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2233 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2234 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2235 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 cat >conftest.make <<\_ACEOF
2239 SHELL = /bin/sh
2240 all:
2241 @echo '@@@%%%=$(MAKE)=@@@%%%'
2242 _ACEOF
2243 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2244 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2245 *@@@%%%=?*=@@@%%%*)
2246 eval ac_cv_prog_make_${ac_make}_set=yes;;
2247 *)
2248 eval ac_cv_prog_make_${ac_make}_set=no;;
2249 esac
2250 rm -f conftest.make
2251 fi
2252 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2253 { echo "$as_me:$LINENO: result: yes" >&5
2254 echo "${ECHO_T}yes" >&6; }
2255 SET_MAKE=
2256 else
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2259 SET_MAKE="MAKE=${MAKE-make}"
2260 fi
2261
2262 rm -rf .tst 2>/dev/null
2263 mkdir .tst 2>/dev/null
2264 if test -d .tst; then
2265 am__leading_dot=.
2266 else
2267 am__leading_dot=_
2268 fi
2269 rmdir .tst 2>/dev/null
2270
2271 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2272 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2273 # is not polluted with repeated "-I."
2274 am__isrc=' -I$(srcdir)'
2275 # test to see if srcdir already configured
2276 if test -f $srcdir/config.status; then
2277 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2278 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2279 { (exit 1); exit 1; }; }
2280 fi
2281 fi
2282
2283 # test whether we have cygpath
2284 if test -z "$CYGPATH_W"; then
2285 if (cygpath --version) >/dev/null 2>/dev/null; then
2286 CYGPATH_W='cygpath -w'
2287 else
2288 CYGPATH_W=echo
2289 fi
2290 fi
2291
2292
2293 # Define the identity of the package.
2294 PACKAGE='libpciaccess'
2295 VERSION='0.10.6'
2296
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE "$PACKAGE"
2300 _ACEOF
2301
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define VERSION "$VERSION"
2305 _ACEOF
2306
2307 # Some tools Automake needs.
2308
2309 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2310
2311
2312 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2313
2314
2315 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2316
2317
2318 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2319
2320
2321 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2322
2323 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2324
2325 # Installed binaries are usually stripped using `strip' when the user
2326 # run `make install-strip'. However `strip' might not be the right
2327 # tool to use in cross-compilation environments, therefore Automake
2328 # will honor the `STRIP' environment variable to overrule this program.
2329 if test "$cross_compiling" != no; then
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}strip; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_STRIP+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338 if test -n "$STRIP"; then
2339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2351 fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 STRIP=$ac_cv_prog_STRIP
2359 if test -n "$STRIP"; then
2360 { echo "$as_me:$LINENO: result: $STRIP" >&5
2361 echo "${ECHO_T}$STRIP" >&6; }
2362 else
2363 { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2365 fi
2366
2367
2368 fi
2369 if test -z "$ac_cv_prog_STRIP"; then
2370 ac_ct_STRIP=$STRIP
2371 # Extract the first word of "strip", so it can be a program name with args.
2372 set dummy strip; ac_word=$2
2373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 if test -n "$ac_ct_STRIP"; then
2379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_ac_ct_STRIP="strip"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392 done
2393 done
2394 IFS=$as_save_IFS
2395
2396 fi
2397 fi
2398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2399 if test -n "$ac_ct_STRIP"; then
2400 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2401 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2402 else
2403 { echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6; }
2405 fi
2406
2407 if test "x$ac_ct_STRIP" = x; then
2408 STRIP=":"
2409 else
2410 case $cross_compiling:$ac_tool_warned in
2411 yes:)
2412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet. If you think this
2417 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2418 ac_tool_warned=yes ;;
2419 esac
2420 STRIP=$ac_ct_STRIP
2421 fi
2422 else
2423 STRIP="$ac_cv_prog_STRIP"
2424 fi
2425
2426 fi
2427 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2428
2429 # We need awk for the "check" target. The system "awk" is bad on
2430 # some platforms.
2431 # Always define AMTAR for backward compatibility.
2432
2433 AMTAR=${AMTAR-"${am_missing_run}tar"}
2434
2435 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2436
2437
2438
2439
2440
2441 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2442 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2443 # Check whether --enable-maintainer-mode was given.
2444 if test "${enable_maintainer_mode+set}" = set; then
2445 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2446 else
2447 USE_MAINTAINER_MODE=no
2448 fi
2449
2450 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2451 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2452 if test $USE_MAINTAINER_MODE = yes; then
2453 MAINTAINER_MODE_TRUE=
2454 MAINTAINER_MODE_FALSE='#'
2455 else
2456 MAINTAINER_MODE_TRUE='#'
2457 MAINTAINER_MODE_FALSE=
2458 fi
2459
2460 MAINT=$MAINTAINER_MODE_TRUE
2461
2462
2463
2464 # Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476 ac_config_headers="$ac_config_headers config.h"
2477
2478
2479 # Check for progs
2480 ac_ext=c
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485 if test -n "$ac_tool_prefix"; then
2486 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2487 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_prog_CC+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC="$CC" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2506 fi
2507 done
2508 done
2509 IFS=$as_save_IFS
2510
2511 fi
2512 fi
2513 CC=$ac_cv_prog_CC
2514 if test -n "$CC"; then
2515 { echo "$as_me:$LINENO: result: $CC" >&5
2516 echo "${ECHO_T}$CC" >&6; }
2517 else
2518 { echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6; }
2520 fi
2521
2522
2523 fi
2524 if test -z "$ac_cv_prog_CC"; then
2525 ac_ct_CC=$CC
2526 # Extract the first word of "gcc", so it can be a program name with args.
2527 set dummy gcc; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_ac_ct_CC="gcc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554 if test -n "$ac_ct_CC"; then
2555 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556 echo "${ECHO_T}$ac_ct_CC" >&6; }
2557 else
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2560 fi
2561
2562 if test "x$ac_ct_CC" = x; then
2563 CC=""
2564 else
2565 case $cross_compiling:$ac_tool_warned in
2566 yes:)
2567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2568 whose name does not start with the host triplet. If you think this
2569 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2571 whose name does not start with the host triplet. If you think this
2572 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2573 ac_tool_warned=yes ;;
2574 esac
2575 CC=$ac_ct_CC
2576 fi
2577 else
2578 CC="$ac_cv_prog_CC"
2579 fi
2580
2581 if test -z "$CC"; then
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}cc; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_CC="${ac_tool_prefix}cc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2614 else
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 fi
2622 if test -z "$CC"; then
2623 # Extract the first word of "cc", so it can be a program name with args.
2624 set dummy cc; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 ac_prog_rejected=no
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2642 ac_prog_rejected=yes
2643 continue
2644 fi
2645 ac_cv_prog_CC="cc"
2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 if test $ac_prog_rejected = yes; then
2654 # We found a bogon in the path, so make sure we never use it.
2655 set dummy $ac_cv_prog_CC
2656 shift
2657 if test $# != 0; then
2658 # We chose a different compiler from the bogus one.
2659 # However, it has the same basename, so the bogon will be chosen
2660 # first if we set CC to just the basename; use the full file name.
2661 shift
2662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2663 fi
2664 fi
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669 { echo "$as_me:$LINENO: result: $CC" >&5
2670 echo "${ECHO_T}$CC" >&6; }
2671 else
2672 { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2674 fi
2675
2676
2677 fi
2678 if test -z "$CC"; then
2679 if test -n "$ac_tool_prefix"; then
2680 for ac_prog in cl.exe
2681 do
2682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686 if test "${ac_cv_prog_CC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689 if test -n "$CC"; then
2690 ac_cv_prog_CC="$CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 fi
2708 fi
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711 { echo "$as_me:$LINENO: result: $CC" >&5
2712 echo "${ECHO_T}$CC" >&6; }
2713 else
2714 { echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6; }
2716 fi
2717
2718
2719 test -n "$CC" && break
2720 done
2721 fi
2722 if test -z "$CC"; then
2723 ac_ct_CC=$CC
2724 for ac_prog in cl.exe
2725 do
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 if test -n "$ac_ct_CC"; then
2734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_ac_ct_CC="$ac_prog"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754 if test -n "$ac_ct_CC"; then
2755 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756 echo "${ECHO_T}$ac_ct_CC" >&6; }
2757 else
2758 { echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6; }
2760 fi
2761
2762
2763 test -n "$ac_ct_CC" && break
2764 done
2765
2766 if test "x$ac_ct_CC" = x; then
2767 CC=""
2768 else
2769 case $cross_compiling:$ac_tool_warned in
2770 yes:)
2771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2772 whose name does not start with the host triplet. If you think this
2773 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2775 whose name does not start with the host triplet. If you think this
2776 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2777 ac_tool_warned=yes ;;
2778 esac
2779 CC=$ac_ct_CC
2780 fi
2781 fi
2782
2783 fi
2784
2785
2786 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: no acceptable C compiler found in \$PATH
2789 See \`config.log' for more details." >&2;}
2790 { (exit 1); exit 1; }; }
2791
2792 # Provide some information about the compiler.
2793 echo "$as_me:$LINENO: checking for C compiler version" >&5
2794 ac_compiler=`set X $ac_compile; echo $2`
2795 { (ac_try="$ac_compiler --version >&5"
2796 case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799 esac
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_compiler --version >&5") 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }
2805 { (ac_try="$ac_compiler -v >&5"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compiler -v >&5") 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }
2815 { (ac_try="$ac_compiler -V >&5"
2816 case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_compiler -V >&5") 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h. */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2832
2833 int
2834 main ()
2835 {
2836
2837 ;
2838 return 0;
2839 }
2840 _ACEOF
2841 ac_clean_files_save=$ac_clean_files
2842 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2843 # Try to create an executable without -o first, disregard a.out.
2844 # It will help us diagnose broken compilers, and finding out an intuition
2845 # of exeext.
2846 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2847 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2848 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2849 #
2850 # List of possible output files, starting from the most likely.
2851 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2852 # only as a last resort. b.out is created by i960 compilers.
2853 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2854 #
2855 # The IRIX 6 linker writes into existing files which may not be
2856 # executable, retaining their permissions. Remove them first so a
2857 # subsequent execution test works.
2858 ac_rmfiles=
2859 for ac_file in $ac_files
2860 do
2861 case $ac_file in
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2864 esac
2865 done
2866 rm -f $ac_rmfiles
2867
2868 if { (ac_try="$ac_link_default"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_link_default") 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2879 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2880 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2881 # so that the user can short-circuit this test for compilers unknown to
2882 # Autoconf.
2883 for ac_file in $ac_files ''
2884 do
2885 test -f "$ac_file" || continue
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2888 ;;
2889 [ab].out )
2890 # We found the default executable, but exeext='' is most
2891 # certainly right.
2892 break;;
2893 *.* )
2894 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2895 then :; else
2896 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897 fi
2898 # We set ac_cv_exeext here because the later test for it is not
2899 # safe: cross compilers may not add the suffix if given an `-o'
2900 # argument, so we may need to know it at that point already.
2901 # Even if this section looks crufty: it has the advantage of
2902 # actually working.
2903 break;;
2904 * )
2905 break;;
2906 esac
2907 done
2908 test "$ac_cv_exeext" = no && ac_cv_exeext=
2909
2910 else
2911 ac_file=''
2912 fi
2913
2914 { echo "$as_me:$LINENO: result: $ac_file" >&5
2915 echo "${ECHO_T}$ac_file" >&6; }
2916 if test -z "$ac_file"; then
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: C compiler cannot create executables
2923 See \`config.log' for more details." >&2;}
2924 { (exit 77); exit 77; }; }
2925 fi
2926
2927 ac_exeext=$ac_cv_exeext
2928
2929 # Check that the compiler produces executables we can run. If not, either
2930 # the compiler is broken, or we cross compile.
2931 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2934 # If not cross compiling, check that we can run a simple program.
2935 if test "$cross_compiling" != yes; then
2936 if { ac_try='./$ac_file'
2937 { (case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_try") 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 cross_compiling=no
2947 else
2948 if test "$cross_compiling" = maybe; then
2949 cross_compiling=yes
2950 else
2951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2952 If you meant to cross compile, use \`--host'.
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot run C compiled programs.
2955 If you meant to cross compile, use \`--host'.
2956 See \`config.log' for more details." >&2;}
2957 { (exit 1); exit 1; }; }
2958 fi
2959 fi
2960 fi
2961 { echo "$as_me:$LINENO: result: yes" >&5
2962 echo "${ECHO_T}yes" >&6; }
2963
2964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2965 ac_clean_files=$ac_clean_files_save
2966 # Check that the compiler produces executables we can run. If not, either
2967 # the compiler is broken, or we cross compile.
2968 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2970 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2971 echo "${ECHO_T}$cross_compiling" >&6; }
2972
2973 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2975 if { (ac_try="$ac_link"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_link") 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
2985 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2986 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2987 # work properly (i.e., refer to `conftest.exe'), while it won't with
2988 # `rm'.
2989 for ac_file in conftest.exe conftest conftest.*; do
2990 test -f "$ac_file" || continue
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2993 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994 break;;
2995 * ) break;;
2996 esac
2997 done
2998 else
2999 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3004 fi
3005
3006 rm -f conftest$ac_cv_exeext
3007 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3008 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3009
3010 rm -f conftest.$ac_ext
3011 EXEEXT=$ac_cv_exeext
3012 ac_exeext=$EXEEXT
3013 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3014 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3015 if test "${ac_cv_objext+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024
3025 int
3026 main ()
3027 {
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.o conftest.obj
3034 if { (ac_try="$ac_compile"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; then
3044 for ac_file in conftest.o conftest.obj conftest.*; do
3045 test -f "$ac_file" || continue;
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049 break;;
3050 esac
3051 done
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3057 See \`config.log' for more details." >&5
3058 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3059 See \`config.log' for more details." >&2;}
3060 { (exit 1); exit 1; }; }
3061 fi
3062
3063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3064 fi
3065 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3066 echo "${ECHO_T}$ac_cv_objext" >&6; }
3067 OBJEXT=$ac_cv_objext
3068 ac_objext=$OBJEXT
3069 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080
3081 int
3082 main ()
3083 {
3084 #ifndef __GNUC__
3085 choke me
3086 #endif
3087
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && {
3106 test -z "$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 } && test -s conftest.$ac_objext; then
3109 ac_compiler_gnu=yes
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 ac_compiler_gnu=no
3115 fi
3116
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3119
3120 fi
3121 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3122 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3123 GCC=`test $ac_compiler_gnu = yes && echo yes`
3124 ac_test_CFLAGS=${CFLAGS+set}
3125 ac_save_CFLAGS=$CFLAGS
3126 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3127 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3128 if test "${ac_cv_prog_cc_g+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131 ac_save_c_werror_flag=$ac_c_werror_flag
3132 ac_c_werror_flag=yes
3133 ac_cv_prog_cc_g=no
3134 CFLAGS="-g"
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h. */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3141
3142 int
3143 main ()
3144 {
3145
3146 ;
3147 return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } && {
3164 test -z "$ac_c_werror_flag" ||
3165 test ! -s conftest.err
3166 } && test -s conftest.$ac_objext; then
3167 ac_cv_prog_cc_g=yes
3168 else
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 CFLAGS=""
3173 cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h. */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179
3180 int
3181 main ()
3182 {
3183
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (ac_try="$ac_compile"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compile") 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } && {
3202 test -z "$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3204 } && test -s conftest.$ac_objext; then
3205 :
3206 else
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3211 CFLAGS="-g"
3212 cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h. */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218
3219 int
3220 main ()
3221 {
3222
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compile") 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } && {
3241 test -z "$ac_c_werror_flag" ||
3242 test ! -s conftest.err
3243 } && test -s conftest.$ac_objext; then
3244 ac_cv_prog_cc_g=yes
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 fi
3254
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3260 fi
3261 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3263 if test "$ac_test_CFLAGS" = set; then
3264 CFLAGS=$ac_save_CFLAGS
3265 elif test $ac_cv_prog_cc_g = yes; then
3266 if test "$GCC" = yes; then
3267 CFLAGS="-g -O2"
3268 else
3269 CFLAGS="-g"
3270 fi
3271 else
3272 if test "$GCC" = yes; then
3273 CFLAGS="-O2"
3274 else
3275 CFLAGS=
3276 fi
3277 fi
3278 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_cc_c89+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 ac_cv_prog_cc_c89=no
3284 ac_save_CC=$CC
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <stdarg.h>
3292 #include <stdio.h>
3293 #include <sys/types.h>
3294 #include <sys/stat.h>
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3299 char **p;
3300 int i;
3301 {
3302 return p[i];
3303 }
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3305 {
3306 char *s;
3307 va_list v;
3308 va_start (v,p);
3309 s = g (p, va_arg (v,int));
3310 va_end (v);
3311 return s;
3312 }
3313
3314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
3317 as 'x'. The following induces an error, until -std is added to get
3318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
3320 that's true only with -std. */
3321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
3323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3325 #define FOO(x) 'x'
3326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327
3328 int test (int i, double x);
3329 struct s1 {int (*f) (int a);};
3330 struct s2 {int (*f) (double a);};
3331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332 int argc;
3333 char **argv;
3334 int
3335 main ()
3336 {
3337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344 do
3345 CC="$ac_save_CC $ac_arg"
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } && {
3360 test -z "$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3362 } && test -s conftest.$ac_objext; then
3363 ac_cv_prog_cc_c89=$ac_arg
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368
3369 fi
3370
3371 rm -f core conftest.err conftest.$ac_objext
3372 test "x$ac_cv_prog_cc_c89" != "xno" && break
3373 done
3374 rm -f conftest.$ac_ext
3375 CC=$ac_save_CC
3376
3377 fi
3378 # AC_CACHE_VAL
3379 case "x$ac_cv_prog_cc_c89" in
3380 x)
3381 { echo "$as_me:$LINENO: result: none needed" >&5
3382 echo "${ECHO_T}none needed" >&6; } ;;
3383 xno)
3384 { echo "$as_me:$LINENO: result: unsupported" >&5
3385 echo "${ECHO_T}unsupported" >&6; } ;;
3386 *)
3387 CC="$CC $ac_cv_prog_cc_c89"
3388 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3389 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3390 esac
3391
3392
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 DEPDIR="${am__leading_dot}deps"
3399
3400 ac_config_commands="$ac_config_commands depfiles"
3401
3402
3403 am_make=${MAKE-make}
3404 cat > confinc << 'END'
3405 am__doit:
3406 @echo done
3407 .PHONY: am__doit
3408 END
3409 # If we don't find an include directive, just comment out the code.
3410 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3411 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3412 am__include="#"
3413 am__quote=
3414 _am_result=none
3415 # First try GNU make style include.
3416 echo "include confinc" > confmf
3417 # We grep out `Entering directory' and `Leaving directory'
3418 # messages which can occur if `w' ends up in MAKEFLAGS.
3419 # In particular we don't look at `^make:' because GNU make might
3420 # be invoked under some other name (usually "gmake"), in which
3421 # case it prints its new name instead of `make'.
3422 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3423 am__include=include
3424 am__quote=
3425 _am_result=GNU
3426 fi
3427 # Now try BSD make style include.
3428 if test "$am__include" = "#"; then
3429 echo '.include "confinc"' > confmf
3430 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3431 am__include=.include
3432 am__quote="\""
3433 _am_result=BSD
3434 fi
3435 fi
3436
3437
3438 { echo "$as_me:$LINENO: result: $_am_result" >&5
3439 echo "${ECHO_T}$_am_result" >&6; }
3440 rm -f confinc confmf
3441
3442 # Check whether --enable-dependency-tracking was given.
3443 if test "${enable_dependency_tracking+set}" = set; then
3444 enableval=$enable_dependency_tracking;
3445 fi
3446
3447 if test "x$enable_dependency_tracking" != xno; then
3448 am_depcomp="$ac_aux_dir/depcomp"
3449 AMDEPBACKSLASH='\'
3450 fi
3451 if test "x$enable_dependency_tracking" != xno; then
3452 AMDEP_TRUE=
3453 AMDEP_FALSE='#'
3454 else
3455 AMDEP_TRUE='#'
3456 AMDEP_FALSE=
3457 fi
3458
3459
3460
3461 depcc="$CC" am_compiler_list=
3462
3463 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3464 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3465 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3469 # We make a subdir and do the tests there. Otherwise we can end up
3470 # making bogus files that we don't know about and never remove. For
3471 # instance it was reported that on HP-UX the gcc test will end up
3472 # making a dummy file named `D' -- because `-MD' means `put the output
3473 # in D'.
3474 mkdir conftest.dir
3475 # Copy depcomp to subdir because otherwise we won't find it if we're
3476 # using a relative directory.
3477 cp "$am_depcomp" conftest.dir
3478 cd conftest.dir
3479 # We will build objects and dependencies in a subdirectory because
3480 # it helps to detect inapplicable dependency modes. For instance
3481 # both Tru64's cc and ICC support -MD to output dependencies as a
3482 # side effect of compilation, but ICC will put the dependencies in
3483 # the current directory while Tru64 will put them in the object
3484 # directory.
3485 mkdir sub
3486
3487 am_cv_CC_dependencies_compiler_type=none
3488 if test "$am_compiler_list" = ""; then
3489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3490 fi
3491 for depmode in $am_compiler_list; do
3492 # Setup a source with many dependencies, because some compilers
3493 # like to wrap large dependency lists on column 80 (with \), and
3494 # we should not choose a depcomp mode which is confused by this.
3495 #
3496 # We need to recreate these files for each test, as the compiler may
3497 # overwrite some of them when testing with obscure command lines.
3498 # This happens at least with the AIX C compiler.
3499 : > sub/conftest.c
3500 for i in 1 2 3 4 5 6; do
3501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3502 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3503 # Solaris 8's {/usr,}/bin/sh.
3504 touch sub/conftst$i.h
3505 done
3506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3507
3508 case $depmode in
3509 nosideeffect)
3510 # after this tag, mechanisms are not by side-effect, so they'll
3511 # only be used when explicitly requested
3512 if test "x$enable_dependency_tracking" = xyes; then
3513 continue
3514 else
3515 break
3516 fi
3517 ;;
3518 none) break ;;
3519 esac
3520 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3521 # mode. It turns out that the SunPro C++ compiler does not properly
3522 # handle `-M -o', and we need to detect this.
3523 if depmode=$depmode \
3524 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3526 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3527 >/dev/null 2>conftest.err &&
3528 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3530 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3532 # icc doesn't choke on unknown options, it will just issue warnings
3533 # or remarks (even with -Werror). So we grep stderr for any message
3534 # that says an option was ignored or not supported.
3535 # When given -MP, icc 7.0 and 7.1 complain thusly:
3536 # icc: Command line warning: ignoring option '-M'; no argument required
3537 # The diagnosis changed in icc 8.0:
3538 # icc: Command line remark: option '-MP' not supported
3539 if (grep 'ignoring option' conftest.err ||
3540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3541 am_cv_CC_dependencies_compiler_type=$depmode
3542 break
3543 fi
3544 fi
3545 done
3546
3547 cd ..
3548 rm -rf conftest.dir
3549 else
3550 am_cv_CC_dependencies_compiler_type=none
3551 fi
3552
3553 fi
3554 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3555 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3557
3558 if
3559 test "x$enable_dependency_tracking" != xno \
3560 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3561 am__fastdepCC_TRUE=
3562 am__fastdepCC_FALSE='#'
3563 else
3564 am__fastdepCC_TRUE='#'
3565 am__fastdepCC_FALSE=
3566 fi
3567
3568
3569 # Check whether --enable-shared was given.
3570 if test "${enable_shared+set}" = set; then
3571 enableval=$enable_shared; p=${PACKAGE-default}
3572 case $enableval in
3573 yes) enable_shared=yes ;;
3574 no) enable_shared=no ;;
3575 *)
3576 enable_shared=no
3577 # Look at the argument we got. We use all the common list separators.
3578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3579 for pkg in $enableval; do
3580 IFS="$lt_save_ifs"
3581 if test "X$pkg" = "X$p"; then
3582 enable_shared=yes
3583 fi
3584 done
3585 IFS="$lt_save_ifs"
3586 ;;
3587 esac
3588 else
3589 enable_shared=yes
3590 fi
3591
3592
3593 # Check whether --enable-static was given.
3594 if test "${enable_static+set}" = set; then
3595 enableval=$enable_static; p=${PACKAGE-default}
3596 case $enableval in
3597 yes) enable_static=yes ;;
3598 no) enable_static=no ;;
3599 *)
3600 enable_static=no
3601 # Look at the argument we got. We use all the common list separators.
3602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3603 for pkg in $enableval; do
3604 IFS="$lt_save_ifs"
3605 if test "X$pkg" = "X$p"; then
3606 enable_static=yes
3607 fi
3608 done
3609 IFS="$lt_save_ifs"
3610 ;;
3611 esac
3612 else
3613 enable_static=yes
3614 fi
3615
3616
3617 # Check whether --enable-fast-install was given.
3618 if test "${enable_fast_install+set}" = set; then
3619 enableval=$enable_fast_install; p=${PACKAGE-default}
3620 case $enableval in
3621 yes) enable_fast_install=yes ;;
3622 no) enable_fast_install=no ;;
3623 *)
3624 enable_fast_install=no
3625 # Look at the argument we got. We use all the common list separators.
3626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3627 for pkg in $enableval; do
3628 IFS="$lt_save_ifs"
3629 if test "X$pkg" = "X$p"; then
3630 enable_fast_install=yes
3631 fi
3632 done
3633 IFS="$lt_save_ifs"
3634 ;;
3635 esac
3636 else
3637 enable_fast_install=yes
3638 fi
3639
3640
3641 # Make sure we can run config.sub.
3642 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3643 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3644 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3645 { (exit 1); exit 1; }; }
3646
3647 { echo "$as_me:$LINENO: checking build system type" >&5
3648 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3649 if test "${ac_cv_build+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 ac_build_alias=$build_alias
3653 test "x$ac_build_alias" = x &&
3654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3655 test "x$ac_build_alias" = x &&
3656 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3657 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3658 { (exit 1); exit 1; }; }
3659 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3660 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3661 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3662 { (exit 1); exit 1; }; }
3663
3664 fi
3665 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3666 echo "${ECHO_T}$ac_cv_build" >&6; }
3667 case $ac_cv_build in
3668 *-*-*) ;;
3669 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3670 echo "$as_me: error: invalid value of canonical build" >&2;}
3671 { (exit 1); exit 1; }; };;
3672 esac
3673 build=$ac_cv_build
3674 ac_save_IFS=$IFS; IFS='-'
3675 set x $ac_cv_build
3676 shift
3677 build_cpu=$1
3678 build_vendor=$2
3679 shift; shift
3680 # Remember, the first character of IFS is used to create $*,
3681 # except with old shells:
3682 build_os=$*
3683 IFS=$ac_save_IFS
3684 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3685
3686
3687 { echo "$as_me:$LINENO: checking host system type" >&5
3688 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3689 if test "${ac_cv_host+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 if test "x$host_alias" = x; then
3693 ac_cv_host=$ac_cv_build
3694 else
3695 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3696 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3697 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3698 { (exit 1); exit 1; }; }
3699 fi
3700
3701 fi
3702 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3703 echo "${ECHO_T}$ac_cv_host" >&6; }
3704 case $ac_cv_host in
3705 *-*-*) ;;
3706 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3707 echo "$as_me: error: invalid value of canonical host" >&2;}
3708 { (exit 1); exit 1; }; };;
3709 esac
3710 host=$ac_cv_host
3711 ac_save_IFS=$IFS; IFS='-'
3712 set x $ac_cv_host
3713 shift
3714 host_cpu=$1
3715 host_vendor=$2
3716 shift; shift
3717 # Remember, the first character of IFS is used to create $*,
3718 # except with old shells:
3719 host_os=$*
3720 IFS=$ac_save_IFS
3721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3722
3723
3724 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3725 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3726 if test "${lt_cv_path_SED+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 # Loop through the user's path and test for sed and gsed.
3730 # Then use that list of sed's as ones to test for truncation.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for lt_ac_prog in sed gsed; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3739 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3740 fi
3741 done
3742 done
3743 done
3744 lt_ac_max=0
3745 lt_ac_count=0
3746 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3747 # along with /bin/sed that truncates output.
3748 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3749 test ! -f $lt_ac_sed && continue
3750 cat /dev/null > conftest.in
3751 lt_ac_count=0
3752 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3753 # Check for GNU sed and select it if it is found.
3754 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3755 lt_cv_path_SED=$lt_ac_sed
3756 break
3757 fi
3758 while true; do
3759 cat conftest.in conftest.in >conftest.tmp
3760 mv conftest.tmp conftest.in
3761 cp conftest.in conftest.nl
3762 echo >>conftest.nl
3763 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3764 cmp -s conftest.out conftest.nl || break
3765 # 10000 chars as input seems more than enough
3766 test $lt_ac_count -gt 10 && break
3767 lt_ac_count=`expr $lt_ac_count + 1`
3768 if test $lt_ac_count -gt $lt_ac_max; then
3769 lt_ac_max=$lt_ac_count
3770 lt_cv_path_SED=$lt_ac_sed
3771 fi
3772 done
3773 done
3774
3775 fi
3776
3777 SED=$lt_cv_path_SED
3778 { echo "$as_me:$LINENO: result: $SED" >&5
3779 echo "${ECHO_T}$SED" >&6; }
3780
3781 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3782 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 # Extract the first word of "grep ggrep" to use in msg output
3787 if test -z "$GREP"; then
3788 set dummy grep ggrep; ac_prog_name=$2
3789 if test "${ac_cv_path_GREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 ac_path_GREP_found=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_prog in grep ggrep; do
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3802 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3803 # Check for GNU ac_path_GREP and select it if it is found.
3804 # Check for GNU $ac_path_GREP
3805 case `"$ac_path_GREP" --version 2>&1` in
3806 *GNU*)
3807 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3808 *)
3809 ac_count=0
3810 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3811 while :
3812 do
3813 cat "conftest.in" "conftest.in" >"conftest.tmp"
3814 mv "conftest.tmp" "conftest.in"
3815 cp "conftest.in" "conftest.nl"
3816 echo 'GREP' >> "conftest.nl"
3817 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819 ac_count=`expr $ac_count + 1`
3820 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3821 # Best one so far, save it but keep looking for a better one
3822 ac_cv_path_GREP="$ac_path_GREP"
3823 ac_path_GREP_max=$ac_count
3824 fi
3825 # 10*(2^10) chars as input seems more than enough
3826 test $ac_count -gt 10 && break
3827 done
3828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 esac
3830
3831
3832 $ac_path_GREP_found && break 3
3833 done
3834 done
3835
3836 done
3837 IFS=$as_save_IFS
3838
3839
3840 fi
3841
3842 GREP="$ac_cv_path_GREP"
3843 if test -z "$GREP"; then
3844 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3845 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3846 { (exit 1); exit 1; }; }
3847 fi
3848
3849 else
3850 ac_cv_path_GREP=$GREP
3851 fi
3852
3853
3854 fi
3855 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3856 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3857 GREP="$ac_cv_path_GREP"
3858
3859
3860 { echo "$as_me:$LINENO: checking for egrep" >&5
3861 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3862 if test "${ac_cv_path_EGREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3866 then ac_cv_path_EGREP="$GREP -E"
3867 else
3868 # Extract the first word of "egrep" to use in msg output
3869 if test -z "$EGREP"; then
3870 set dummy egrep; ac_prog_name=$2
3871 if test "${ac_cv_path_EGREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 ac_path_EGREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in egrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3884 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3885 # Check for GNU ac_path_EGREP and select it if it is found.
3886 # Check for GNU $ac_path_EGREP
3887 case `"$ac_path_EGREP" --version 2>&1` in
3888 *GNU*)
3889 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3890 *)
3891 ac_count=0
3892 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3893 while :
3894 do
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 echo 'EGREP' >> "conftest.nl"
3899 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 ac_count=`expr $ac_count + 1`
3902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_EGREP="$ac_path_EGREP"
3905 ac_path_EGREP_max=$ac_count
3906 fi
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3909 done
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911 esac
3912
3913
3914 $ac_path_EGREP_found && break 3
3915 done
3916 done
3917
3918 done
3919 IFS=$as_save_IFS
3920
3921
3922 fi
3923
3924 EGREP="$ac_cv_path_EGREP"
3925 if test -z "$EGREP"; then
3926 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928 { (exit 1); exit 1; }; }
3929 fi
3930
3931 else
3932 ac_cv_path_EGREP=$EGREP
3933 fi
3934
3935
3936 fi
3937 fi
3938 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3939 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3940 EGREP="$ac_cv_path_EGREP"
3941
3942
3943
3944 # Check whether --with-gnu-ld was given.
3945 if test "${with_gnu_ld+set}" = set; then
3946 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3947 else
3948 with_gnu_ld=no
3949 fi
3950
3951 ac_prog=ld
3952 if test "$GCC" = yes; then
3953 # Check if gcc -print-prog-name=ld gives a path.
3954 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3955 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3956 case $host in
3957 *-*-mingw*)
3958 # gcc leaves a trailing carriage return which upsets mingw
3959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3960 *)
3961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3962 esac
3963 case $ac_prog in
3964 # Accept absolute paths.
3965 [\\/]* | ?:[\\/]*)
3966 re_direlt='/[^/][^/]*/\.\./'
3967 # Canonicalize the pathname of ld
3968 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3969 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3970 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3971 done
3972 test -z "$LD" && LD="$ac_prog"
3973 ;;
3974 "")
3975 # If it fails, then pretend we aren't using GCC.
3976 ac_prog=ld
3977 ;;
3978 *)
3979 # If it is relative, then search for the first ld in PATH.
3980 with_gnu_ld=unknown
3981 ;;
3982 esac
3983 elif test "$with_gnu_ld" = yes; then
3984 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3985 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3986 else
3987 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3988 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3989 fi
3990 if test "${lt_cv_path_LD+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 if test -z "$LD"; then
3994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3995 for ac_dir in $PATH; do
3996 IFS="$lt_save_ifs"
3997 test -z "$ac_dir" && ac_dir=.
3998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3999 lt_cv_path_LD="$ac_dir/$ac_prog"
4000 # Check to see if the program is GNU ld. I'd rather use --version,
4001 # but apparently some variants of GNU ld only accept -v.
4002 # Break only if it was the GNU/non-GNU ld that we prefer.
4003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4004 *GNU* | *'with BFD'*)
4005 test "$with_gnu_ld" != no && break
4006 ;;
4007 *)
4008 test "$with_gnu_ld" != yes && break
4009 ;;
4010 esac
4011 fi
4012 done
4013 IFS="$lt_save_ifs"
4014 else
4015 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4016 fi
4017 fi
4018
4019 LD="$lt_cv_path_LD"
4020 if test -n "$LD"; then
4021 { echo "$as_me:$LINENO: result: $LD" >&5
4022 echo "${ECHO_T}$LD" >&6; }
4023 else
4024 { echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6; }
4026 fi
4027 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4028 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4029 { (exit 1); exit 1; }; }
4030 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4031 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4032 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4036 case `$LD -v 2>&1 </dev/null` in
4037 *GNU* | *'with BFD'*)
4038 lt_cv_prog_gnu_ld=yes
4039 ;;
4040 *)
4041 lt_cv_prog_gnu_ld=no
4042 ;;
4043 esac
4044 fi
4045 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4046 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4047 with_gnu_ld=$lt_cv_prog_gnu_ld
4048
4049
4050 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4051 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4052 if test "${lt_cv_ld_reload_flag+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 lt_cv_ld_reload_flag='-r'
4056 fi
4057 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4058 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4059 reload_flag=$lt_cv_ld_reload_flag
4060 case $reload_flag in
4061 "" | " "*) ;;
4062 *) reload_flag=" $reload_flag" ;;
4063 esac
4064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065 case $host_os in
4066 darwin*)
4067 if test "$GCC" = yes; then
4068 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4069 else
4070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4071 fi
4072 ;;
4073 esac
4074
4075 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4076 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4077 if test "${lt_cv_path_NM+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 if test -n "$NM"; then
4081 # Let the user override the test.
4082 lt_cv_path_NM="$NM"
4083 else
4084 lt_nm_to_check="${ac_tool_prefix}nm"
4085 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4086 lt_nm_to_check="$lt_nm_to_check nm"
4087 fi
4088 for lt_tmp_nm in $lt_nm_to_check; do
4089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4090 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4091 IFS="$lt_save_ifs"
4092 test -z "$ac_dir" && ac_dir=.
4093 tmp_nm="$ac_dir/$lt_tmp_nm"
4094 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4095 # Check to see if the nm accepts a BSD-compat flag.
4096 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4097 # nm: unknown option "B" ignored
4098 # Tru64's nm complains that /dev/null is an invalid object file
4099 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4100 */dev/null* | *'Invalid file or object type'*)
4101 lt_cv_path_NM="$tmp_nm -B"
4102 break
4103 ;;
4104 *)
4105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4106 */dev/null*)
4107 lt_cv_path_NM="$tmp_nm -p"
4108 break
4109 ;;
4110 *)
4111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4112 continue # so that we can try to find one that supports BSD flags
4113 ;;
4114 esac
4115 ;;
4116 esac
4117 fi
4118 done
4119 IFS="$lt_save_ifs"
4120 done
4121 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4122 fi
4123 fi
4124 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4125 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4126 NM="$lt_cv_path_NM"
4127
4128 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4129 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4130 LN_S=$as_ln_s
4131 if test "$LN_S" = "ln -s"; then
4132 { echo "$as_me:$LINENO: result: yes" >&5
4133 echo "${ECHO_T}yes" >&6; }
4134 else
4135 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4136 echo "${ECHO_T}no, using $LN_S" >&6; }
4137 fi
4138
4139 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4140 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4141 if test "${lt_cv_deplibs_check_method+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 lt_cv_file_magic_cmd='$MAGIC_CMD'
4145 lt_cv_file_magic_test_file=
4146 lt_cv_deplibs_check_method='unknown'
4147 # Need to set the preceding variable on all platforms that support
4148 # interlibrary dependencies.
4149 # 'none' -- dependencies not supported.
4150 # `unknown' -- same as none, but documents that we really don't know.
4151 # 'pass_all' -- all dependencies passed with no checks.
4152 # 'test_compile' -- check by making test program.
4153 # 'file_magic [[regex]]' -- check by looking for files in library path
4154 # which responds to the $file_magic_cmd with a given extended regex.
4155 # If you have `file' or equivalent on your system and you're not sure
4156 # whether `pass_all' will *always* work, you probably want this one.
4157
4158 case $host_os in
4159 aix4* | aix5*)
4160 lt_cv_deplibs_check_method=pass_all
4161 ;;
4162
4163 beos*)
4164 lt_cv_deplibs_check_method=pass_all
4165 ;;
4166
4167 bsdi[45]*)
4168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4169 lt_cv_file_magic_cmd='/usr/bin/file -L'
4170 lt_cv_file_magic_test_file=/shlib/libc.so
4171 ;;
4172
4173 cygwin*)
4174 # func_win32_libid is a shell function defined in ltmain.sh
4175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4176 lt_cv_file_magic_cmd='func_win32_libid'
4177 ;;
4178
4179 mingw* | pw32*)
4180 # Base MSYS/MinGW do not provide the 'file' command needed by
4181 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4182 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4183 lt_cv_file_magic_cmd='$OBJDUMP -f'
4184 ;;
4185
4186 darwin* | rhapsody*)
4187 lt_cv_deplibs_check_method=pass_all
4188 ;;
4189
4190 freebsd* | kfreebsd*-gnu | dragonfly*)
4191 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4192 case $host_cpu in
4193 i*86 )
4194 # Not sure whether the presence of OpenBSD here was a mistake.
4195 # Let's accept both of them until this is cleared up.
4196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4197 lt_cv_file_magic_cmd=/usr/bin/file
4198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4199 ;;
4200 esac
4201 else
4202 lt_cv_deplibs_check_method=pass_all
4203 fi
4204 ;;
4205
4206 gnu*)
4207 lt_cv_deplibs_check_method=pass_all
4208 ;;
4209
4210 hpux10.20* | hpux11*)
4211 lt_cv_file_magic_cmd=/usr/bin/file
4212 case $host_cpu in
4213 ia64*)
4214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4215 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4216 ;;
4217 hppa*64*)
4218 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]'
4219 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4220 ;;
4221 *)
4222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4223 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4224 ;;
4225 esac
4226 ;;
4227
4228 interix3*)
4229 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4231 ;;
4232
4233 irix5* | irix6* | nonstopux*)
4234 case $LD in
4235 *-32|*"-32 ") libmagic=32-bit;;
4236 *-n32|*"-n32 ") libmagic=N32;;
4237 *-64|*"-64 ") libmagic=64-bit;;
4238 *) libmagic=never-match;;
4239 esac
4240 lt_cv_deplibs_check_method=pass_all
4241 ;;
4242
4243 # This must be Linux ELF.
4244 linux*)
4245 lt_cv_deplibs_check_method=pass_all
4246 ;;
4247
4248 netbsd*)
4249 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4251 else
4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4253 fi
4254 ;;
4255
4256 newos6*)
4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4258 lt_cv_file_magic_cmd=/usr/bin/file
4259 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4260 ;;
4261
4262 nto-qnx*)
4263 lt_cv_deplibs_check_method=unknown
4264 ;;
4265
4266 openbsd*)
4267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4269 else
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4271 fi
4272 ;;
4273
4274 osf3* | osf4* | osf5*)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278 solaris*)
4279 lt_cv_deplibs_check_method=pass_all
4280 ;;
4281
4282 sysv4 | sysv4.3*)
4283 case $host_vendor in
4284 motorola)
4285 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]'
4286 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4287 ;;
4288 ncr)
4289 lt_cv_deplibs_check_method=pass_all
4290 ;;
4291 sequent)
4292 lt_cv_file_magic_cmd='/bin/file'
4293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4294 ;;
4295 sni)
4296 lt_cv_file_magic_cmd='/bin/file'
4297 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4298 lt_cv_file_magic_test_file=/lib/libc.so
4299 ;;
4300 siemens)
4301 lt_cv_deplibs_check_method=pass_all
4302 ;;
4303 pc)
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306 esac
4307 ;;
4308
4309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4310 lt_cv_deplibs_check_method=pass_all
4311 ;;
4312 esac
4313
4314 fi
4315 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4316 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4317 file_magic_cmd=$lt_cv_file_magic_cmd
4318 deplibs_check_method=$lt_cv_deplibs_check_method
4319 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4320
4321
4322
4323
4324 # If no C compiler was specified, use CC.
4325 LTCC=${LTCC-"$CC"}
4326
4327 # If no C compiler flags were specified, use CFLAGS.
4328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4329
4330 # Allow CC to be a program name with arguments.
4331 compiler=$CC
4332
4333
4334 # Check whether --enable-libtool-lock was given.
4335 if test "${enable_libtool_lock+set}" = set; then
4336 enableval=$enable_libtool_lock;
4337 fi
4338
4339 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4340
4341 # Some flags need to be propagated to the compiler or linker for good
4342 # libtool support.
4343 case $host in
4344 ia64-*-hpux*)
4345 # Find out which ABI we are using.
4346 echo 'int i;' > conftest.$ac_ext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; then
4352 case `/usr/bin/file conftest.$ac_objext` in
4353 *ELF-32*)
4354 HPUX_IA64_MODE="32"
4355 ;;
4356 *ELF-64*)
4357 HPUX_IA64_MODE="64"
4358 ;;
4359 esac
4360 fi
4361 rm -rf conftest*
4362 ;;
4363 *-*-irix6*)
4364 # Find out which ABI we are using.
4365 echo '#line 4365 "configure"' > conftest.$ac_ext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; then
4371 if test "$lt_cv_prog_gnu_ld" = yes; then
4372 case `/usr/bin/file conftest.$ac_objext` in
4373 *32-bit*)
4374 LD="${LD-ld} -melf32bsmip"
4375 ;;
4376 *N32*)
4377 LD="${LD-ld} -melf32bmipn32"
4378 ;;
4379 *64-bit*)
4380 LD="${LD-ld} -melf64bmip"
4381 ;;
4382 esac
4383 else
4384 case `/usr/bin/file conftest.$ac_objext` in
4385 *32-bit*)
4386 LD="${LD-ld} -32"
4387 ;;
4388 *N32*)
4389 LD="${LD-ld} -n32"
4390 ;;
4391 *64-bit*)
4392 LD="${LD-ld} -64"
4393 ;;
4394 esac
4395 fi
4396 fi
4397 rm -rf conftest*
4398 ;;
4399
4400 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4401 # Find out which ABI we are using.
4402 echo 'int i;' > conftest.$ac_ext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; then
4408 case `/usr/bin/file conftest.o` in
4409 *32-bit*)
4410 case $host in
4411 x86_64-*linux*)
4412 LD="${LD-ld} -m elf_i386"
4413 ;;
4414 ppc64-*linux*|powerpc64-*linux*)
4415 LD="${LD-ld} -m elf32ppclinux"
4416 ;;
4417 s390x-*linux*)
4418 LD="${LD-ld} -m elf_s390"
4419 ;;
4420 sparc64-*linux*)
4421 LD="${LD-ld} -m elf32_sparc"
4422 ;;
4423 esac
4424 ;;
4425 *64-bit*)
4426 case $host in
4427 x86_64-*linux*)
4428 LD="${LD-ld} -m elf_x86_64"
4429 ;;
4430 ppc*-*linux*|powerpc*-*linux*)
4431 LD="${LD-ld} -m elf64ppc"
4432 ;;
4433 s390*-*linux*)
4434 LD="${LD-ld} -m elf64_s390"
4435 ;;
4436 sparc*-*linux*)
4437 LD="${LD-ld} -m elf64_sparc"
4438 ;;
4439 esac
4440 ;;
4441 esac
4442 fi
4443 rm -rf conftest*
4444 ;;
4445
4446 *-*-sco3.2v5*)
4447 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4448 SAVE_CFLAGS="$CFLAGS"
4449 CFLAGS="$CFLAGS -belf"
4450 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4451 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4452 if test "${lt_cv_cc_needs_belf+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467
4468 int
4469 main ()
4470 {
4471
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (ac_try="$ac_link"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_link") 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } && {
4490 test -z "$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4492 } && test -s conftest$ac_exeext &&
4493 $as_test_x conftest$ac_exeext; then
4494 lt_cv_cc_needs_belf=yes
4495 else
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499 lt_cv_cc_needs_belf=no
4500 fi
4501
4502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4503 conftest$ac_exeext conftest.$ac_ext
4504 ac_ext=c
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
4510 fi
4511 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4512 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4513 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4514 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4515 CFLAGS="$SAVE_CFLAGS"
4516 fi
4517 ;;
4518 sparc*-*solaris*)
4519 # Find out which ABI we are using.
4520 echo 'int i;' > conftest.$ac_ext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; then
4526 case `/usr/bin/file conftest.o` in
4527 *64-bit*)
4528 case $lt_cv_prog_gnu_ld in
4529 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4530 *) LD="${LD-ld} -64" ;;
4531 esac
4532 ;;
4533 esac
4534 fi
4535 rm -rf conftest*
4536 ;;
4537
4538
4539 esac
4540
4541 need_locks="$enable_libtool_lock"
4542
4543
4544 ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4550 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4551 # On Suns, sometimes $CPP names a directory.
4552 if test -n "$CPP" && test -d "$CPP"; then
4553 CPP=
4554 fi
4555 if test -z "$CPP"; then
4556 if test "${ac_cv_prog_CPP+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 # Double quotes because CPP needs to be expanded
4560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4561 do
4562 ac_preproc_ok=false
4563 for ac_c_preproc_warn_flag in '' yes
4564 do
4565 # Use a header file that comes with gcc, so configuring glibc
4566 # with a fresh cross-compiler works.
4567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4568 # <limits.h> exists even on freestanding compilers.
4569 # On the NeXT, cc -E runs the code through the compiler's parser,
4570 # not just through cpp. "Syntax error" is here to catch this case.
4571 cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h. */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4577 #ifdef __STDC__
4578 # include <limits.h>
4579 #else
4580 # include <assert.h>
4581 #endif
4582 Syntax error
4583 _ACEOF
4584 if { (ac_try="$ac_cpp conftest.$ac_ext"
4585 case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588 esac
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } >/dev/null && {
4597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 }; then
4600 :
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 # Broken: fails on valid input.
4606 continue
4607 fi
4608
4609 rm -f conftest.err conftest.$ac_ext
4610
4611 # OK, works on sane cases. Now check whether nonexistent headers
4612 # can be detected and how.
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <ac_nonexistent.h>
4620 _ACEOF
4621 if { (ac_try="$ac_cpp conftest.$ac_ext"
4622 case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625 esac
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4628 ac_status=$?
4629 grep -v '^ *+' conftest.er1 >conftest.err
4630 rm -f conftest.er1
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } >/dev/null && {
4634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4635 test ! -s conftest.err
4636 }; then
4637 # Broken: success on invalid input.
4638 continue
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 # Passes both tests.
4644 ac_preproc_ok=:
4645 break
4646 fi
4647
4648 rm -f conftest.err conftest.$ac_ext
4649
4650 done
4651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4652 rm -f conftest.err conftest.$ac_ext
4653 if $ac_preproc_ok; then
4654 break
4655 fi
4656
4657 done
4658 ac_cv_prog_CPP=$CPP
4659
4660 fi
4661 CPP=$ac_cv_prog_CPP
4662 else
4663 ac_cv_prog_CPP=$CPP
4664 fi
4665 { echo "$as_me:$LINENO: result: $CPP" >&5
4666 echo "${ECHO_T}$CPP" >&6; }
4667 ac_preproc_ok=false
4668 for ac_c_preproc_warn_flag in '' yes
4669 do
4670 # Use a header file that comes with gcc, so configuring glibc
4671 # with a fresh cross-compiler works.
4672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673 # <limits.h> exists even on freestanding compilers.
4674 # On the NeXT, cc -E runs the code through the compiler's parser,
4675 # not just through cpp. "Syntax error" is here to catch this case.
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #ifdef __STDC__
4683 # include <limits.h>
4684 #else
4685 # include <assert.h>
4686 #endif
4687 Syntax error
4688 _ACEOF
4689 if { (ac_try="$ac_cpp conftest.$ac_ext"
4690 case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693 esac
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } >/dev/null && {
4702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4704 }; then
4705 :
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 # Broken: fails on valid input.
4711 continue
4712 fi
4713
4714 rm -f conftest.err conftest.$ac_ext
4715
4716 # OK, works on sane cases. Now check whether nonexistent headers
4717 # can be detected and how.
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #include <ac_nonexistent.h>
4725 _ACEOF
4726 if { (ac_try="$ac_cpp conftest.$ac_ext"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null && {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4741 }; then
4742 # Broken: success on invalid input.
4743 continue
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 # Passes both tests.
4749 ac_preproc_ok=:
4750 break
4751 fi
4752
4753 rm -f conftest.err conftest.$ac_ext
4754
4755 done
4756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4757 rm -f conftest.err conftest.$ac_ext
4758 if $ac_preproc_ok; then
4759 :
4760 else
4761 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4762 See \`config.log' for more details." >&5
4763 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4764 See \`config.log' for more details." >&2;}
4765 { (exit 1); exit 1; }; }
4766 fi
4767
4768 ac_ext=c
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773
4774
4775 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4777 if test "${ac_cv_header_stdc+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <stdlib.h>
4787 #include <stdarg.h>
4788 #include <string.h>
4789 #include <float.h>
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 rm -f conftest.$ac_objext
4800 if { (ac_try="$ac_compile"
4801 case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804 esac
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_compile") 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && {
4813 test -z "$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4815 } && test -s conftest.$ac_objext; then
4816 ac_cv_header_stdc=yes
4817 else
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 ac_cv_header_stdc=no
4822 fi
4823
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825
4826 if test $ac_cv_header_stdc = yes; then
4827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 #include <string.h>
4835
4836 _ACEOF
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 $EGREP "memchr" >/dev/null 2>&1; then
4839 :
4840 else
4841 ac_cv_header_stdc=no
4842 fi
4843 rm -f conftest*
4844
4845 fi
4846
4847 if test $ac_cv_header_stdc = yes; then
4848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 #include <stdlib.h>
4856
4857 _ACEOF
4858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4859 $EGREP "free" >/dev/null 2>&1; then
4860 :
4861 else
4862 ac_cv_header_stdc=no
4863 fi
4864 rm -f conftest*
4865
4866 fi
4867
4868 if test $ac_cv_header_stdc = yes; then
4869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4870 if test "$cross_compiling" = yes; then
4871 :
4872 else
4873 cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4879 #include <ctype.h>
4880 #include <stdlib.h>
4881 #if ((' ' & 0x0FF) == 0x020)
4882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4884 #else
4885 # define ISLOWER(c) \
4886 (('a' <= (c) && (c) <= 'i') \
4887 || ('j' <= (c) && (c) <= 'r') \
4888 || ('s' <= (c) && (c) <= 'z'))
4889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4890 #endif
4891
4892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4893 int
4894 main ()
4895 {
4896 int i;
4897 for (i = 0; i < 256; i++)
4898 if (XOR (islower (i), ISLOWER (i))
4899 || toupper (i) != TOUPPER (i))
4900 return 2;
4901 return 0;
4902 }
4903 _ACEOF
4904 rm -f conftest$ac_exeext
4905 if { (ac_try="$ac_link"
4906 case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909 esac
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_link") 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4915 { (case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_try") 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 :
4925 else
4926 echo "$as_me: program exited with status $ac_status" >&5
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4929
4930 ( exit $ac_status )
4931 ac_cv_header_stdc=no
4932 fi
4933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4934 fi
4935
4936
4937 fi
4938 fi
4939 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4940 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4941 if test $ac_cv_header_stdc = yes; then
4942
4943 cat >>confdefs.h <<\_ACEOF
4944 #define STDC_HEADERS 1
4945 _ACEOF
4946
4947 fi
4948
4949 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4960 inttypes.h stdint.h unistd.h
4961 do
4962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 $ac_includes_default
4975
4976 #include <$ac_header>
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (ac_try="$ac_compile"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4995 eval "$as_ac_Header=yes"
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 eval "$as_ac_Header=no"
5001 fi
5002
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 fi
5005 ac_res=`eval echo '${'$as_ac_Header'}'`
5006 { echo "$as_me:$LINENO: result: $ac_res" >&5
5007 echo "${ECHO_T}$ac_res" >&6; }
5008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5009 cat >>confdefs.h <<_ACEOF
5010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5011 _ACEOF
5012
5013 fi
5014
5015 done
5016
5017
5018
5019 for ac_header in dlfcn.h
5020 do
5021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 fi
5028 ac_res=`eval echo '${'$as_ac_Header'}'`
5029 { echo "$as_me:$LINENO: result: $ac_res" >&5
5030 echo "${ECHO_T}$ac_res" >&6; }
5031 else
5032 # Is the header compilable?
5033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5042 #include <$ac_header>
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (ac_try="$ac_compile"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_compile") 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } && {
5058 test -z "$ac_c_werror_flag" ||
5059 test ! -s conftest.err
5060 } && test -s conftest.$ac_objext; then
5061 ac_header_compiler=yes
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066 ac_header_compiler=no
5067 fi
5068
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5071 echo "${ECHO_T}$ac_header_compiler" >&6; }
5072
5073 # Is the header present?
5074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 #include <$ac_header>
5083 _ACEOF
5084 if { (ac_try="$ac_cpp conftest.$ac_ext"
5085 case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null && {
5097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 }; then
5100 ac_header_preproc=yes
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_header_preproc=no
5106 fi
5107
5108 rm -f conftest.err conftest.$ac_ext
5109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5110 echo "${ECHO_T}$ac_header_preproc" >&6; }
5111
5112 # So? What about this header?
5113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5114 yes:no: )
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5119 ac_header_preproc=yes
5120 ;;
5121 no:yes:* )
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5134 ( cat <<\_ASBOX
5135 ## --------------------------------------------------------------------------------------------- ##
5136 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
5137 ## --------------------------------------------------------------------------------------------- ##
5138 _ASBOX
5139 ) | sed "s/^/$as_me: WARNING: /" >&2
5140 ;;
5141 esac
5142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 eval "$as_ac_Header=\$ac_header_preproc"
5148 fi
5149 ac_res=`eval echo '${'$as_ac_Header'}'`
5150 { echo "$as_me:$LINENO: result: $ac_res" >&5
5151 echo "${ECHO_T}$ac_res" >&6; }
5152
5153 fi
5154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5155 cat >>confdefs.h <<_ACEOF
5156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157 _ACEOF
5158
5159 fi
5160
5161 done
5162
5163 ac_ext=cpp
5164 ac_cpp='$CXXCPP $CPPFLAGS'
5165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5168 if test -z "$CXX"; then
5169 if test -n "$CCC"; then
5170 CXX=$CCC
5171 else
5172 if test -n "$ac_tool_prefix"; then
5173 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5174 do
5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_prog_CXX+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 if test -n "$CXX"; then
5183 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196 done
5197 done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 CXX=$ac_cv_prog_CXX
5203 if test -n "$CXX"; then
5204 { echo "$as_me:$LINENO: result: $CXX" >&5
5205 echo "${ECHO_T}$CXX" >&6; }
5206 else
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5209 fi
5210
5211
5212 test -n "$CXX" && break
5213 done
5214 fi
5215 if test -z "$CXX"; then
5216 ac_ct_CXX=$CXX
5217 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5218 do
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 if test -n "$ac_ct_CXX"; then
5227 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_ac_ct_CXX="$ac_prog"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5247 if test -n "$ac_ct_CXX"; then
5248 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5249 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5250 else
5251 { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5253 fi
5254
5255
5256 test -n "$ac_ct_CXX" && break
5257 done
5258
5259 if test "x$ac_ct_CXX" = x; then
5260 CXX="g++"
5261 else
5262 case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5265 whose name does not start with the host triplet. If you think this
5266 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5268 whose name does not start with the host triplet. If you think this
5269 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5270 ac_tool_warned=yes ;;
5271 esac
5272 CXX=$ac_ct_CXX
5273 fi
5274 fi
5275
5276 fi
5277 fi
5278 # Provide some information about the compiler.
5279 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5280 ac_compiler=`set X $ac_compile; echo $2`
5281 { (ac_try="$ac_compiler --version >&5"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compiler --version >&5") 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }
5291 { (ac_try="$ac_compiler -v >&5"
5292 case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_compiler -v >&5") 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }
5301 { (ac_try="$ac_compiler -V >&5"
5302 case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compiler -V >&5") 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }
5311
5312 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5313 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5314 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323
5324 int
5325 main ()
5326 {
5327 #ifndef __GNUC__
5328 choke me
5329 #endif
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5337 case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_compile") 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && {
5349 test -z "$ac_cxx_werror_flag" ||
5350 test ! -s conftest.err
5351 } && test -s conftest.$ac_objext; then
5352 ac_compiler_gnu=yes
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_compiler_gnu=no
5358 fi
5359
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5362
5363 fi
5364 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5365 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5366 GXX=`test $ac_compiler_gnu = yes && echo yes`
5367 ac_test_CXXFLAGS=${CXXFLAGS+set}
5368 ac_save_CXXFLAGS=$CXXFLAGS
5369 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5370 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5371 if test "${ac_cv_prog_cxx_g+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5375 ac_cxx_werror_flag=yes
5376 ac_cv_prog_cxx_g=no
5377 CXXFLAGS="-g"
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384
5385 int
5386 main ()
5387 {
5388
5389 ;
5390 return 0;
5391 }
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (ac_try="$ac_compile"
5395 case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_compile") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && {
5407 test -z "$ac_cxx_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest.$ac_objext; then
5410 ac_cv_prog_cxx_g=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 CXXFLAGS=""
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422
5423 int
5424 main ()
5425 {
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && {
5445 test -z "$ac_cxx_werror_flag" ||
5446 test ! -s conftest.err
5447 } && test -s conftest.$ac_objext; then
5448 :
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5454 CXXFLAGS="-g"
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461
5462 int
5463 main ()
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_cxx_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 ac_cv_prog_cxx_g=yes
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5491
5492
5493 fi
5494
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 fi
5497
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 fi
5500
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5503 fi
5504 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5505 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5506 if test "$ac_test_CXXFLAGS" = set; then
5507 CXXFLAGS=$ac_save_CXXFLAGS
5508 elif test $ac_cv_prog_cxx_g = yes; then
5509 if test "$GXX" = yes; then
5510 CXXFLAGS="-g -O2"
5511 else
5512 CXXFLAGS="-g"
5513 fi
5514 else
5515 if test "$GXX" = yes; then
5516 CXXFLAGS="-O2"
5517 else
5518 CXXFLAGS=
5519 fi
5520 fi
5521 ac_ext=cpp
5522 ac_cpp='$CXXCPP $CPPFLAGS'
5523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5526
5527 depcc="$CXX" am_compiler_list=
5528
5529 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5530 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5531 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5535 # We make a subdir and do the tests there. Otherwise we can end up
5536 # making bogus files that we don't know about and never remove. For
5537 # instance it was reported that on HP-UX the gcc test will end up
5538 # making a dummy file named `D' -- because `-MD' means `put the output
5539 # in D'.
5540 mkdir conftest.dir
5541 # Copy depcomp to subdir because otherwise we won't find it if we're
5542 # using a relative directory.
5543 cp "$am_depcomp" conftest.dir
5544 cd conftest.dir
5545 # We will build objects and dependencies in a subdirectory because
5546 # it helps to detect inapplicable dependency modes. For instance
5547 # both Tru64's cc and ICC support -MD to output dependencies as a
5548 # side effect of compilation, but ICC will put the dependencies in
5549 # the current directory while Tru64 will put them in the object
5550 # directory.
5551 mkdir sub
5552
5553 am_cv_CXX_dependencies_compiler_type=none
5554 if test "$am_compiler_list" = ""; then
5555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5556 fi
5557 for depmode in $am_compiler_list; do
5558 # Setup a source with many dependencies, because some compilers
5559 # like to wrap large dependency lists on column 80 (with \), and
5560 # we should not choose a depcomp mode which is confused by this.
5561 #
5562 # We need to recreate these files for each test, as the compiler may
5563 # overwrite some of them when testing with obscure command lines.
5564 # This happens at least with the AIX C compiler.
5565 : > sub/conftest.c
5566 for i in 1 2 3 4 5 6; do
5567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5568 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5569 # Solaris 8's {/usr,}/bin/sh.
5570 touch sub/conftst$i.h
5571 done
5572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5573
5574 case $depmode in
5575 nosideeffect)
5576 # after this tag, mechanisms are not by side-effect, so they'll
5577 # only be used when explicitly requested
5578 if test "x$enable_dependency_tracking" = xyes; then
5579 continue
5580 else
5581 break
5582 fi
5583 ;;
5584 none) break ;;
5585 esac
5586 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5587 # mode. It turns out that the SunPro C++ compiler does not properly
5588 # handle `-M -o', and we need to detect this.
5589 if depmode=$depmode \
5590 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5592 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5593 >/dev/null 2>conftest.err &&
5594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5596 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5598 # icc doesn't choke on unknown options, it will just issue warnings
5599 # or remarks (even with -Werror). So we grep stderr for any message
5600 # that says an option was ignored or not supported.
5601 # When given -MP, icc 7.0 and 7.1 complain thusly:
5602 # icc: Command line warning: ignoring option '-M'; no argument required
5603 # The diagnosis changed in icc 8.0:
5604 # icc: Command line remark: option '-MP' not supported
5605 if (grep 'ignoring option' conftest.err ||
5606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5607 am_cv_CXX_dependencies_compiler_type=$depmode
5608 break
5609 fi
5610 fi
5611 done
5612
5613 cd ..
5614 rm -rf conftest.dir
5615 else
5616 am_cv_CXX_dependencies_compiler_type=none
5617 fi
5618
5619 fi
5620 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5621 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5622 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5623
5624 if
5625 test "x$enable_dependency_tracking" != xno \
5626 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5627 am__fastdepCXX_TRUE=
5628 am__fastdepCXX_FALSE='#'
5629 else
5630 am__fastdepCXX_TRUE='#'
5631 am__fastdepCXX_FALSE=
5632 fi
5633
5634
5635
5636
5637 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5638 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5639 (test "X$CXX" != "Xg++"))) ; then
5640 ac_ext=cpp
5641 ac_cpp='$CXXCPP $CPPFLAGS'
5642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5646 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5647 if test -z "$CXXCPP"; then
5648 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651 # Double quotes because CXXCPP needs to be expanded
5652 for CXXCPP in "$CXX -E" "/lib/cpp"
5653 do
5654 ac_preproc_ok=false
5655 for ac_cxx_preproc_warn_flag in '' yes
5656 do
5657 # Use a header file that comes with gcc, so configuring glibc
5658 # with a fresh cross-compiler works.
5659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5660 # <limits.h> exists even on freestanding compilers.
5661 # On the NeXT, cc -E runs the code through the compiler's parser,
5662 # not just through cpp. "Syntax error" is here to catch this case.
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #ifdef __STDC__
5670 # include <limits.h>
5671 #else
5672 # include <assert.h>
5673 #endif
5674 Syntax error
5675 _ACEOF
5676 if { (ac_try="$ac_cpp conftest.$ac_ext"
5677 case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } >/dev/null && {
5689 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5690 test ! -s conftest.err
5691 }; then
5692 :
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 # Broken: fails on valid input.
5698 continue
5699 fi
5700
5701 rm -f conftest.err conftest.$ac_ext
5702
5703 # OK, works on sane cases. Now check whether nonexistent headers
5704 # can be detected and how.
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 #include <ac_nonexistent.h>
5712 _ACEOF
5713 if { (ac_try="$ac_cpp conftest.$ac_ext"
5714 case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev/null && {
5726 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5727 test ! -s conftest.err
5728 }; then
5729 # Broken: success on invalid input.
5730 continue
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 # Passes both tests.
5736 ac_preproc_ok=:
5737 break
5738 fi
5739
5740 rm -f conftest.err conftest.$ac_ext
5741
5742 done
5743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744 rm -f conftest.err conftest.$ac_ext
5745 if $ac_preproc_ok; then
5746 break
5747 fi
5748
5749 done
5750 ac_cv_prog_CXXCPP=$CXXCPP
5751
5752 fi
5753 CXXCPP=$ac_cv_prog_CXXCPP
5754 else
5755 ac_cv_prog_CXXCPP=$CXXCPP
5756 fi
5757 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5758 echo "${ECHO_T}$CXXCPP" >&6; }
5759 ac_preproc_ok=false
5760 for ac_cxx_preproc_warn_flag in '' yes
5761 do
5762 # Use a header file that comes with gcc, so configuring glibc
5763 # with a fresh cross-compiler works.
5764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5765 # <limits.h> exists even on freestanding compilers.
5766 # On the NeXT, cc -E runs the code through the compiler's parser,
5767 # not just through cpp. "Syntax error" is here to catch this case.
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #ifdef __STDC__
5775 # include <limits.h>
5776 #else
5777 # include <assert.h>
5778 #endif
5779 Syntax error
5780 _ACEOF
5781 if { (ac_try="$ac_cpp conftest.$ac_ext"
5782 case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } >/dev/null && {
5794 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5795 test ! -s conftest.err
5796 }; then
5797 :
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 # Broken: fails on valid input.
5803 continue
5804 fi
5805
5806 rm -f conftest.err conftest.$ac_ext
5807
5808 # OK, works on sane cases. Now check whether nonexistent headers
5809 # can be detected and how.
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <ac_nonexistent.h>
5817 _ACEOF
5818 if { (ac_try="$ac_cpp conftest.$ac_ext"
5819 case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } >/dev/null && {
5831 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5832 test ! -s conftest.err
5833 }; then
5834 # Broken: success on invalid input.
5835 continue
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839
5840 # Passes both tests.
5841 ac_preproc_ok=:
5842 break
5843 fi
5844
5845 rm -f conftest.err conftest.$ac_ext
5846
5847 done
5848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849 rm -f conftest.err conftest.$ac_ext
5850 if $ac_preproc_ok; then
5851 :
5852 else
5853 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5854 See \`config.log' for more details." >&5
5855 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5856 See \`config.log' for more details." >&2;}
5857 { (exit 1); exit 1; }; }
5858 fi
5859
5860 ac_ext=cpp
5861 ac_cpp='$CXXCPP $CPPFLAGS'
5862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5865
5866 fi
5867
5868
5869 ac_ext=f
5870 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5871 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5873 if test -n "$ac_tool_prefix"; then
5874 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
5875 do
5876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5880 if test "${ac_cv_prog_F77+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883 if test -n "$F77"; then
5884 ac_cv_prog_F77="$F77" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901 fi
5902 fi
5903 F77=$ac_cv_prog_F77
5904 if test -n "$F77"; then
5905 { echo "$as_me:$LINENO: result: $F77" >&5
5906 echo "${ECHO_T}$F77" >&6; }
5907 else
5908 { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5910 fi
5911
5912
5913 test -n "$F77" && break
5914 done
5915 fi
5916 if test -z "$F77"; then
5917 ac_ct_F77=$F77
5918 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
5919 do
5920 # Extract the first word of "$ac_prog", so it can be a program name with args.
5921 set dummy $ac_prog; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 if test -n "$ac_ct_F77"; then
5928 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_ac_ct_F77="$ac_prog"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5948 if test -n "$ac_ct_F77"; then
5949 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5950 echo "${ECHO_T}$ac_ct_F77" >&6; }
5951 else
5952 { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5954 fi
5955
5956
5957 test -n "$ac_ct_F77" && break
5958 done
5959
5960 if test "x$ac_ct_F77" = x; then
5961 F77=""
5962 else
5963 case $cross_compiling:$ac_tool_warned in
5964 yes:)
5965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5966 whose name does not start with the host triplet. If you think this
5967 configuration is useful to you, please write to autoconf@gnu.org." >&5
5968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5969 whose name does not start with the host triplet. If you think this
5970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5971 ac_tool_warned=yes ;;
5972 esac
5973 F77=$ac_ct_F77
5974 fi
5975 fi
5976
5977
5978 # Provide some information about the compiler.
5979 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5980 ac_compiler=`set X $ac_compile; echo $2`
5981 { (ac_try="$ac_compiler --version >&5"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compiler --version >&5") 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }
5991 { (ac_try="$ac_compiler -v >&5"
5992 case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compiler -v >&5") 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }
6001 { (ac_try="$ac_compiler -V >&5"
6002 case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compiler -V >&5") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011 rm -f a.out
6012
6013 # If we don't use `.F' as extension, the preprocessor is not run on the
6014 # input file. (Note that this only needs to work for GNU compilers.)
6015 ac_save_ext=$ac_ext
6016 ac_ext=F
6017 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6018 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6019 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 cat >conftest.$ac_ext <<_ACEOF
6023 program main
6024 #ifndef __GNUC__
6025 choke me
6026 #endif
6027
6028 end
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_f77_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_objext; then
6047 ac_compiler_gnu=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051
6052 ac_compiler_gnu=no
6053 fi
6054
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6057
6058 fi
6059 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6060 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6061 ac_ext=$ac_save_ext
6062 ac_test_FFLAGS=${FFLAGS+set}
6063 ac_save_FFLAGS=$FFLAGS
6064 FFLAGS=
6065 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6066 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6067 if test "${ac_cv_prog_f77_g+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 FFLAGS=-g
6071 cat >conftest.$ac_ext <<_ACEOF
6072 program main
6073
6074 end
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (ac_try="$ac_compile"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_f77_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_cv_prog_f77_g=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 ac_cv_prog_f77_g=no
6099 fi
6100
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102
6103 fi
6104 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6105 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6106 if test "$ac_test_FFLAGS" = set; then
6107 FFLAGS=$ac_save_FFLAGS
6108 elif test $ac_cv_prog_f77_g = yes; then
6109 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6110 FFLAGS="-g -O2"
6111 else
6112 FFLAGS="-g"
6113 fi
6114 else
6115 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6116 FFLAGS="-O2"
6117 else
6118 FFLAGS=
6119 fi
6120 fi
6121
6122 G77=`test $ac_compiler_gnu = yes && echo yes`
6123 ac_ext=c
6124 ac_cpp='$CPP $CPPFLAGS'
6125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128
6129
6130
6131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6132
6133 # find the maximum length of command line arguments
6134 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6135 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6136 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 i=0
6140 teststring="ABCD"
6141
6142 case $build_os in
6143 msdosdjgpp*)
6144 # On DJGPP, this test can blow up pretty badly due to problems in libc
6145 # (any single argument exceeding 2000 bytes causes a buffer overrun
6146 # during glob expansion). Even if it were fixed, the result of this
6147 # check would be larger than it should be.
6148 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6149 ;;
6150
6151 gnu*)
6152 # Under GNU Hurd, this test is not required because there is
6153 # no limit to the length of command line arguments.
6154 # Libtool will interpret -1 as no limit whatsoever
6155 lt_cv_sys_max_cmd_len=-1;
6156 ;;
6157
6158 cygwin* | mingw*)
6159 # On Win9x/ME, this test blows up -- it succeeds, but takes
6160 # about 5 minutes as the teststring grows exponentially.
6161 # Worse, since 9x/ME are not pre-emptively multitasking,
6162 # you end up with a "frozen" computer, even though with patience
6163 # the test eventually succeeds (with a max line length of 256k).
6164 # Instead, let's just punt: use the minimum linelength reported by
6165 # all of the supported platforms: 8192 (on NT/2K/XP).
6166 lt_cv_sys_max_cmd_len=8192;
6167 ;;
6168
6169 amigaos*)
6170 # On AmigaOS with pdksh, this test takes hours, literally.
6171 # So we just punt and use a minimum line length of 8192.
6172 lt_cv_sys_max_cmd_len=8192;
6173 ;;
6174
6175 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6176 # This has been around since 386BSD, at least. Likely further.
6177 if test -x /sbin/sysctl; then
6178 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6179 elif test -x /usr/sbin/sysctl; then
6180 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6181 else
6182 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6183 fi
6184 # And add a safety zone
6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6187 ;;
6188
6189 interix*)
6190 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6191 lt_cv_sys_max_cmd_len=196608
6192 ;;
6193
6194 osf*)
6195 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6196 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6197 # nice to cause kernel panics so lets avoid the loop below.
6198 # First set a reasonable default.
6199 lt_cv_sys_max_cmd_len=16384
6200 #
6201 if test -x /sbin/sysconfig; then
6202 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6203 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6204 esac
6205 fi
6206 ;;
6207 sco3.2v5*)
6208 lt_cv_sys_max_cmd_len=102400
6209 ;;
6210 sysv5* | sco5v6* | sysv4.2uw2*)
6211 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6212 if test -n "$kargmax"; then
6213 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6214 else
6215 lt_cv_sys_max_cmd_len=32768
6216 fi
6217 ;;
6218 *)
6219 # If test is not a shell built-in, we'll probably end up computing a
6220 # maximum length that is only half of the actual maximum length, but
6221 # we can't tell.
6222 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6223 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6224 = "XX$teststring") >/dev/null 2>&1 &&
6225 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6226 lt_cv_sys_max_cmd_len=$new_result &&
6227 test $i != 17 # 1/2 MB should be enough
6228 do
6229 i=`expr $i + 1`
6230 teststring=$teststring$teststring
6231 done
6232 teststring=
6233 # Add a significant safety factor because C++ compilers can tack on massive
6234 # amounts of additional arguments before passing them to the linker.
6235 # It appears as though 1/2 is a usable value.
6236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6237 ;;
6238 esac
6239
6240 fi
6241
6242 if test -n $lt_cv_sys_max_cmd_len ; then
6243 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6244 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6245 else
6246 { echo "$as_me:$LINENO: result: none" >&5
6247 echo "${ECHO_T}none" >&6; }
6248 fi
6249
6250
6251
6252
6253 # Check for command to grab the raw symbol name followed by C symbol from nm.
6254 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259
6260 # These are sane defaults that work on at least a few old systems.
6261 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6262
6263 # Character class describing NM global symbol codes.
6264 symcode='[BCDEGRST]'
6265
6266 # Regexp to match symbols that can be accessed directly from C.
6267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6268
6269 # Transform an extracted symbol line into a proper C declaration
6270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6271
6272 # Transform an extracted symbol line into symbol name and symbol address
6273 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'"
6274
6275 # Define system-specific variables.
6276 case $host_os in
6277 aix*)
6278 symcode='[BCDT]'
6279 ;;
6280 cygwin* | mingw* | pw32*)
6281 symcode='[ABCDGISTW]'
6282 ;;
6283 hpux*) # Its linker distinguishes data from code symbols
6284 if test "$host_cpu" = ia64; then
6285 symcode='[ABCDEGRST]'
6286 fi
6287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6288 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'"
6289 ;;
6290 linux*)
6291 if test "$host_cpu" = ia64; then
6292 symcode='[ABCDGIRSTW]'
6293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6294 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'"
6295 fi
6296 ;;
6297 irix* | nonstopux*)
6298 symcode='[BCDEGRST]'
6299 ;;
6300 osf*)
6301 symcode='[BCDEGQRST]'
6302 ;;
6303 solaris*)
6304 symcode='[BDRT]'
6305 ;;
6306 sco3.2v5*)
6307 symcode='[DT]'
6308 ;;
6309 sysv4.2uw2*)
6310 symcode='[DT]'
6311 ;;
6312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313 symcode='[ABDT]'
6314 ;;
6315 sysv4)
6316 symcode='[DFNSTU]'
6317 ;;
6318 esac
6319
6320 # Handle CRLF in mingw tool chain
6321 opt_cr=
6322 case $build_os in
6323 mingw*)
6324 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6325 ;;
6326 esac
6327
6328 # If we're using GNU nm, then use its standard symbol codes.
6329 case `$NM -V 2>&1` in
6330 *GNU* | *'with BFD'*)
6331 symcode='[ABCDGIRSTW]' ;;
6332 esac
6333
6334 # Try without a prefix undercore, then with it.
6335 for ac_symprfx in "" "_"; do
6336
6337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6338 symxfrm="\\1 $ac_symprfx\\2 \\2"
6339
6340 # Write the raw and C identifiers.
6341 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6342
6343 # Check to see that the pipe works correctly.
6344 pipe_works=no
6345
6346 rm -f conftest*
6347 cat > conftest.$ac_ext <<EOF
6348 #ifdef __cplusplus
6349 extern "C" {
6350 #endif
6351 char nm_test_var;
6352 void nm_test_func(){}
6353 #ifdef __cplusplus
6354 }
6355 #endif
6356 int main(){nm_test_var='a';nm_test_func();return(0);}
6357 EOF
6358
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360 (eval $ac_compile) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; then
6364 # Now try to grab the symbols.
6365 nlist=conftest.nm
6366 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && test -s "$nlist"; then
6371 # Try sorting and uniquifying the output.
6372 if sort "$nlist" | uniq > "$nlist"T; then
6373 mv -f "$nlist"T "$nlist"
6374 else
6375 rm -f "$nlist"T
6376 fi
6377
6378 # Make sure that we snagged all the symbols we need.
6379 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6380 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6381 cat <<EOF > conftest.$ac_ext
6382 #ifdef __cplusplus
6383 extern "C" {
6384 #endif
6385
6386 EOF
6387 # Now generate the symbol file.
6388 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6389
6390 cat <<EOF >> conftest.$ac_ext
6391 #if defined (__STDC__) && __STDC__
6392 # define lt_ptr_t void *
6393 #else
6394 # define lt_ptr_t char *
6395 # define const
6396 #endif
6397
6398 /* The mapping between symbol names and symbols. */
6399 const struct {
6400 const char *name;
6401 lt_ptr_t address;
6402 }
6403 lt_preloaded_symbols[] =
6404 {
6405 EOF
6406 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6407 cat <<\EOF >> conftest.$ac_ext
6408 {0, (lt_ptr_t) 0}
6409 };
6410
6411 #ifdef __cplusplus
6412 }
6413 #endif
6414 EOF
6415 # Now try linking the two files.
6416 mv conftest.$ac_objext conftstm.$ac_objext
6417 lt_save_LIBS="$LIBS"
6418 lt_save_CFLAGS="$CFLAGS"
6419 LIBS="conftstm.$ac_objext"
6420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422 (eval $ac_link) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6426 pipe_works=yes
6427 fi
6428 LIBS="$lt_save_LIBS"
6429 CFLAGS="$lt_save_CFLAGS"
6430 else
6431 echo "cannot find nm_test_func in $nlist" >&5
6432 fi
6433 else
6434 echo "cannot find nm_test_var in $nlist" >&5
6435 fi
6436 else
6437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6438 fi
6439 else
6440 echo "$progname: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 fi
6443 rm -f conftest* conftst*
6444
6445 # Do not use the global_symbol_pipe unless it works.
6446 if test "$pipe_works" = yes; then
6447 break
6448 else
6449 lt_cv_sys_global_symbol_pipe=
6450 fi
6451 done
6452
6453 fi
6454
6455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6456 lt_cv_sys_global_symbol_to_cdecl=
6457 fi
6458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6459 { echo "$as_me:$LINENO: result: failed" >&5
6460 echo "${ECHO_T}failed" >&6; }
6461 else
6462 { echo "$as_me:$LINENO: result: ok" >&5
6463 echo "${ECHO_T}ok" >&6; }
6464 fi
6465
6466 { echo "$as_me:$LINENO: checking for objdir" >&5
6467 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6468 if test "${lt_cv_objdir+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 rm -f .libs 2>/dev/null
6472 mkdir .libs 2>/dev/null
6473 if test -d .libs; then
6474 lt_cv_objdir=.libs
6475 else
6476 # MS-DOS does not allow filenames that begin with a dot.
6477 lt_cv_objdir=_libs
6478 fi
6479 rmdir .libs 2>/dev/null
6480 fi
6481 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6482 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6483 objdir=$lt_cv_objdir
6484
6485
6486
6487
6488
6489 case $host_os in
6490 aix3*)
6491 # AIX sometimes has problems with the GCC collect2 program. For some
6492 # reason, if we set the COLLECT_NAMES environment variable, the problems
6493 # vanish in a puff of smoke.
6494 if test "X${COLLECT_NAMES+set}" != Xset; then
6495 COLLECT_NAMES=
6496 export COLLECT_NAMES
6497 fi
6498 ;;
6499 esac
6500
6501 # Sed substitution that helps us do robust quoting. It backslashifies
6502 # metacharacters that are still active within double-quoted strings.
6503 Xsed='sed -e 1s/^X//'
6504 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6505
6506 # Same as above, but do not quote variable references.
6507 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6508
6509 # Sed substitution to delay expansion of an escaped shell variable in a
6510 # double_quote_subst'ed string.
6511 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6512
6513 # Sed substitution to avoid accidental globbing in evaled expressions
6514 no_glob_subst='s/\*/\\\*/g'
6515
6516 # Constants:
6517 rm="rm -f"
6518
6519 # Global variables:
6520 default_ofile=libtool
6521 can_build_shared=yes
6522
6523 # All known linkers require a `.a' archive for static linking (except MSVC,
6524 # which needs '.lib').
6525 libext=a
6526 ltmain="$ac_aux_dir/ltmain.sh"
6527 ofile="$default_ofile"
6528 with_gnu_ld="$lt_cv_prog_gnu_ld"
6529
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}ar; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_prog_AR+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538 if test -n "$AR"; then
6539 ac_cv_prog_AR="$AR" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_AR="${ac_tool_prefix}ar"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 AR=$ac_cv_prog_AR
6559 if test -n "$AR"; then
6560 { echo "$as_me:$LINENO: result: $AR" >&5
6561 echo "${ECHO_T}$AR" >&6; }
6562 else
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_AR"; then
6570 ac_ct_AR=$AR
6571 # Extract the first word of "ar", so it can be a program name with args.
6572 set dummy ar; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 if test -n "$ac_ct_AR"; then
6579 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_AR="ar"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6599 if test -n "$ac_ct_AR"; then
6600 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6601 echo "${ECHO_T}$ac_ct_AR" >&6; }
6602 else
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6605 fi
6606
6607 if test "x$ac_ct_AR" = x; then
6608 AR="false"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6613 whose name does not start with the host triplet. If you think this
6614 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet. If you think this
6617 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 AR=$ac_ct_AR
6621 fi
6622 else
6623 AR="$ac_cv_prog_AR"
6624 fi
6625
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_prog_RANLIB+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 if test -n "$RANLIB"; then
6635 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 RANLIB=$ac_cv_prog_RANLIB
6655 if test -n "$RANLIB"; then
6656 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6657 echo "${ECHO_T}$RANLIB" >&6; }
6658 else
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_RANLIB"; then
6666 ac_ct_RANLIB=$RANLIB
6667 # Extract the first word of "ranlib", so it can be a program name with args.
6668 set dummy ranlib; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 if test -n "$ac_ct_RANLIB"; then
6675 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_RANLIB="ranlib"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6695 if test -n "$ac_ct_RANLIB"; then
6696 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6697 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6698 else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6701 fi
6702
6703 if test "x$ac_ct_RANLIB" = x; then
6704 RANLIB=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6709 whose name does not start with the host triplet. If you think this
6710 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6712 whose name does not start with the host triplet. If you think this
6713 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716 RANLIB=$ac_ct_RANLIB
6717 fi
6718 else
6719 RANLIB="$ac_cv_prog_RANLIB"
6720 fi
6721
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}strip; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_STRIP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 if test -n "$STRIP"; then
6731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 STRIP=$ac_cv_prog_STRIP
6751 if test -n "$STRIP"; then
6752 { echo "$as_me:$LINENO: result: $STRIP" >&5
6753 echo "${ECHO_T}$STRIP" >&6; }
6754 else
6755 { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_STRIP"; then
6762 ac_ct_STRIP=$STRIP
6763 # Extract the first word of "strip", so it can be a program name with args.
6764 set dummy strip; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770 if test -n "$ac_ct_STRIP"; then
6771 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_STRIP="strip"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6791 if test -n "$ac_ct_STRIP"; then
6792 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6793 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6794 else
6795 { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6797 fi
6798
6799 if test "x$ac_ct_STRIP" = x; then
6800 STRIP=":"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet. If you think this
6806 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6808 whose name does not start with the host triplet. If you think this
6809 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812 STRIP=$ac_ct_STRIP
6813 fi
6814 else
6815 STRIP="$ac_cv_prog_STRIP"
6816 fi
6817
6818
6819 old_CC="$CC"
6820 old_CFLAGS="$CFLAGS"
6821
6822 # Set sane defaults for various variables
6823 test -z "$AR" && AR=ar
6824 test -z "$AR_FLAGS" && AR_FLAGS=cru
6825 test -z "$AS" && AS=as
6826 test -z "$CC" && CC=cc
6827 test -z "$LTCC" && LTCC=$CC
6828 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6829 test -z "$DLLTOOL" && DLLTOOL=dlltool
6830 test -z "$LD" && LD=ld
6831 test -z "$LN_S" && LN_S="ln -s"
6832 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6833 test -z "$NM" && NM=nm
6834 test -z "$SED" && SED=sed
6835 test -z "$OBJDUMP" && OBJDUMP=objdump
6836 test -z "$RANLIB" && RANLIB=:
6837 test -z "$STRIP" && STRIP=:
6838 test -z "$ac_objext" && ac_objext=o
6839
6840 # Determine commands to create old-style static archives.
6841 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6842 old_postinstall_cmds='chmod 644 $oldlib'
6843 old_postuninstall_cmds=
6844
6845 if test -n "$RANLIB"; then
6846 case $host_os in
6847 openbsd*)
6848 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6849 ;;
6850 *)
6851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6852 ;;
6853 esac
6854 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6855 fi
6856
6857 for cc_temp in $compiler""; do
6858 case $cc_temp in
6859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6861 \-*) ;;
6862 *) break;;
6863 esac
6864 done
6865 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6866
6867
6868 # Only perform the check for file, if the check method requires it
6869 case $deplibs_check_method in
6870 file_magic*)
6871 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6872 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6873 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6874 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 case $MAGIC_CMD in
6878 [\\/*] | ?:[\\/]*)
6879 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6880 ;;
6881 *)
6882 lt_save_MAGIC_CMD="$MAGIC_CMD"
6883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6884 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6885 for ac_dir in $ac_dummy; do
6886 IFS="$lt_save_ifs"
6887 test -z "$ac_dir" && ac_dir=.
6888 if test -f $ac_dir/${ac_tool_prefix}file; then
6889 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6890 if test -n "$file_magic_test_file"; then
6891 case $deplibs_check_method in
6892 "file_magic "*)
6893 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6896 $EGREP "$file_magic_regex" > /dev/null; then
6897 :
6898 else
6899 cat <<EOF 1>&2
6900
6901 *** Warning: the command libtool uses to detect shared libraries,
6902 *** $file_magic_cmd, produces output that libtool cannot recognize.
6903 *** The result is that libtool may fail to recognize shared libraries
6904 *** as such. This will affect the creation of libtool libraries that
6905 *** depend on shared libraries, but programs linked with such libtool
6906 *** libraries will work regardless of this problem. Nevertheless, you
6907 *** may want to report the problem to your system manager and/or to
6908 *** bug-libtool@gnu.org
6909
6910 EOF
6911 fi ;;
6912 esac
6913 fi
6914 break
6915 fi
6916 done
6917 IFS="$lt_save_ifs"
6918 MAGIC_CMD="$lt_save_MAGIC_CMD"
6919 ;;
6920 esac
6921 fi
6922
6923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6924 if test -n "$MAGIC_CMD"; then
6925 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6926 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6927 else
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6930 fi
6931
6932 if test -z "$lt_cv_path_MAGIC_CMD"; then
6933 if test -n "$ac_tool_prefix"; then
6934 { echo "$as_me:$LINENO: checking for file" >&5
6935 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6936 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 case $MAGIC_CMD in
6940 [\\/*] | ?:[\\/]*)
6941 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6942 ;;
6943 *)
6944 lt_save_MAGIC_CMD="$MAGIC_CMD"
6945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6947 for ac_dir in $ac_dummy; do
6948 IFS="$lt_save_ifs"
6949 test -z "$ac_dir" && ac_dir=.
6950 if test -f $ac_dir/file; then
6951 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6952 if test -n "$file_magic_test_file"; then
6953 case $deplibs_check_method in
6954 "file_magic "*)
6955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6958 $EGREP "$file_magic_regex" > /dev/null; then
6959 :
6960 else
6961 cat <<EOF 1>&2
6962
6963 *** Warning: the command libtool uses to detect shared libraries,
6964 *** $file_magic_cmd, produces output that libtool cannot recognize.
6965 *** The result is that libtool may fail to recognize shared libraries
6966 *** as such. This will affect the creation of libtool libraries that
6967 *** depend on shared libraries, but programs linked with such libtool
6968 *** libraries will work regardless of this problem. Nevertheless, you
6969 *** may want to report the problem to your system manager and/or to
6970 *** bug-libtool@gnu.org
6971
6972 EOF
6973 fi ;;
6974 esac
6975 fi
6976 break
6977 fi
6978 done
6979 IFS="$lt_save_ifs"
6980 MAGIC_CMD="$lt_save_MAGIC_CMD"
6981 ;;
6982 esac
6983 fi
6984
6985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986 if test -n "$MAGIC_CMD"; then
6987 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6988 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6989 else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6992 fi
6993
6994 else
6995 MAGIC_CMD=:
6996 fi
6997 fi
6998
6999 fi
7000 ;;
7001 esac
7002
7003 enable_dlopen=no
7004 enable_win32_dll=no
7005
7006 # Check whether --enable-libtool-lock was given.
7007 if test "${enable_libtool_lock+set}" = set; then
7008 enableval=$enable_libtool_lock;
7009 fi
7010
7011 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7012
7013
7014 # Check whether --with-pic was given.
7015 if test "${with_pic+set}" = set; then
7016 withval=$with_pic; pic_mode="$withval"
7017 else
7018 pic_mode=default
7019 fi
7020
7021 test -z "$pic_mode" && pic_mode=default
7022
7023 # Use C for the default configuration in the libtool script
7024 tagname=
7025 lt_save_CC="$CC"
7026 ac_ext=c
7027 ac_cpp='$CPP $CPPFLAGS'
7028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031
7032
7033 # Source file extension for C test sources.
7034 ac_ext=c
7035
7036 # Object file extension for compiled C test sources.
7037 objext=o
7038 objext=$objext
7039
7040 # Code to be used in simple compile tests
7041 lt_simple_compile_test_code="int some_variable = 0;\n"
7042
7043 # Code to be used in simple link tests
7044 lt_simple_link_test_code='int main(){return(0);}\n'
7045
7046
7047 # If no C compiler was specified, use CC.
7048 LTCC=${LTCC-"$CC"}
7049
7050 # If no C compiler flags were specified, use CFLAGS.
7051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7052
7053 # Allow CC to be a program name with arguments.
7054 compiler=$CC
7055
7056
7057 # save warnings/boilerplate of simple test code
7058 ac_outfile=conftest.$ac_objext
7059 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7061 _lt_compiler_boilerplate=`cat conftest.err`
7062 $rm conftest*
7063
7064 ac_outfile=conftest.$ac_objext
7065 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7067 _lt_linker_boilerplate=`cat conftest.err`
7068 $rm conftest*
7069
7070
7071
7072 lt_prog_compiler_no_builtin_flag=
7073
7074 if test "$GCC" = yes; then
7075 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7076
7077
7078 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7079 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7080 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 lt_cv_prog_compiler_rtti_exceptions=no
7084 ac_outfile=conftest.$ac_objext
7085 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7086 lt_compiler_flag="-fno-rtti -fno-exceptions"
7087 # Insert the option either (1) after the last *FLAGS variable, or
7088 # (2) before a word containing "conftest.", or (3) at the end.
7089 # Note that $ac_compile itself does not contain backslashes and begins
7090 # with a dollar sign (not a hyphen), so the echo should work correctly.
7091 # The option is referenced via a variable to avoid confusing sed.
7092 lt_compile=`echo "$ac_compile" | $SED \
7093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7095 -e 's:$: $lt_compiler_flag:'`
7096 (eval echo "\"\$as_me:7096: $lt_compile\"" >&5)
7097 (eval "$lt_compile" 2>conftest.err)
7098 ac_status=$?
7099 cat conftest.err >&5
7100 echo "$as_me:7100: \$? = $ac_status" >&5
7101 if (exit $ac_status) && test -s "$ac_outfile"; then
7102 # The compiler can only warn and ignore the option if not recognized
7103 # So say no if there are warnings other than the usual output.
7104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7107 lt_cv_prog_compiler_rtti_exceptions=yes
7108 fi
7109 fi
7110 $rm conftest*
7111
7112 fi
7113 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7114 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7115
7116 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7117 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7118 else
7119 :
7120 fi
7121
7122 fi
7123
7124 lt_prog_compiler_wl=
7125 lt_prog_compiler_pic=
7126 lt_prog_compiler_static=
7127
7128 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7129 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7130
7131 if test "$GCC" = yes; then
7132 lt_prog_compiler_wl='-Wl,'
7133 lt_prog_compiler_static='-static'
7134
7135 case $host_os in
7136 aix*)
7137 # All AIX code is PIC.
7138 if test "$host_cpu" = ia64; then
7139 # AIX 5 now supports IA64 processor
7140 lt_prog_compiler_static='-Bstatic'
7141 fi
7142 ;;
7143
7144 amigaos*)
7145 # FIXME: we need at least 68020 code to build shared libraries, but
7146 # adding the `-m68020' flag to GCC prevents building anything better,
7147 # like `-m68040'.
7148 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7149 ;;
7150
7151 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7152 # PIC is the default for these OSes.
7153 ;;
7154
7155 mingw* | pw32* | os2*)
7156 # This hack is so that the source file can tell whether it is being
7157 # built for inclusion in a dll (and should export symbols for example).
7158 lt_prog_compiler_pic='-DDLL_EXPORT'
7159 ;;
7160
7161 darwin* | rhapsody*)
7162 # PIC is the default on this platform
7163 # Common symbols not allowed in MH_DYLIB files
7164 lt_prog_compiler_pic='-fno-common'
7165 ;;
7166
7167 interix3*)
7168 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7169 # Instead, we relocate shared libraries at runtime.
7170 ;;
7171
7172 msdosdjgpp*)
7173 # Just because we use GCC doesn't mean we suddenly get shared libraries
7174 # on systems that don't support them.
7175 lt_prog_compiler_can_build_shared=no
7176 enable_shared=no
7177 ;;
7178
7179 sysv4*MP*)
7180 if test -d /usr/nec; then
7181 lt_prog_compiler_pic=-Kconform_pic
7182 fi
7183 ;;
7184
7185 hpux*)
7186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7187 # not for PA HP-UX.
7188 case $host_cpu in
7189 hppa*64*|ia64*)
7190 # +Z the default
7191 ;;
7192 *)
7193 lt_prog_compiler_pic='-fPIC'
7194 ;;
7195 esac
7196 ;;
7197
7198 *)
7199 lt_prog_compiler_pic='-fPIC'
7200 ;;
7201 esac
7202 else
7203 # PORTME Check for flag to pass linker flags through the system compiler.
7204 case $host_os in
7205 aix*)
7206 lt_prog_compiler_wl='-Wl,'
7207 if test "$host_cpu" = ia64; then
7208 # AIX 5 now supports IA64 processor
7209 lt_prog_compiler_static='-Bstatic'
7210 else
7211 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7212 fi
7213 ;;
7214 darwin*)
7215 # PIC is the default on this platform
7216 # Common symbols not allowed in MH_DYLIB files
7217 case $cc_basename in
7218 xlc*)
7219 lt_prog_compiler_pic='-qnocommon'
7220 lt_prog_compiler_wl='-Wl,'
7221 ;;
7222 esac
7223 ;;
7224
7225 mingw* | pw32* | os2*)
7226 # This hack is so that the source file can tell whether it is being
7227 # built for inclusion in a dll (and should export symbols for example).
7228 lt_prog_compiler_pic='-DDLL_EXPORT'
7229 ;;
7230
7231 hpux9* | hpux10* | hpux11*)
7232 lt_prog_compiler_wl='-Wl,'
7233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7234 # not for PA HP-UX.
7235 case $host_cpu in
7236 hppa*64*|ia64*)
7237 # +Z the default
7238 ;;
7239 *)
7240 lt_prog_compiler_pic='+Z'
7241 ;;
7242 esac
7243 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7244 lt_prog_compiler_static='${wl}-a ${wl}archive'
7245 ;;
7246
7247 irix5* | irix6* | nonstopux*)
7248 lt_prog_compiler_wl='-Wl,'
7249 # PIC (with -KPIC) is the default.
7250 lt_prog_compiler_static='-non_shared'
7251 ;;
7252
7253 newsos6)
7254 lt_prog_compiler_pic='-KPIC'
7255 lt_prog_compiler_static='-Bstatic'
7256 ;;
7257
7258 linux*)
7259 case $cc_basename in
7260 icc* | ecc*)
7261 lt_prog_compiler_wl='-Wl,'
7262 lt_prog_compiler_pic='-KPIC'
7263 lt_prog_compiler_static='-static'
7264 ;;
7265 pgcc* | pgf77* | pgf90* | pgf95*)
7266 # Portland Group compilers (*not* the Pentium gcc compiler,
7267 # which looks to be a dead project)
7268 lt_prog_compiler_wl='-Wl,'
7269 lt_prog_compiler_pic='-fpic'
7270 lt_prog_compiler_static='-Bstatic'
7271 ;;
7272 ccc*)
7273 lt_prog_compiler_wl='-Wl,'
7274 # All Alpha code is PIC.
7275 lt_prog_compiler_static='-non_shared'
7276 ;;
7277 esac
7278 ;;
7279
7280 osf3* | osf4* | osf5*)
7281 lt_prog_compiler_wl='-Wl,'
7282 # All OSF/1 code is PIC.
7283 lt_prog_compiler_static='-non_shared'
7284 ;;
7285
7286 solaris*)
7287 lt_prog_compiler_pic='-KPIC'
7288 lt_prog_compiler_static='-Bstatic'
7289 case $cc_basename in
7290 f77* | f90* | f95*)
7291 lt_prog_compiler_wl='-Qoption ld ';;
7292 *)
7293 lt_prog_compiler_wl='-Wl,';;
7294 esac
7295 ;;
7296
7297 sunos4*)
7298 lt_prog_compiler_wl='-Qoption ld '
7299 lt_prog_compiler_pic='-PIC'
7300 lt_prog_compiler_static='-Bstatic'
7301 ;;
7302
7303 sysv4 | sysv4.2uw2* | sysv4.3*)
7304 lt_prog_compiler_wl='-Wl,'
7305 lt_prog_compiler_pic='-KPIC'
7306 lt_prog_compiler_static='-Bstatic'
7307 ;;
7308
7309 sysv4*MP*)
7310 if test -d /usr/nec ;then
7311 lt_prog_compiler_pic='-Kconform_pic'
7312 lt_prog_compiler_static='-Bstatic'
7313 fi
7314 ;;
7315
7316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7317 lt_prog_compiler_wl='-Wl,'
7318 lt_prog_compiler_pic='-KPIC'
7319 lt_prog_compiler_static='-Bstatic'
7320 ;;
7321
7322 unicos*)
7323 lt_prog_compiler_wl='-Wl,'
7324 lt_prog_compiler_can_build_shared=no
7325 ;;
7326
7327 uts4*)
7328 lt_prog_compiler_pic='-pic'
7329 lt_prog_compiler_static='-Bstatic'
7330 ;;
7331
7332 *)
7333 lt_prog_compiler_can_build_shared=no
7334 ;;
7335 esac
7336 fi
7337
7338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7339 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7340
7341 #
7342 # Check to make sure the PIC flag actually works.
7343 #
7344 if test -n "$lt_prog_compiler_pic"; then
7345
7346 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7347 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7348 if test "${lt_prog_compiler_pic_works+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 lt_prog_compiler_pic_works=no
7352 ac_outfile=conftest.$ac_objext
7353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7354 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7355 # Insert the option either (1) after the last *FLAGS variable, or
7356 # (2) before a word containing "conftest.", or (3) at the end.
7357 # Note that $ac_compile itself does not contain backslashes and begins
7358 # with a dollar sign (not a hyphen), so the echo should work correctly.
7359 # The option is referenced via a variable to avoid confusing sed.
7360 lt_compile=`echo "$ac_compile" | $SED \
7361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7363 -e 's:$: $lt_compiler_flag:'`
7364 (eval echo "\"\$as_me:7364: $lt_compile\"" >&5)
7365 (eval "$lt_compile" 2>conftest.err)
7366 ac_status=$?
7367 cat conftest.err >&5
7368 echo "$as_me:7368: \$? = $ac_status" >&5
7369 if (exit $ac_status) && test -s "$ac_outfile"; then
7370 # The compiler can only warn and ignore the option if not recognized
7371 # So say no if there are warnings other than the usual output.
7372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7375 lt_prog_compiler_pic_works=yes
7376 fi
7377 fi
7378 $rm conftest*
7379
7380 fi
7381 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7382 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7383
7384 if test x"$lt_prog_compiler_pic_works" = xyes; then
7385 case $lt_prog_compiler_pic in
7386 "" | " "*) ;;
7387 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7388 esac
7389 else
7390 lt_prog_compiler_pic=
7391 lt_prog_compiler_can_build_shared=no
7392 fi
7393
7394 fi
7395 case $host_os in
7396 # For platforms which do not support PIC, -DPIC is meaningless:
7397 *djgpp*)
7398 lt_prog_compiler_pic=
7399 ;;
7400 *)
7401 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7402 ;;
7403 esac
7404
7405 #
7406 # Check to make sure the static flag actually works.
7407 #
7408 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7409 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7410 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7411 if test "${lt_prog_compiler_static_works+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 lt_prog_compiler_static_works=no
7415 save_LDFLAGS="$LDFLAGS"
7416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7417 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7419 # The linker can only warn and ignore the option if not recognized
7420 # So say no if there are warnings
7421 if test -s conftest.err; then
7422 # Append any errors to the config.log.
7423 cat conftest.err 1>&5
7424 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7426 if diff conftest.exp conftest.er2 >/dev/null; then
7427 lt_prog_compiler_static_works=yes
7428 fi
7429 else
7430 lt_prog_compiler_static_works=yes
7431 fi
7432 fi
7433 $rm conftest*
7434 LDFLAGS="$save_LDFLAGS"
7435
7436 fi
7437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7438 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7439
7440 if test x"$lt_prog_compiler_static_works" = xyes; then
7441 :
7442 else
7443 lt_prog_compiler_static=
7444 fi
7445
7446
7447 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7448 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7449 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 lt_cv_prog_compiler_c_o=no
7453 $rm -r conftest 2>/dev/null
7454 mkdir conftest
7455 cd conftest
7456 mkdir out
7457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7458
7459 lt_compiler_flag="-o out/conftest2.$ac_objext"
7460 # Insert the option either (1) after the last *FLAGS variable, or
7461 # (2) before a word containing "conftest.", or (3) at the end.
7462 # Note that $ac_compile itself does not contain backslashes and begins
7463 # with a dollar sign (not a hyphen), so the echo should work correctly.
7464 lt_compile=`echo "$ac_compile" | $SED \
7465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7467 -e 's:$: $lt_compiler_flag:'`
7468 (eval echo "\"\$as_me:7468: $lt_compile\"" >&5)
7469 (eval "$lt_compile" 2>out/conftest.err)
7470 ac_status=$?
7471 cat out/conftest.err >&5
7472 echo "$as_me:7472: \$? = $ac_status" >&5
7473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7474 then
7475 # The compiler can only warn and ignore the option if not recognized
7476 # So say no if there are warnings
7477 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7480 lt_cv_prog_compiler_c_o=yes
7481 fi
7482 fi
7483 chmod u+w . 2>&5
7484 $rm conftest*
7485 # SGI C++ compiler will create directory out/ii_files/ for
7486 # template instantiation
7487 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7488 $rm out/* && rmdir out
7489 cd ..
7490 rmdir conftest
7491 $rm conftest*
7492
7493 fi
7494 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7495 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7496
7497
7498 hard_links="nottested"
7499 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7500 # do not overwrite the value of need_locks provided by the user
7501 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7502 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7503 hard_links=yes
7504 $rm conftest*
7505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7506 touch conftest.a
7507 ln conftest.a conftest.b 2>&5 || hard_links=no
7508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7509 { echo "$as_me:$LINENO: result: $hard_links" >&5
7510 echo "${ECHO_T}$hard_links" >&6; }
7511 if test "$hard_links" = no; then
7512 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7513 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7514 need_locks=warn
7515 fi
7516 else
7517 need_locks=no
7518 fi
7519
7520 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7521 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7522
7523 runpath_var=
7524 allow_undefined_flag=
7525 enable_shared_with_static_runtimes=no
7526 archive_cmds=
7527 archive_expsym_cmds=
7528 old_archive_From_new_cmds=
7529 old_archive_from_expsyms_cmds=
7530 export_dynamic_flag_spec=
7531 whole_archive_flag_spec=
7532 thread_safe_flag_spec=
7533 hardcode_libdir_flag_spec=
7534 hardcode_libdir_flag_spec_ld=
7535 hardcode_libdir_separator=
7536 hardcode_direct=no
7537 hardcode_minus_L=no
7538 hardcode_shlibpath_var=unsupported
7539 link_all_deplibs=unknown
7540 hardcode_automatic=no
7541 module_cmds=
7542 module_expsym_cmds=
7543 always_export_symbols=no
7544 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7545 # include_expsyms should be a list of space-separated symbols to be *always*
7546 # included in the symbol list
7547 include_expsyms=
7548 # exclude_expsyms can be an extended regexp of symbols to exclude
7549 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7550 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7551 # as well as any symbol that contains `d'.
7552 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7553 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7554 # platforms (ab)use it in PIC code, but their linkers get confused if
7555 # the symbol is explicitly referenced. Since portable code cannot
7556 # rely on this symbol name, it's probably fine to never include it in
7557 # preloaded symbol tables.
7558 extract_expsyms_cmds=
7559 # Just being paranoid about ensuring that cc_basename is set.
7560 for cc_temp in $compiler""; do
7561 case $cc_temp in
7562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7564 \-*) ;;
7565 *) break;;
7566 esac
7567 done
7568 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7569
7570 case $host_os in
7571 cygwin* | mingw* | pw32*)
7572 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7573 # When not using gcc, we currently assume that we are using
7574 # Microsoft Visual C++.
7575 if test "$GCC" != yes; then
7576 with_gnu_ld=no
7577 fi
7578 ;;
7579 interix*)
7580 # we just hope/assume this is gcc and not c89 (= MSVC++)
7581 with_gnu_ld=yes
7582 ;;
7583 openbsd*)
7584 with_gnu_ld=no
7585 ;;
7586 esac
7587
7588 ld_shlibs=yes
7589 if test "$with_gnu_ld" = yes; then
7590 # If archive_cmds runs LD, not CC, wlarc should be empty
7591 wlarc='${wl}'
7592
7593 # Set some defaults for GNU ld with shared library support. These
7594 # are reset later if shared libraries are not supported. Putting them
7595 # here allows them to be overridden if necessary.
7596 runpath_var=LD_RUN_PATH
7597 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7598 export_dynamic_flag_spec='${wl}--export-dynamic'
7599 # ancient GNU ld didn't support --whole-archive et. al.
7600 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7601 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7602 else
7603 whole_archive_flag_spec=
7604 fi
7605 supports_anon_versioning=no
7606 case `$LD -v 2>/dev/null` in
7607 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7610 *\ 2.11.*) ;; # other 2.11 versions
7611 *) supports_anon_versioning=yes ;;
7612 esac
7613
7614 # See if GNU ld supports shared libraries.
7615 case $host_os in
7616 aix3* | aix4* | aix5*)
7617 # On AIX/PPC, the GNU linker is very broken
7618 if test "$host_cpu" != ia64; then
7619 ld_shlibs=no
7620 cat <<EOF 1>&2
7621
7622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7623 *** to be unable to reliably create shared libraries on AIX.
7624 *** Therefore, libtool is disabling shared libraries support. If you
7625 *** really care for shared libraries, you may want to modify your PATH
7626 *** so that a non-GNU linker is found, and then restart.
7627
7628 EOF
7629 fi
7630 ;;
7631
7632 amigaos*)
7633 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)'
7634 hardcode_libdir_flag_spec='-L$libdir'
7635 hardcode_minus_L=yes
7636
7637 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7638 # that the semantics of dynamic libraries on AmigaOS, at least up
7639 # to version 4, is to share data among multiple programs linked
7640 # with the same dynamic library. Since this doesn't match the
7641 # behavior of shared libraries on other platforms, we can't use
7642 # them.
7643 ld_shlibs=no
7644 ;;
7645
7646 beos*)
7647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7648 allow_undefined_flag=unsupported
7649 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7650 # support --undefined. This deserves some investigation. FIXME
7651 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7652 else
7653 ld_shlibs=no
7654 fi
7655 ;;
7656
7657 cygwin* | mingw* | pw32*)
7658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7659 # as there is no search path for DLLs.
7660 hardcode_libdir_flag_spec='-L$libdir'
7661 allow_undefined_flag=unsupported
7662 always_export_symbols=no
7663 enable_shared_with_static_runtimes=yes
7664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7665
7666 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7668 # If the export-symbols file already is a .def file (1st line
7669 # is EXPORTS), use it as is; otherwise, prepend...
7670 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7671 cp $export_symbols $output_objdir/$soname.def;
7672 else
7673 echo EXPORTS > $output_objdir/$soname.def;
7674 cat $export_symbols >> $output_objdir/$soname.def;
7675 fi~
7676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7677 else
7678 ld_shlibs=no
7679 fi
7680 ;;
7681
7682 interix3*)
7683 hardcode_direct=no
7684 hardcode_shlibpath_var=no
7685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7686 export_dynamic_flag_spec='${wl}-E'
7687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7688 # Instead, shared libraries are loaded at an image base (0x10000000 by
7689 # default) and relocated if they conflict, which is a slow very memory
7690 # consuming and fragmenting process. To avoid this, we pick a random,
7691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7694 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'
7695 ;;
7696
7697 linux*)
7698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7699 tmp_addflag=
7700 case $cc_basename,$host_cpu in
7701 pgcc*) # Portland Group C compiler
7702 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'
7703 tmp_addflag=' $pic_flag'
7704 ;;
7705 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
7708 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7709 tmp_addflag=' -i_dynamic' ;;
7710 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7711 tmp_addflag=' -i_dynamic -nofor_main' ;;
7712 ifc* | ifort*) # Intel Fortran compiler
7713 tmp_addflag=' -nofor_main' ;;
7714 esac
7715 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7716
7717 if test $supports_anon_versioning = yes; then
7718 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7720 $echo "local: *; };" >> $output_objdir/$libname.ver~
7721 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7722 fi
7723 else
7724 ld_shlibs=no
7725 fi
7726 ;;
7727
7728 netbsd*)
7729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7730 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7731 wlarc=
7732 else
7733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7735 fi
7736 ;;
7737
7738 solaris*)
7739 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7740 ld_shlibs=no
7741 cat <<EOF 1>&2
7742
7743 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7744 *** create shared libraries on Solaris systems. Therefore, libtool
7745 *** is disabling shared libraries support. We urge you to upgrade GNU
7746 *** binutils to release 2.9.1 or newer. Another option is to modify
7747 *** your PATH or compiler configuration so that the native linker is
7748 *** used, and then restart.
7749
7750 EOF
7751 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7754 else
7755 ld_shlibs=no
7756 fi
7757 ;;
7758
7759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7760 case `$LD -v 2>&1` in
7761 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7762 ld_shlibs=no
7763 cat <<_LT_EOF 1>&2
7764
7765 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7766 *** reliably create shared libraries on SCO systems. Therefore, libtool
7767 *** is disabling shared libraries support. We urge you to upgrade GNU
7768 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7769 *** your PATH or compiler configuration so that the native linker is
7770 *** used, and then restart.
7771
7772 _LT_EOF
7773 ;;
7774 *)
7775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7776 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7779 else
7780 ld_shlibs=no
7781 fi
7782 ;;
7783 esac
7784 ;;
7785
7786 sunos4*)
7787 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7788 wlarc=
7789 hardcode_direct=yes
7790 hardcode_shlibpath_var=no
7791 ;;
7792
7793 *)
7794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7797 else
7798 ld_shlibs=no
7799 fi
7800 ;;
7801 esac
7802
7803 if test "$ld_shlibs" = no; then
7804 runpath_var=
7805 hardcode_libdir_flag_spec=
7806 export_dynamic_flag_spec=
7807 whole_archive_flag_spec=
7808 fi
7809 else
7810 # PORTME fill in a description of your system's linker (not GNU ld)
7811 case $host_os in
7812 aix3*)
7813 allow_undefined_flag=unsupported
7814 always_export_symbols=yes
7815 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'
7816 # Note: this linker hardcodes the directories in LIBPATH if there
7817 # are no directories specified by -L.
7818 hardcode_minus_L=yes
7819 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7820 # Neither direct hardcoding nor static linking is supported with a
7821 # broken collect2.
7822 hardcode_direct=unsupported
7823 fi
7824 ;;
7825
7826 aix4* | aix5*)
7827 if test "$host_cpu" = ia64; then
7828 # On IA64, the linker does run time linking by default, so we don't
7829 # have to do anything special.
7830 aix_use_runtimelinking=no
7831 exp_sym_flag='-Bexport'
7832 no_entry_flag=""
7833 else
7834 # If we're using GNU nm, then we don't want the "-C" option.
7835 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7836 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7837 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'
7838 else
7839 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'
7840 fi
7841 aix_use_runtimelinking=no
7842
7843 # Test if we are trying to use run time linking or normal
7844 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7845 # need to do runtime linking.
7846 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7847 for ld_flag in $LDFLAGS; do
7848 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7849 aix_use_runtimelinking=yes
7850 break
7851 fi
7852 done
7853 ;;
7854 esac
7855
7856 exp_sym_flag='-bexport'
7857 no_entry_flag='-bnoentry'
7858 fi
7859
7860 # When large executables or shared objects are built, AIX ld can
7861 # have problems creating the table of contents. If linking a library
7862 # or program results in "error TOC overflow" add -mminimal-toc to
7863 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7864 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7865
7866 archive_cmds=''
7867 hardcode_direct=yes
7868 hardcode_libdir_separator=':'
7869 link_all_deplibs=yes
7870
7871 if test "$GCC" = yes; then
7872 case $host_os in aix4.[012]|aix4.[012].*)
7873 # We only want to do this on AIX 4.2 and lower, the check
7874 # below for broken collect2 doesn't work under 4.3+
7875 collect2name=`${CC} -print-prog-name=collect2`
7876 if test -f "$collect2name" && \
7877 strings "$collect2name" | grep resolve_lib_name >/dev/null
7878 then
7879 # We have reworked collect2
7880 hardcode_direct=yes
7881 else
7882 # We have old collect2
7883 hardcode_direct=unsupported
7884 # It fails to find uninstalled libraries when the uninstalled
7885 # path is not listed in the libpath. Setting hardcode_minus_L
7886 # to unsupported forces relinking
7887 hardcode_minus_L=yes
7888 hardcode_libdir_flag_spec='-L$libdir'
7889 hardcode_libdir_separator=
7890 fi
7891 ;;
7892 esac
7893 shared_flag='-shared'
7894 if test "$aix_use_runtimelinking" = yes; then
7895 shared_flag="$shared_flag "'${wl}-G'
7896 fi
7897 else
7898 # not using gcc
7899 if test "$host_cpu" = ia64; then
7900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7901 # chokes on -Wl,-G. The following line is correct:
7902 shared_flag='-G'
7903 else
7904 if test "$aix_use_runtimelinking" = yes; then
7905 shared_flag='${wl}-G'
7906 else
7907 shared_flag='${wl}-bM:SRE'
7908 fi
7909 fi
7910 fi
7911
7912 # It seems that -bexpall does not export symbols beginning with
7913 # underscore (_), so it is better to generate a list of symbols to export.
7914 always_export_symbols=yes
7915 if test "$aix_use_runtimelinking" = yes; then
7916 # Warning - without using the other runtime loading flags (-brtl),
7917 # -berok will link without error, but may produce a broken library.
7918 allow_undefined_flag='-berok'
7919 # Determine the default libpath from the value encoded in an empty executable.
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926
7927 int
7928 main ()
7929 {
7930
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext conftest$ac_exeext
7936 if { (ac_try="$ac_link"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_link") 2>conftest.er1
7943 ac_status=$?
7944 grep -v '^ *+' conftest.er1 >conftest.err
7945 rm -f conftest.er1
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest$ac_exeext &&
7952 $as_test_x conftest$ac_exeext; then
7953
7954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7955 }'`
7956 # Check for a 64-bit object if we didn't find anything.
7957 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; }
7958 }'`; fi
7959 else
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7962
7963
7964 fi
7965
7966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7967 conftest$ac_exeext conftest.$ac_ext
7968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7969
7970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7971 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"
7972 else
7973 if test "$host_cpu" = ia64; then
7974 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7975 allow_undefined_flag="-z nodefs"
7976 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"
7977 else
7978 # Determine the default libpath from the value encoded in an empty executable.
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985
7986 int
7987 main ()
7988 {
7989
7990 ;
7991 return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (ac_try="$ac_link"
7996 case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_link") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest$ac_exeext &&
8011 $as_test_x conftest$ac_exeext; then
8012
8013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8014 }'`
8015 # Check for a 64-bit object if we didn't find anything.
8016 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; }
8017 }'`; fi
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022
8023 fi
8024
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026 conftest$ac_exeext conftest.$ac_ext
8027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8028
8029 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8030 # Warning - without using the other run time loading flags,
8031 # -berok will link without error, but may produce a broken library.
8032 no_undefined_flag=' ${wl}-bernotok'
8033 allow_undefined_flag=' ${wl}-berok'
8034 # Exported symbols can be pulled into shared objects from archives
8035 whole_archive_flag_spec='$convenience'
8036 archive_cmds_need_lc=yes
8037 # This is similar to how AIX traditionally builds its shared libraries.
8038 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'
8039 fi
8040 fi
8041 ;;
8042
8043 amigaos*)
8044 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)'
8045 hardcode_libdir_flag_spec='-L$libdir'
8046 hardcode_minus_L=yes
8047 # see comment about different semantics on the GNU ld section
8048 ld_shlibs=no
8049 ;;
8050
8051 bsdi[45]*)
8052 export_dynamic_flag_spec=-rdynamic
8053 ;;
8054
8055 cygwin* | mingw* | pw32*)
8056 # When not using gcc, we currently assume that we are using
8057 # Microsoft Visual C++.
8058 # hardcode_libdir_flag_spec is actually meaningless, as there is
8059 # no search path for DLLs.
8060 hardcode_libdir_flag_spec=' '
8061 allow_undefined_flag=unsupported
8062 # Tell ltmain to make .lib files, not .a files.
8063 libext=lib
8064 # Tell ltmain to make .dll files, not .so files.
8065 shrext_cmds=".dll"
8066 # FIXME: Setting linknames here is a bad hack.
8067 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8068 # The linker will automatically build a .lib file if we build a DLL.
8069 old_archive_From_new_cmds='true'
8070 # FIXME: Should let the user specify the lib program.
8071 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8072 fix_srcfile_path='`cygpath -w "$srcfile"`'
8073 enable_shared_with_static_runtimes=yes
8074 ;;
8075
8076 darwin* | rhapsody*)
8077 case $host_os in
8078 rhapsody* | darwin1.[012])
8079 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8080 ;;
8081 *) # Darwin 1.3 on
8082 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8083 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8084 else
8085 case ${MACOSX_DEPLOYMENT_TARGET} in
8086 10.[012])
8087 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8088 ;;
8089 10.*)
8090 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8091 ;;
8092 esac
8093 fi
8094 ;;
8095 esac
8096 archive_cmds_need_lc=no
8097 hardcode_direct=no
8098 hardcode_automatic=yes
8099 hardcode_shlibpath_var=unsupported
8100 whole_archive_flag_spec=''
8101 link_all_deplibs=yes
8102 if test "$GCC" = yes ; then
8103 output_verbose_link_cmd='echo'
8104 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8105 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8107 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}'
8108 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}'
8109 else
8110 case $cc_basename in
8111 xlc*)
8112 output_verbose_link_cmd='echo'
8113 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8114 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8115 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8116 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}'
8117 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}'
8118 ;;
8119 *)
8120 ld_shlibs=no
8121 ;;
8122 esac
8123 fi
8124 ;;
8125
8126 dgux*)
8127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8128 hardcode_libdir_flag_spec='-L$libdir'
8129 hardcode_shlibpath_var=no
8130 ;;
8131
8132 freebsd1*)
8133 ld_shlibs=no
8134 ;;
8135
8136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8137 # support. Future versions do this automatically, but an explicit c++rt0.o
8138 # does not break anything, and helps significantly (at the cost of a little
8139 # extra space).
8140 freebsd2.2*)
8141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8142 hardcode_libdir_flag_spec='-R$libdir'
8143 hardcode_direct=yes
8144 hardcode_shlibpath_var=no
8145 ;;
8146
8147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8148 freebsd2*)
8149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8150 hardcode_direct=yes
8151 hardcode_minus_L=yes
8152 hardcode_shlibpath_var=no
8153 ;;
8154
8155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8156 freebsd* | kfreebsd*-gnu | dragonfly*)
8157 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8158 hardcode_libdir_flag_spec='-R$libdir'
8159 hardcode_direct=yes
8160 hardcode_shlibpath_var=no
8161 ;;
8162
8163 hpux9*)
8164 if test "$GCC" = yes; then
8165 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'
8166 else
8167 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'
8168 fi
8169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8170 hardcode_libdir_separator=:
8171 hardcode_direct=yes
8172
8173 # hardcode_minus_L: Not really in the search PATH,
8174 # but as the default location of the library.
8175 hardcode_minus_L=yes
8176 export_dynamic_flag_spec='${wl}-E'
8177 ;;
8178
8179 hpux10*)
8180 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8181 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8182 else
8183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8184 fi
8185 if test "$with_gnu_ld" = no; then
8186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187 hardcode_libdir_separator=:
8188
8189 hardcode_direct=yes
8190 export_dynamic_flag_spec='${wl}-E'
8191
8192 # hardcode_minus_L: Not really in the search PATH,
8193 # but as the default location of the library.
8194 hardcode_minus_L=yes
8195 fi
8196 ;;
8197
8198 hpux11*)
8199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8200 case $host_cpu in
8201 hppa*64*)
8202 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8203 ;;
8204 ia64*)
8205 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8206 ;;
8207 *)
8208 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8209 ;;
8210 esac
8211 else
8212 case $host_cpu in
8213 hppa*64*)
8214 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8215 ;;
8216 ia64*)
8217 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8218 ;;
8219 *)
8220 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8221 ;;
8222 esac
8223 fi
8224 if test "$with_gnu_ld" = no; then
8225 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8226 hardcode_libdir_separator=:
8227
8228 case $host_cpu in
8229 hppa*64*|ia64*)
8230 hardcode_libdir_flag_spec_ld='+b $libdir'
8231 hardcode_direct=no
8232 hardcode_shlibpath_var=no
8233 ;;
8234 *)
8235 hardcode_direct=yes
8236 export_dynamic_flag_spec='${wl}-E'
8237
8238 # hardcode_minus_L: Not really in the search PATH,
8239 # but as the default location of the library.
8240 hardcode_minus_L=yes
8241 ;;
8242 esac
8243 fi
8244 ;;
8245
8246 irix5* | irix6* | nonstopux*)
8247 if test "$GCC" = yes; then
8248 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'
8249 else
8250 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'
8251 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8252 fi
8253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8254 hardcode_libdir_separator=:
8255 link_all_deplibs=yes
8256 ;;
8257
8258 netbsd*)
8259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8261 else
8262 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8263 fi
8264 hardcode_libdir_flag_spec='-R$libdir'
8265 hardcode_direct=yes
8266 hardcode_shlibpath_var=no
8267 ;;
8268
8269 newsos6)
8270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8271 hardcode_direct=yes
8272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8273 hardcode_libdir_separator=:
8274 hardcode_shlibpath_var=no
8275 ;;
8276
8277 openbsd*)
8278 hardcode_direct=yes
8279 hardcode_shlibpath_var=no
8280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8284 export_dynamic_flag_spec='${wl}-E'
8285 else
8286 case $host_os in
8287 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8289 hardcode_libdir_flag_spec='-R$libdir'
8290 ;;
8291 *)
8292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8294 ;;
8295 esac
8296 fi
8297 ;;
8298
8299 os2*)
8300 hardcode_libdir_flag_spec='-L$libdir'
8301 hardcode_minus_L=yes
8302 allow_undefined_flag=unsupported
8303 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'
8304 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8305 ;;
8306
8307 osf3*)
8308 if test "$GCC" = yes; then
8309 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8310 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'
8311 else
8312 allow_undefined_flag=' -expect_unresolved \*'
8313 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'
8314 fi
8315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316 hardcode_libdir_separator=:
8317 ;;
8318
8319 osf4* | osf5*) # as osf3* with the addition of -msym flag
8320 if test "$GCC" = yes; then
8321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8322 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'
8323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324 else
8325 allow_undefined_flag=' -expect_unresolved \*'
8326 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'
8327 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8328 $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'
8329
8330 # Both c and cxx compiler support -rpath directly
8331 hardcode_libdir_flag_spec='-rpath $libdir'
8332 fi
8333 hardcode_libdir_separator=:
8334 ;;
8335
8336 solaris*)
8337 no_undefined_flag=' -z text'
8338 if test "$GCC" = yes; then
8339 wlarc='${wl}'
8340 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8341 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8342 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8343 else
8344 wlarc=''
8345 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8346 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8347 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8348 fi
8349 hardcode_libdir_flag_spec='-R$libdir'
8350 hardcode_shlibpath_var=no
8351 case $host_os in
8352 solaris2.[0-5] | solaris2.[0-5].*) ;;
8353 *)
8354 # The compiler driver will combine linker options so we
8355 # cannot just pass the convience library names through
8356 # without $wl, iff we do not link with $LD.
8357 # Luckily, gcc supports the same syntax we need for Sun Studio.
8358 # Supported since Solaris 2.6 (maybe 2.5.1?)
8359 case $wlarc in
8360 '')
8361 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8362 *)
8363 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' ;;
8364 esac ;;
8365 esac
8366 link_all_deplibs=yes
8367 ;;
8368
8369 sunos4*)
8370 if test "x$host_vendor" = xsequent; then
8371 # Use $CC to link under sequent, because it throws in some extra .o
8372 # files that make .init and .fini sections work.
8373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8374 else
8375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8376 fi
8377 hardcode_libdir_flag_spec='-L$libdir'
8378 hardcode_direct=yes
8379 hardcode_minus_L=yes
8380 hardcode_shlibpath_var=no
8381 ;;
8382
8383 sysv4)
8384 case $host_vendor in
8385 sni)
8386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8387 hardcode_direct=yes # is this really true???
8388 ;;
8389 siemens)
8390 ## LD is ld it makes a PLAMLIB
8391 ## CC just makes a GrossModule.
8392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8393 reload_cmds='$CC -r -o $output$reload_objs'
8394 hardcode_direct=no
8395 ;;
8396 motorola)
8397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8399 ;;
8400 esac
8401 runpath_var='LD_RUN_PATH'
8402 hardcode_shlibpath_var=no
8403 ;;
8404
8405 sysv4.3*)
8406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_shlibpath_var=no
8408 export_dynamic_flag_spec='-Bexport'
8409 ;;
8410
8411 sysv4*MP*)
8412 if test -d /usr/nec; then
8413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_shlibpath_var=no
8415 runpath_var=LD_RUN_PATH
8416 hardcode_runpath_var=yes
8417 ld_shlibs=yes
8418 fi
8419 ;;
8420
8421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8422 no_undefined_flag='${wl}-z,text'
8423 archive_cmds_need_lc=no
8424 hardcode_shlibpath_var=no
8425 runpath_var='LD_RUN_PATH'
8426
8427 if test "$GCC" = yes; then
8428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430 else
8431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 fi
8434 ;;
8435
8436 sysv5* | sco3.2v5* | sco5v6*)
8437 # Note: We can NOT use -z defs as we might desire, because we do not
8438 # link with -lc, and that would cause any symbols used from libc to
8439 # always be unresolved, which means just about no library would
8440 # ever link correctly. If we're not using GNU ld we use -z text
8441 # though, which does catch some bad symbols but isn't as heavy-handed
8442 # as -z defs.
8443 no_undefined_flag='${wl}-z,text'
8444 allow_undefined_flag='${wl}-z,nodefs'
8445 archive_cmds_need_lc=no
8446 hardcode_shlibpath_var=no
8447 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8448 hardcode_libdir_separator=':'
8449 link_all_deplibs=yes
8450 export_dynamic_flag_spec='${wl}-Bexport'
8451 runpath_var='LD_RUN_PATH'
8452
8453 if test "$GCC" = yes; then
8454 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8455 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456 else
8457 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 fi
8460 ;;
8461
8462 uts4*)
8463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8464 hardcode_libdir_flag_spec='-L$libdir'
8465 hardcode_shlibpath_var=no
8466 ;;
8467
8468 *)
8469 ld_shlibs=no
8470 ;;
8471 esac
8472 fi
8473
8474 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8475 echo "${ECHO_T}$ld_shlibs" >&6; }
8476 test "$ld_shlibs" = no && can_build_shared=no
8477
8478 #
8479 # Do we need to explicitly link libc?
8480 #
8481 case "x$archive_cmds_need_lc" in
8482 x|xyes)
8483 # Assume -lc should be added
8484 archive_cmds_need_lc=yes
8485
8486 if test "$enable_shared" = yes && test "$GCC" = yes; then
8487 case $archive_cmds in
8488 *'~'*)
8489 # FIXME: we may have to deal with multi-command sequences.
8490 ;;
8491 '$CC '*)
8492 # Test whether the compiler implicitly links with -lc since on some
8493 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8494 # to ld, don't add -lc before -lgcc.
8495 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8496 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8497 $rm conftest*
8498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8499
8500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501 (eval $ac_compile) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } 2>conftest.err; then
8505 soname=conftest
8506 lib=conftest
8507 libobjs=conftest.$ac_objext
8508 deplibs=
8509 wl=$lt_prog_compiler_wl
8510 pic_flag=$lt_prog_compiler_pic
8511 compiler_flags=-v
8512 linker_flags=-v
8513 verstring=
8514 output_objdir=.
8515 libname=conftest
8516 lt_save_allow_undefined_flag=$allow_undefined_flag
8517 allow_undefined_flag=
8518 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8519 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }
8523 then
8524 archive_cmds_need_lc=no
8525 else
8526 archive_cmds_need_lc=yes
8527 fi
8528 allow_undefined_flag=$lt_save_allow_undefined_flag
8529 else
8530 cat conftest.err 1>&5
8531 fi
8532 $rm conftest*
8533 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8534 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8535 ;;
8536 esac
8537 fi
8538 ;;
8539 esac
8540
8541 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8542 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8543 library_names_spec=
8544 libname_spec='lib$name'
8545 soname_spec=
8546 shrext_cmds=".so"
8547 postinstall_cmds=
8548 postuninstall_cmds=
8549 finish_cmds=
8550 finish_eval=
8551 shlibpath_var=
8552 shlibpath_overrides_runpath=unknown
8553 version_type=none
8554 dynamic_linker="$host_os ld.so"
8555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8556 if test "$GCC" = yes; then
8557 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8558 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8559 # if the path contains ";" then we assume it to be the separator
8560 # otherwise default to the standard path separator (i.e. ":") - it is
8561 # assumed that no part of a normal pathname contains ";" but that should
8562 # okay in the real world where ";" in dirpaths is itself problematic.
8563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8564 else
8565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8566 fi
8567 else
8568 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8569 fi
8570 need_lib_prefix=unknown
8571 hardcode_into_libs=no
8572
8573 # when you set need_version to no, make sure it does not cause -set_version
8574 # flags to be left without arguments
8575 need_version=unknown
8576
8577 case $host_os in
8578 aix3*)
8579 version_type=linux
8580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8581 shlibpath_var=LIBPATH
8582
8583 # AIX 3 has no versioning support, so we append a major version to the name.
8584 soname_spec='${libname}${release}${shared_ext}$major'
8585 ;;
8586
8587 aix4* | aix5*)
8588 version_type=linux
8589 need_lib_prefix=no
8590 need_version=no
8591 hardcode_into_libs=yes
8592 if test "$host_cpu" = ia64; then
8593 # AIX 5 supports IA64
8594 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8595 shlibpath_var=LD_LIBRARY_PATH
8596 else
8597 # With GCC up to 2.95.x, collect2 would create an import file
8598 # for dependence libraries. The import file would start with
8599 # the line `#! .'. This would cause the generated library to
8600 # depend on `.', always an invalid library. This was fixed in
8601 # development snapshots of GCC prior to 3.0.
8602 case $host_os in
8603 aix4 | aix4.[01] | aix4.[01].*)
8604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8605 echo ' yes '
8606 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8607 :
8608 else
8609 can_build_shared=no
8610 fi
8611 ;;
8612 esac
8613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8614 # soname into executable. Probably we can add versioning support to
8615 # collect2, so additional links can be useful in future.
8616 if test "$aix_use_runtimelinking" = yes; then
8617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8618 # instead of lib<name>.a to let people know that these are not
8619 # typical AIX shared libraries.
8620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8621 else
8622 # We preserve .a as extension for shared libraries through AIX4.2
8623 # and later when we are not doing run time linking.
8624 library_names_spec='${libname}${release}.a $libname.a'
8625 soname_spec='${libname}${release}${shared_ext}$major'
8626 fi
8627 shlibpath_var=LIBPATH
8628 fi
8629 ;;
8630
8631 amigaos*)
8632 library_names_spec='$libname.ixlibrary $libname.a'
8633 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8634 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'
8635 ;;
8636
8637 beos*)
8638 library_names_spec='${libname}${shared_ext}'
8639 dynamic_linker="$host_os ld.so"
8640 shlibpath_var=LIBRARY_PATH
8641 ;;
8642
8643 bsdi[45]*)
8644 version_type=linux
8645 need_version=no
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647 soname_spec='${libname}${release}${shared_ext}$major'
8648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8649 shlibpath_var=LD_LIBRARY_PATH
8650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8652 # the default ld.so.conf also contains /usr/contrib/lib and
8653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8654 # libtool to hard-code these into programs
8655 ;;
8656
8657 cygwin* | mingw* | pw32*)
8658 version_type=windows
8659 shrext_cmds=".dll"
8660 need_version=no
8661 need_lib_prefix=no
8662
8663 case $GCC,$host_os in
8664 yes,cygwin* | yes,mingw* | yes,pw32*)
8665 library_names_spec='$libname.dll.a'
8666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8667 postinstall_cmds='base_file=`basename \${file}`~
8668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8669 dldir=$destdir/`dirname \$dlpath`~
8670 test -d \$dldir || mkdir -p \$dldir~
8671 $install_prog $dir/$dlname \$dldir/$dlname~
8672 chmod a+x \$dldir/$dlname'
8673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8674 dlpath=$dir/\$dldll~
8675 $rm \$dlpath'
8676 shlibpath_overrides_runpath=yes
8677
8678 case $host_os in
8679 cygwin*)
8680 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8681 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8682 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8683 ;;
8684 mingw*)
8685 # MinGW DLLs use traditional 'lib' prefix
8686 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8687 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8688 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8689 # It is most probably a Windows format PATH printed by
8690 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8691 # path with ; separators, and with drive letters. We can handle the
8692 # drive letters (cygwin fileutils understands them), so leave them,
8693 # especially as we might pass files found there to a mingw objdump,
8694 # which wouldn't understand a cygwinified path. Ahh.
8695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8696 else
8697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8698 fi
8699 ;;
8700 pw32*)
8701 # pw32 DLLs use 'pw' prefix rather than 'lib'
8702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703 ;;
8704 esac
8705 ;;
8706
8707 *)
8708 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8709 ;;
8710 esac
8711 dynamic_linker='Win32 ld.exe'
8712 # FIXME: first we should search . and the directory the executable is in
8713 shlibpath_var=PATH
8714 ;;
8715
8716 darwin* | rhapsody*)
8717 dynamic_linker="$host_os dyld"
8718 version_type=darwin
8719 need_lib_prefix=no
8720 need_version=no
8721 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8722 soname_spec='${libname}${release}${major}$shared_ext'
8723 shlibpath_overrides_runpath=yes
8724 shlibpath_var=DYLD_LIBRARY_PATH
8725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8726 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8727 if test "$GCC" = yes; then
8728 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"`
8729 else
8730 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8731 fi
8732 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8733 ;;
8734
8735 dgux*)
8736 version_type=linux
8737 need_lib_prefix=no
8738 need_version=no
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8740 soname_spec='${libname}${release}${shared_ext}$major'
8741 shlibpath_var=LD_LIBRARY_PATH
8742 ;;
8743
8744 freebsd1*)
8745 dynamic_linker=no
8746 ;;
8747
8748 kfreebsd*-gnu)
8749 version_type=linux
8750 need_lib_prefix=no
8751 need_version=no
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8754 shlibpath_var=LD_LIBRARY_PATH
8755 shlibpath_overrides_runpath=no
8756 hardcode_into_libs=yes
8757 dynamic_linker='GNU ld.so'
8758 ;;
8759
8760 freebsd* | dragonfly*)
8761 # DragonFly does not have aout. When/if they implement a new
8762 # versioning mechanism, adjust this.
8763 if test -x /usr/bin/objformat; then
8764 objformat=`/usr/bin/objformat`
8765 else
8766 case $host_os in
8767 freebsd[123]*) objformat=aout ;;
8768 *) objformat=elf ;;
8769 esac
8770 fi
8771 version_type=freebsd-$objformat
8772 case $version_type in
8773 freebsd-elf*)
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8775 need_version=no
8776 need_lib_prefix=no
8777 ;;
8778 freebsd-*)
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8780 need_version=yes
8781 ;;
8782 esac
8783 shlibpath_var=LD_LIBRARY_PATH
8784 case $host_os in
8785 freebsd2*)
8786 shlibpath_overrides_runpath=yes
8787 ;;
8788 freebsd3.[01]* | freebsdelf3.[01]*)
8789 shlibpath_overrides_runpath=yes
8790 hardcode_into_libs=yes
8791 ;;
8792 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8793 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8794 shlibpath_overrides_runpath=no
8795 hardcode_into_libs=yes
8796 ;;
8797 freebsd*) # from 4.6 on
8798 shlibpath_overrides_runpath=yes
8799 hardcode_into_libs=yes
8800 ;;
8801 esac
8802 ;;
8803
8804 gnu*)
8805 version_type=linux
8806 need_lib_prefix=no
8807 need_version=no
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 hardcode_into_libs=yes
8812 ;;
8813
8814 hpux9* | hpux10* | hpux11*)
8815 # Give a soname corresponding to the major version so that dld.sl refuses to
8816 # link against other versions.
8817 version_type=sunos
8818 need_lib_prefix=no
8819 need_version=no
8820 case $host_cpu in
8821 ia64*)
8822 shrext_cmds='.so'
8823 hardcode_into_libs=yes
8824 dynamic_linker="$host_os dld.so"
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 if test "X$HPUX_IA64_MODE" = X32; then
8830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8831 else
8832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8833 fi
8834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8835 ;;
8836 hppa*64*)
8837 shrext_cmds='.sl'
8838 hardcode_into_libs=yes
8839 dynamic_linker="$host_os dld.sl"
8840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8846 ;;
8847 *)
8848 shrext_cmds='.sl'
8849 dynamic_linker="$host_os dld.sl"
8850 shlibpath_var=SHLIB_PATH
8851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 ;;
8855 esac
8856 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8857 postinstall_cmds='chmod 555 $lib'
8858 ;;
8859
8860 interix3*)
8861 version_type=linux
8862 need_lib_prefix=no
8863 need_version=no
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8867 shlibpath_var=LD_LIBRARY_PATH
8868 shlibpath_overrides_runpath=no
8869 hardcode_into_libs=yes
8870 ;;
8871
8872 irix5* | irix6* | nonstopux*)
8873 case $host_os in
8874 nonstopux*) version_type=nonstopux ;;
8875 *)
8876 if test "$lt_cv_prog_gnu_ld" = yes; then
8877 version_type=linux
8878 else
8879 version_type=irix
8880 fi ;;
8881 esac
8882 need_lib_prefix=no
8883 need_version=no
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8886 case $host_os in
8887 irix5* | nonstopux*)
8888 libsuff= shlibsuff=
8889 ;;
8890 *)
8891 case $LD in # libtool.m4 will add one of these switches to LD
8892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8893 libsuff= shlibsuff= libmagic=32-bit;;
8894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8895 libsuff=32 shlibsuff=N32 libmagic=N32;;
8896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8898 *) libsuff= shlibsuff= libmagic=never-match;;
8899 esac
8900 ;;
8901 esac
8902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8903 shlibpath_overrides_runpath=no
8904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8906 hardcode_into_libs=yes
8907 ;;
8908
8909 # No shared lib support for Linux oldld, aout, or coff.
8910 linux*oldld* | linux*aout* | linux*coff*)
8911 dynamic_linker=no
8912 ;;
8913
8914 # This must be Linux ELF.
8915 linux*)
8916 version_type=linux
8917 need_lib_prefix=no
8918 need_version=no
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 # This implies no fast_install, which is unacceptable.
8925 # Some rework will be needed to allow for fast_install
8926 # before this can be enabled.
8927 hardcode_into_libs=yes
8928
8929 # Append ld.so.conf contents to the search path
8930 if test -f /etc/ld.so.conf; then
8931 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' ' '`
8932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8933 fi
8934
8935 # We used to test for /lib/ld.so.1 and disable shared libraries on
8936 # powerpc, because MkLinux only supported shared libraries with the
8937 # GNU dynamic linker. Since this was broken with cross compilers,
8938 # most powerpc-linux boxes support dynamic linking these days and
8939 # people can always --disable-shared, the test was removed, and we
8940 # assume the GNU/Linux dynamic linker is in use.
8941 dynamic_linker='GNU/Linux ld.so'
8942 ;;
8943
8944 knetbsd*-gnu)
8945 version_type=linux
8946 need_lib_prefix=no
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=no
8952 hardcode_into_libs=yes
8953 dynamic_linker='GNU ld.so'
8954 ;;
8955
8956 netbsd*)
8957 version_type=sunos
8958 need_lib_prefix=no
8959 need_version=no
8960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8963 dynamic_linker='NetBSD (a.out) ld.so'
8964 else
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 dynamic_linker='NetBSD ld.elf_so'
8968 fi
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=yes
8971 hardcode_into_libs=yes
8972 ;;
8973
8974 newsos6)
8975 version_type=linux
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 shlibpath_overrides_runpath=yes
8979 ;;
8980
8981 nto-qnx*)
8982 version_type=linux
8983 need_lib_prefix=no
8984 need_version=no
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=yes
8989 ;;
8990
8991 openbsd*)
8992 version_type=sunos
8993 sys_lib_dlsearch_path_spec="/usr/lib"
8994 need_lib_prefix=no
8995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8996 case $host_os in
8997 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8998 *) need_version=no ;;
8999 esac
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9004 case $host_os in
9005 openbsd2.[89] | openbsd2.[89].*)
9006 shlibpath_overrides_runpath=no
9007 ;;
9008 *)
9009 shlibpath_overrides_runpath=yes
9010 ;;
9011 esac
9012 else
9013 shlibpath_overrides_runpath=yes
9014 fi
9015 ;;
9016
9017 os2*)
9018 libname_spec='$name'
9019 shrext_cmds=".dll"
9020 need_lib_prefix=no
9021 library_names_spec='$libname${shared_ext} $libname.a'
9022 dynamic_linker='OS/2 ld.exe'
9023 shlibpath_var=LIBPATH
9024 ;;
9025
9026 osf3* | osf4* | osf5*)
9027 version_type=osf
9028 need_lib_prefix=no
9029 need_version=no
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9035 ;;
9036
9037 solaris*)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 shlibpath_overrides_runpath=yes
9045 hardcode_into_libs=yes
9046 # ldd complains unless libraries are executable
9047 postinstall_cmds='chmod +x $lib'
9048 ;;
9049
9050 sunos4*)
9051 version_type=sunos
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=yes
9056 if test "$with_gnu_ld" = yes; then
9057 need_lib_prefix=no
9058 fi
9059 need_version=yes
9060 ;;
9061
9062 sysv4 | sysv4.3*)
9063 version_type=linux
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 case $host_vendor in
9068 sni)
9069 shlibpath_overrides_runpath=no
9070 need_lib_prefix=no
9071 export_dynamic_flag_spec='${wl}-Blargedynsym'
9072 runpath_var=LD_RUN_PATH
9073 ;;
9074 siemens)
9075 need_lib_prefix=no
9076 ;;
9077 motorola)
9078 need_lib_prefix=no
9079 need_version=no
9080 shlibpath_overrides_runpath=no
9081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9082 ;;
9083 esac
9084 ;;
9085
9086 sysv4*MP*)
9087 if test -d /usr/nec ;then
9088 version_type=linux
9089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9090 soname_spec='$libname${shared_ext}.$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 fi
9093 ;;
9094
9095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9096 version_type=freebsd-elf
9097 need_lib_prefix=no
9098 need_version=no
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 hardcode_into_libs=yes
9103 if test "$with_gnu_ld" = yes; then
9104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9105 shlibpath_overrides_runpath=no
9106 else
9107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9108 shlibpath_overrides_runpath=yes
9109 case $host_os in
9110 sco3.2v5*)
9111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9112 ;;
9113 esac
9114 fi
9115 sys_lib_dlsearch_path_spec='/usr/lib'
9116 ;;
9117
9118 uts4*)
9119 version_type=linux
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 ;;
9124
9125 *)
9126 dynamic_linker=no
9127 ;;
9128 esac
9129 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9130 echo "${ECHO_T}$dynamic_linker" >&6; }
9131 test "$dynamic_linker" = no && can_build_shared=no
9132
9133 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9134 if test "$GCC" = yes; then
9135 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9136 fi
9137
9138 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9139 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9140 hardcode_action=
9141 if test -n "$hardcode_libdir_flag_spec" || \
9142 test -n "$runpath_var" || \
9143 test "X$hardcode_automatic" = "Xyes" ; then
9144
9145 # We can hardcode non-existant directories.
9146 if test "$hardcode_direct" != no &&
9147 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9148 # have to relink, otherwise we might link with an installed library
9149 # when we should be linking with a yet-to-be-installed one
9150 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9151 test "$hardcode_minus_L" != no; then
9152 # Linking always hardcodes the temporary library directory.
9153 hardcode_action=relink
9154 else
9155 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9156 hardcode_action=immediate
9157 fi
9158 else
9159 # We cannot hardcode anything, or else we can only hardcode existing
9160 # directories.
9161 hardcode_action=unsupported
9162 fi
9163 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9164 echo "${ECHO_T}$hardcode_action" >&6; }
9165
9166 if test "$hardcode_action" = relink; then
9167 # Fast installation is not supported
9168 enable_fast_install=no
9169 elif test "$shlibpath_overrides_runpath" = yes ||
9170 test "$enable_shared" = no; then
9171 # Fast installation is not necessary
9172 enable_fast_install=needless
9173 fi
9174
9175 striplib=
9176 old_striplib=
9177 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9178 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9179 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9180 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9181 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9182 { echo "$as_me:$LINENO: result: yes" >&5
9183 echo "${ECHO_T}yes" >&6; }
9184 else
9185 # FIXME - insert some real tests, host_os isn't really good enough
9186 case $host_os in
9187 darwin*)
9188 if test -n "$STRIP" ; then
9189 striplib="$STRIP -x"
9190 { echo "$as_me:$LINENO: result: yes" >&5
9191 echo "${ECHO_T}yes" >&6; }
9192 else
9193 { echo "$as_me:$LINENO: result: no" >&5
9194 echo "${ECHO_T}no" >&6; }
9195 fi
9196 ;;
9197 *)
9198 { echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6; }
9200 ;;
9201 esac
9202 fi
9203
9204 if test "x$enable_dlopen" != xyes; then
9205 enable_dlopen=unknown
9206 enable_dlopen_self=unknown
9207 enable_dlopen_self_static=unknown
9208 else
9209 lt_cv_dlopen=no
9210 lt_cv_dlopen_libs=
9211
9212 case $host_os in
9213 beos*)
9214 lt_cv_dlopen="load_add_on"
9215 lt_cv_dlopen_libs=
9216 lt_cv_dlopen_self=yes
9217 ;;
9218
9219 mingw* | pw32*)
9220 lt_cv_dlopen="LoadLibrary"
9221 lt_cv_dlopen_libs=
9222 ;;
9223
9224 cygwin*)
9225 lt_cv_dlopen="dlopen"
9226 lt_cv_dlopen_libs=
9227 ;;
9228
9229 darwin*)
9230 # if libdl is installed we need to link against it
9231 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236 ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-ldl $LIBS"
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 char dlopen ();
9252 int
9253 main ()
9254 {
9255 return dlopen ();
9256 ;
9257 return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (ac_try="$ac_link"
9262 case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_link") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest$ac_exeext &&
9277 $as_test_x conftest$ac_exeext; then
9278 ac_cv_lib_dl_dlopen=yes
9279 else
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9282
9283 ac_cv_lib_dl_dlopen=no
9284 fi
9285
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287 conftest$ac_exeext conftest.$ac_ext
9288 LIBS=$ac_check_lib_save_LIBS
9289 fi
9290 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9291 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9292 if test $ac_cv_lib_dl_dlopen = yes; then
9293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9294 else
9295
9296 lt_cv_dlopen="dyld"
9297 lt_cv_dlopen_libs=
9298 lt_cv_dlopen_self=yes
9299
9300 fi
9301
9302 ;;
9303
9304 *)
9305 { echo "$as_me:$LINENO: checking for shl_load" >&5
9306 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9307 if test "${ac_cv_func_shl_load+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9318 #define shl_load innocuous_shl_load
9319
9320 /* System header to define __stub macros and hopefully few prototypes,
9321 which can conflict with char shl_load (); below.
9322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323 <limits.h> exists even on freestanding compilers. */
9324
9325 #ifdef __STDC__
9326 # include <limits.h>
9327 #else
9328 # include <assert.h>
9329 #endif
9330
9331 #undef shl_load
9332
9333 /* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 char shl_load ();
9340 /* The GNU C library defines this for functions which it implements
9341 to always fail with ENOSYS. Some functions are actually named
9342 something starting with __ and the normal name is an alias. */
9343 #if defined __stub_shl_load || defined __stub___shl_load
9344 choke me
9345 #endif
9346
9347 int
9348 main ()
9349 {
9350 return shl_load ();
9351 ;
9352 return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (ac_try="$ac_link"
9357 case "(($ac_try" in
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9360 esac
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_link") 2>conftest.er1
9363 ac_status=$?
9364 grep -v '^ *+' conftest.er1 >conftest.err
9365 rm -f conftest.er1
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && {
9369 test -z "$ac_c_werror_flag" ||
9370 test ! -s conftest.err
9371 } && test -s conftest$ac_exeext &&
9372 $as_test_x conftest$ac_exeext; then
9373 ac_cv_func_shl_load=yes
9374 else
9375 echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9377
9378 ac_cv_func_shl_load=no
9379 fi
9380
9381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9382 conftest$ac_exeext conftest.$ac_ext
9383 fi
9384 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9385 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9386 if test $ac_cv_func_shl_load = yes; then
9387 lt_cv_dlopen="shl_load"
9388 else
9389 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9390 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9391 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394 ac_check_lib_save_LIBS=$LIBS
9395 LIBS="-ldld $LIBS"
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h. */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402
9403 /* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9406 #ifdef __cplusplus
9407 extern "C"
9408 #endif
9409 char shl_load ();
9410 int
9411 main ()
9412 {
9413 return shl_load ();
9414 ;
9415 return 0;
9416 }
9417 _ACEOF
9418 rm -f conftest.$ac_objext conftest$ac_exeext
9419 if { (ac_try="$ac_link"
9420 case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9423 esac
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_link") 2>conftest.er1
9426 ac_status=$?
9427 grep -v '^ *+' conftest.er1 >conftest.err
9428 rm -f conftest.er1
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && {
9432 test -z "$ac_c_werror_flag" ||
9433 test ! -s conftest.err
9434 } && test -s conftest$ac_exeext &&
9435 $as_test_x conftest$ac_exeext; then
9436 ac_cv_lib_dld_shl_load=yes
9437 else
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9440
9441 ac_cv_lib_dld_shl_load=no
9442 fi
9443
9444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9445 conftest$ac_exeext conftest.$ac_ext
9446 LIBS=$ac_check_lib_save_LIBS
9447 fi
9448 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9449 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9450 if test $ac_cv_lib_dld_shl_load = yes; then
9451 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9452 else
9453 { echo "$as_me:$LINENO: checking for dlopen" >&5
9454 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9455 if test "${ac_cv_func_dlopen+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h. */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9466 #define dlopen innocuous_dlopen
9467
9468 /* System header to define __stub macros and hopefully few prototypes,
9469 which can conflict with char dlopen (); below.
9470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471 <limits.h> exists even on freestanding compilers. */
9472
9473 #ifdef __STDC__
9474 # include <limits.h>
9475 #else
9476 # include <assert.h>
9477 #endif
9478
9479 #undef dlopen
9480
9481 /* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
9484 #ifdef __cplusplus
9485 extern "C"
9486 #endif
9487 char dlopen ();
9488 /* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
9491 #if defined __stub_dlopen || defined __stub___dlopen
9492 choke me
9493 #endif
9494
9495 int
9496 main ()
9497 {
9498 return dlopen ();
9499 ;
9500 return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 } && test -s conftest$ac_exeext &&
9520 $as_test_x conftest$ac_exeext; then
9521 ac_cv_func_dlopen=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_cv_func_dlopen=no
9527 fi
9528
9529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9530 conftest$ac_exeext conftest.$ac_ext
9531 fi
9532 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9533 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9534 if test $ac_cv_func_dlopen = yes; then
9535 lt_cv_dlopen="dlopen"
9536 else
9537 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542 ac_check_lib_save_LIBS=$LIBS
9543 LIBS="-ldl $LIBS"
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char dlopen ();
9558 int
9559 main ()
9560 {
9561 return dlopen ();
9562 ;
9563 return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (ac_try="$ac_link"
9568 case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_link") 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest$ac_exeext &&
9583 $as_test_x conftest$ac_exeext; then
9584 ac_cv_lib_dl_dlopen=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_cv_lib_dl_dlopen=no
9590 fi
9591
9592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9593 conftest$ac_exeext conftest.$ac_ext
9594 LIBS=$ac_check_lib_save_LIBS
9595 fi
9596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9598 if test $ac_cv_lib_dl_dlopen = yes; then
9599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9600 else
9601 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 ac_check_lib_save_LIBS=$LIBS
9607 LIBS="-lsvld $LIBS"
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h. */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 char dlopen ();
9622 int
9623 main ()
9624 {
9625 return dlopen ();
9626 ;
9627 return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9632 case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext &&
9647 $as_test_x conftest$ac_exeext; then
9648 ac_cv_lib_svld_dlopen=yes
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653 ac_cv_lib_svld_dlopen=no
9654 fi
9655
9656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9657 conftest$ac_exeext conftest.$ac_ext
9658 LIBS=$ac_check_lib_save_LIBS
9659 fi
9660 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9661 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9662 if test $ac_cv_lib_svld_dlopen = yes; then
9663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9664 else
9665 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9666 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670 ac_check_lib_save_LIBS=$LIBS
9671 LIBS="-ldld $LIBS"
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h. */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char dld_link ();
9686 int
9687 main ()
9688 {
9689 return dld_link ();
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9696 case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_link") 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest$ac_exeext &&
9711 $as_test_x conftest$ac_exeext; then
9712 ac_cv_lib_dld_dld_link=yes
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 ac_cv_lib_dld_dld_link=no
9718 fi
9719
9720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9721 conftest$ac_exeext conftest.$ac_ext
9722 LIBS=$ac_check_lib_save_LIBS
9723 fi
9724 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9725 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9726 if test $ac_cv_lib_dld_dld_link = yes; then
9727 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9728 fi
9729
9730
9731 fi
9732
9733
9734 fi
9735
9736
9737 fi
9738
9739
9740 fi
9741
9742
9743 fi
9744
9745 ;;
9746 esac
9747
9748 if test "x$lt_cv_dlopen" != xno; then
9749 enable_dlopen=yes
9750 else
9751 enable_dlopen=no
9752 fi
9753
9754 case $lt_cv_dlopen in
9755 dlopen)
9756 save_CPPFLAGS="$CPPFLAGS"
9757 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9758
9759 save_LDFLAGS="$LDFLAGS"
9760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9761
9762 save_LIBS="$LIBS"
9763 LIBS="$lt_cv_dlopen_libs $LIBS"
9764
9765 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9766 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9767 if test "${lt_cv_dlopen_self+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770 if test "$cross_compiling" = yes; then :
9771 lt_cv_dlopen_self=cross
9772 else
9773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9774 lt_status=$lt_dlunknown
9775 cat > conftest.$ac_ext <<EOF
9776 #line 9776 "configure"
9777 #include "confdefs.h"
9778
9779 #if HAVE_DLFCN_H
9780 #include <dlfcn.h>
9781 #endif
9782
9783 #include <stdio.h>
9784
9785 #ifdef RTLD_GLOBAL
9786 # define LT_DLGLOBAL RTLD_GLOBAL
9787 #else
9788 # ifdef DL_GLOBAL
9789 # define LT_DLGLOBAL DL_GLOBAL
9790 # else
9791 # define LT_DLGLOBAL 0
9792 # endif
9793 #endif
9794
9795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9796 find out it does not work in some platform. */
9797 #ifndef LT_DLLAZY_OR_NOW
9798 # ifdef RTLD_LAZY
9799 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9800 # else
9801 # ifdef DL_LAZY
9802 # define LT_DLLAZY_OR_NOW DL_LAZY
9803 # else
9804 # ifdef RTLD_NOW
9805 # define LT_DLLAZY_OR_NOW RTLD_NOW
9806 # else
9807 # ifdef DL_NOW
9808 # define LT_DLLAZY_OR_NOW DL_NOW
9809 # else
9810 # define LT_DLLAZY_OR_NOW 0
9811 # endif
9812 # endif
9813 # endif
9814 # endif
9815 #endif
9816
9817 #ifdef __cplusplus
9818 extern "C" void exit (int);
9819 #endif
9820
9821 void fnord() { int i=42;}
9822 int main ()
9823 {
9824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9825 int status = $lt_dlunknown;
9826
9827 if (self)
9828 {
9829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9830 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9831 /* dlclose (self); */
9832 }
9833 else
9834 puts (dlerror ());
9835
9836 exit (status);
9837 }
9838 EOF
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9844 (./conftest; exit; ) >&5 2>/dev/null
9845 lt_status=$?
9846 case x$lt_status in
9847 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9848 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9849 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9850 esac
9851 else :
9852 # compilation failed
9853 lt_cv_dlopen_self=no
9854 fi
9855 fi
9856 rm -fr conftest*
9857
9858
9859 fi
9860 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9861 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9862
9863 if test "x$lt_cv_dlopen_self" = xyes; then
9864 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9865 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9866 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9867 if test "${lt_cv_dlopen_self_static+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870 if test "$cross_compiling" = yes; then :
9871 lt_cv_dlopen_self_static=cross
9872 else
9873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9874 lt_status=$lt_dlunknown
9875 cat > conftest.$ac_ext <<EOF
9876 #line 9876 "configure"
9877 #include "confdefs.h"
9878
9879 #if HAVE_DLFCN_H
9880 #include <dlfcn.h>
9881 #endif
9882
9883 #include <stdio.h>
9884
9885 #ifdef RTLD_GLOBAL
9886 # define LT_DLGLOBAL RTLD_GLOBAL
9887 #else
9888 # ifdef DL_GLOBAL
9889 # define LT_DLGLOBAL DL_GLOBAL
9890 # else
9891 # define LT_DLGLOBAL 0
9892 # endif
9893 #endif
9894
9895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9896 find out it does not work in some platform. */
9897 #ifndef LT_DLLAZY_OR_NOW
9898 # ifdef RTLD_LAZY
9899 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9900 # else
9901 # ifdef DL_LAZY
9902 # define LT_DLLAZY_OR_NOW DL_LAZY
9903 # else
9904 # ifdef RTLD_NOW
9905 # define LT_DLLAZY_OR_NOW RTLD_NOW
9906 # else
9907 # ifdef DL_NOW
9908 # define LT_DLLAZY_OR_NOW DL_NOW
9909 # else
9910 # define LT_DLLAZY_OR_NOW 0
9911 # endif
9912 # endif
9913 # endif
9914 # endif
9915 #endif
9916
9917 #ifdef __cplusplus
9918 extern "C" void exit (int);
9919 #endif
9920
9921 void fnord() { int i=42;}
9922 int main ()
9923 {
9924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9925 int status = $lt_dlunknown;
9926
9927 if (self)
9928 {
9929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9930 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9931 /* dlclose (self); */
9932 }
9933 else
9934 puts (dlerror ());
9935
9936 exit (status);
9937 }
9938 EOF
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9944 (./conftest; exit; ) >&5 2>/dev/null
9945 lt_status=$?
9946 case x$lt_status in
9947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9949 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9950 esac
9951 else :
9952 # compilation failed
9953 lt_cv_dlopen_self_static=no
9954 fi
9955 fi
9956 rm -fr conftest*
9957
9958
9959 fi
9960 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9961 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9962 fi
9963
9964 CPPFLAGS="$save_CPPFLAGS"
9965 LDFLAGS="$save_LDFLAGS"
9966 LIBS="$save_LIBS"
9967 ;;
9968 esac
9969
9970 case $lt_cv_dlopen_self in
9971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9972 *) enable_dlopen_self=unknown ;;
9973 esac
9974
9975 case $lt_cv_dlopen_self_static in
9976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9977 *) enable_dlopen_self_static=unknown ;;
9978 esac
9979 fi
9980
9981
9982 # Report which library types will actually be built
9983 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9984 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9985 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9986 echo "${ECHO_T}$can_build_shared" >&6; }
9987
9988 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9989 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9990 test "$can_build_shared" = "no" && enable_shared=no
9991
9992 # On AIX, shared libraries and static libraries use the same namespace, and
9993 # are all built from PIC.
9994 case $host_os in
9995 aix3*)
9996 test "$enable_shared" = yes && enable_static=no
9997 if test -n "$RANLIB"; then
9998 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9999 postinstall_cmds='$RANLIB $lib'
10000 fi
10001 ;;
10002
10003 aix4* | aix5*)
10004 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10005 test "$enable_shared" = yes && enable_static=no
10006 fi
10007 ;;
10008 esac
10009 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10010 echo "${ECHO_T}$enable_shared" >&6; }
10011
10012 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10013 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10014 # Make sure either enable_shared or enable_static is yes.
10015 test "$enable_shared" = yes || enable_static=yes
10016 { echo "$as_me:$LINENO: result: $enable_static" >&5
10017 echo "${ECHO_T}$enable_static" >&6; }
10018
10019 # The else clause should only fire when bootstrapping the
10020 # libtool distribution, otherwise you forgot to ship ltmain.sh
10021 # with your package, and you will get complaints that there are
10022 # no rules to generate ltmain.sh.
10023 if test -f "$ltmain"; then
10024 # See if we are running on zsh, and set the options which allow our commands through
10025 # without removal of \ escapes.
10026 if test -n "${ZSH_VERSION+set}" ; then
10027 setopt NO_GLOB_SUBST
10028 fi
10029 # Now quote all the things that may contain metacharacters while being
10030 # careful not to overquote the AC_SUBSTed values. We take copies of the
10031 # variables and quote the copies for generation of the libtool script.
10032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10033 SED SHELL STRIP \
10034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10036 deplibs_check_method reload_flag reload_cmds need_locks \
10037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10038 lt_cv_sys_global_symbol_to_c_name_address \
10039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10040 old_postinstall_cmds old_postuninstall_cmds \
10041 compiler \
10042 CC \
10043 LD \
10044 lt_prog_compiler_wl \
10045 lt_prog_compiler_pic \
10046 lt_prog_compiler_static \
10047 lt_prog_compiler_no_builtin_flag \
10048 export_dynamic_flag_spec \
10049 thread_safe_flag_spec \
10050 whole_archive_flag_spec \
10051 enable_shared_with_static_runtimes \
10052 old_archive_cmds \
10053 old_archive_from_new_cmds \
10054 predep_objects \
10055 postdep_objects \
10056 predeps \
10057 postdeps \
10058 compiler_lib_search_path \
10059 archive_cmds \
10060 archive_expsym_cmds \
10061 postinstall_cmds \
10062 postuninstall_cmds \
10063 old_archive_from_expsyms_cmds \
10064 allow_undefined_flag \
10065 no_undefined_flag \
10066 export_symbols_cmds \
10067 hardcode_libdir_flag_spec \
10068 hardcode_libdir_flag_spec_ld \
10069 hardcode_libdir_separator \
10070 hardcode_automatic \
10071 module_cmds \
10072 module_expsym_cmds \
10073 lt_cv_prog_compiler_c_o \
10074 exclude_expsyms \
10075 include_expsyms; do
10076
10077 case $var in
10078 old_archive_cmds | \
10079 old_archive_from_new_cmds | \
10080 archive_cmds | \
10081 archive_expsym_cmds | \
10082 module_cmds | \
10083 module_expsym_cmds | \
10084 old_archive_from_expsyms_cmds | \
10085 export_symbols_cmds | \
10086 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10087 postinstall_cmds | postuninstall_cmds | \
10088 old_postinstall_cmds | old_postuninstall_cmds | \
10089 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10090 # Double-quote double-evaled strings.
10091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10092 ;;
10093 *)
10094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10095 ;;
10096 esac
10097 done
10098
10099 case $lt_echo in
10100 *'\$0 --fallback-echo"')
10101 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10102 ;;
10103 esac
10104
10105 cfgfile="${ofile}T"
10106 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10107 $rm -f "$cfgfile"
10108 { echo "$as_me:$LINENO: creating $ofile" >&5
10109 echo "$as_me: creating $ofile" >&6;}
10110
10111 cat <<__EOF__ >> "$cfgfile"
10112 #! $SHELL
10113
10114 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10115 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10116 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10117 #
10118 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10119 # Free Software Foundation, Inc.
10120 #
10121 # This file is part of GNU Libtool:
10122 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10123 #
10124 # This program is free software; you can redistribute it and/or modify
10125 # it under the terms of the GNU General Public License as published by
10126 # the Free Software Foundation; either version 2 of the License, or
10127 # (at your option) any later version.
10128 #
10129 # This program is distributed in the hope that it will be useful, but
10130 # WITHOUT ANY WARRANTY; without even the implied warranty of
10131 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10132 # General Public License for more details.
10133 #
10134 # You should have received a copy of the GNU General Public License
10135 # along with this program; if not, write to the Free Software
10136 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10137 #
10138 # As a special exception to the GNU General Public License, if you
10139 # distribute this file as part of a program that contains a
10140 # configuration script generated by Autoconf, you may include it under
10141 # the same distribution terms that you use for the rest of that program.
10142
10143 # A sed program that does not truncate output.
10144 SED=$lt_SED
10145
10146 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10147 Xsed="$SED -e 1s/^X//"
10148
10149 # The HP-UX ksh and POSIX shell print the target directory to stdout
10150 # if CDPATH is set.
10151 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10152
10153 # The names of the tagged configurations supported by this script.
10154 available_tags=
10155
10156 # ### BEGIN LIBTOOL CONFIG
10157
10158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10159
10160 # Shell to use when invoking shell scripts.
10161 SHELL=$lt_SHELL
10162
10163 # Whether or not to build shared libraries.
10164 build_libtool_libs=$enable_shared
10165
10166 # Whether or not to build static libraries.
10167 build_old_libs=$enable_static
10168
10169 # Whether or not to add -lc for building shared libraries.
10170 build_libtool_need_lc=$archive_cmds_need_lc
10171
10172 # Whether or not to disallow shared libs when runtime libs are static
10173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10174
10175 # Whether or not to optimize for fast installation.
10176 fast_install=$enable_fast_install
10177
10178 # The host system.
10179 host_alias=$host_alias
10180 host=$host
10181 host_os=$host_os
10182
10183 # The build system.
10184 build_alias=$build_alias
10185 build=$build
10186 build_os=$build_os
10187
10188 # An echo program that does not interpret backslashes.
10189 echo=$lt_echo
10190
10191 # The archiver.
10192 AR=$lt_AR
10193 AR_FLAGS=$lt_AR_FLAGS
10194
10195 # A C compiler.
10196 LTCC=$lt_LTCC
10197
10198 # LTCC compiler flags.
10199 LTCFLAGS=$lt_LTCFLAGS
10200
10201 # A language-specific compiler.
10202 CC=$lt_compiler
10203
10204 # Is the compiler the GNU C compiler?
10205 with_gcc=$GCC
10206
10207 # An ERE matcher.
10208 EGREP=$lt_EGREP
10209
10210 # The linker used to build libraries.
10211 LD=$lt_LD
10212
10213 # Whether we need hard or soft links.
10214 LN_S=$lt_LN_S
10215
10216 # A BSD-compatible nm program.
10217 NM=$lt_NM
10218
10219 # A symbol stripping program
10220 STRIP=$lt_STRIP
10221
10222 # Used to examine libraries when file_magic_cmd begins "file"
10223 MAGIC_CMD=$MAGIC_CMD
10224
10225 # Used on cygwin: DLL creation program.
10226 DLLTOOL="$DLLTOOL"
10227
10228 # Used on cygwin: object dumper.
10229 OBJDUMP="$OBJDUMP"
10230
10231 # Used on cygwin: assembler.
10232 AS="$AS"
10233
10234 # The name of the directory that contains temporary libtool files.
10235 objdir=$objdir
10236
10237 # How to create reloadable object files.
10238 reload_flag=$lt_reload_flag
10239 reload_cmds=$lt_reload_cmds
10240
10241 # How to pass a linker flag through the compiler.
10242 wl=$lt_lt_prog_compiler_wl
10243
10244 # Object file suffix (normally "o").
10245 objext="$ac_objext"
10246
10247 # Old archive suffix (normally "a").
10248 libext="$libext"
10249
10250 # Shared library suffix (normally ".so").
10251 shrext_cmds='$shrext_cmds'
10252
10253 # Executable file suffix (normally "").
10254 exeext="$exeext"
10255
10256 # Additional compiler flags for building library objects.
10257 pic_flag=$lt_lt_prog_compiler_pic
10258 pic_mode=$pic_mode
10259
10260 # What is the maximum length of a command?
10261 max_cmd_len=$lt_cv_sys_max_cmd_len
10262
10263 # Does compiler simultaneously support -c and -o options?
10264 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10265
10266 # Must we lock files when doing compilation?
10267 need_locks=$lt_need_locks
10268
10269 # Do we need the lib prefix for modules?
10270 need_lib_prefix=$need_lib_prefix
10271
10272 # Do we need a version for libraries?
10273 need_version=$need_version
10274
10275 # Whether dlopen is supported.
10276 dlopen_support=$enable_dlopen
10277
10278 # Whether dlopen of programs is supported.
10279 dlopen_self=$enable_dlopen_self
10280
10281 # Whether dlopen of statically linked programs is supported.
10282 dlopen_self_static=$enable_dlopen_self_static
10283
10284 # Compiler flag to prevent dynamic linking.
10285 link_static_flag=$lt_lt_prog_compiler_static
10286
10287 # Compiler flag to turn off builtin functions.
10288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10289
10290 # Compiler flag to allow reflexive dlopens.
10291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10292
10293 # Compiler flag to generate shared objects directly from archives.
10294 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10295
10296 # Compiler flag to generate thread-safe objects.
10297 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10298
10299 # Library versioning type.
10300 version_type=$version_type
10301
10302 # Format of library name prefix.
10303 libname_spec=$lt_libname_spec
10304
10305 # List of archive names. First name is the real one, the rest are links.
10306 # The last name is the one that the linker finds with -lNAME.
10307 library_names_spec=$lt_library_names_spec
10308
10309 # The coded name of the library, if different from the real name.
10310 soname_spec=$lt_soname_spec
10311
10312 # Commands used to build and install an old-style archive.
10313 RANLIB=$lt_RANLIB
10314 old_archive_cmds=$lt_old_archive_cmds
10315 old_postinstall_cmds=$lt_old_postinstall_cmds
10316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10317
10318 # Create an old-style archive from a shared archive.
10319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10320
10321 # Create a temporary old-style archive to link instead of a shared archive.
10322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10323
10324 # Commands used to build and install a shared archive.
10325 archive_cmds=$lt_archive_cmds
10326 archive_expsym_cmds=$lt_archive_expsym_cmds
10327 postinstall_cmds=$lt_postinstall_cmds
10328 postuninstall_cmds=$lt_postuninstall_cmds
10329
10330 # Commands used to build a loadable module (assumed same as above if empty)
10331 module_cmds=$lt_module_cmds
10332 module_expsym_cmds=$lt_module_expsym_cmds
10333
10334 # Commands to strip libraries.
10335 old_striplib=$lt_old_striplib
10336 striplib=$lt_striplib
10337
10338 # Dependencies to place before the objects being linked to create a
10339 # shared library.
10340 predep_objects=$lt_predep_objects
10341
10342 # Dependencies to place after the objects being linked to create a
10343 # shared library.
10344 postdep_objects=$lt_postdep_objects
10345
10346 # Dependencies to place before the objects being linked to create a
10347 # shared library.
10348 predeps=$lt_predeps
10349
10350 # Dependencies to place after the objects being linked to create a
10351 # shared library.
10352 postdeps=$lt_postdeps
10353
10354 # The library search path used internally by the compiler when linking
10355 # a shared library.
10356 compiler_lib_search_path=$lt_compiler_lib_search_path
10357
10358 # Method to check whether dependent libraries are shared objects.
10359 deplibs_check_method=$lt_deplibs_check_method
10360
10361 # Command to use when deplibs_check_method == file_magic.
10362 file_magic_cmd=$lt_file_magic_cmd
10363
10364 # Flag that allows shared libraries with undefined symbols to be built.
10365 allow_undefined_flag=$lt_allow_undefined_flag
10366
10367 # Flag that forces no undefined symbols.
10368 no_undefined_flag=$lt_no_undefined_flag
10369
10370 # Commands used to finish a libtool library installation in a directory.
10371 finish_cmds=$lt_finish_cmds
10372
10373 # Same as above, but a single script fragment to be evaled but not shown.
10374 finish_eval=$lt_finish_eval
10375
10376 # Take the output of nm and produce a listing of raw symbols and C names.
10377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10378
10379 # Transform the output of nm in a proper C declaration
10380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10381
10382 # Transform the output of nm in a C name address pair
10383 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10384
10385 # This is the shared library runtime path variable.
10386 runpath_var=$runpath_var
10387
10388 # This is the shared library path variable.
10389 shlibpath_var=$shlibpath_var
10390
10391 # Is shlibpath searched before the hard-coded library search path?
10392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10393
10394 # How to hardcode a shared library path into an executable.
10395 hardcode_action=$hardcode_action
10396
10397 # Whether we should hardcode library paths into libraries.
10398 hardcode_into_libs=$hardcode_into_libs
10399
10400 # Flag to hardcode \$libdir into a binary during linking.
10401 # This must work even if \$libdir does not exist.
10402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10403
10404 # If ld is used when linking, flag to hardcode \$libdir into
10405 # a binary during linking. This must work even if \$libdir does
10406 # not exist.
10407 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10408
10409 # Whether we need a single -rpath flag with a separated argument.
10410 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10411
10412 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10413 # resulting binary.
10414 hardcode_direct=$hardcode_direct
10415
10416 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10417 # resulting binary.
10418 hardcode_minus_L=$hardcode_minus_L
10419
10420 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10421 # the resulting binary.
10422 hardcode_shlibpath_var=$hardcode_shlibpath_var
10423
10424 # Set to yes if building a shared library automatically hardcodes DIR into the library
10425 # and all subsequent libraries and executables linked against it.
10426 hardcode_automatic=$hardcode_automatic
10427
10428 # Variables whose values should be saved in libtool wrapper scripts and
10429 # restored at relink time.
10430 variables_saved_for_relink="$variables_saved_for_relink"
10431
10432 # Whether libtool must link a program against all its dependency libraries.
10433 link_all_deplibs=$link_all_deplibs
10434
10435 # Compile-time system search path for libraries
10436 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10437
10438 # Run-time system search path for libraries
10439 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10440
10441 # Fix the shell variable \$srcfile for the compiler.
10442 fix_srcfile_path="$fix_srcfile_path"
10443
10444 # Set to yes if exported symbols are required.
10445 always_export_symbols=$always_export_symbols
10446
10447 # The commands to list exported symbols.
10448 export_symbols_cmds=$lt_export_symbols_cmds
10449
10450 # The commands to extract the exported symbol list from a shared archive.
10451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10452
10453 # Symbols that should not be listed in the preloaded symbols.
10454 exclude_expsyms=$lt_exclude_expsyms
10455
10456 # Symbols that must always be exported.
10457 include_expsyms=$lt_include_expsyms
10458
10459 # ### END LIBTOOL CONFIG
10460
10461 __EOF__
10462
10463
10464 case $host_os in
10465 aix3*)
10466 cat <<\EOF >> "$cfgfile"
10467
10468 # AIX sometimes has problems with the GCC collect2 program. For some
10469 # reason, if we set the COLLECT_NAMES environment variable, the problems
10470 # vanish in a puff of smoke.
10471 if test "X${COLLECT_NAMES+set}" != Xset; then
10472 COLLECT_NAMES=
10473 export COLLECT_NAMES
10474 fi
10475 EOF
10476 ;;
10477 esac
10478
10479 # We use sed instead of cat because bash on DJGPP gets confused if
10480 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10481 # text mode, it properly converts lines to CR/LF. This bash problem
10482 # is reportedly fixed, but why not run on old versions too?
10483 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10484
10485 mv -f "$cfgfile" "$ofile" || \
10486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10487 chmod +x "$ofile"
10488
10489 else
10490 # If there is no Makefile yet, we rely on a make rule to execute
10491 # `config.status --recheck' to rerun these tests and create the
10492 # libtool script then.
10493 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10494 if test -f "$ltmain_in"; then
10495 test -f Makefile && make "$ltmain"
10496 fi
10497 fi
10498
10499
10500 ac_ext=c
10501 ac_cpp='$CPP $CPPFLAGS'
10502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10505
10506 CC="$lt_save_CC"
10507
10508
10509 # Check whether --with-tags was given.
10510 if test "${with_tags+set}" = set; then
10511 withval=$with_tags; tagnames="$withval"
10512 fi
10513
10514
10515 if test -f "$ltmain" && test -n "$tagnames"; then
10516 if test ! -f "${ofile}"; then
10517 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10518 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10519 fi
10520
10521 if test -z "$LTCC"; then
10522 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10523 if test -z "$LTCC"; then
10524 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10525 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10526 else
10527 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10528 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10529 fi
10530 fi
10531 if test -z "$LTCFLAGS"; then
10532 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10533 fi
10534
10535 # Extract list of available tagged configurations in $ofile.
10536 # Note that this assumes the entire list is on one line.
10537 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10538
10539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10540 for tagname in $tagnames; do
10541 IFS="$lt_save_ifs"
10542 # Check whether tagname contains only valid characters
10543 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10544 "") ;;
10545 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10546 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10547 { (exit 1); exit 1; }; }
10548 ;;
10549 esac
10550
10551 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10552 then
10553 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10554 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10555 { (exit 1); exit 1; }; }
10556 fi
10557
10558 # Update the list of available tags.
10559 if test -n "$tagname"; then
10560 echo appending configuration tag \"$tagname\" to $ofile
10561
10562 case $tagname in
10563 CXX)
10564 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10565 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10566 (test "X$CXX" != "Xg++"))) ; then
10567 ac_ext=cpp
10568 ac_cpp='$CXXCPP $CPPFLAGS'
10569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10572
10573
10574
10575
10576 archive_cmds_need_lc_CXX=no
10577 allow_undefined_flag_CXX=
10578 always_export_symbols_CXX=no
10579 archive_expsym_cmds_CXX=
10580 export_dynamic_flag_spec_CXX=
10581 hardcode_direct_CXX=no
10582 hardcode_libdir_flag_spec_CXX=
10583 hardcode_libdir_flag_spec_ld_CXX=
10584 hardcode_libdir_separator_CXX=
10585 hardcode_minus_L_CXX=no
10586 hardcode_shlibpath_var_CXX=unsupported
10587 hardcode_automatic_CXX=no
10588 module_cmds_CXX=
10589 module_expsym_cmds_CXX=
10590 link_all_deplibs_CXX=unknown
10591 old_archive_cmds_CXX=$old_archive_cmds
10592 no_undefined_flag_CXX=
10593 whole_archive_flag_spec_CXX=
10594 enable_shared_with_static_runtimes_CXX=no
10595
10596 # Dependencies to place before and after the object being linked:
10597 predep_objects_CXX=
10598 postdep_objects_CXX=
10599 predeps_CXX=
10600 postdeps_CXX=
10601 compiler_lib_search_path_CXX=
10602
10603 # Source file extension for C++ test sources.
10604 ac_ext=cpp
10605
10606 # Object file extension for compiled C++ test sources.
10607 objext=o
10608 objext_CXX=$objext
10609
10610 # Code to be used in simple compile tests
10611 lt_simple_compile_test_code="int some_variable = 0;\n"
10612
10613 # Code to be used in simple link tests
10614 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10615
10616 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10617
10618 # If no C compiler was specified, use CC.
10619 LTCC=${LTCC-"$CC"}
10620
10621 # If no C compiler flags were specified, use CFLAGS.
10622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10623
10624 # Allow CC to be a program name with arguments.
10625 compiler=$CC
10626
10627
10628 # save warnings/boilerplate of simple test code
10629 ac_outfile=conftest.$ac_objext
10630 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10631 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10632 _lt_compiler_boilerplate=`cat conftest.err`
10633 $rm conftest*
10634
10635 ac_outfile=conftest.$ac_objext
10636 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10637 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10638 _lt_linker_boilerplate=`cat conftest.err`
10639 $rm conftest*
10640
10641
10642 # Allow CC to be a program name with arguments.
10643 lt_save_CC=$CC
10644 lt_save_LD=$LD
10645 lt_save_GCC=$GCC
10646 GCC=$GXX
10647 lt_save_with_gnu_ld=$with_gnu_ld
10648 lt_save_path_LD=$lt_cv_path_LD
10649 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10650 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10651 else
10652 $as_unset lt_cv_prog_gnu_ld
10653 fi
10654 if test -n "${lt_cv_path_LDCXX+set}"; then
10655 lt_cv_path_LD=$lt_cv_path_LDCXX
10656 else
10657 $as_unset lt_cv_path_LD
10658 fi
10659 test -z "${LDCXX+set}" || LD=$LDCXX
10660 CC=${CXX-"c++"}
10661 compiler=$CC
10662 compiler_CXX=$CC
10663 for cc_temp in $compiler""; do
10664 case $cc_temp in
10665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10667 \-*) ;;
10668 *) break;;
10669 esac
10670 done
10671 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10672
10673
10674 # We don't want -fno-exception wen compiling C++ code, so set the
10675 # no_builtin_flag separately
10676 if test "$GXX" = yes; then
10677 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10678 else
10679 lt_prog_compiler_no_builtin_flag_CXX=
10680 fi
10681
10682 if test "$GXX" = yes; then
10683 # Set up default GNU C++ configuration
10684
10685
10686 # Check whether --with-gnu-ld was given.
10687 if test "${with_gnu_ld+set}" = set; then
10688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10689 else
10690 with_gnu_ld=no
10691 fi
10692
10693 ac_prog=ld
10694 if test "$GCC" = yes; then
10695 # Check if gcc -print-prog-name=ld gives a path.
10696 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10697 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10698 case $host in
10699 *-*-mingw*)
10700 # gcc leaves a trailing carriage return which upsets mingw
10701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10702 *)
10703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10704 esac
10705 case $ac_prog in
10706 # Accept absolute paths.
10707 [\\/]* | ?:[\\/]*)
10708 re_direlt='/[^/][^/]*/\.\./'
10709 # Canonicalize the pathname of ld
10710 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10711 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10712 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10713 done
10714 test -z "$LD" && LD="$ac_prog"
10715 ;;
10716 "")
10717 # If it fails, then pretend we aren't using GCC.
10718 ac_prog=ld
10719 ;;
10720 *)
10721 # If it is relative, then search for the first ld in PATH.
10722 with_gnu_ld=unknown
10723 ;;
10724 esac
10725 elif test "$with_gnu_ld" = yes; then
10726 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10727 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10728 else
10729 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10730 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10731 fi
10732 if test "${lt_cv_path_LD+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735 if test -z "$LD"; then
10736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10737 for ac_dir in $PATH; do
10738 IFS="$lt_save_ifs"
10739 test -z "$ac_dir" && ac_dir=.
10740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10741 lt_cv_path_LD="$ac_dir/$ac_prog"
10742 # Check to see if the program is GNU ld. I'd rather use --version,
10743 # but apparently some variants of GNU ld only accept -v.
10744 # Break only if it was the GNU/non-GNU ld that we prefer.
10745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10746 *GNU* | *'with BFD'*)
10747 test "$with_gnu_ld" != no && break
10748 ;;
10749 *)
10750 test "$with_gnu_ld" != yes && break
10751 ;;
10752 esac
10753 fi
10754 done
10755 IFS="$lt_save_ifs"
10756 else
10757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10758 fi
10759 fi
10760
10761 LD="$lt_cv_path_LD"
10762 if test -n "$LD"; then
10763 { echo "$as_me:$LINENO: result: $LD" >&5
10764 echo "${ECHO_T}$LD" >&6; }
10765 else
10766 { echo "$as_me:$LINENO: result: no" >&5
10767 echo "${ECHO_T}no" >&6; }
10768 fi
10769 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10770 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10771 { (exit 1); exit 1; }; }
10772 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10773 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10774 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10778 case `$LD -v 2>&1 </dev/null` in
10779 *GNU* | *'with BFD'*)
10780 lt_cv_prog_gnu_ld=yes
10781 ;;
10782 *)
10783 lt_cv_prog_gnu_ld=no
10784 ;;
10785 esac
10786 fi
10787 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10788 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10789 with_gnu_ld=$lt_cv_prog_gnu_ld
10790
10791
10792
10793 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10794 # archiving commands below assume that GNU ld is being used.
10795 if test "$with_gnu_ld" = yes; then
10796 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10797 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'
10798
10799 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10801
10802 # If archive_cmds runs LD, not CC, wlarc should be empty
10803 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10804 # investigate it a little bit more. (MM)
10805 wlarc='${wl}'
10806
10807 # ancient GNU ld didn't support --whole-archive et. al.
10808 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10809 grep 'no-whole-archive' > /dev/null; then
10810 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10811 else
10812 whole_archive_flag_spec_CXX=
10813 fi
10814 else
10815 with_gnu_ld=no
10816 wlarc=
10817
10818 # A generic and very simple default shared library creation
10819 # command for GNU C++ for the case where it uses the native
10820 # linker, instead of GNU ld. If possible, this setting should
10821 # overridden to take advantage of the native linker features on
10822 # the platform it is being used on.
10823 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10824 fi
10825
10826 # Commands to make compiler produce verbose output that lists
10827 # what "hidden" libraries, object files and flags are used when
10828 # linking a shared library.
10829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10830
10831 else
10832 GXX=no
10833 with_gnu_ld=no
10834 wlarc=
10835 fi
10836
10837 # PORTME: fill in a description of your system's C++ link characteristics
10838 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10840 ld_shlibs_CXX=yes
10841 case $host_os in
10842 aix3*)
10843 # FIXME: insert proper C++ library support
10844 ld_shlibs_CXX=no
10845 ;;
10846 aix4* | aix5*)
10847 if test "$host_cpu" = ia64; then
10848 # On IA64, the linker does run time linking by default, so we don't
10849 # have to do anything special.
10850 aix_use_runtimelinking=no
10851 exp_sym_flag='-Bexport'
10852 no_entry_flag=""
10853 else
10854 aix_use_runtimelinking=no
10855
10856 # Test if we are trying to use run time linking or normal
10857 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10858 # need to do runtime linking.
10859 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10860 for ld_flag in $LDFLAGS; do
10861 case $ld_flag in
10862 *-brtl*)
10863 aix_use_runtimelinking=yes
10864 break
10865 ;;
10866 esac
10867 done
10868 ;;
10869 esac
10870
10871 exp_sym_flag='-bexport'
10872 no_entry_flag='-bnoentry'
10873 fi
10874
10875 # When large executables or shared objects are built, AIX ld can
10876 # have problems creating the table of contents. If linking a library
10877 # or program results in "error TOC overflow" add -mminimal-toc to
10878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10880
10881 archive_cmds_CXX=''
10882 hardcode_direct_CXX=yes
10883 hardcode_libdir_separator_CXX=':'
10884 link_all_deplibs_CXX=yes
10885
10886 if test "$GXX" = yes; then
10887 case $host_os in aix4.[012]|aix4.[012].*)
10888 # We only want to do this on AIX 4.2 and lower, the check
10889 # below for broken collect2 doesn't work under 4.3+
10890 collect2name=`${CC} -print-prog-name=collect2`
10891 if test -f "$collect2name" && \
10892 strings "$collect2name" | grep resolve_lib_name >/dev/null
10893 then
10894 # We have reworked collect2
10895 hardcode_direct_CXX=yes
10896 else
10897 # We have old collect2
10898 hardcode_direct_CXX=unsupported
10899 # It fails to find uninstalled libraries when the uninstalled
10900 # path is not listed in the libpath. Setting hardcode_minus_L
10901 # to unsupported forces relinking
10902 hardcode_minus_L_CXX=yes
10903 hardcode_libdir_flag_spec_CXX='-L$libdir'
10904 hardcode_libdir_separator_CXX=
10905 fi
10906 ;;
10907 esac
10908 shared_flag='-shared'
10909 if test "$aix_use_runtimelinking" = yes; then
10910 shared_flag="$shared_flag "'${wl}-G'
10911 fi
10912 else
10913 # not using gcc
10914 if test "$host_cpu" = ia64; then
10915 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10916 # chokes on -Wl,-G. The following line is correct:
10917 shared_flag='-G'
10918 else
10919 if test "$aix_use_runtimelinking" = yes; then
10920 shared_flag='${wl}-G'
10921 else
10922 shared_flag='${wl}-bM:SRE'
10923 fi
10924 fi
10925 fi
10926
10927 # It seems that -bexpall does not export symbols beginning with
10928 # underscore (_), so it is better to generate a list of symbols to export.
10929 always_export_symbols_CXX=yes
10930 if test "$aix_use_runtimelinking" = yes; then
10931 # Warning - without using the other runtime loading flags (-brtl),
10932 # -berok will link without error, but may produce a broken library.
10933 allow_undefined_flag_CXX='-berok'
10934 # Determine the default libpath from the value encoded in an empty executable.
10935 cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h. */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941
10942 int
10943 main ()
10944 {
10945
10946 ;
10947 return 0;
10948 }
10949 _ACEOF
10950 rm -f conftest.$ac_objext conftest$ac_exeext
10951 if { (ac_try="$ac_link"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_link") 2>conftest.er1
10958 ac_status=$?
10959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } && {
10964 test -z "$ac_cxx_werror_flag" ||
10965 test ! -s conftest.err
10966 } && test -s conftest$ac_exeext &&
10967 $as_test_x conftest$ac_exeext; then
10968
10969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10970 }'`
10971 # Check for a 64-bit object if we didn't find anything.
10972 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; }
10973 }'`; fi
10974 else
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10977
10978
10979 fi
10980
10981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10982 conftest$ac_exeext conftest.$ac_ext
10983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10984
10985 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10986
10987 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"
10988 else
10989 if test "$host_cpu" = ia64; then
10990 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10991 allow_undefined_flag_CXX="-z nodefs"
10992 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"
10993 else
10994 # Determine the default libpath from the value encoded in an empty executable.
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001
11002 int
11003 main ()
11004 {
11005
11006 ;
11007 return 0;
11008 }
11009 _ACEOF
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } && {
11024 test -z "$ac_cxx_werror_flag" ||
11025 test ! -s conftest.err
11026 } && test -s conftest$ac_exeext &&
11027 $as_test_x conftest$ac_exeext; then
11028
11029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11030 }'`
11031 # Check for a 64-bit object if we didn't find anything.
11032 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; }
11033 }'`; fi
11034 else
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038
11039 fi
11040
11041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11042 conftest$ac_exeext conftest.$ac_ext
11043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11044
11045 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11046 # Warning - without using the other run time loading flags,
11047 # -berok will link without error, but may produce a broken library.
11048 no_undefined_flag_CXX=' ${wl}-bernotok'
11049 allow_undefined_flag_CXX=' ${wl}-berok'
11050 # Exported symbols can be pulled into shared objects from archives
11051 whole_archive_flag_spec_CXX='$convenience'
11052 archive_cmds_need_lc_CXX=yes
11053 # This is similar to how AIX traditionally builds its shared libraries.
11054 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'
11055 fi
11056 fi
11057 ;;
11058
11059 beos*)
11060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11061 allow_undefined_flag_CXX=unsupported
11062 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11063 # support --undefined. This deserves some investigation. FIXME
11064 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11065 else
11066 ld_shlibs_CXX=no
11067 fi
11068 ;;
11069
11070 chorus*)
11071 case $cc_basename in
11072 *)
11073 # FIXME: insert proper C++ library support
11074 ld_shlibs_CXX=no
11075 ;;
11076 esac
11077 ;;
11078
11079 cygwin* | mingw* | pw32*)
11080 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11081 # as there is no search path for DLLs.
11082 hardcode_libdir_flag_spec_CXX='-L$libdir'
11083 allow_undefined_flag_CXX=unsupported
11084 always_export_symbols_CXX=no
11085 enable_shared_with_static_runtimes_CXX=yes
11086
11087 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11088 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'
11089 # If the export-symbols file already is a .def file (1st line
11090 # is EXPORTS), use it as is; otherwise, prepend...
11091 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11092 cp $export_symbols $output_objdir/$soname.def;
11093 else
11094 echo EXPORTS > $output_objdir/$soname.def;
11095 cat $export_symbols >> $output_objdir/$soname.def;
11096 fi~
11097 $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'
11098 else
11099 ld_shlibs_CXX=no
11100 fi
11101 ;;
11102 darwin* | rhapsody*)
11103 case $host_os in
11104 rhapsody* | darwin1.[012])
11105 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11106 ;;
11107 *) # Darwin 1.3 on
11108 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11109 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11110 else
11111 case ${MACOSX_DEPLOYMENT_TARGET} in
11112 10.[012])
11113 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11114 ;;
11115 10.*)
11116 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11117 ;;
11118 esac
11119 fi
11120 ;;
11121 esac
11122 archive_cmds_need_lc_CXX=no
11123 hardcode_direct_CXX=no
11124 hardcode_automatic_CXX=yes
11125 hardcode_shlibpath_var_CXX=unsupported
11126 whole_archive_flag_spec_CXX=''
11127 link_all_deplibs_CXX=yes
11128
11129 if test "$GXX" = yes ; then
11130 lt_int_apple_cc_single_mod=no
11131 output_verbose_link_cmd='echo'
11132 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11133 lt_int_apple_cc_single_mod=yes
11134 fi
11135 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11136 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11137 else
11138 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'
11139 fi
11140 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11142 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11143 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}'
11144 else
11145 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}'
11146 fi
11147 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}'
11148 else
11149 case $cc_basename in
11150 xlc*)
11151 output_verbose_link_cmd='echo'
11152 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'
11153 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11155 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}'
11156 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}'
11157 ;;
11158 *)
11159 ld_shlibs_CXX=no
11160 ;;
11161 esac
11162 fi
11163 ;;
11164
11165 dgux*)
11166 case $cc_basename in
11167 ec++*)
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11170 ;;
11171 ghcx*)
11172 # Green Hills C++ Compiler
11173 # FIXME: insert proper C++ library support
11174 ld_shlibs_CXX=no
11175 ;;
11176 *)
11177 # FIXME: insert proper C++ library support
11178 ld_shlibs_CXX=no
11179 ;;
11180 esac
11181 ;;
11182 freebsd[12]*)
11183 # C++ shared libraries reported to be fairly broken before switch to ELF
11184 ld_shlibs_CXX=no
11185 ;;
11186 freebsd-elf*)
11187 archive_cmds_need_lc_CXX=no
11188 ;;
11189 freebsd* | kfreebsd*-gnu | dragonfly*)
11190 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11191 # conventions
11192 ld_shlibs_CXX=yes
11193 ;;
11194 gnu*)
11195 ;;
11196 hpux9*)
11197 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11198 hardcode_libdir_separator_CXX=:
11199 export_dynamic_flag_spec_CXX='${wl}-E'
11200 hardcode_direct_CXX=yes
11201 hardcode_minus_L_CXX=yes # Not in the search PATH,
11202 # but as the default
11203 # location of the library.
11204
11205 case $cc_basename in
11206 CC*)
11207 # FIXME: insert proper C++ library support
11208 ld_shlibs_CXX=no
11209 ;;
11210 aCC*)
11211 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'
11212 # Commands to make compiler produce verbose output that lists
11213 # what "hidden" libraries, object files and flags are used when
11214 # linking a shared library.
11215 #
11216 # There doesn't appear to be a way to prevent this compiler from
11217 # explicitly linking system object files so we need to strip them
11218 # from the output so that they don't get included in the library
11219 # dependencies.
11220 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'
11221 ;;
11222 *)
11223 if test "$GXX" = yes; then
11224 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'
11225 else
11226 # FIXME: insert proper C++ library support
11227 ld_shlibs_CXX=no
11228 fi
11229 ;;
11230 esac
11231 ;;
11232 hpux10*|hpux11*)
11233 if test $with_gnu_ld = no; then
11234 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11235 hardcode_libdir_separator_CXX=:
11236
11237 case $host_cpu in
11238 hppa*64*|ia64*)
11239 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11240 ;;
11241 *)
11242 export_dynamic_flag_spec_CXX='${wl}-E'
11243 ;;
11244 esac
11245 fi
11246 case $host_cpu in
11247 hppa*64*|ia64*)
11248 hardcode_direct_CXX=no
11249 hardcode_shlibpath_var_CXX=no
11250 ;;
11251 *)
11252 hardcode_direct_CXX=yes
11253 hardcode_minus_L_CXX=yes # Not in the search PATH,
11254 # but as the default
11255 # location of the library.
11256 ;;
11257 esac
11258
11259 case $cc_basename in
11260 CC*)
11261 # FIXME: insert proper C++ library support
11262 ld_shlibs_CXX=no
11263 ;;
11264 aCC*)
11265 case $host_cpu in
11266 hppa*64*)
11267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11268 ;;
11269 ia64*)
11270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11271 ;;
11272 *)
11273 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11274 ;;
11275 esac
11276 # Commands to make compiler produce verbose output that lists
11277 # what "hidden" libraries, object files and flags are used when
11278 # linking a shared library.
11279 #
11280 # There doesn't appear to be a way to prevent this compiler from
11281 # explicitly linking system object files so we need to strip them
11282 # from the output so that they don't get included in the library
11283 # dependencies.
11284 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'
11285 ;;
11286 *)
11287 if test "$GXX" = yes; then
11288 if test $with_gnu_ld = no; then
11289 case $host_cpu in
11290 hppa*64*)
11291 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11292 ;;
11293 ia64*)
11294 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11295 ;;
11296 *)
11297 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'
11298 ;;
11299 esac
11300 fi
11301 else
11302 # FIXME: insert proper C++ library support
11303 ld_shlibs_CXX=no
11304 fi
11305 ;;
11306 esac
11307 ;;
11308 interix3*)
11309 hardcode_direct_CXX=no
11310 hardcode_shlibpath_var_CXX=no
11311 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11312 export_dynamic_flag_spec_CXX='${wl}-E'
11313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11314 # Instead, shared libraries are loaded at an image base (0x10000000 by
11315 # default) and relocated if they conflict, which is a slow very memory
11316 # consuming and fragmenting process. To avoid this, we pick a random,
11317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11319 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'
11320 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'
11321 ;;
11322 irix5* | irix6*)
11323 case $cc_basename in
11324 CC*)
11325 # SGI C++
11326 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'
11327
11328 # Archives containing C++ object files must be created using
11329 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11330 # necessary to make sure instantiated templates are included
11331 # in the archive.
11332 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11333 ;;
11334 *)
11335 if test "$GXX" = yes; then
11336 if test "$with_gnu_ld" = no; then
11337 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'
11338 else
11339 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'
11340 fi
11341 fi
11342 link_all_deplibs_CXX=yes
11343 ;;
11344 esac
11345 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11346 hardcode_libdir_separator_CXX=:
11347 ;;
11348 linux*)
11349 case $cc_basename in
11350 KCC*)
11351 # Kuck and Associates, Inc. (KAI) C++ Compiler
11352
11353 # KCC will only create a shared library if the output file
11354 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11355 # to its proper name (with version) after linking.
11356 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'
11357 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'
11358 # Commands to make compiler produce verbose output that lists
11359 # what "hidden" libraries, object files and flags are used when
11360 # linking a shared library.
11361 #
11362 # There doesn't appear to be a way to prevent this compiler from
11363 # explicitly linking system object files so we need to strip them
11364 # from the output so that they don't get included in the library
11365 # dependencies.
11366 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'
11367
11368 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11369 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11370
11371 # Archives containing C++ object files must be created using
11372 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11373 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11374 ;;
11375 icpc*)
11376 # Intel C++
11377 with_gnu_ld=yes
11378 # version 8.0 and above of icpc choke on multiply defined symbols
11379 # if we add $predep_objects and $postdep_objects, however 7.1 and
11380 # earlier do not add the objects themselves.
11381 case `$CC -V 2>&1` in
11382 *"Version 7."*)
11383 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11384 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'
11385 ;;
11386 *) # Version 8.0 or newer
11387 tmp_idyn=
11388 case $host_cpu in
11389 ia64*) tmp_idyn=' -i_dynamic';;
11390 esac
11391 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11392 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'
11393 ;;
11394 esac
11395 archive_cmds_need_lc_CXX=no
11396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11398 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11399 ;;
11400 pgCC*)
11401 # Portland Group C++ compiler
11402 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11403 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'
11404
11405 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11407 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'
11408 ;;
11409 cxx*)
11410 # Compaq C++
11411 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11412 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'
11413
11414 runpath_var=LD_RUN_PATH
11415 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11416 hardcode_libdir_separator_CXX=:
11417
11418 # Commands to make compiler produce verbose output that lists
11419 # what "hidden" libraries, object files and flags are used when
11420 # linking a shared library.
11421 #
11422 # There doesn't appear to be a way to prevent this compiler from
11423 # explicitly linking system object files so we need to strip them
11424 # from the output so that they don't get included in the library
11425 # dependencies.
11426 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'
11427 ;;
11428 esac
11429 ;;
11430 lynxos*)
11431 # FIXME: insert proper C++ library support
11432 ld_shlibs_CXX=no
11433 ;;
11434 m88k*)
11435 # FIXME: insert proper C++ library support
11436 ld_shlibs_CXX=no
11437 ;;
11438 mvs*)
11439 case $cc_basename in
11440 cxx*)
11441 # FIXME: insert proper C++ library support
11442 ld_shlibs_CXX=no
11443 ;;
11444 *)
11445 # FIXME: insert proper C++ library support
11446 ld_shlibs_CXX=no
11447 ;;
11448 esac
11449 ;;
11450 netbsd*)
11451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11452 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11453 wlarc=
11454 hardcode_libdir_flag_spec_CXX='-R$libdir'
11455 hardcode_direct_CXX=yes
11456 hardcode_shlibpath_var_CXX=no
11457 fi
11458 # Workaround some broken pre-1.5 toolchains
11459 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11460 ;;
11461 openbsd2*)
11462 # C++ shared libraries are fairly broken
11463 ld_shlibs_CXX=no
11464 ;;
11465 openbsd*)
11466 hardcode_direct_CXX=yes
11467 hardcode_shlibpath_var_CXX=no
11468 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11471 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11472 export_dynamic_flag_spec_CXX='${wl}-E'
11473 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11474 fi
11475 output_verbose_link_cmd='echo'
11476 ;;
11477 osf3*)
11478 case $cc_basename in
11479 KCC*)
11480 # Kuck and Associates, Inc. (KAI) C++ Compiler
11481
11482 # KCC will only create a shared library if the output file
11483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11484 # to its proper name (with version) after linking.
11485 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'
11486
11487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11488 hardcode_libdir_separator_CXX=:
11489
11490 # Archives containing C++ object files must be created using
11491 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11492 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11493
11494 ;;
11495 RCC*)
11496 # Rational C++ 2.4.1
11497 # FIXME: insert proper C++ library support
11498 ld_shlibs_CXX=no
11499 ;;
11500 cxx*)
11501 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11502 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'
11503
11504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11505 hardcode_libdir_separator_CXX=:
11506
11507 # Commands to make compiler produce verbose output that lists
11508 # what "hidden" libraries, object files and flags are used when
11509 # linking a shared library.
11510 #
11511 # There doesn't appear to be a way to prevent this compiler from
11512 # explicitly linking system object files so we need to strip them
11513 # from the output so that they don't get included in the library
11514 # dependencies.
11515 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'
11516 ;;
11517 *)
11518 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11519 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11520 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'
11521
11522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11523 hardcode_libdir_separator_CXX=:
11524
11525 # Commands to make compiler produce verbose output that lists
11526 # what "hidden" libraries, object files and flags are used when
11527 # linking a shared library.
11528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11529
11530 else
11531 # FIXME: insert proper C++ library support
11532 ld_shlibs_CXX=no
11533 fi
11534 ;;
11535 esac
11536 ;;
11537 osf4* | osf5*)
11538 case $cc_basename in
11539 KCC*)
11540 # Kuck and Associates, Inc. (KAI) C++ Compiler
11541
11542 # KCC will only create a shared library if the output file
11543 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11544 # to its proper name (with version) after linking.
11545 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'
11546
11547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11548 hardcode_libdir_separator_CXX=:
11549
11550 # Archives containing C++ object files must be created using
11551 # the KAI C++ compiler.
11552 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11553 ;;
11554 RCC*)
11555 # Rational C++ 2.4.1
11556 # FIXME: insert proper C++ library support
11557 ld_shlibs_CXX=no
11558 ;;
11559 cxx*)
11560 allow_undefined_flag_CXX=' -expect_unresolved \*'
11561 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'
11562 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11563 echo "-hidden">> $lib.exp~
11564 $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~
11565 $rm $lib.exp'
11566
11567 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11568 hardcode_libdir_separator_CXX=:
11569
11570 # Commands to make compiler produce verbose output that lists
11571 # what "hidden" libraries, object files and flags are used when
11572 # linking a shared library.
11573 #
11574 # There doesn't appear to be a way to prevent this compiler from
11575 # explicitly linking system object files so we need to strip them
11576 # from the output so that they don't get included in the library
11577 # dependencies.
11578 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'
11579 ;;
11580 *)
11581 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11582 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11583 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'
11584
11585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11586 hardcode_libdir_separator_CXX=:
11587
11588 # Commands to make compiler produce verbose output that lists
11589 # what "hidden" libraries, object files and flags are used when
11590 # linking a shared library.
11591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11592
11593 else
11594 # FIXME: insert proper C++ library support
11595 ld_shlibs_CXX=no
11596 fi
11597 ;;
11598 esac
11599 ;;
11600 psos*)
11601 # FIXME: insert proper C++ library support
11602 ld_shlibs_CXX=no
11603 ;;
11604 sunos4*)
11605 case $cc_basename in
11606 CC*)
11607 # Sun C++ 4.x
11608 # FIXME: insert proper C++ library support
11609 ld_shlibs_CXX=no
11610 ;;
11611 lcc*)
11612 # Lucid
11613 # FIXME: insert proper C++ library support
11614 ld_shlibs_CXX=no
11615 ;;
11616 *)
11617 # FIXME: insert proper C++ library support
11618 ld_shlibs_CXX=no
11619 ;;
11620 esac
11621 ;;
11622 solaris*)
11623 case $cc_basename in
11624 CC*)
11625 # Sun C++ 4.2, 5.x and Centerline C++
11626 archive_cmds_need_lc_CXX=yes
11627 no_undefined_flag_CXX=' -zdefs'
11628 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11629 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11630 $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'
11631
11632 hardcode_libdir_flag_spec_CXX='-R$libdir'
11633 hardcode_shlibpath_var_CXX=no
11634 case $host_os in
11635 solaris2.[0-5] | solaris2.[0-5].*) ;;
11636 *)
11637 # The C++ compiler is used as linker so we must use $wl
11638 # flag to pass the commands to the underlying system
11639 # linker. We must also pass each convience library through
11640 # to the system linker between allextract/defaultextract.
11641 # The C++ compiler will combine linker options so we
11642 # cannot just pass the convience library names through
11643 # without $wl.
11644 # Supported since Solaris 2.6 (maybe 2.5.1?)
11645 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'
11646 ;;
11647 esac
11648 link_all_deplibs_CXX=yes
11649
11650 output_verbose_link_cmd='echo'
11651
11652 # Archives containing C++ object files must be created using
11653 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11654 # necessary to make sure instantiated templates are included
11655 # in the archive.
11656 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11657 ;;
11658 gcx*)
11659 # Green Hills C++ Compiler
11660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11661
11662 # The C++ compiler must be used to create the archive.
11663 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11664 ;;
11665 *)
11666 # GNU C++ compiler with Solaris linker
11667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11668 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11669 if $CC --version | grep -v '^2\.7' > /dev/null; then
11670 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11671 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11672 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11673
11674 # Commands to make compiler produce verbose output that lists
11675 # what "hidden" libraries, object files and flags are used when
11676 # linking a shared library.
11677 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11678 else
11679 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11680 # platform.
11681 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11682 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11683 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11684
11685 # Commands to make compiler produce verbose output that lists
11686 # what "hidden" libraries, object files and flags are used when
11687 # linking a shared library.
11688 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11689 fi
11690
11691 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11692 fi
11693 ;;
11694 esac
11695 ;;
11696 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11697 no_undefined_flag_CXX='${wl}-z,text'
11698 archive_cmds_need_lc_CXX=no
11699 hardcode_shlibpath_var_CXX=no
11700 runpath_var='LD_RUN_PATH'
11701
11702 case $cc_basename in
11703 CC*)
11704 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11705 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11706 ;;
11707 *)
11708 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11709 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11710 ;;
11711 esac
11712 ;;
11713 sysv5* | sco3.2v5* | sco5v6*)
11714 # Note: We can NOT use -z defs as we might desire, because we do not
11715 # link with -lc, and that would cause any symbols used from libc to
11716 # always be unresolved, which means just about no library would
11717 # ever link correctly. If we're not using GNU ld we use -z text
11718 # though, which does catch some bad symbols but isn't as heavy-handed
11719 # as -z defs.
11720 # For security reasons, it is highly recommended that you always
11721 # use absolute paths for naming shared libraries, and exclude the
11722 # DT_RUNPATH tag from executables and libraries. But doing so
11723 # requires that you compile everything twice, which is a pain.
11724 # So that behaviour is only enabled if SCOABSPATH is set to a
11725 # non-empty value in the environment. Most likely only useful for
11726 # creating official distributions of packages.
11727 # This is a hack until libtool officially supports absolute path
11728 # names for shared libraries.
11729 no_undefined_flag_CXX='${wl}-z,text'
11730 allow_undefined_flag_CXX='${wl}-z,nodefs'
11731 archive_cmds_need_lc_CXX=no
11732 hardcode_shlibpath_var_CXX=no
11733 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11734 hardcode_libdir_separator_CXX=':'
11735 link_all_deplibs_CXX=yes
11736 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11737 runpath_var='LD_RUN_PATH'
11738
11739 case $cc_basename in
11740 CC*)
11741 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11742 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11743 ;;
11744 *)
11745 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11747 ;;
11748 esac
11749 ;;
11750 tandem*)
11751 case $cc_basename in
11752 NCC*)
11753 # NonStop-UX NCC 3.20
11754 # FIXME: insert proper C++ library support
11755 ld_shlibs_CXX=no
11756 ;;
11757 *)
11758 # FIXME: insert proper C++ library support
11759 ld_shlibs_CXX=no
11760 ;;
11761 esac
11762 ;;
11763 vxworks*)
11764 # FIXME: insert proper C++ library support
11765 ld_shlibs_CXX=no
11766 ;;
11767 *)
11768 # FIXME: insert proper C++ library support
11769 ld_shlibs_CXX=no
11770 ;;
11771 esac
11772 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11773 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11774 test "$ld_shlibs_CXX" = no && can_build_shared=no
11775
11776 GCC_CXX="$GXX"
11777 LD_CXX="$LD"
11778
11779
11780 cat > conftest.$ac_ext <<EOF
11781 class Foo
11782 {
11783 public:
11784 Foo (void) { a = 0; }
11785 private:
11786 int a;
11787 };
11788 EOF
11789
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; then
11795 # Parse the compiler output and extract the necessary
11796 # objects, libraries and library flags.
11797
11798 # Sentinel used to keep track of whether or not we are before
11799 # the conftest object file.
11800 pre_test_object_deps_done=no
11801
11802 # The `*' in the case matches for architectures that use `case' in
11803 # $output_verbose_cmd can trigger glob expansion during the loop
11804 # eval without this substitution.
11805 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11806
11807 for p in `eval $output_verbose_link_cmd`; do
11808 case $p in
11809
11810 -L* | -R* | -l*)
11811 # Some compilers place space between "-{L,R}" and the path.
11812 # Remove the space.
11813 if test $p = "-L" \
11814 || test $p = "-R"; then
11815 prev=$p
11816 continue
11817 else
11818 prev=
11819 fi
11820
11821 if test "$pre_test_object_deps_done" = no; then
11822 case $p in
11823 -L* | -R*)
11824 # Internal compiler library paths should come after those
11825 # provided the user. The postdeps already come after the
11826 # user supplied libs so there is no need to process them.
11827 if test -z "$compiler_lib_search_path_CXX"; then
11828 compiler_lib_search_path_CXX="${prev}${p}"
11829 else
11830 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11831 fi
11832 ;;
11833 # The "-l" case would never come before the object being
11834 # linked, so don't bother handling this case.
11835 esac
11836 else
11837 if test -z "$postdeps_CXX"; then
11838 postdeps_CXX="${prev}${p}"
11839 else
11840 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11841 fi
11842 fi
11843 ;;
11844
11845 *.$objext)
11846 # This assumes that the test object file only shows up
11847 # once in the compiler output.
11848 if test "$p" = "conftest.$objext"; then
11849 pre_test_object_deps_done=yes
11850 continue
11851 fi
11852
11853 if test "$pre_test_object_deps_done" = no; then
11854 if test -z "$predep_objects_CXX"; then
11855 predep_objects_CXX="$p"
11856 else
11857 predep_objects_CXX="$predep_objects_CXX $p"
11858 fi
11859 else
11860 if test -z "$postdep_objects_CXX"; then
11861 postdep_objects_CXX="$p"
11862 else
11863 postdep_objects_CXX="$postdep_objects_CXX $p"
11864 fi
11865 fi
11866 ;;
11867
11868 *) ;; # Ignore the rest.
11869
11870 esac
11871 done
11872
11873 # Clean up.
11874 rm -f a.out a.exe
11875 else
11876 echo "libtool.m4: error: problem compiling CXX test program"
11877 fi
11878
11879 $rm -f confest.$objext
11880
11881 # PORTME: override above test on systems where it is broken
11882 case $host_os in
11883 interix3*)
11884 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11885 # hack all around it, let's just trust "g++" to DTRT.
11886 predep_objects_CXX=
11887 postdep_objects_CXX=
11888 postdeps_CXX=
11889 ;;
11890
11891 solaris*)
11892 case $cc_basename in
11893 CC*)
11894 # Adding this requires a known-good setup of shared libraries for
11895 # Sun compiler versions before 5.6, else PIC objects from an old
11896 # archive will be linked into the output, leading to subtle bugs.
11897 postdeps_CXX='-lCstd -lCrun'
11898 ;;
11899 esac
11900 ;;
11901 esac
11902
11903
11904 case " $postdeps_CXX " in
11905 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11906 esac
11907
11908 lt_prog_compiler_wl_CXX=
11909 lt_prog_compiler_pic_CXX=
11910 lt_prog_compiler_static_CXX=
11911
11912 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11913 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11914
11915 # C++ specific cases for pic, static, wl, etc.
11916 if test "$GXX" = yes; then
11917 lt_prog_compiler_wl_CXX='-Wl,'
11918 lt_prog_compiler_static_CXX='-static'
11919
11920 case $host_os in
11921 aix*)
11922 # All AIX code is PIC.
11923 if test "$host_cpu" = ia64; then
11924 # AIX 5 now supports IA64 processor
11925 lt_prog_compiler_static_CXX='-Bstatic'
11926 fi
11927 ;;
11928 amigaos*)
11929 # FIXME: we need at least 68020 code to build shared libraries, but
11930 # adding the `-m68020' flag to GCC prevents building anything better,
11931 # like `-m68040'.
11932 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11933 ;;
11934 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11935 # PIC is the default for these OSes.
11936 ;;
11937 mingw* | os2* | pw32*)
11938 # This hack is so that the source file can tell whether it is being
11939 # built for inclusion in a dll (and should export symbols for example).
11940 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11941 ;;
11942 darwin* | rhapsody*)
11943 # PIC is the default on this platform
11944 # Common symbols not allowed in MH_DYLIB files
11945 lt_prog_compiler_pic_CXX='-fno-common'
11946 ;;
11947 *djgpp*)
11948 # DJGPP does not support shared libraries at all
11949 lt_prog_compiler_pic_CXX=
11950 ;;
11951 interix3*)
11952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11953 # Instead, we relocate shared libraries at runtime.
11954 ;;
11955 sysv4*MP*)
11956 if test -d /usr/nec; then
11957 lt_prog_compiler_pic_CXX=-Kconform_pic
11958 fi
11959 ;;
11960 hpux*)
11961 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11962 # not for PA HP-UX.
11963 case $host_cpu in
11964 hppa*64*|ia64*)
11965 ;;
11966 *)
11967 lt_prog_compiler_pic_CXX='-fPIC'
11968 ;;
11969 esac
11970 ;;
11971 *)
11972 lt_prog_compiler_pic_CXX='-fPIC'
11973 ;;
11974 esac
11975 else
11976 case $host_os in
11977 aix4* | aix5*)
11978 # All AIX code is PIC.
11979 if test "$host_cpu" = ia64; then
11980 # AIX 5 now supports IA64 processor
11981 lt_prog_compiler_static_CXX='-Bstatic'
11982 else
11983 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11984 fi
11985 ;;
11986 chorus*)
11987 case $cc_basename in
11988 cxch68*)
11989 # Green Hills C++ Compiler
11990 # _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"
11991 ;;
11992 esac
11993 ;;
11994 darwin*)
11995 # PIC is the default on this platform
11996 # Common symbols not allowed in MH_DYLIB files
11997 case $cc_basename in
11998 xlc*)
11999 lt_prog_compiler_pic_CXX='-qnocommon'
12000 lt_prog_compiler_wl_CXX='-Wl,'
12001 ;;
12002 esac
12003 ;;
12004 dgux*)
12005 case $cc_basename in
12006 ec++*)
12007 lt_prog_compiler_pic_CXX='-KPIC'
12008 ;;
12009 ghcx*)
12010 # Green Hills C++ Compiler
12011 lt_prog_compiler_pic_CXX='-pic'
12012 ;;
12013 *)
12014 ;;
12015 esac
12016 ;;
12017 freebsd* | kfreebsd*-gnu | dragonfly*)
12018 # FreeBSD uses GNU C++
12019 ;;
12020 hpux9* | hpux10* | hpux11*)
12021 case $cc_basename in
12022 CC*)
12023 lt_prog_compiler_wl_CXX='-Wl,'
12024 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12025 if test "$host_cpu" != ia64; then
12026 lt_prog_compiler_pic_CXX='+Z'
12027 fi
12028 ;;
12029 aCC*)
12030 lt_prog_compiler_wl_CXX='-Wl,'
12031 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12032 case $host_cpu in
12033 hppa*64*|ia64*)
12034 # +Z the default
12035 ;;
12036 *)
12037 lt_prog_compiler_pic_CXX='+Z'
12038 ;;
12039 esac
12040 ;;
12041 *)
12042 ;;
12043 esac
12044 ;;
12045 interix*)
12046 # This is c89, which is MS Visual C++ (no shared libs)
12047 # Anyone wants to do a port?
12048 ;;
12049 irix5* | irix6* | nonstopux*)
12050 case $cc_basename in
12051 CC*)
12052 lt_prog_compiler_wl_CXX='-Wl,'
12053 lt_prog_compiler_static_CXX='-non_shared'
12054 # CC pic flag -KPIC is the default.
12055 ;;
12056 *)
12057 ;;
12058 esac
12059 ;;
12060 linux*)
12061 case $cc_basename in
12062 KCC*)
12063 # KAI C++ Compiler
12064 lt_prog_compiler_wl_CXX='--backend -Wl,'
12065 lt_prog_compiler_pic_CXX='-fPIC'
12066 ;;
12067 icpc* | ecpc*)
12068 # Intel C++
12069 lt_prog_compiler_wl_CXX='-Wl,'
12070 lt_prog_compiler_pic_CXX='-KPIC'
12071 lt_prog_compiler_static_CXX='-static'
12072 ;;
12073 pgCC*)
12074 # Portland Group C++ compiler.
12075 lt_prog_compiler_wl_CXX='-Wl,'
12076 lt_prog_compiler_pic_CXX='-fpic'
12077 lt_prog_compiler_static_CXX='-Bstatic'
12078 ;;
12079 cxx*)
12080 # Compaq C++
12081 # Make sure the PIC flag is empty. It appears that all Alpha
12082 # Linux and Compaq Tru64 Unix objects are PIC.
12083 lt_prog_compiler_pic_CXX=
12084 lt_prog_compiler_static_CXX='-non_shared'
12085 ;;
12086 *)
12087 ;;
12088 esac
12089 ;;
12090 lynxos*)
12091 ;;
12092 m88k*)
12093 ;;
12094 mvs*)
12095 case $cc_basename in
12096 cxx*)
12097 lt_prog_compiler_pic_CXX='-W c,exportall'
12098 ;;
12099 *)
12100 ;;
12101 esac
12102 ;;
12103 netbsd*)
12104 ;;
12105 osf3* | osf4* | osf5*)
12106 case $cc_basename in
12107 KCC*)
12108 lt_prog_compiler_wl_CXX='--backend -Wl,'
12109 ;;
12110 RCC*)
12111 # Rational C++ 2.4.1
12112 lt_prog_compiler_pic_CXX='-pic'
12113 ;;
12114 cxx*)
12115 # Digital/Compaq C++
12116 lt_prog_compiler_wl_CXX='-Wl,'
12117 # Make sure the PIC flag is empty. It appears that all Alpha
12118 # Linux and Compaq Tru64 Unix objects are PIC.
12119 lt_prog_compiler_pic_CXX=
12120 lt_prog_compiler_static_CXX='-non_shared'
12121 ;;
12122 *)
12123 ;;
12124 esac
12125 ;;
12126 psos*)
12127 ;;
12128 solaris*)
12129 case $cc_basename in
12130 CC*)
12131 # Sun C++ 4.2, 5.x and Centerline C++
12132 lt_prog_compiler_pic_CXX='-KPIC'
12133 lt_prog_compiler_static_CXX='-Bstatic'
12134 lt_prog_compiler_wl_CXX='-Qoption ld '
12135 ;;
12136 gcx*)
12137 # Green Hills C++ Compiler
12138 lt_prog_compiler_pic_CXX='-PIC'
12139 ;;
12140 *)
12141 ;;
12142 esac
12143 ;;
12144 sunos4*)
12145 case $cc_basename in
12146 CC*)
12147 # Sun C++ 4.x
12148 lt_prog_compiler_pic_CXX='-pic'
12149 lt_prog_compiler_static_CXX='-Bstatic'
12150 ;;
12151 lcc*)
12152 # Lucid
12153 lt_prog_compiler_pic_CXX='-pic'
12154 ;;
12155 *)
12156 ;;
12157 esac
12158 ;;
12159 tandem*)
12160 case $cc_basename in
12161 NCC*)
12162 # NonStop-UX NCC 3.20
12163 lt_prog_compiler_pic_CXX='-KPIC'
12164 ;;
12165 *)
12166 ;;
12167 esac
12168 ;;
12169 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12170 case $cc_basename in
12171 CC*)
12172 lt_prog_compiler_wl_CXX='-Wl,'
12173 lt_prog_compiler_pic_CXX='-KPIC'
12174 lt_prog_compiler_static_CXX='-Bstatic'
12175 ;;
12176 esac
12177 ;;
12178 vxworks*)
12179 ;;
12180 *)
12181 lt_prog_compiler_can_build_shared_CXX=no
12182 ;;
12183 esac
12184 fi
12185
12186 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12187 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12188
12189 #
12190 # Check to make sure the PIC flag actually works.
12191 #
12192 if test -n "$lt_prog_compiler_pic_CXX"; then
12193
12194 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12195 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12196 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199 lt_prog_compiler_pic_works_CXX=no
12200 ac_outfile=conftest.$ac_objext
12201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12202 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12203 # Insert the option either (1) after the last *FLAGS variable, or
12204 # (2) before a word containing "conftest.", or (3) at the end.
12205 # Note that $ac_compile itself does not contain backslashes and begins
12206 # with a dollar sign (not a hyphen), so the echo should work correctly.
12207 # The option is referenced via a variable to avoid confusing sed.
12208 lt_compile=`echo "$ac_compile" | $SED \
12209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12211 -e 's:$: $lt_compiler_flag:'`
12212 (eval echo "\"\$as_me:12212: $lt_compile\"" >&5)
12213 (eval "$lt_compile" 2>conftest.err)
12214 ac_status=$?
12215 cat conftest.err >&5
12216 echo "$as_me:12216: \$? = $ac_status" >&5
12217 if (exit $ac_status) && test -s "$ac_outfile"; then
12218 # The compiler can only warn and ignore the option if not recognized
12219 # So say no if there are warnings other than the usual output.
12220 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12223 lt_prog_compiler_pic_works_CXX=yes
12224 fi
12225 fi
12226 $rm conftest*
12227
12228 fi
12229 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12230 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12231
12232 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12233 case $lt_prog_compiler_pic_CXX in
12234 "" | " "*) ;;
12235 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12236 esac
12237 else
12238 lt_prog_compiler_pic_CXX=
12239 lt_prog_compiler_can_build_shared_CXX=no
12240 fi
12241
12242 fi
12243 case $host_os in
12244 # For platforms which do not support PIC, -DPIC is meaningless:
12245 *djgpp*)
12246 lt_prog_compiler_pic_CXX=
12247 ;;
12248 *)
12249 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12250 ;;
12251 esac
12252
12253 #
12254 # Check to make sure the static flag actually works.
12255 #
12256 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12257 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12258 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12259 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262 lt_prog_compiler_static_works_CXX=no
12263 save_LDFLAGS="$LDFLAGS"
12264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12265 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12267 # The linker can only warn and ignore the option if not recognized
12268 # So say no if there are warnings
12269 if test -s conftest.err; then
12270 # Append any errors to the config.log.
12271 cat conftest.err 1>&5
12272 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12274 if diff conftest.exp conftest.er2 >/dev/null; then
12275 lt_prog_compiler_static_works_CXX=yes
12276 fi
12277 else
12278 lt_prog_compiler_static_works_CXX=yes
12279 fi
12280 fi
12281 $rm conftest*
12282 LDFLAGS="$save_LDFLAGS"
12283
12284 fi
12285 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12286 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12287
12288 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12289 :
12290 else
12291 lt_prog_compiler_static_CXX=
12292 fi
12293
12294
12295 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12296 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12297 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 lt_cv_prog_compiler_c_o_CXX=no
12301 $rm -r conftest 2>/dev/null
12302 mkdir conftest
12303 cd conftest
12304 mkdir out
12305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12306
12307 lt_compiler_flag="-o out/conftest2.$ac_objext"
12308 # Insert the option either (1) after the last *FLAGS variable, or
12309 # (2) before a word containing "conftest.", or (3) at the end.
12310 # Note that $ac_compile itself does not contain backslashes and begins
12311 # with a dollar sign (not a hyphen), so the echo should work correctly.
12312 lt_compile=`echo "$ac_compile" | $SED \
12313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12315 -e 's:$: $lt_compiler_flag:'`
12316 (eval echo "\"\$as_me:12316: $lt_compile\"" >&5)
12317 (eval "$lt_compile" 2>out/conftest.err)
12318 ac_status=$?
12319 cat out/conftest.err >&5
12320 echo "$as_me:12320: \$? = $ac_status" >&5
12321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12322 then
12323 # The compiler can only warn and ignore the option if not recognized
12324 # So say no if there are warnings
12325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12328 lt_cv_prog_compiler_c_o_CXX=yes
12329 fi
12330 fi
12331 chmod u+w . 2>&5
12332 $rm conftest*
12333 # SGI C++ compiler will create directory out/ii_files/ for
12334 # template instantiation
12335 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12336 $rm out/* && rmdir out
12337 cd ..
12338 rmdir conftest
12339 $rm conftest*
12340
12341 fi
12342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12343 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12344
12345
12346 hard_links="nottested"
12347 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12348 # do not overwrite the value of need_locks provided by the user
12349 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12350 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12351 hard_links=yes
12352 $rm conftest*
12353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12354 touch conftest.a
12355 ln conftest.a conftest.b 2>&5 || hard_links=no
12356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12357 { echo "$as_me:$LINENO: result: $hard_links" >&5
12358 echo "${ECHO_T}$hard_links" >&6; }
12359 if test "$hard_links" = no; then
12360 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12361 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12362 need_locks=warn
12363 fi
12364 else
12365 need_locks=no
12366 fi
12367
12368 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12369 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12370
12371 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12372 case $host_os in
12373 aix4* | aix5*)
12374 # If we're using GNU nm, then we don't want the "-C" option.
12375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12376 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12377 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'
12378 else
12379 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'
12380 fi
12381 ;;
12382 pw32*)
12383 export_symbols_cmds_CXX="$ltdll_cmds"
12384 ;;
12385 cygwin* | mingw*)
12386 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'
12387 ;;
12388 *)
12389 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12390 ;;
12391 esac
12392
12393 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12394 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12395 test "$ld_shlibs_CXX" = no && can_build_shared=no
12396
12397 #
12398 # Do we need to explicitly link libc?
12399 #
12400 case "x$archive_cmds_need_lc_CXX" in
12401 x|xyes)
12402 # Assume -lc should be added
12403 archive_cmds_need_lc_CXX=yes
12404
12405 if test "$enable_shared" = yes && test "$GCC" = yes; then
12406 case $archive_cmds_CXX in
12407 *'~'*)
12408 # FIXME: we may have to deal with multi-command sequences.
12409 ;;
12410 '$CC '*)
12411 # Test whether the compiler implicitly links with -lc since on some
12412 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12413 # to ld, don't add -lc before -lgcc.
12414 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12415 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12416 $rm conftest*
12417 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12418
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } 2>conftest.err; then
12424 soname=conftest
12425 lib=conftest
12426 libobjs=conftest.$ac_objext
12427 deplibs=
12428 wl=$lt_prog_compiler_wl_CXX
12429 pic_flag=$lt_prog_compiler_pic_CXX
12430 compiler_flags=-v
12431 linker_flags=-v
12432 verstring=
12433 output_objdir=.
12434 libname=conftest
12435 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12436 allow_undefined_flag_CXX=
12437 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12438 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }
12442 then
12443 archive_cmds_need_lc_CXX=no
12444 else
12445 archive_cmds_need_lc_CXX=yes
12446 fi
12447 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12448 else
12449 cat conftest.err 1>&5
12450 fi
12451 $rm conftest*
12452 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12453 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12454 ;;
12455 esac
12456 fi
12457 ;;
12458 esac
12459
12460 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12461 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12462 library_names_spec=
12463 libname_spec='lib$name'
12464 soname_spec=
12465 shrext_cmds=".so"
12466 postinstall_cmds=
12467 postuninstall_cmds=
12468 finish_cmds=
12469 finish_eval=
12470 shlibpath_var=
12471 shlibpath_overrides_runpath=unknown
12472 version_type=none
12473 dynamic_linker="$host_os ld.so"
12474 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12475 if test "$GCC" = yes; then
12476 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12477 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12478 # if the path contains ";" then we assume it to be the separator
12479 # otherwise default to the standard path separator (i.e. ":") - it is
12480 # assumed that no part of a normal pathname contains ";" but that should
12481 # okay in the real world where ";" in dirpaths is itself problematic.
12482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12483 else
12484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12485 fi
12486 else
12487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12488 fi
12489 need_lib_prefix=unknown
12490 hardcode_into_libs=no
12491
12492 # when you set need_version to no, make sure it does not cause -set_version
12493 # flags to be left without arguments
12494 need_version=unknown
12495
12496 case $host_os in
12497 aix3*)
12498 version_type=linux
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12500 shlibpath_var=LIBPATH
12501
12502 # AIX 3 has no versioning support, so we append a major version to the name.
12503 soname_spec='${libname}${release}${shared_ext}$major'
12504 ;;
12505
12506 aix4* | aix5*)
12507 version_type=linux
12508 need_lib_prefix=no
12509 need_version=no
12510 hardcode_into_libs=yes
12511 if test "$host_cpu" = ia64; then
12512 # AIX 5 supports IA64
12513 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12514 shlibpath_var=LD_LIBRARY_PATH
12515 else
12516 # With GCC up to 2.95.x, collect2 would create an import file
12517 # for dependence libraries. The import file would start with
12518 # the line `#! .'. This would cause the generated library to
12519 # depend on `.', always an invalid library. This was fixed in
12520 # development snapshots of GCC prior to 3.0.
12521 case $host_os in
12522 aix4 | aix4.[01] | aix4.[01].*)
12523 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12524 echo ' yes '
12525 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12526 :
12527 else
12528 can_build_shared=no
12529 fi
12530 ;;
12531 esac
12532 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12533 # soname into executable. Probably we can add versioning support to
12534 # collect2, so additional links can be useful in future.
12535 if test "$aix_use_runtimelinking" = yes; then
12536 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12537 # instead of lib<name>.a to let people know that these are not
12538 # typical AIX shared libraries.
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12540 else
12541 # We preserve .a as extension for shared libraries through AIX4.2
12542 # and later when we are not doing run time linking.
12543 library_names_spec='${libname}${release}.a $libname.a'
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 fi
12546 shlibpath_var=LIBPATH
12547 fi
12548 ;;
12549
12550 amigaos*)
12551 library_names_spec='$libname.ixlibrary $libname.a'
12552 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12553 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'
12554 ;;
12555
12556 beos*)
12557 library_names_spec='${libname}${shared_ext}'
12558 dynamic_linker="$host_os ld.so"
12559 shlibpath_var=LIBRARY_PATH
12560 ;;
12561
12562 bsdi[45]*)
12563 version_type=linux
12564 need_version=no
12565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12566 soname_spec='${libname}${release}${shared_ext}$major'
12567 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12568 shlibpath_var=LD_LIBRARY_PATH
12569 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12570 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12571 # the default ld.so.conf also contains /usr/contrib/lib and
12572 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12573 # libtool to hard-code these into programs
12574 ;;
12575
12576 cygwin* | mingw* | pw32*)
12577 version_type=windows
12578 shrext_cmds=".dll"
12579 need_version=no
12580 need_lib_prefix=no
12581
12582 case $GCC,$host_os in
12583 yes,cygwin* | yes,mingw* | yes,pw32*)
12584 library_names_spec='$libname.dll.a'
12585 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12586 postinstall_cmds='base_file=`basename \${file}`~
12587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12588 dldir=$destdir/`dirname \$dlpath`~
12589 test -d \$dldir || mkdir -p \$dldir~
12590 $install_prog $dir/$dlname \$dldir/$dlname~
12591 chmod a+x \$dldir/$dlname'
12592 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12593 dlpath=$dir/\$dldll~
12594 $rm \$dlpath'
12595 shlibpath_overrides_runpath=yes
12596
12597 case $host_os in
12598 cygwin*)
12599 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12600 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12601 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12602 ;;
12603 mingw*)
12604 # MinGW DLLs use traditional 'lib' prefix
12605 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12607 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12608 # It is most probably a Windows format PATH printed by
12609 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12610 # path with ; separators, and with drive letters. We can handle the
12611 # drive letters (cygwin fileutils understands them), so leave them,
12612 # especially as we might pass files found there to a mingw objdump,
12613 # which wouldn't understand a cygwinified path. Ahh.
12614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12615 else
12616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12617 fi
12618 ;;
12619 pw32*)
12620 # pw32 DLLs use 'pw' prefix rather than 'lib'
12621 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12622 ;;
12623 esac
12624 ;;
12625
12626 *)
12627 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12628 ;;
12629 esac
12630 dynamic_linker='Win32 ld.exe'
12631 # FIXME: first we should search . and the directory the executable is in
12632 shlibpath_var=PATH
12633 ;;
12634
12635 darwin* | rhapsody*)
12636 dynamic_linker="$host_os dyld"
12637 version_type=darwin
12638 need_lib_prefix=no
12639 need_version=no
12640 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12641 soname_spec='${libname}${release}${major}$shared_ext'
12642 shlibpath_overrides_runpath=yes
12643 shlibpath_var=DYLD_LIBRARY_PATH
12644 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12645 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12646 if test "$GCC" = yes; then
12647 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"`
12648 else
12649 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12650 fi
12651 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12652 ;;
12653
12654 dgux*)
12655 version_type=linux
12656 need_lib_prefix=no
12657 need_version=no
12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12659 soname_spec='${libname}${release}${shared_ext}$major'
12660 shlibpath_var=LD_LIBRARY_PATH
12661 ;;
12662
12663 freebsd1*)
12664 dynamic_linker=no
12665 ;;
12666
12667 kfreebsd*-gnu)
12668 version_type=linux
12669 need_lib_prefix=no
12670 need_version=no
12671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12672 soname_spec='${libname}${release}${shared_ext}$major'
12673 shlibpath_var=LD_LIBRARY_PATH
12674 shlibpath_overrides_runpath=no
12675 hardcode_into_libs=yes
12676 dynamic_linker='GNU ld.so'
12677 ;;
12678
12679 freebsd* | dragonfly*)
12680 # DragonFly does not have aout. When/if they implement a new
12681 # versioning mechanism, adjust this.
12682 if test -x /usr/bin/objformat; then
12683 objformat=`/usr/bin/objformat`
12684 else
12685 case $host_os in
12686 freebsd[123]*) objformat=aout ;;
12687 *) objformat=elf ;;
12688 esac
12689 fi
12690 version_type=freebsd-$objformat
12691 case $version_type in
12692 freebsd-elf*)
12693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12694 need_version=no
12695 need_lib_prefix=no
12696 ;;
12697 freebsd-*)
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12699 need_version=yes
12700 ;;
12701 esac
12702 shlibpath_var=LD_LIBRARY_PATH
12703 case $host_os in
12704 freebsd2*)
12705 shlibpath_overrides_runpath=yes
12706 ;;
12707 freebsd3.[01]* | freebsdelf3.[01]*)
12708 shlibpath_overrides_runpath=yes
12709 hardcode_into_libs=yes
12710 ;;
12711 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12712 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12713 shlibpath_overrides_runpath=no
12714 hardcode_into_libs=yes
12715 ;;
12716 freebsd*) # from 4.6 on
12717 shlibpath_overrides_runpath=yes
12718 hardcode_into_libs=yes
12719 ;;
12720 esac
12721 ;;
12722
12723 gnu*)
12724 version_type=linux
12725 need_lib_prefix=no
12726 need_version=no
12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12728 soname_spec='${libname}${release}${shared_ext}$major'
12729 shlibpath_var=LD_LIBRARY_PATH
12730 hardcode_into_libs=yes
12731 ;;
12732
12733 hpux9* | hpux10* | hpux11*)
12734 # Give a soname corresponding to the major version so that dld.sl refuses to
12735 # link against other versions.
12736 version_type=sunos
12737 need_lib_prefix=no
12738 need_version=no
12739 case $host_cpu in
12740 ia64*)
12741 shrext_cmds='.so'
12742 hardcode_into_libs=yes
12743 dynamic_linker="$host_os dld.so"
12744 shlibpath_var=LD_LIBRARY_PATH
12745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 if test "X$HPUX_IA64_MODE" = X32; then
12749 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12750 else
12751 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12752 fi
12753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12754 ;;
12755 hppa*64*)
12756 shrext_cmds='.sl'
12757 hardcode_into_libs=yes
12758 dynamic_linker="$host_os dld.sl"
12759 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12762 soname_spec='${libname}${release}${shared_ext}$major'
12763 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12765 ;;
12766 *)
12767 shrext_cmds='.sl'
12768 dynamic_linker="$host_os dld.sl"
12769 shlibpath_var=SHLIB_PATH
12770 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 ;;
12774 esac
12775 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12776 postinstall_cmds='chmod 555 $lib'
12777 ;;
12778
12779 interix3*)
12780 version_type=linux
12781 need_lib_prefix=no
12782 need_version=no
12783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12784 soname_spec='${libname}${release}${shared_ext}$major'
12785 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12786 shlibpath_var=LD_LIBRARY_PATH
12787 shlibpath_overrides_runpath=no
12788 hardcode_into_libs=yes
12789 ;;
12790
12791 irix5* | irix6* | nonstopux*)
12792 case $host_os in
12793 nonstopux*) version_type=nonstopux ;;
12794 *)
12795 if test "$lt_cv_prog_gnu_ld" = yes; then
12796 version_type=linux
12797 else
12798 version_type=irix
12799 fi ;;
12800 esac
12801 need_lib_prefix=no
12802 need_version=no
12803 soname_spec='${libname}${release}${shared_ext}$major'
12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12805 case $host_os in
12806 irix5* | nonstopux*)
12807 libsuff= shlibsuff=
12808 ;;
12809 *)
12810 case $LD in # libtool.m4 will add one of these switches to LD
12811 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12812 libsuff= shlibsuff= libmagic=32-bit;;
12813 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12814 libsuff=32 shlibsuff=N32 libmagic=N32;;
12815 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12816 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12817 *) libsuff= shlibsuff= libmagic=never-match;;
12818 esac
12819 ;;
12820 esac
12821 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12822 shlibpath_overrides_runpath=no
12823 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12824 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12825 hardcode_into_libs=yes
12826 ;;
12827
12828 # No shared lib support for Linux oldld, aout, or coff.
12829 linux*oldld* | linux*aout* | linux*coff*)
12830 dynamic_linker=no
12831 ;;
12832
12833 # This must be Linux ELF.
12834 linux*)
12835 version_type=linux
12836 need_lib_prefix=no
12837 need_version=no
12838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12839 soname_spec='${libname}${release}${shared_ext}$major'
12840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12841 shlibpath_var=LD_LIBRARY_PATH
12842 shlibpath_overrides_runpath=no
12843 # This implies no fast_install, which is unacceptable.
12844 # Some rework will be needed to allow for fast_install
12845 # before this can be enabled.
12846 hardcode_into_libs=yes
12847
12848 # Append ld.so.conf contents to the search path
12849 if test -f /etc/ld.so.conf; then
12850 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' ' '`
12851 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12852 fi
12853
12854 # We used to test for /lib/ld.so.1 and disable shared libraries on
12855 # powerpc, because MkLinux only supported shared libraries with the
12856 # GNU dynamic linker. Since this was broken with cross compilers,
12857 # most powerpc-linux boxes support dynamic linking these days and
12858 # people can always --disable-shared, the test was removed, and we
12859 # assume the GNU/Linux dynamic linker is in use.
12860 dynamic_linker='GNU/Linux ld.so'
12861 ;;
12862
12863 knetbsd*-gnu)
12864 version_type=linux
12865 need_lib_prefix=no
12866 need_version=no
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12868 soname_spec='${libname}${release}${shared_ext}$major'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 shlibpath_overrides_runpath=no
12871 hardcode_into_libs=yes
12872 dynamic_linker='GNU ld.so'
12873 ;;
12874
12875 netbsd*)
12876 version_type=sunos
12877 need_lib_prefix=no
12878 need_version=no
12879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12882 dynamic_linker='NetBSD (a.out) ld.so'
12883 else
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 dynamic_linker='NetBSD ld.elf_so'
12887 fi
12888 shlibpath_var=LD_LIBRARY_PATH
12889 shlibpath_overrides_runpath=yes
12890 hardcode_into_libs=yes
12891 ;;
12892
12893 newsos6)
12894 version_type=linux
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 shlibpath_overrides_runpath=yes
12898 ;;
12899
12900 nto-qnx*)
12901 version_type=linux
12902 need_lib_prefix=no
12903 need_version=no
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12905 soname_spec='${libname}${release}${shared_ext}$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 shlibpath_overrides_runpath=yes
12908 ;;
12909
12910 openbsd*)
12911 version_type=sunos
12912 sys_lib_dlsearch_path_spec="/usr/lib"
12913 need_lib_prefix=no
12914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12915 case $host_os in
12916 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12917 *) need_version=no ;;
12918 esac
12919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12921 shlibpath_var=LD_LIBRARY_PATH
12922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12923 case $host_os in
12924 openbsd2.[89] | openbsd2.[89].*)
12925 shlibpath_overrides_runpath=no
12926 ;;
12927 *)
12928 shlibpath_overrides_runpath=yes
12929 ;;
12930 esac
12931 else
12932 shlibpath_overrides_runpath=yes
12933 fi
12934 ;;
12935
12936 os2*)
12937 libname_spec='$name'
12938 shrext_cmds=".dll"
12939 need_lib_prefix=no
12940 library_names_spec='$libname${shared_ext} $libname.a'
12941 dynamic_linker='OS/2 ld.exe'
12942 shlibpath_var=LIBPATH
12943 ;;
12944
12945 osf3* | osf4* | osf5*)
12946 version_type=osf
12947 need_lib_prefix=no
12948 need_version=no
12949 soname_spec='${libname}${release}${shared_ext}$major'
12950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12951 shlibpath_var=LD_LIBRARY_PATH
12952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12954 ;;
12955
12956 solaris*)
12957 version_type=linux
12958 need_lib_prefix=no
12959 need_version=no
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 shlibpath_var=LD_LIBRARY_PATH
12963 shlibpath_overrides_runpath=yes
12964 hardcode_into_libs=yes
12965 # ldd complains unless libraries are executable
12966 postinstall_cmds='chmod +x $lib'
12967 ;;
12968
12969 sunos4*)
12970 version_type=sunos
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12972 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 shlibpath_overrides_runpath=yes
12975 if test "$with_gnu_ld" = yes; then
12976 need_lib_prefix=no
12977 fi
12978 need_version=yes
12979 ;;
12980
12981 sysv4 | sysv4.3*)
12982 version_type=linux
12983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984 soname_spec='${libname}${release}${shared_ext}$major'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 case $host_vendor in
12987 sni)
12988 shlibpath_overrides_runpath=no
12989 need_lib_prefix=no
12990 export_dynamic_flag_spec='${wl}-Blargedynsym'
12991 runpath_var=LD_RUN_PATH
12992 ;;
12993 siemens)
12994 need_lib_prefix=no
12995 ;;
12996 motorola)
12997 need_lib_prefix=no
12998 need_version=no
12999 shlibpath_overrides_runpath=no
13000 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13001 ;;
13002 esac
13003 ;;
13004
13005 sysv4*MP*)
13006 if test -d /usr/nec ;then
13007 version_type=linux
13008 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13009 soname_spec='$libname${shared_ext}.$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 fi
13012 ;;
13013
13014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13015 version_type=freebsd-elf
13016 need_lib_prefix=no
13017 need_version=no
13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13019 soname_spec='${libname}${release}${shared_ext}$major'
13020 shlibpath_var=LD_LIBRARY_PATH
13021 hardcode_into_libs=yes
13022 if test "$with_gnu_ld" = yes; then
13023 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13024 shlibpath_overrides_runpath=no
13025 else
13026 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13027 shlibpath_overrides_runpath=yes
13028 case $host_os in
13029 sco3.2v5*)
13030 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13031 ;;
13032 esac
13033 fi
13034 sys_lib_dlsearch_path_spec='/usr/lib'
13035 ;;
13036
13037 uts4*)
13038 version_type=linux
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040 soname_spec='${libname}${release}${shared_ext}$major'
13041 shlibpath_var=LD_LIBRARY_PATH
13042 ;;
13043
13044 *)
13045 dynamic_linker=no
13046 ;;
13047 esac
13048 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13049 echo "${ECHO_T}$dynamic_linker" >&6; }
13050 test "$dynamic_linker" = no && can_build_shared=no
13051
13052 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13053 if test "$GCC" = yes; then
13054 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13055 fi
13056
13057 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13058 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13059 hardcode_action_CXX=
13060 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13061 test -n "$runpath_var_CXX" || \
13062 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13063
13064 # We can hardcode non-existant directories.
13065 if test "$hardcode_direct_CXX" != no &&
13066 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13067 # have to relink, otherwise we might link with an installed library
13068 # when we should be linking with a yet-to-be-installed one
13069 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13070 test "$hardcode_minus_L_CXX" != no; then
13071 # Linking always hardcodes the temporary library directory.
13072 hardcode_action_CXX=relink
13073 else
13074 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13075 hardcode_action_CXX=immediate
13076 fi
13077 else
13078 # We cannot hardcode anything, or else we can only hardcode existing
13079 # directories.
13080 hardcode_action_CXX=unsupported
13081 fi
13082 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13083 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13084
13085 if test "$hardcode_action_CXX" = relink; then
13086 # Fast installation is not supported
13087 enable_fast_install=no
13088 elif test "$shlibpath_overrides_runpath" = yes ||
13089 test "$enable_shared" = no; then
13090 # Fast installation is not necessary
13091 enable_fast_install=needless
13092 fi
13093
13094
13095 # The else clause should only fire when bootstrapping the
13096 # libtool distribution, otherwise you forgot to ship ltmain.sh
13097 # with your package, and you will get complaints that there are
13098 # no rules to generate ltmain.sh.
13099 if test -f "$ltmain"; then
13100 # See if we are running on zsh, and set the options which allow our commands through
13101 # without removal of \ escapes.
13102 if test -n "${ZSH_VERSION+set}" ; then
13103 setopt NO_GLOB_SUBST
13104 fi
13105 # Now quote all the things that may contain metacharacters while being
13106 # careful not to overquote the AC_SUBSTed values. We take copies of the
13107 # variables and quote the copies for generation of the libtool script.
13108 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13109 SED SHELL STRIP \
13110 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13111 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13112 deplibs_check_method reload_flag reload_cmds need_locks \
13113 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13114 lt_cv_sys_global_symbol_to_c_name_address \
13115 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13116 old_postinstall_cmds old_postuninstall_cmds \
13117 compiler_CXX \
13118 CC_CXX \
13119 LD_CXX \
13120 lt_prog_compiler_wl_CXX \
13121 lt_prog_compiler_pic_CXX \
13122 lt_prog_compiler_static_CXX \
13123 lt_prog_compiler_no_builtin_flag_CXX \
13124 export_dynamic_flag_spec_CXX \
13125 thread_safe_flag_spec_CXX \
13126 whole_archive_flag_spec_CXX \
13127 enable_shared_with_static_runtimes_CXX \
13128 old_archive_cmds_CXX \
13129 old_archive_from_new_cmds_CXX \
13130 predep_objects_CXX \
13131 postdep_objects_CXX \
13132 predeps_CXX \
13133 postdeps_CXX \
13134 compiler_lib_search_path_CXX \
13135 archive_cmds_CXX \
13136 archive_expsym_cmds_CXX \
13137 postinstall_cmds_CXX \
13138 postuninstall_cmds_CXX \
13139 old_archive_from_expsyms_cmds_CXX \
13140 allow_undefined_flag_CXX \
13141 no_undefined_flag_CXX \
13142 export_symbols_cmds_CXX \
13143 hardcode_libdir_flag_spec_CXX \
13144 hardcode_libdir_flag_spec_ld_CXX \
13145 hardcode_libdir_separator_CXX \
13146 hardcode_automatic_CXX \
13147 module_cmds_CXX \
13148 module_expsym_cmds_CXX \
13149 lt_cv_prog_compiler_c_o_CXX \
13150 exclude_expsyms_CXX \
13151 include_expsyms_CXX; do
13152
13153 case $var in
13154 old_archive_cmds_CXX | \
13155 old_archive_from_new_cmds_CXX | \
13156 archive_cmds_CXX | \
13157 archive_expsym_cmds_CXX | \
13158 module_cmds_CXX | \
13159 module_expsym_cmds_CXX | \
13160 old_archive_from_expsyms_cmds_CXX | \
13161 export_symbols_cmds_CXX | \
13162 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13163 postinstall_cmds | postuninstall_cmds | \
13164 old_postinstall_cmds | old_postuninstall_cmds | \
13165 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13166 # Double-quote double-evaled strings.
13167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13168 ;;
13169 *)
13170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13171 ;;
13172 esac
13173 done
13174
13175 case $lt_echo in
13176 *'\$0 --fallback-echo"')
13177 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13178 ;;
13179 esac
13180
13181 cfgfile="$ofile"
13182
13183 cat <<__EOF__ >> "$cfgfile"
13184 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13185
13186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13187
13188 # Shell to use when invoking shell scripts.
13189 SHELL=$lt_SHELL
13190
13191 # Whether or not to build shared libraries.
13192 build_libtool_libs=$enable_shared
13193
13194 # Whether or not to build static libraries.
13195 build_old_libs=$enable_static
13196
13197 # Whether or not to add -lc for building shared libraries.
13198 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13199
13200 # Whether or not to disallow shared libs when runtime libs are static
13201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13202
13203 # Whether or not to optimize for fast installation.
13204 fast_install=$enable_fast_install
13205
13206 # The host system.
13207 host_alias=$host_alias
13208 host=$host
13209 host_os=$host_os
13210
13211 # The build system.
13212 build_alias=$build_alias
13213 build=$build
13214 build_os=$build_os
13215
13216 # An echo program that does not interpret backslashes.
13217 echo=$lt_echo
13218
13219 # The archiver.
13220 AR=$lt_AR
13221 AR_FLAGS=$lt_AR_FLAGS
13222
13223 # A C compiler.
13224 LTCC=$lt_LTCC
13225
13226 # LTCC compiler flags.
13227 LTCFLAGS=$lt_LTCFLAGS
13228
13229 # A language-specific compiler.
13230 CC=$lt_compiler_CXX
13231
13232 # Is the compiler the GNU C compiler?
13233 with_gcc=$GCC_CXX
13234
13235 # An ERE matcher.
13236 EGREP=$lt_EGREP
13237
13238 # The linker used to build libraries.
13239 LD=$lt_LD_CXX
13240
13241 # Whether we need hard or soft links.
13242 LN_S=$lt_LN_S
13243
13244 # A BSD-compatible nm program.
13245 NM=$lt_NM
13246
13247 # A symbol stripping program
13248 STRIP=$lt_STRIP
13249
13250 # Used to examine libraries when file_magic_cmd begins "file"
13251 MAGIC_CMD=$MAGIC_CMD
13252
13253 # Used on cygwin: DLL creation program.
13254 DLLTOOL="$DLLTOOL"
13255
13256 # Used on cygwin: object dumper.
13257 OBJDUMP="$OBJDUMP"
13258
13259 # Used on cygwin: assembler.
13260 AS="$AS"
13261
13262 # The name of the directory that contains temporary libtool files.
13263 objdir=$objdir
13264
13265 # How to create reloadable object files.
13266 reload_flag=$lt_reload_flag
13267 reload_cmds=$lt_reload_cmds
13268
13269 # How to pass a linker flag through the compiler.
13270 wl=$lt_lt_prog_compiler_wl_CXX
13271
13272 # Object file suffix (normally "o").
13273 objext="$ac_objext"
13274
13275 # Old archive suffix (normally "a").
13276 libext="$libext"
13277
13278 # Shared library suffix (normally ".so").
13279 shrext_cmds='$shrext_cmds'
13280
13281 # Executable file suffix (normally "").
13282 exeext="$exeext"
13283
13284 # Additional compiler flags for building library objects.
13285 pic_flag=$lt_lt_prog_compiler_pic_CXX
13286 pic_mode=$pic_mode
13287
13288 # What is the maximum length of a command?
13289 max_cmd_len=$lt_cv_sys_max_cmd_len
13290
13291 # Does compiler simultaneously support -c and -o options?
13292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13293
13294 # Must we lock files when doing compilation?
13295 need_locks=$lt_need_locks
13296
13297 # Do we need the lib prefix for modules?
13298 need_lib_prefix=$need_lib_prefix
13299
13300 # Do we need a version for libraries?
13301 need_version=$need_version
13302
13303 # Whether dlopen is supported.
13304 dlopen_support=$enable_dlopen
13305
13306 # Whether dlopen of programs is supported.
13307 dlopen_self=$enable_dlopen_self
13308
13309 # Whether dlopen of statically linked programs is supported.
13310 dlopen_self_static=$enable_dlopen_self_static
13311
13312 # Compiler flag to prevent dynamic linking.
13313 link_static_flag=$lt_lt_prog_compiler_static_CXX
13314
13315 # Compiler flag to turn off builtin functions.
13316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13317
13318 # Compiler flag to allow reflexive dlopens.
13319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13320
13321 # Compiler flag to generate shared objects directly from archives.
13322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13323
13324 # Compiler flag to generate thread-safe objects.
13325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13326
13327 # Library versioning type.
13328 version_type=$version_type
13329
13330 # Format of library name prefix.
13331 libname_spec=$lt_libname_spec
13332
13333 # List of archive names. First name is the real one, the rest are links.
13334 # The last name is the one that the linker finds with -lNAME.
13335 library_names_spec=$lt_library_names_spec
13336
13337 # The coded name of the library, if different from the real name.
13338 soname_spec=$lt_soname_spec
13339
13340 # Commands used to build and install an old-style archive.
13341 RANLIB=$lt_RANLIB
13342 old_archive_cmds=$lt_old_archive_cmds_CXX
13343 old_postinstall_cmds=$lt_old_postinstall_cmds
13344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13345
13346 # Create an old-style archive from a shared archive.
13347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13348
13349 # Create a temporary old-style archive to link instead of a shared archive.
13350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13351
13352 # Commands used to build and install a shared archive.
13353 archive_cmds=$lt_archive_cmds_CXX
13354 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13355 postinstall_cmds=$lt_postinstall_cmds
13356 postuninstall_cmds=$lt_postuninstall_cmds
13357
13358 # Commands used to build a loadable module (assumed same as above if empty)
13359 module_cmds=$lt_module_cmds_CXX
13360 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13361
13362 # Commands to strip libraries.
13363 old_striplib=$lt_old_striplib
13364 striplib=$lt_striplib
13365
13366 # Dependencies to place before the objects being linked to create a
13367 # shared library.
13368 predep_objects=$lt_predep_objects_CXX
13369
13370 # Dependencies to place after the objects being linked to create a
13371 # shared library.
13372 postdep_objects=$lt_postdep_objects_CXX
13373
13374 # Dependencies to place before the objects being linked to create a
13375 # shared library.
13376 predeps=$lt_predeps_CXX
13377
13378 # Dependencies to place after the objects being linked to create a
13379 # shared library.
13380 postdeps=$lt_postdeps_CXX
13381
13382 # The library search path used internally by the compiler when linking
13383 # a shared library.
13384 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13385
13386 # Method to check whether dependent libraries are shared objects.
13387 deplibs_check_method=$lt_deplibs_check_method
13388
13389 # Command to use when deplibs_check_method == file_magic.
13390 file_magic_cmd=$lt_file_magic_cmd
13391
13392 # Flag that allows shared libraries with undefined symbols to be built.
13393 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13394
13395 # Flag that forces no undefined symbols.
13396 no_undefined_flag=$lt_no_undefined_flag_CXX
13397
13398 # Commands used to finish a libtool library installation in a directory.
13399 finish_cmds=$lt_finish_cmds
13400
13401 # Same as above, but a single script fragment to be evaled but not shown.
13402 finish_eval=$lt_finish_eval
13403
13404 # Take the output of nm and produce a listing of raw symbols and C names.
13405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13406
13407 # Transform the output of nm in a proper C declaration
13408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13409
13410 # Transform the output of nm in a C name address pair
13411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13412
13413 # This is the shared library runtime path variable.
13414 runpath_var=$runpath_var
13415
13416 # This is the shared library path variable.
13417 shlibpath_var=$shlibpath_var
13418
13419 # Is shlibpath searched before the hard-coded library search path?
13420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13421
13422 # How to hardcode a shared library path into an executable.
13423 hardcode_action=$hardcode_action_CXX
13424
13425 # Whether we should hardcode library paths into libraries.
13426 hardcode_into_libs=$hardcode_into_libs
13427
13428 # Flag to hardcode \$libdir into a binary during linking.
13429 # This must work even if \$libdir does not exist.
13430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13431
13432 # If ld is used when linking, flag to hardcode \$libdir into
13433 # a binary during linking. This must work even if \$libdir does
13434 # not exist.
13435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13436
13437 # Whether we need a single -rpath flag with a separated argument.
13438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13439
13440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13441 # resulting binary.
13442 hardcode_direct=$hardcode_direct_CXX
13443
13444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13445 # resulting binary.
13446 hardcode_minus_L=$hardcode_minus_L_CXX
13447
13448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13449 # the resulting binary.
13450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13451
13452 # Set to yes if building a shared library automatically hardcodes DIR into the library
13453 # and all subsequent libraries and executables linked against it.
13454 hardcode_automatic=$hardcode_automatic_CXX
13455
13456 # Variables whose values should be saved in libtool wrapper scripts and
13457 # restored at relink time.
13458 variables_saved_for_relink="$variables_saved_for_relink"
13459
13460 # Whether libtool must link a program against all its dependency libraries.
13461 link_all_deplibs=$link_all_deplibs_CXX
13462
13463 # Compile-time system search path for libraries
13464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13465
13466 # Run-time system search path for libraries
13467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13468
13469 # Fix the shell variable \$srcfile for the compiler.
13470 fix_srcfile_path="$fix_srcfile_path_CXX"
13471
13472 # Set to yes if exported symbols are required.
13473 always_export_symbols=$always_export_symbols_CXX
13474
13475 # The commands to list exported symbols.
13476 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13477
13478 # The commands to extract the exported symbol list from a shared archive.
13479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13480
13481 # Symbols that should not be listed in the preloaded symbols.
13482 exclude_expsyms=$lt_exclude_expsyms_CXX
13483
13484 # Symbols that must always be exported.
13485 include_expsyms=$lt_include_expsyms_CXX
13486
13487 # ### END LIBTOOL TAG CONFIG: $tagname
13488
13489 __EOF__
13490
13491
13492 else
13493 # If there is no Makefile yet, we rely on a make rule to execute
13494 # `config.status --recheck' to rerun these tests and create the
13495 # libtool script then.
13496 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13497 if test -f "$ltmain_in"; then
13498 test -f Makefile && make "$ltmain"
13499 fi
13500 fi
13501
13502
13503 ac_ext=c
13504 ac_cpp='$CPP $CPPFLAGS'
13505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13508
13509 CC=$lt_save_CC
13510 LDCXX=$LD
13511 LD=$lt_save_LD
13512 GCC=$lt_save_GCC
13513 with_gnu_ldcxx=$with_gnu_ld
13514 with_gnu_ld=$lt_save_with_gnu_ld
13515 lt_cv_path_LDCXX=$lt_cv_path_LD
13516 lt_cv_path_LD=$lt_save_path_LD
13517 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13518 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13519
13520 else
13521 tagname=""
13522 fi
13523 ;;
13524
13525 F77)
13526 if test -n "$F77" && test "X$F77" != "Xno"; then
13527
13528 ac_ext=f
13529 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13530 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13531 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13532
13533
13534 archive_cmds_need_lc_F77=no
13535 allow_undefined_flag_F77=
13536 always_export_symbols_F77=no
13537 archive_expsym_cmds_F77=
13538 export_dynamic_flag_spec_F77=
13539 hardcode_direct_F77=no
13540 hardcode_libdir_flag_spec_F77=
13541 hardcode_libdir_flag_spec_ld_F77=
13542 hardcode_libdir_separator_F77=
13543 hardcode_minus_L_F77=no
13544 hardcode_automatic_F77=no
13545 module_cmds_F77=
13546 module_expsym_cmds_F77=
13547 link_all_deplibs_F77=unknown
13548 old_archive_cmds_F77=$old_archive_cmds
13549 no_undefined_flag_F77=
13550 whole_archive_flag_spec_F77=
13551 enable_shared_with_static_runtimes_F77=no
13552
13553 # Source file extension for f77 test sources.
13554 ac_ext=f
13555
13556 # Object file extension for compiled f77 test sources.
13557 objext=o
13558 objext_F77=$objext
13559
13560 # Code to be used in simple compile tests
13561 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13562
13563 # Code to be used in simple link tests
13564 lt_simple_link_test_code=" program t\n end\n"
13565
13566 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13567
13568 # If no C compiler was specified, use CC.
13569 LTCC=${LTCC-"$CC"}
13570
13571 # If no C compiler flags were specified, use CFLAGS.
13572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13573
13574 # Allow CC to be a program name with arguments.
13575 compiler=$CC
13576
13577
13578 # save warnings/boilerplate of simple test code
13579 ac_outfile=conftest.$ac_objext
13580 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13581 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13582 _lt_compiler_boilerplate=`cat conftest.err`
13583 $rm conftest*
13584
13585 ac_outfile=conftest.$ac_objext
13586 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13587 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13588 _lt_linker_boilerplate=`cat conftest.err`
13589 $rm conftest*
13590
13591
13592 # Allow CC to be a program name with arguments.
13593 lt_save_CC="$CC"
13594 CC=${F77-"f77"}
13595 compiler=$CC
13596 compiler_F77=$CC
13597 for cc_temp in $compiler""; do
13598 case $cc_temp in
13599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13601 \-*) ;;
13602 *) break;;
13603 esac
13604 done
13605 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13606
13607
13608 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13609 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13610 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13611 echo "${ECHO_T}$can_build_shared" >&6; }
13612
13613 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13614 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13615 test "$can_build_shared" = "no" && enable_shared=no
13616
13617 # On AIX, shared libraries and static libraries use the same namespace, and
13618 # are all built from PIC.
13619 case $host_os in
13620 aix3*)
13621 test "$enable_shared" = yes && enable_static=no
13622 if test -n "$RANLIB"; then
13623 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13624 postinstall_cmds='$RANLIB $lib'
13625 fi
13626 ;;
13627 aix4* | aix5*)
13628 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13629 test "$enable_shared" = yes && enable_static=no
13630 fi
13631 ;;
13632 esac
13633 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13634 echo "${ECHO_T}$enable_shared" >&6; }
13635
13636 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13637 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13638 # Make sure either enable_shared or enable_static is yes.
13639 test "$enable_shared" = yes || enable_static=yes
13640 { echo "$as_me:$LINENO: result: $enable_static" >&5
13641 echo "${ECHO_T}$enable_static" >&6; }
13642
13643 GCC_F77="$G77"
13644 LD_F77="$LD"
13645
13646 lt_prog_compiler_wl_F77=
13647 lt_prog_compiler_pic_F77=
13648 lt_prog_compiler_static_F77=
13649
13650 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13651 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13652
13653 if test "$GCC" = yes; then
13654 lt_prog_compiler_wl_F77='-Wl,'
13655 lt_prog_compiler_static_F77='-static'
13656
13657 case $host_os in
13658 aix*)
13659 # All AIX code is PIC.
13660 if test "$host_cpu" = ia64; then
13661 # AIX 5 now supports IA64 processor
13662 lt_prog_compiler_static_F77='-Bstatic'
13663 fi
13664 ;;
13665
13666 amigaos*)
13667 # FIXME: we need at least 68020 code to build shared libraries, but
13668 # adding the `-m68020' flag to GCC prevents building anything better,
13669 # like `-m68040'.
13670 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13671 ;;
13672
13673 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13674 # PIC is the default for these OSes.
13675 ;;
13676
13677 mingw* | pw32* | os2*)
13678 # This hack is so that the source file can tell whether it is being
13679 # built for inclusion in a dll (and should export symbols for example).
13680 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13681 ;;
13682
13683 darwin* | rhapsody*)
13684 # PIC is the default on this platform
13685 # Common symbols not allowed in MH_DYLIB files
13686 lt_prog_compiler_pic_F77='-fno-common'
13687 ;;
13688
13689 interix3*)
13690 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13691 # Instead, we relocate shared libraries at runtime.
13692 ;;
13693
13694 msdosdjgpp*)
13695 # Just because we use GCC doesn't mean we suddenly get shared libraries
13696 # on systems that don't support them.
13697 lt_prog_compiler_can_build_shared_F77=no
13698 enable_shared=no
13699 ;;
13700
13701 sysv4*MP*)
13702 if test -d /usr/nec; then
13703 lt_prog_compiler_pic_F77=-Kconform_pic
13704 fi
13705 ;;
13706
13707 hpux*)
13708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13709 # not for PA HP-UX.
13710 case $host_cpu in
13711 hppa*64*|ia64*)
13712 # +Z the default
13713 ;;
13714 *)
13715 lt_prog_compiler_pic_F77='-fPIC'
13716 ;;
13717 esac
13718 ;;
13719
13720 *)
13721 lt_prog_compiler_pic_F77='-fPIC'
13722 ;;
13723 esac
13724 else
13725 # PORTME Check for flag to pass linker flags through the system compiler.
13726 case $host_os in
13727 aix*)
13728 lt_prog_compiler_wl_F77='-Wl,'
13729 if test "$host_cpu" = ia64; then
13730 # AIX 5 now supports IA64 processor
13731 lt_prog_compiler_static_F77='-Bstatic'
13732 else
13733 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13734 fi
13735 ;;
13736 darwin*)
13737 # PIC is the default on this platform
13738 # Common symbols not allowed in MH_DYLIB files
13739 case $cc_basename in
13740 xlc*)
13741 lt_prog_compiler_pic_F77='-qnocommon'
13742 lt_prog_compiler_wl_F77='-Wl,'
13743 ;;
13744 esac
13745 ;;
13746
13747 mingw* | pw32* | os2*)
13748 # This hack is so that the source file can tell whether it is being
13749 # built for inclusion in a dll (and should export symbols for example).
13750 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13751 ;;
13752
13753 hpux9* | hpux10* | hpux11*)
13754 lt_prog_compiler_wl_F77='-Wl,'
13755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13756 # not for PA HP-UX.
13757 case $host_cpu in
13758 hppa*64*|ia64*)
13759 # +Z the default
13760 ;;
13761 *)
13762 lt_prog_compiler_pic_F77='+Z'
13763 ;;
13764 esac
13765 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13766 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13767 ;;
13768
13769 irix5* | irix6* | nonstopux*)
13770 lt_prog_compiler_wl_F77='-Wl,'
13771 # PIC (with -KPIC) is the default.
13772 lt_prog_compiler_static_F77='-non_shared'
13773 ;;
13774
13775 newsos6)
13776 lt_prog_compiler_pic_F77='-KPIC'
13777 lt_prog_compiler_static_F77='-Bstatic'
13778 ;;
13779
13780 linux*)
13781 case $cc_basename in
13782 icc* | ecc*)
13783 lt_prog_compiler_wl_F77='-Wl,'
13784 lt_prog_compiler_pic_F77='-KPIC'
13785 lt_prog_compiler_static_F77='-static'
13786 ;;
13787 pgcc* | pgf77* | pgf90* | pgf95*)
13788 # Portland Group compilers (*not* the Pentium gcc compiler,
13789 # which looks to be a dead project)
13790 lt_prog_compiler_wl_F77='-Wl,'
13791 lt_prog_compiler_pic_F77='-fpic'
13792 lt_prog_compiler_static_F77='-Bstatic'
13793 ;;
13794 ccc*)
13795 lt_prog_compiler_wl_F77='-Wl,'
13796 # All Alpha code is PIC.
13797 lt_prog_compiler_static_F77='-non_shared'
13798 ;;
13799 esac
13800 ;;
13801
13802 osf3* | osf4* | osf5*)
13803 lt_prog_compiler_wl_F77='-Wl,'
13804 # All OSF/1 code is PIC.
13805 lt_prog_compiler_static_F77='-non_shared'
13806 ;;
13807
13808 solaris*)
13809 lt_prog_compiler_pic_F77='-KPIC'
13810 lt_prog_compiler_static_F77='-Bstatic'
13811 case $cc_basename in
13812 f77* | f90* | f95*)
13813 lt_prog_compiler_wl_F77='-Qoption ld ';;
13814 *)
13815 lt_prog_compiler_wl_F77='-Wl,';;
13816 esac
13817 ;;
13818
13819 sunos4*)
13820 lt_prog_compiler_wl_F77='-Qoption ld '
13821 lt_prog_compiler_pic_F77='-PIC'
13822 lt_prog_compiler_static_F77='-Bstatic'
13823 ;;
13824
13825 sysv4 | sysv4.2uw2* | sysv4.3*)
13826 lt_prog_compiler_wl_F77='-Wl,'
13827 lt_prog_compiler_pic_F77='-KPIC'
13828 lt_prog_compiler_static_F77='-Bstatic'
13829 ;;
13830
13831 sysv4*MP*)
13832 if test -d /usr/nec ;then
13833 lt_prog_compiler_pic_F77='-Kconform_pic'
13834 lt_prog_compiler_static_F77='-Bstatic'
13835 fi
13836 ;;
13837
13838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13839 lt_prog_compiler_wl_F77='-Wl,'
13840 lt_prog_compiler_pic_F77='-KPIC'
13841 lt_prog_compiler_static_F77='-Bstatic'
13842 ;;
13843
13844 unicos*)
13845 lt_prog_compiler_wl_F77='-Wl,'
13846 lt_prog_compiler_can_build_shared_F77=no
13847 ;;
13848
13849 uts4*)
13850 lt_prog_compiler_pic_F77='-pic'
13851 lt_prog_compiler_static_F77='-Bstatic'
13852 ;;
13853
13854 *)
13855 lt_prog_compiler_can_build_shared_F77=no
13856 ;;
13857 esac
13858 fi
13859
13860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13861 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13862
13863 #
13864 # Check to make sure the PIC flag actually works.
13865 #
13866 if test -n "$lt_prog_compiler_pic_F77"; then
13867
13868 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13869 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13870 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 lt_prog_compiler_pic_works_F77=no
13874 ac_outfile=conftest.$ac_objext
13875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13876 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13877 # Insert the option either (1) after the last *FLAGS variable, or
13878 # (2) before a word containing "conftest.", or (3) at the end.
13879 # Note that $ac_compile itself does not contain backslashes and begins
13880 # with a dollar sign (not a hyphen), so the echo should work correctly.
13881 # The option is referenced via a variable to avoid confusing sed.
13882 lt_compile=`echo "$ac_compile" | $SED \
13883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13885 -e 's:$: $lt_compiler_flag:'`
13886 (eval echo "\"\$as_me:13886: $lt_compile\"" >&5)
13887 (eval "$lt_compile" 2>conftest.err)
13888 ac_status=$?
13889 cat conftest.err >&5
13890 echo "$as_me:13890: \$? = $ac_status" >&5
13891 if (exit $ac_status) && test -s "$ac_outfile"; then
13892 # The compiler can only warn and ignore the option if not recognized
13893 # So say no if there are warnings other than the usual output.
13894 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13896 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13897 lt_prog_compiler_pic_works_F77=yes
13898 fi
13899 fi
13900 $rm conftest*
13901
13902 fi
13903 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13904 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13905
13906 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13907 case $lt_prog_compiler_pic_F77 in
13908 "" | " "*) ;;
13909 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13910 esac
13911 else
13912 lt_prog_compiler_pic_F77=
13913 lt_prog_compiler_can_build_shared_F77=no
13914 fi
13915
13916 fi
13917 case $host_os in
13918 # For platforms which do not support PIC, -DPIC is meaningless:
13919 *djgpp*)
13920 lt_prog_compiler_pic_F77=
13921 ;;
13922 *)
13923 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13924 ;;
13925 esac
13926
13927 #
13928 # Check to make sure the static flag actually works.
13929 #
13930 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13931 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13932 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13933 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936 lt_prog_compiler_static_works_F77=no
13937 save_LDFLAGS="$LDFLAGS"
13938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13939 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13941 # The linker can only warn and ignore the option if not recognized
13942 # So say no if there are warnings
13943 if test -s conftest.err; then
13944 # Append any errors to the config.log.
13945 cat conftest.err 1>&5
13946 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13948 if diff conftest.exp conftest.er2 >/dev/null; then
13949 lt_prog_compiler_static_works_F77=yes
13950 fi
13951 else
13952 lt_prog_compiler_static_works_F77=yes
13953 fi
13954 fi
13955 $rm conftest*
13956 LDFLAGS="$save_LDFLAGS"
13957
13958 fi
13959 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13960 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13961
13962 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13963 :
13964 else
13965 lt_prog_compiler_static_F77=
13966 fi
13967
13968
13969 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13970 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13971 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 else
13974 lt_cv_prog_compiler_c_o_F77=no
13975 $rm -r conftest 2>/dev/null
13976 mkdir conftest
13977 cd conftest
13978 mkdir out
13979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13980
13981 lt_compiler_flag="-o out/conftest2.$ac_objext"
13982 # Insert the option either (1) after the last *FLAGS variable, or
13983 # (2) before a word containing "conftest.", or (3) at the end.
13984 # Note that $ac_compile itself does not contain backslashes and begins
13985 # with a dollar sign (not a hyphen), so the echo should work correctly.
13986 lt_compile=`echo "$ac_compile" | $SED \
13987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13989 -e 's:$: $lt_compiler_flag:'`
13990 (eval echo "\"\$as_me:13990: $lt_compile\"" >&5)
13991 (eval "$lt_compile" 2>out/conftest.err)
13992 ac_status=$?
13993 cat out/conftest.err >&5
13994 echo "$as_me:13994: \$? = $ac_status" >&5
13995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13996 then
13997 # The compiler can only warn and ignore the option if not recognized
13998 # So say no if there are warnings
13999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14002 lt_cv_prog_compiler_c_o_F77=yes
14003 fi
14004 fi
14005 chmod u+w . 2>&5
14006 $rm conftest*
14007 # SGI C++ compiler will create directory out/ii_files/ for
14008 # template instantiation
14009 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14010 $rm out/* && rmdir out
14011 cd ..
14012 rmdir conftest
14013 $rm conftest*
14014
14015 fi
14016 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14017 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14018
14019
14020 hard_links="nottested"
14021 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14022 # do not overwrite the value of need_locks provided by the user
14023 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14024 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14025 hard_links=yes
14026 $rm conftest*
14027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14028 touch conftest.a
14029 ln conftest.a conftest.b 2>&5 || hard_links=no
14030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14031 { echo "$as_me:$LINENO: result: $hard_links" >&5
14032 echo "${ECHO_T}$hard_links" >&6; }
14033 if test "$hard_links" = no; then
14034 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14035 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14036 need_locks=warn
14037 fi
14038 else
14039 need_locks=no
14040 fi
14041
14042 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14043 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14044
14045 runpath_var=
14046 allow_undefined_flag_F77=
14047 enable_shared_with_static_runtimes_F77=no
14048 archive_cmds_F77=
14049 archive_expsym_cmds_F77=
14050 old_archive_From_new_cmds_F77=
14051 old_archive_from_expsyms_cmds_F77=
14052 export_dynamic_flag_spec_F77=
14053 whole_archive_flag_spec_F77=
14054 thread_safe_flag_spec_F77=
14055 hardcode_libdir_flag_spec_F77=
14056 hardcode_libdir_flag_spec_ld_F77=
14057 hardcode_libdir_separator_F77=
14058 hardcode_direct_F77=no
14059 hardcode_minus_L_F77=no
14060 hardcode_shlibpath_var_F77=unsupported
14061 link_all_deplibs_F77=unknown
14062 hardcode_automatic_F77=no
14063 module_cmds_F77=
14064 module_expsym_cmds_F77=
14065 always_export_symbols_F77=no
14066 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14067 # include_expsyms should be a list of space-separated symbols to be *always*
14068 # included in the symbol list
14069 include_expsyms_F77=
14070 # exclude_expsyms can be an extended regexp of symbols to exclude
14071 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14072 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14073 # as well as any symbol that contains `d'.
14074 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14075 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14076 # platforms (ab)use it in PIC code, but their linkers get confused if
14077 # the symbol is explicitly referenced. Since portable code cannot
14078 # rely on this symbol name, it's probably fine to never include it in
14079 # preloaded symbol tables.
14080 extract_expsyms_cmds=
14081 # Just being paranoid about ensuring that cc_basename is set.
14082 for cc_temp in $compiler""; do
14083 case $cc_temp in
14084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14086 \-*) ;;
14087 *) break;;
14088 esac
14089 done
14090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14091
14092 case $host_os in
14093 cygwin* | mingw* | pw32*)
14094 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14095 # When not using gcc, we currently assume that we are using
14096 # Microsoft Visual C++.
14097 if test "$GCC" != yes; then
14098 with_gnu_ld=no
14099 fi
14100 ;;
14101 interix*)
14102 # we just hope/assume this is gcc and not c89 (= MSVC++)
14103 with_gnu_ld=yes
14104 ;;
14105 openbsd*)
14106 with_gnu_ld=no
14107 ;;
14108 esac
14109
14110 ld_shlibs_F77=yes
14111 if test "$with_gnu_ld" = yes; then
14112 # If archive_cmds runs LD, not CC, wlarc should be empty
14113 wlarc='${wl}'
14114
14115 # Set some defaults for GNU ld with shared library support. These
14116 # are reset later if shared libraries are not supported. Putting them
14117 # here allows them to be overridden if necessary.
14118 runpath_var=LD_RUN_PATH
14119 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14120 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14121 # ancient GNU ld didn't support --whole-archive et. al.
14122 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14123 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14124 else
14125 whole_archive_flag_spec_F77=
14126 fi
14127 supports_anon_versioning=no
14128 case `$LD -v 2>/dev/null` in
14129 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14130 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14131 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14132 *\ 2.11.*) ;; # other 2.11 versions
14133 *) supports_anon_versioning=yes ;;
14134 esac
14135
14136 # See if GNU ld supports shared libraries.
14137 case $host_os in
14138 aix3* | aix4* | aix5*)
14139 # On AIX/PPC, the GNU linker is very broken
14140 if test "$host_cpu" != ia64; then
14141 ld_shlibs_F77=no
14142 cat <<EOF 1>&2
14143
14144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14145 *** to be unable to reliably create shared libraries on AIX.
14146 *** Therefore, libtool is disabling shared libraries support. If you
14147 *** really care for shared libraries, you may want to modify your PATH
14148 *** so that a non-GNU linker is found, and then restart.
14149
14150 EOF
14151 fi
14152 ;;
14153
14154 amigaos*)
14155 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)'
14156 hardcode_libdir_flag_spec_F77='-L$libdir'
14157 hardcode_minus_L_F77=yes
14158
14159 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14160 # that the semantics of dynamic libraries on AmigaOS, at least up
14161 # to version 4, is to share data among multiple programs linked
14162 # with the same dynamic library. Since this doesn't match the
14163 # behavior of shared libraries on other platforms, we can't use
14164 # them.
14165 ld_shlibs_F77=no
14166 ;;
14167
14168 beos*)
14169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14170 allow_undefined_flag_F77=unsupported
14171 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14172 # support --undefined. This deserves some investigation. FIXME
14173 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14174 else
14175 ld_shlibs_F77=no
14176 fi
14177 ;;
14178
14179 cygwin* | mingw* | pw32*)
14180 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14181 # as there is no search path for DLLs.
14182 hardcode_libdir_flag_spec_F77='-L$libdir'
14183 allow_undefined_flag_F77=unsupported
14184 always_export_symbols_F77=no
14185 enable_shared_with_static_runtimes_F77=yes
14186 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14187
14188 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14189 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14190 # If the export-symbols file already is a .def file (1st line
14191 # is EXPORTS), use it as is; otherwise, prepend...
14192 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14193 cp $export_symbols $output_objdir/$soname.def;
14194 else
14195 echo EXPORTS > $output_objdir/$soname.def;
14196 cat $export_symbols >> $output_objdir/$soname.def;
14197 fi~
14198 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14199 else
14200 ld_shlibs_F77=no
14201 fi
14202 ;;
14203
14204 interix3*)
14205 hardcode_direct_F77=no
14206 hardcode_shlibpath_var_F77=no
14207 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14208 export_dynamic_flag_spec_F77='${wl}-E'
14209 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14210 # Instead, shared libraries are loaded at an image base (0x10000000 by
14211 # default) and relocated if they conflict, which is a slow very memory
14212 # consuming and fragmenting process. To avoid this, we pick a random,
14213 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14214 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14215 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'
14216 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'
14217 ;;
14218
14219 linux*)
14220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14221 tmp_addflag=
14222 case $cc_basename,$host_cpu in
14223 pgcc*) # Portland Group C compiler
14224 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'
14225 tmp_addflag=' $pic_flag'
14226 ;;
14227 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
14230 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14231 tmp_addflag=' -i_dynamic' ;;
14232 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14233 tmp_addflag=' -i_dynamic -nofor_main' ;;
14234 ifc* | ifort*) # Intel Fortran compiler
14235 tmp_addflag=' -nofor_main' ;;
14236 esac
14237 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238
14239 if test $supports_anon_versioning = yes; then
14240 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14242 $echo "local: *; };" >> $output_objdir/$libname.ver~
14243 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14244 fi
14245 else
14246 ld_shlibs_F77=no
14247 fi
14248 ;;
14249
14250 netbsd*)
14251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14252 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14253 wlarc=
14254 else
14255 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14256 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14257 fi
14258 ;;
14259
14260 solaris*)
14261 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14262 ld_shlibs_F77=no
14263 cat <<EOF 1>&2
14264
14265 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14266 *** create shared libraries on Solaris systems. Therefore, libtool
14267 *** is disabling shared libraries support. We urge you to upgrade GNU
14268 *** binutils to release 2.9.1 or newer. Another option is to modify
14269 *** your PATH or compiler configuration so that the native linker is
14270 *** used, and then restart.
14271
14272 EOF
14273 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14274 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14275 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14276 else
14277 ld_shlibs_F77=no
14278 fi
14279 ;;
14280
14281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14282 case `$LD -v 2>&1` in
14283 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14284 ld_shlibs_F77=no
14285 cat <<_LT_EOF 1>&2
14286
14287 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14288 *** reliably create shared libraries on SCO systems. Therefore, libtool
14289 *** is disabling shared libraries support. We urge you to upgrade GNU
14290 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14291 *** your PATH or compiler configuration so that the native linker is
14292 *** used, and then restart.
14293
14294 _LT_EOF
14295 ;;
14296 *)
14297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14298 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14299 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14300 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14301 else
14302 ld_shlibs_F77=no
14303 fi
14304 ;;
14305 esac
14306 ;;
14307
14308 sunos4*)
14309 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14310 wlarc=
14311 hardcode_direct_F77=yes
14312 hardcode_shlibpath_var_F77=no
14313 ;;
14314
14315 *)
14316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14317 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14318 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14319 else
14320 ld_shlibs_F77=no
14321 fi
14322 ;;
14323 esac
14324
14325 if test "$ld_shlibs_F77" = no; then
14326 runpath_var=
14327 hardcode_libdir_flag_spec_F77=
14328 export_dynamic_flag_spec_F77=
14329 whole_archive_flag_spec_F77=
14330 fi
14331 else
14332 # PORTME fill in a description of your system's linker (not GNU ld)
14333 case $host_os in
14334 aix3*)
14335 allow_undefined_flag_F77=unsupported
14336 always_export_symbols_F77=yes
14337 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'
14338 # Note: this linker hardcodes the directories in LIBPATH if there
14339 # are no directories specified by -L.
14340 hardcode_minus_L_F77=yes
14341 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14342 # Neither direct hardcoding nor static linking is supported with a
14343 # broken collect2.
14344 hardcode_direct_F77=unsupported
14345 fi
14346 ;;
14347
14348 aix4* | aix5*)
14349 if test "$host_cpu" = ia64; then
14350 # On IA64, the linker does run time linking by default, so we don't
14351 # have to do anything special.
14352 aix_use_runtimelinking=no
14353 exp_sym_flag='-Bexport'
14354 no_entry_flag=""
14355 else
14356 # If we're using GNU nm, then we don't want the "-C" option.
14357 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14358 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14359 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'
14360 else
14361 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'
14362 fi
14363 aix_use_runtimelinking=no
14364
14365 # Test if we are trying to use run time linking or normal
14366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14367 # need to do runtime linking.
14368 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14369 for ld_flag in $LDFLAGS; do
14370 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14371 aix_use_runtimelinking=yes
14372 break
14373 fi
14374 done
14375 ;;
14376 esac
14377
14378 exp_sym_flag='-bexport'
14379 no_entry_flag='-bnoentry'
14380 fi
14381
14382 # When large executables or shared objects are built, AIX ld can
14383 # have problems creating the table of contents. If linking a library
14384 # or program results in "error TOC overflow" add -mminimal-toc to
14385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14387
14388 archive_cmds_F77=''
14389 hardcode_direct_F77=yes
14390 hardcode_libdir_separator_F77=':'
14391 link_all_deplibs_F77=yes
14392
14393 if test "$GCC" = yes; then
14394 case $host_os in aix4.[012]|aix4.[012].*)
14395 # We only want to do this on AIX 4.2 and lower, the check
14396 # below for broken collect2 doesn't work under 4.3+
14397 collect2name=`${CC} -print-prog-name=collect2`
14398 if test -f "$collect2name" && \
14399 strings "$collect2name" | grep resolve_lib_name >/dev/null
14400 then
14401 # We have reworked collect2
14402 hardcode_direct_F77=yes
14403 else
14404 # We have old collect2
14405 hardcode_direct_F77=unsupported
14406 # It fails to find uninstalled libraries when the uninstalled
14407 # path is not listed in the libpath. Setting hardcode_minus_L
14408 # to unsupported forces relinking
14409 hardcode_minus_L_F77=yes
14410 hardcode_libdir_flag_spec_F77='-L$libdir'
14411 hardcode_libdir_separator_F77=
14412 fi
14413 ;;
14414 esac
14415 shared_flag='-shared'
14416 if test "$aix_use_runtimelinking" = yes; then
14417 shared_flag="$shared_flag "'${wl}-G'
14418 fi
14419 else
14420 # not using gcc
14421 if test "$host_cpu" = ia64; then
14422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14423 # chokes on -Wl,-G. The following line is correct:
14424 shared_flag='-G'
14425 else
14426 if test "$aix_use_runtimelinking" = yes; then
14427 shared_flag='${wl}-G'
14428 else
14429 shared_flag='${wl}-bM:SRE'
14430 fi
14431 fi
14432 fi
14433
14434 # It seems that -bexpall does not export symbols beginning with
14435 # underscore (_), so it is better to generate a list of symbols to export.
14436 always_export_symbols_F77=yes
14437 if test "$aix_use_runtimelinking" = yes; then
14438 # Warning - without using the other runtime loading flags (-brtl),
14439 # -berok will link without error, but may produce a broken library.
14440 allow_undefined_flag_F77='-berok'
14441 # Determine the default libpath from the value encoded in an empty executable.
14442 cat >conftest.$ac_ext <<_ACEOF
14443 program main
14444
14445 end
14446 _ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (ac_try="$ac_link"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_link") 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } && {
14461 test -z "$ac_f77_werror_flag" ||
14462 test ! -s conftest.err
14463 } && test -s conftest$ac_exeext &&
14464 $as_test_x conftest$ac_exeext; then
14465
14466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14467 }'`
14468 # Check for a 64-bit object if we didn't find anything.
14469 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; }
14470 }'`; fi
14471 else
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475
14476 fi
14477
14478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14479 conftest$ac_exeext conftest.$ac_ext
14480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14481
14482 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14483 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"
14484 else
14485 if test "$host_cpu" = ia64; then
14486 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14487 allow_undefined_flag_F77="-z nodefs"
14488 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"
14489 else
14490 # Determine the default libpath from the value encoded in an empty executable.
14491 cat >conftest.$ac_ext <<_ACEOF
14492 program main
14493
14494 end
14495 _ACEOF
14496 rm -f conftest.$ac_objext conftest$ac_exeext
14497 if { (ac_try="$ac_link"
14498 case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14501 esac
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503 (eval "$ac_link") 2>conftest.er1
14504 ac_status=$?
14505 grep -v '^ *+' conftest.er1 >conftest.err
14506 rm -f conftest.er1
14507 cat conftest.err >&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } && {
14510 test -z "$ac_f77_werror_flag" ||
14511 test ! -s conftest.err
14512 } && test -s conftest$ac_exeext &&
14513 $as_test_x conftest$ac_exeext; then
14514
14515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14516 }'`
14517 # Check for a 64-bit object if we didn't find anything.
14518 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; }
14519 }'`; fi
14520 else
14521 echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14523
14524
14525 fi
14526
14527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14528 conftest$ac_exeext conftest.$ac_ext
14529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14530
14531 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14532 # Warning - without using the other run time loading flags,
14533 # -berok will link without error, but may produce a broken library.
14534 no_undefined_flag_F77=' ${wl}-bernotok'
14535 allow_undefined_flag_F77=' ${wl}-berok'
14536 # Exported symbols can be pulled into shared objects from archives
14537 whole_archive_flag_spec_F77='$convenience'
14538 archive_cmds_need_lc_F77=yes
14539 # This is similar to how AIX traditionally builds its shared libraries.
14540 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'
14541 fi
14542 fi
14543 ;;
14544
14545 amigaos*)
14546 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)'
14547 hardcode_libdir_flag_spec_F77='-L$libdir'
14548 hardcode_minus_L_F77=yes
14549 # see comment about different semantics on the GNU ld section
14550 ld_shlibs_F77=no
14551 ;;
14552
14553 bsdi[45]*)
14554 export_dynamic_flag_spec_F77=-rdynamic
14555 ;;
14556
14557 cygwin* | mingw* | pw32*)
14558 # When not using gcc, we currently assume that we are using
14559 # Microsoft Visual C++.
14560 # hardcode_libdir_flag_spec is actually meaningless, as there is
14561 # no search path for DLLs.
14562 hardcode_libdir_flag_spec_F77=' '
14563 allow_undefined_flag_F77=unsupported
14564 # Tell ltmain to make .lib files, not .a files.
14565 libext=lib
14566 # Tell ltmain to make .dll files, not .so files.
14567 shrext_cmds=".dll"
14568 # FIXME: Setting linknames here is a bad hack.
14569 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14570 # The linker will automatically build a .lib file if we build a DLL.
14571 old_archive_From_new_cmds_F77='true'
14572 # FIXME: Should let the user specify the lib program.
14573 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14574 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14575 enable_shared_with_static_runtimes_F77=yes
14576 ;;
14577
14578 darwin* | rhapsody*)
14579 case $host_os in
14580 rhapsody* | darwin1.[012])
14581 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14582 ;;
14583 *) # Darwin 1.3 on
14584 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14585 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14586 else
14587 case ${MACOSX_DEPLOYMENT_TARGET} in
14588 10.[012])
14589 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14590 ;;
14591 10.*)
14592 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14593 ;;
14594 esac
14595 fi
14596 ;;
14597 esac
14598 archive_cmds_need_lc_F77=no
14599 hardcode_direct_F77=no
14600 hardcode_automatic_F77=yes
14601 hardcode_shlibpath_var_F77=unsupported
14602 whole_archive_flag_spec_F77=''
14603 link_all_deplibs_F77=yes
14604 if test "$GCC" = yes ; then
14605 output_verbose_link_cmd='echo'
14606 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14607 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14608 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14609 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}'
14610 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}'
14611 else
14612 case $cc_basename in
14613 xlc*)
14614 output_verbose_link_cmd='echo'
14615 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14616 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14618 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}'
14619 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}'
14620 ;;
14621 *)
14622 ld_shlibs_F77=no
14623 ;;
14624 esac
14625 fi
14626 ;;
14627
14628 dgux*)
14629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14630 hardcode_libdir_flag_spec_F77='-L$libdir'
14631 hardcode_shlibpath_var_F77=no
14632 ;;
14633
14634 freebsd1*)
14635 ld_shlibs_F77=no
14636 ;;
14637
14638 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14639 # support. Future versions do this automatically, but an explicit c++rt0.o
14640 # does not break anything, and helps significantly (at the cost of a little
14641 # extra space).
14642 freebsd2.2*)
14643 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14644 hardcode_libdir_flag_spec_F77='-R$libdir'
14645 hardcode_direct_F77=yes
14646 hardcode_shlibpath_var_F77=no
14647 ;;
14648
14649 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14650 freebsd2*)
14651 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14652 hardcode_direct_F77=yes
14653 hardcode_minus_L_F77=yes
14654 hardcode_shlibpath_var_F77=no
14655 ;;
14656
14657 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14658 freebsd* | kfreebsd*-gnu | dragonfly*)
14659 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14660 hardcode_libdir_flag_spec_F77='-R$libdir'
14661 hardcode_direct_F77=yes
14662 hardcode_shlibpath_var_F77=no
14663 ;;
14664
14665 hpux9*)
14666 if test "$GCC" = yes; then
14667 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'
14668 else
14669 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'
14670 fi
14671 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14672 hardcode_libdir_separator_F77=:
14673 hardcode_direct_F77=yes
14674
14675 # hardcode_minus_L: Not really in the search PATH,
14676 # but as the default location of the library.
14677 hardcode_minus_L_F77=yes
14678 export_dynamic_flag_spec_F77='${wl}-E'
14679 ;;
14680
14681 hpux10*)
14682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14683 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14684 else
14685 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14686 fi
14687 if test "$with_gnu_ld" = no; then
14688 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14689 hardcode_libdir_separator_F77=:
14690
14691 hardcode_direct_F77=yes
14692 export_dynamic_flag_spec_F77='${wl}-E'
14693
14694 # hardcode_minus_L: Not really in the search PATH,
14695 # but as the default location of the library.
14696 hardcode_minus_L_F77=yes
14697 fi
14698 ;;
14699
14700 hpux11*)
14701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14702 case $host_cpu in
14703 hppa*64*)
14704 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14705 ;;
14706 ia64*)
14707 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14708 ;;
14709 *)
14710 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14711 ;;
14712 esac
14713 else
14714 case $host_cpu in
14715 hppa*64*)
14716 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14717 ;;
14718 ia64*)
14719 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14720 ;;
14721 *)
14722 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14723 ;;
14724 esac
14725 fi
14726 if test "$with_gnu_ld" = no; then
14727 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14728 hardcode_libdir_separator_F77=:
14729
14730 case $host_cpu in
14731 hppa*64*|ia64*)
14732 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14733 hardcode_direct_F77=no
14734 hardcode_shlibpath_var_F77=no
14735 ;;
14736 *)
14737 hardcode_direct_F77=yes
14738 export_dynamic_flag_spec_F77='${wl}-E'
14739
14740 # hardcode_minus_L: Not really in the search PATH,
14741 # but as the default location of the library.
14742 hardcode_minus_L_F77=yes
14743 ;;
14744 esac
14745 fi
14746 ;;
14747
14748 irix5* | irix6* | nonstopux*)
14749 if test "$GCC" = yes; then
14750 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'
14751 else
14752 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'
14753 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14754 fi
14755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14756 hardcode_libdir_separator_F77=:
14757 link_all_deplibs_F77=yes
14758 ;;
14759
14760 netbsd*)
14761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14762 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14763 else
14764 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14765 fi
14766 hardcode_libdir_flag_spec_F77='-R$libdir'
14767 hardcode_direct_F77=yes
14768 hardcode_shlibpath_var_F77=no
14769 ;;
14770
14771 newsos6)
14772 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_direct_F77=yes
14774 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14775 hardcode_libdir_separator_F77=:
14776 hardcode_shlibpath_var_F77=no
14777 ;;
14778
14779 openbsd*)
14780 hardcode_direct_F77=yes
14781 hardcode_shlibpath_var_F77=no
14782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14783 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14784 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14785 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14786 export_dynamic_flag_spec_F77='${wl}-E'
14787 else
14788 case $host_os in
14789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14790 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14791 hardcode_libdir_flag_spec_F77='-R$libdir'
14792 ;;
14793 *)
14794 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14795 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14796 ;;
14797 esac
14798 fi
14799 ;;
14800
14801 os2*)
14802 hardcode_libdir_flag_spec_F77='-L$libdir'
14803 hardcode_minus_L_F77=yes
14804 allow_undefined_flag_F77=unsupported
14805 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'
14806 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14807 ;;
14808
14809 osf3*)
14810 if test "$GCC" = yes; then
14811 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14812 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'
14813 else
14814 allow_undefined_flag_F77=' -expect_unresolved \*'
14815 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'
14816 fi
14817 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14818 hardcode_libdir_separator_F77=:
14819 ;;
14820
14821 osf4* | osf5*) # as osf3* with the addition of -msym flag
14822 if test "$GCC" = yes; then
14823 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14824 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'
14825 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14826 else
14827 allow_undefined_flag_F77=' -expect_unresolved \*'
14828 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'
14829 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~
14830 $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'
14831
14832 # Both c and cxx compiler support -rpath directly
14833 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14834 fi
14835 hardcode_libdir_separator_F77=:
14836 ;;
14837
14838 solaris*)
14839 no_undefined_flag_F77=' -z text'
14840 if test "$GCC" = yes; then
14841 wlarc='${wl}'
14842 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14844 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14845 else
14846 wlarc=''
14847 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14850 fi
14851 hardcode_libdir_flag_spec_F77='-R$libdir'
14852 hardcode_shlibpath_var_F77=no
14853 case $host_os in
14854 solaris2.[0-5] | solaris2.[0-5].*) ;;
14855 *)
14856 # The compiler driver will combine linker options so we
14857 # cannot just pass the convience library names through
14858 # without $wl, iff we do not link with $LD.
14859 # Luckily, gcc supports the same syntax we need for Sun Studio.
14860 # Supported since Solaris 2.6 (maybe 2.5.1?)
14861 case $wlarc in
14862 '')
14863 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14864 *)
14865 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' ;;
14866 esac ;;
14867 esac
14868 link_all_deplibs_F77=yes
14869 ;;
14870
14871 sunos4*)
14872 if test "x$host_vendor" = xsequent; then
14873 # Use $CC to link under sequent, because it throws in some extra .o
14874 # files that make .init and .fini sections work.
14875 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14876 else
14877 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14878 fi
14879 hardcode_libdir_flag_spec_F77='-L$libdir'
14880 hardcode_direct_F77=yes
14881 hardcode_minus_L_F77=yes
14882 hardcode_shlibpath_var_F77=no
14883 ;;
14884
14885 sysv4)
14886 case $host_vendor in
14887 sni)
14888 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889 hardcode_direct_F77=yes # is this really true???
14890 ;;
14891 siemens)
14892 ## LD is ld it makes a PLAMLIB
14893 ## CC just makes a GrossModule.
14894 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14895 reload_cmds_F77='$CC -r -o $output$reload_objs'
14896 hardcode_direct_F77=no
14897 ;;
14898 motorola)
14899 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14900 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14901 ;;
14902 esac
14903 runpath_var='LD_RUN_PATH'
14904 hardcode_shlibpath_var_F77=no
14905 ;;
14906
14907 sysv4.3*)
14908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14909 hardcode_shlibpath_var_F77=no
14910 export_dynamic_flag_spec_F77='-Bexport'
14911 ;;
14912
14913 sysv4*MP*)
14914 if test -d /usr/nec; then
14915 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14916 hardcode_shlibpath_var_F77=no
14917 runpath_var=LD_RUN_PATH
14918 hardcode_runpath_var=yes
14919 ld_shlibs_F77=yes
14920 fi
14921 ;;
14922
14923 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14924 no_undefined_flag_F77='${wl}-z,text'
14925 archive_cmds_need_lc_F77=no
14926 hardcode_shlibpath_var_F77=no
14927 runpath_var='LD_RUN_PATH'
14928
14929 if test "$GCC" = yes; then
14930 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14931 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14932 else
14933 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14934 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14935 fi
14936 ;;
14937
14938 sysv5* | sco3.2v5* | sco5v6*)
14939 # Note: We can NOT use -z defs as we might desire, because we do not
14940 # link with -lc, and that would cause any symbols used from libc to
14941 # always be unresolved, which means just about no library would
14942 # ever link correctly. If we're not using GNU ld we use -z text
14943 # though, which does catch some bad symbols but isn't as heavy-handed
14944 # as -z defs.
14945 no_undefined_flag_F77='${wl}-z,text'
14946 allow_undefined_flag_F77='${wl}-z,nodefs'
14947 archive_cmds_need_lc_F77=no
14948 hardcode_shlibpath_var_F77=no
14949 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14950 hardcode_libdir_separator_F77=':'
14951 link_all_deplibs_F77=yes
14952 export_dynamic_flag_spec_F77='${wl}-Bexport'
14953 runpath_var='LD_RUN_PATH'
14954
14955 if test "$GCC" = yes; then
14956 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14957 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14958 else
14959 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 fi
14962 ;;
14963
14964 uts4*)
14965 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966 hardcode_libdir_flag_spec_F77='-L$libdir'
14967 hardcode_shlibpath_var_F77=no
14968 ;;
14969
14970 *)
14971 ld_shlibs_F77=no
14972 ;;
14973 esac
14974 fi
14975
14976 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14977 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14978 test "$ld_shlibs_F77" = no && can_build_shared=no
14979
14980 #
14981 # Do we need to explicitly link libc?
14982 #
14983 case "x$archive_cmds_need_lc_F77" in
14984 x|xyes)
14985 # Assume -lc should be added
14986 archive_cmds_need_lc_F77=yes
14987
14988 if test "$enable_shared" = yes && test "$GCC" = yes; then
14989 case $archive_cmds_F77 in
14990 *'~'*)
14991 # FIXME: we may have to deal with multi-command sequences.
14992 ;;
14993 '$CC '*)
14994 # Test whether the compiler implicitly links with -lc since on some
14995 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14996 # to ld, don't add -lc before -lgcc.
14997 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14998 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14999 $rm conftest*
15000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15001
15002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15003 (eval $ac_compile) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } 2>conftest.err; then
15007 soname=conftest
15008 lib=conftest
15009 libobjs=conftest.$ac_objext
15010 deplibs=
15011 wl=$lt_prog_compiler_wl_F77
15012 pic_flag=$lt_prog_compiler_pic_F77
15013 compiler_flags=-v
15014 linker_flags=-v
15015 verstring=
15016 output_objdir=.
15017 libname=conftest
15018 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15019 allow_undefined_flag_F77=
15020 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15021 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }
15025 then
15026 archive_cmds_need_lc_F77=no
15027 else
15028 archive_cmds_need_lc_F77=yes
15029 fi
15030 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15031 else
15032 cat conftest.err 1>&5
15033 fi
15034 $rm conftest*
15035 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15036 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15037 ;;
15038 esac
15039 fi
15040 ;;
15041 esac
15042
15043 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15044 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15045 library_names_spec=
15046 libname_spec='lib$name'
15047 soname_spec=
15048 shrext_cmds=".so"
15049 postinstall_cmds=
15050 postuninstall_cmds=
15051 finish_cmds=
15052 finish_eval=
15053 shlibpath_var=
15054 shlibpath_overrides_runpath=unknown
15055 version_type=none
15056 dynamic_linker="$host_os ld.so"
15057 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15058 if test "$GCC" = yes; then
15059 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15060 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15061 # if the path contains ";" then we assume it to be the separator
15062 # otherwise default to the standard path separator (i.e. ":") - it is
15063 # assumed that no part of a normal pathname contains ";" but that should
15064 # okay in the real world where ";" in dirpaths is itself problematic.
15065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15066 else
15067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15068 fi
15069 else
15070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15071 fi
15072 need_lib_prefix=unknown
15073 hardcode_into_libs=no
15074
15075 # when you set need_version to no, make sure it does not cause -set_version
15076 # flags to be left without arguments
15077 need_version=unknown
15078
15079 case $host_os in
15080 aix3*)
15081 version_type=linux
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15083 shlibpath_var=LIBPATH
15084
15085 # AIX 3 has no versioning support, so we append a major version to the name.
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 ;;
15088
15089 aix4* | aix5*)
15090 version_type=linux
15091 need_lib_prefix=no
15092 need_version=no
15093 hardcode_into_libs=yes
15094 if test "$host_cpu" = ia64; then
15095 # AIX 5 supports IA64
15096 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 else
15099 # With GCC up to 2.95.x, collect2 would create an import file
15100 # for dependence libraries. The import file would start with
15101 # the line `#! .'. This would cause the generated library to
15102 # depend on `.', always an invalid library. This was fixed in
15103 # development snapshots of GCC prior to 3.0.
15104 case $host_os in
15105 aix4 | aix4.[01] | aix4.[01].*)
15106 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15107 echo ' yes '
15108 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15109 :
15110 else
15111 can_build_shared=no
15112 fi
15113 ;;
15114 esac
15115 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15116 # soname into executable. Probably we can add versioning support to
15117 # collect2, so additional links can be useful in future.
15118 if test "$aix_use_runtimelinking" = yes; then
15119 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15120 # instead of lib<name>.a to let people know that these are not
15121 # typical AIX shared libraries.
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123 else
15124 # We preserve .a as extension for shared libraries through AIX4.2
15125 # and later when we are not doing run time linking.
15126 library_names_spec='${libname}${release}.a $libname.a'
15127 soname_spec='${libname}${release}${shared_ext}$major'
15128 fi
15129 shlibpath_var=LIBPATH
15130 fi
15131 ;;
15132
15133 amigaos*)
15134 library_names_spec='$libname.ixlibrary $libname.a'
15135 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15136 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'
15137 ;;
15138
15139 beos*)
15140 library_names_spec='${libname}${shared_ext}'
15141 dynamic_linker="$host_os ld.so"
15142 shlibpath_var=LIBRARY_PATH
15143 ;;
15144
15145 bsdi[45]*)
15146 version_type=linux
15147 need_version=no
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15153 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15154 # the default ld.so.conf also contains /usr/contrib/lib and
15155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15156 # libtool to hard-code these into programs
15157 ;;
15158
15159 cygwin* | mingw* | pw32*)
15160 version_type=windows
15161 shrext_cmds=".dll"
15162 need_version=no
15163 need_lib_prefix=no
15164
15165 case $GCC,$host_os in
15166 yes,cygwin* | yes,mingw* | yes,pw32*)
15167 library_names_spec='$libname.dll.a'
15168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15169 postinstall_cmds='base_file=`basename \${file}`~
15170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15171 dldir=$destdir/`dirname \$dlpath`~
15172 test -d \$dldir || mkdir -p \$dldir~
15173 $install_prog $dir/$dlname \$dldir/$dlname~
15174 chmod a+x \$dldir/$dlname'
15175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15176 dlpath=$dir/\$dldll~
15177 $rm \$dlpath'
15178 shlibpath_overrides_runpath=yes
15179
15180 case $host_os in
15181 cygwin*)
15182 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15183 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15184 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15185 ;;
15186 mingw*)
15187 # MinGW DLLs use traditional 'lib' prefix
15188 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15189 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15190 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15191 # It is most probably a Windows format PATH printed by
15192 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15193 # path with ; separators, and with drive letters. We can handle the
15194 # drive letters (cygwin fileutils understands them), so leave them,
15195 # especially as we might pass files found there to a mingw objdump,
15196 # which wouldn't understand a cygwinified path. Ahh.
15197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15198 else
15199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15200 fi
15201 ;;
15202 pw32*)
15203 # pw32 DLLs use 'pw' prefix rather than 'lib'
15204 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15205 ;;
15206 esac
15207 ;;
15208
15209 *)
15210 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15211 ;;
15212 esac
15213 dynamic_linker='Win32 ld.exe'
15214 # FIXME: first we should search . and the directory the executable is in
15215 shlibpath_var=PATH
15216 ;;
15217
15218 darwin* | rhapsody*)
15219 dynamic_linker="$host_os dyld"
15220 version_type=darwin
15221 need_lib_prefix=no
15222 need_version=no
15223 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15224 soname_spec='${libname}${release}${major}$shared_ext'
15225 shlibpath_overrides_runpath=yes
15226 shlibpath_var=DYLD_LIBRARY_PATH
15227 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15228 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15229 if test "$GCC" = yes; then
15230 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"`
15231 else
15232 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15233 fi
15234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15235 ;;
15236
15237 dgux*)
15238 version_type=linux
15239 need_lib_prefix=no
15240 need_version=no
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15242 soname_spec='${libname}${release}${shared_ext}$major'
15243 shlibpath_var=LD_LIBRARY_PATH
15244 ;;
15245
15246 freebsd1*)
15247 dynamic_linker=no
15248 ;;
15249
15250 kfreebsd*-gnu)
15251 version_type=linux
15252 need_lib_prefix=no
15253 need_version=no
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15255 soname_spec='${libname}${release}${shared_ext}$major'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=no
15258 hardcode_into_libs=yes
15259 dynamic_linker='GNU ld.so'
15260 ;;
15261
15262 freebsd* | dragonfly*)
15263 # DragonFly does not have aout. When/if they implement a new
15264 # versioning mechanism, adjust this.
15265 if test -x /usr/bin/objformat; then
15266 objformat=`/usr/bin/objformat`
15267 else
15268 case $host_os in
15269 freebsd[123]*) objformat=aout ;;
15270 *) objformat=elf ;;
15271 esac
15272 fi
15273 version_type=freebsd-$objformat
15274 case $version_type in
15275 freebsd-elf*)
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15277 need_version=no
15278 need_lib_prefix=no
15279 ;;
15280 freebsd-*)
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15282 need_version=yes
15283 ;;
15284 esac
15285 shlibpath_var=LD_LIBRARY_PATH
15286 case $host_os in
15287 freebsd2*)
15288 shlibpath_overrides_runpath=yes
15289 ;;
15290 freebsd3.[01]* | freebsdelf3.[01]*)
15291 shlibpath_overrides_runpath=yes
15292 hardcode_into_libs=yes
15293 ;;
15294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15296 shlibpath_overrides_runpath=no
15297 hardcode_into_libs=yes
15298 ;;
15299 freebsd*) # from 4.6 on
15300 shlibpath_overrides_runpath=yes
15301 hardcode_into_libs=yes
15302 ;;
15303 esac
15304 ;;
15305
15306 gnu*)
15307 version_type=linux
15308 need_lib_prefix=no
15309 need_version=no
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 hardcode_into_libs=yes
15314 ;;
15315
15316 hpux9* | hpux10* | hpux11*)
15317 # Give a soname corresponding to the major version so that dld.sl refuses to
15318 # link against other versions.
15319 version_type=sunos
15320 need_lib_prefix=no
15321 need_version=no
15322 case $host_cpu in
15323 ia64*)
15324 shrext_cmds='.so'
15325 hardcode_into_libs=yes
15326 dynamic_linker="$host_os dld.so"
15327 shlibpath_var=LD_LIBRARY_PATH
15328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 soname_spec='${libname}${release}${shared_ext}$major'
15331 if test "X$HPUX_IA64_MODE" = X32; then
15332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15333 else
15334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15335 fi
15336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15337 ;;
15338 hppa*64*)
15339 shrext_cmds='.sl'
15340 hardcode_into_libs=yes
15341 dynamic_linker="$host_os dld.sl"
15342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15348 ;;
15349 *)
15350 shrext_cmds='.sl'
15351 dynamic_linker="$host_os dld.sl"
15352 shlibpath_var=SHLIB_PATH
15353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 ;;
15357 esac
15358 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15359 postinstall_cmds='chmod 555 $lib'
15360 ;;
15361
15362 interix3*)
15363 version_type=linux
15364 need_lib_prefix=no
15365 need_version=no
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15369 shlibpath_var=LD_LIBRARY_PATH
15370 shlibpath_overrides_runpath=no
15371 hardcode_into_libs=yes
15372 ;;
15373
15374 irix5* | irix6* | nonstopux*)
15375 case $host_os in
15376 nonstopux*) version_type=nonstopux ;;
15377 *)
15378 if test "$lt_cv_prog_gnu_ld" = yes; then
15379 version_type=linux
15380 else
15381 version_type=irix
15382 fi ;;
15383 esac
15384 need_lib_prefix=no
15385 need_version=no
15386 soname_spec='${libname}${release}${shared_ext}$major'
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15388 case $host_os in
15389 irix5* | nonstopux*)
15390 libsuff= shlibsuff=
15391 ;;
15392 *)
15393 case $LD in # libtool.m4 will add one of these switches to LD
15394 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15395 libsuff= shlibsuff= libmagic=32-bit;;
15396 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15397 libsuff=32 shlibsuff=N32 libmagic=N32;;
15398 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15399 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15400 *) libsuff= shlibsuff= libmagic=never-match;;
15401 esac
15402 ;;
15403 esac
15404 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15405 shlibpath_overrides_runpath=no
15406 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15407 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15408 hardcode_into_libs=yes
15409 ;;
15410
15411 # No shared lib support for Linux oldld, aout, or coff.
15412 linux*oldld* | linux*aout* | linux*coff*)
15413 dynamic_linker=no
15414 ;;
15415
15416 # This must be Linux ELF.
15417 linux*)
15418 version_type=linux
15419 need_lib_prefix=no
15420 need_version=no
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=no
15426 # This implies no fast_install, which is unacceptable.
15427 # Some rework will be needed to allow for fast_install
15428 # before this can be enabled.
15429 hardcode_into_libs=yes
15430
15431 # Append ld.so.conf contents to the search path
15432 if test -f /etc/ld.so.conf; then
15433 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' ' '`
15434 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15435 fi
15436
15437 # We used to test for /lib/ld.so.1 and disable shared libraries on
15438 # powerpc, because MkLinux only supported shared libraries with the
15439 # GNU dynamic linker. Since this was broken with cross compilers,
15440 # most powerpc-linux boxes support dynamic linking these days and
15441 # people can always --disable-shared, the test was removed, and we
15442 # assume the GNU/Linux dynamic linker is in use.
15443 dynamic_linker='GNU/Linux ld.so'
15444 ;;
15445
15446 knetbsd*-gnu)
15447 version_type=linux
15448 need_lib_prefix=no
15449 need_version=no
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 shlibpath_overrides_runpath=no
15454 hardcode_into_libs=yes
15455 dynamic_linker='GNU ld.so'
15456 ;;
15457
15458 netbsd*)
15459 version_type=sunos
15460 need_lib_prefix=no
15461 need_version=no
15462 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15465 dynamic_linker='NetBSD (a.out) ld.so'
15466 else
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15468 soname_spec='${libname}${release}${shared_ext}$major'
15469 dynamic_linker='NetBSD ld.elf_so'
15470 fi
15471 shlibpath_var=LD_LIBRARY_PATH
15472 shlibpath_overrides_runpath=yes
15473 hardcode_into_libs=yes
15474 ;;
15475
15476 newsos6)
15477 version_type=linux
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=yes
15481 ;;
15482
15483 nto-qnx*)
15484 version_type=linux
15485 need_lib_prefix=no
15486 need_version=no
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 shlibpath_overrides_runpath=yes
15491 ;;
15492
15493 openbsd*)
15494 version_type=sunos
15495 sys_lib_dlsearch_path_spec="/usr/lib"
15496 need_lib_prefix=no
15497 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15498 case $host_os in
15499 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15500 *) need_version=no ;;
15501 esac
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15506 case $host_os in
15507 openbsd2.[89] | openbsd2.[89].*)
15508 shlibpath_overrides_runpath=no
15509 ;;
15510 *)
15511 shlibpath_overrides_runpath=yes
15512 ;;
15513 esac
15514 else
15515 shlibpath_overrides_runpath=yes
15516 fi
15517 ;;
15518
15519 os2*)
15520 libname_spec='$name'
15521 shrext_cmds=".dll"
15522 need_lib_prefix=no
15523 library_names_spec='$libname${shared_ext} $libname.a'
15524 dynamic_linker='OS/2 ld.exe'
15525 shlibpath_var=LIBPATH
15526 ;;
15527
15528 osf3* | osf4* | osf5*)
15529 version_type=osf
15530 need_lib_prefix=no
15531 need_version=no
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15537 ;;
15538
15539 solaris*)
15540 version_type=linux
15541 need_lib_prefix=no
15542 need_version=no
15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15544 soname_spec='${libname}${release}${shared_ext}$major'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 shlibpath_overrides_runpath=yes
15547 hardcode_into_libs=yes
15548 # ldd complains unless libraries are executable
15549 postinstall_cmds='chmod +x $lib'
15550 ;;
15551
15552 sunos4*)
15553 version_type=sunos
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=yes
15558 if test "$with_gnu_ld" = yes; then
15559 need_lib_prefix=no
15560 fi
15561 need_version=yes
15562 ;;
15563
15564 sysv4 | sysv4.3*)
15565 version_type=linux
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LD_LIBRARY_PATH
15569 case $host_vendor in
15570 sni)
15571 shlibpath_overrides_runpath=no
15572 need_lib_prefix=no
15573 export_dynamic_flag_spec='${wl}-Blargedynsym'
15574 runpath_var=LD_RUN_PATH
15575 ;;
15576 siemens)
15577 need_lib_prefix=no
15578 ;;
15579 motorola)
15580 need_lib_prefix=no
15581 need_version=no
15582 shlibpath_overrides_runpath=no
15583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15584 ;;
15585 esac
15586 ;;
15587
15588 sysv4*MP*)
15589 if test -d /usr/nec ;then
15590 version_type=linux
15591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15592 soname_spec='$libname${shared_ext}.$major'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 fi
15595 ;;
15596
15597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15598 version_type=freebsd-elf
15599 need_lib_prefix=no
15600 need_version=no
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 hardcode_into_libs=yes
15605 if test "$with_gnu_ld" = yes; then
15606 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15607 shlibpath_overrides_runpath=no
15608 else
15609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15610 shlibpath_overrides_runpath=yes
15611 case $host_os in
15612 sco3.2v5*)
15613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15614 ;;
15615 esac
15616 fi
15617 sys_lib_dlsearch_path_spec='/usr/lib'
15618 ;;
15619
15620 uts4*)
15621 version_type=linux
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623 soname_spec='${libname}${release}${shared_ext}$major'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 ;;
15626
15627 *)
15628 dynamic_linker=no
15629 ;;
15630 esac
15631 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15632 echo "${ECHO_T}$dynamic_linker" >&6; }
15633 test "$dynamic_linker" = no && can_build_shared=no
15634
15635 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15636 if test "$GCC" = yes; then
15637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15638 fi
15639
15640 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15641 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15642 hardcode_action_F77=
15643 if test -n "$hardcode_libdir_flag_spec_F77" || \
15644 test -n "$runpath_var_F77" || \
15645 test "X$hardcode_automatic_F77" = "Xyes" ; then
15646
15647 # We can hardcode non-existant directories.
15648 if test "$hardcode_direct_F77" != no &&
15649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15650 # have to relink, otherwise we might link with an installed library
15651 # when we should be linking with a yet-to-be-installed one
15652 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15653 test "$hardcode_minus_L_F77" != no; then
15654 # Linking always hardcodes the temporary library directory.
15655 hardcode_action_F77=relink
15656 else
15657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15658 hardcode_action_F77=immediate
15659 fi
15660 else
15661 # We cannot hardcode anything, or else we can only hardcode existing
15662 # directories.
15663 hardcode_action_F77=unsupported
15664 fi
15665 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15666 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15667
15668 if test "$hardcode_action_F77" = relink; then
15669 # Fast installation is not supported
15670 enable_fast_install=no
15671 elif test "$shlibpath_overrides_runpath" = yes ||
15672 test "$enable_shared" = no; then
15673 # Fast installation is not necessary
15674 enable_fast_install=needless
15675 fi
15676
15677
15678 # The else clause should only fire when bootstrapping the
15679 # libtool distribution, otherwise you forgot to ship ltmain.sh
15680 # with your package, and you will get complaints that there are
15681 # no rules to generate ltmain.sh.
15682 if test -f "$ltmain"; then
15683 # See if we are running on zsh, and set the options which allow our commands through
15684 # without removal of \ escapes.
15685 if test -n "${ZSH_VERSION+set}" ; then
15686 setopt NO_GLOB_SUBST
15687 fi
15688 # Now quote all the things that may contain metacharacters while being
15689 # careful not to overquote the AC_SUBSTed values. We take copies of the
15690 # variables and quote the copies for generation of the libtool script.
15691 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15692 SED SHELL STRIP \
15693 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15694 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15695 deplibs_check_method reload_flag reload_cmds need_locks \
15696 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15697 lt_cv_sys_global_symbol_to_c_name_address \
15698 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15699 old_postinstall_cmds old_postuninstall_cmds \
15700 compiler_F77 \
15701 CC_F77 \
15702 LD_F77 \
15703 lt_prog_compiler_wl_F77 \
15704 lt_prog_compiler_pic_F77 \
15705 lt_prog_compiler_static_F77 \
15706 lt_prog_compiler_no_builtin_flag_F77 \
15707 export_dynamic_flag_spec_F77 \
15708 thread_safe_flag_spec_F77 \
15709 whole_archive_flag_spec_F77 \
15710 enable_shared_with_static_runtimes_F77 \
15711 old_archive_cmds_F77 \
15712 old_archive_from_new_cmds_F77 \
15713 predep_objects_F77 \
15714 postdep_objects_F77 \
15715 predeps_F77 \
15716 postdeps_F77 \
15717 compiler_lib_search_path_F77 \
15718 archive_cmds_F77 \
15719 archive_expsym_cmds_F77 \
15720 postinstall_cmds_F77 \
15721 postuninstall_cmds_F77 \
15722 old_archive_from_expsyms_cmds_F77 \
15723 allow_undefined_flag_F77 \
15724 no_undefined_flag_F77 \
15725 export_symbols_cmds_F77 \
15726 hardcode_libdir_flag_spec_F77 \
15727 hardcode_libdir_flag_spec_ld_F77 \
15728 hardcode_libdir_separator_F77 \
15729 hardcode_automatic_F77 \
15730 module_cmds_F77 \
15731 module_expsym_cmds_F77 \
15732 lt_cv_prog_compiler_c_o_F77 \
15733 exclude_expsyms_F77 \
15734 include_expsyms_F77; do
15735
15736 case $var in
15737 old_archive_cmds_F77 | \
15738 old_archive_from_new_cmds_F77 | \
15739 archive_cmds_F77 | \
15740 archive_expsym_cmds_F77 | \
15741 module_cmds_F77 | \
15742 module_expsym_cmds_F77 | \
15743 old_archive_from_expsyms_cmds_F77 | \
15744 export_symbols_cmds_F77 | \
15745 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15746 postinstall_cmds | postuninstall_cmds | \
15747 old_postinstall_cmds | old_postuninstall_cmds | \
15748 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15749 # Double-quote double-evaled strings.
15750 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15751 ;;
15752 *)
15753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15754 ;;
15755 esac
15756 done
15757
15758 case $lt_echo in
15759 *'\$0 --fallback-echo"')
15760 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15761 ;;
15762 esac
15763
15764 cfgfile="$ofile"
15765
15766 cat <<__EOF__ >> "$cfgfile"
15767 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15768
15769 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15770
15771 # Shell to use when invoking shell scripts.
15772 SHELL=$lt_SHELL
15773
15774 # Whether or not to build shared libraries.
15775 build_libtool_libs=$enable_shared
15776
15777 # Whether or not to build static libraries.
15778 build_old_libs=$enable_static
15779
15780 # Whether or not to add -lc for building shared libraries.
15781 build_libtool_need_lc=$archive_cmds_need_lc_F77
15782
15783 # Whether or not to disallow shared libs when runtime libs are static
15784 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15785
15786 # Whether or not to optimize for fast installation.
15787 fast_install=$enable_fast_install
15788
15789 # The host system.
15790 host_alias=$host_alias
15791 host=$host
15792 host_os=$host_os
15793
15794 # The build system.
15795 build_alias=$build_alias
15796 build=$build
15797 build_os=$build_os
15798
15799 # An echo program that does not interpret backslashes.
15800 echo=$lt_echo
15801
15802 # The archiver.
15803 AR=$lt_AR
15804 AR_FLAGS=$lt_AR_FLAGS
15805
15806 # A C compiler.
15807 LTCC=$lt_LTCC
15808
15809 # LTCC compiler flags.
15810 LTCFLAGS=$lt_LTCFLAGS
15811
15812 # A language-specific compiler.
15813 CC=$lt_compiler_F77
15814
15815 # Is the compiler the GNU C compiler?
15816 with_gcc=$GCC_F77
15817
15818 # An ERE matcher.
15819 EGREP=$lt_EGREP
15820
15821 # The linker used to build libraries.
15822 LD=$lt_LD_F77
15823
15824 # Whether we need hard or soft links.
15825 LN_S=$lt_LN_S
15826
15827 # A BSD-compatible nm program.
15828 NM=$lt_NM
15829
15830 # A symbol stripping program
15831 STRIP=$lt_STRIP
15832
15833 # Used to examine libraries when file_magic_cmd begins "file"
15834 MAGIC_CMD=$MAGIC_CMD
15835
15836 # Used on cygwin: DLL creation program.
15837 DLLTOOL="$DLLTOOL"
15838
15839 # Used on cygwin: object dumper.
15840 OBJDUMP="$OBJDUMP"
15841
15842 # Used on cygwin: assembler.
15843 AS="$AS"
15844
15845 # The name of the directory that contains temporary libtool files.
15846 objdir=$objdir
15847
15848 # How to create reloadable object files.
15849 reload_flag=$lt_reload_flag
15850 reload_cmds=$lt_reload_cmds
15851
15852 # How to pass a linker flag through the compiler.
15853 wl=$lt_lt_prog_compiler_wl_F77
15854
15855 # Object file suffix (normally "o").
15856 objext="$ac_objext"
15857
15858 # Old archive suffix (normally "a").
15859 libext="$libext"
15860
15861 # Shared library suffix (normally ".so").
15862 shrext_cmds='$shrext_cmds'
15863
15864 # Executable file suffix (normally "").
15865 exeext="$exeext"
15866
15867 # Additional compiler flags for building library objects.
15868 pic_flag=$lt_lt_prog_compiler_pic_F77
15869 pic_mode=$pic_mode
15870
15871 # What is the maximum length of a command?
15872 max_cmd_len=$lt_cv_sys_max_cmd_len
15873
15874 # Does compiler simultaneously support -c and -o options?
15875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15876
15877 # Must we lock files when doing compilation?
15878 need_locks=$lt_need_locks
15879
15880 # Do we need the lib prefix for modules?
15881 need_lib_prefix=$need_lib_prefix
15882
15883 # Do we need a version for libraries?
15884 need_version=$need_version
15885
15886 # Whether dlopen is supported.
15887 dlopen_support=$enable_dlopen
15888
15889 # Whether dlopen of programs is supported.
15890 dlopen_self=$enable_dlopen_self
15891
15892 # Whether dlopen of statically linked programs is supported.
15893 dlopen_self_static=$enable_dlopen_self_static
15894
15895 # Compiler flag to prevent dynamic linking.
15896 link_static_flag=$lt_lt_prog_compiler_static_F77
15897
15898 # Compiler flag to turn off builtin functions.
15899 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15900
15901 # Compiler flag to allow reflexive dlopens.
15902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15903
15904 # Compiler flag to generate shared objects directly from archives.
15905 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15906
15907 # Compiler flag to generate thread-safe objects.
15908 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15909
15910 # Library versioning type.
15911 version_type=$version_type
15912
15913 # Format of library name prefix.
15914 libname_spec=$lt_libname_spec
15915
15916 # List of archive names. First name is the real one, the rest are links.
15917 # The last name is the one that the linker finds with -lNAME.
15918 library_names_spec=$lt_library_names_spec
15919
15920 # The coded name of the library, if different from the real name.
15921 soname_spec=$lt_soname_spec
15922
15923 # Commands used to build and install an old-style archive.
15924 RANLIB=$lt_RANLIB
15925 old_archive_cmds=$lt_old_archive_cmds_F77
15926 old_postinstall_cmds=$lt_old_postinstall_cmds
15927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15928
15929 # Create an old-style archive from a shared archive.
15930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15931
15932 # Create a temporary old-style archive to link instead of a shared archive.
15933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15934
15935 # Commands used to build and install a shared archive.
15936 archive_cmds=$lt_archive_cmds_F77
15937 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15938 postinstall_cmds=$lt_postinstall_cmds
15939 postuninstall_cmds=$lt_postuninstall_cmds
15940
15941 # Commands used to build a loadable module (assumed same as above if empty)
15942 module_cmds=$lt_module_cmds_F77
15943 module_expsym_cmds=$lt_module_expsym_cmds_F77
15944
15945 # Commands to strip libraries.
15946 old_striplib=$lt_old_striplib
15947 striplib=$lt_striplib
15948
15949 # Dependencies to place before the objects being linked to create a
15950 # shared library.
15951 predep_objects=$lt_predep_objects_F77
15952
15953 # Dependencies to place after the objects being linked to create a
15954 # shared library.
15955 postdep_objects=$lt_postdep_objects_F77
15956
15957 # Dependencies to place before the objects being linked to create a
15958 # shared library.
15959 predeps=$lt_predeps_F77
15960
15961 # Dependencies to place after the objects being linked to create a
15962 # shared library.
15963 postdeps=$lt_postdeps_F77
15964
15965 # The library search path used internally by the compiler when linking
15966 # a shared library.
15967 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15968
15969 # Method to check whether dependent libraries are shared objects.
15970 deplibs_check_method=$lt_deplibs_check_method
15971
15972 # Command to use when deplibs_check_method == file_magic.
15973 file_magic_cmd=$lt_file_magic_cmd
15974
15975 # Flag that allows shared libraries with undefined symbols to be built.
15976 allow_undefined_flag=$lt_allow_undefined_flag_F77
15977
15978 # Flag that forces no undefined symbols.
15979 no_undefined_flag=$lt_no_undefined_flag_F77
15980
15981 # Commands used to finish a libtool library installation in a directory.
15982 finish_cmds=$lt_finish_cmds
15983
15984 # Same as above, but a single script fragment to be evaled but not shown.
15985 finish_eval=$lt_finish_eval
15986
15987 # Take the output of nm and produce a listing of raw symbols and C names.
15988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15989
15990 # Transform the output of nm in a proper C declaration
15991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15992
15993 # Transform the output of nm in a C name address pair
15994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15995
15996 # This is the shared library runtime path variable.
15997 runpath_var=$runpath_var
15998
15999 # This is the shared library path variable.
16000 shlibpath_var=$shlibpath_var
16001
16002 # Is shlibpath searched before the hard-coded library search path?
16003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16004
16005 # How to hardcode a shared library path into an executable.
16006 hardcode_action=$hardcode_action_F77
16007
16008 # Whether we should hardcode library paths into libraries.
16009 hardcode_into_libs=$hardcode_into_libs
16010
16011 # Flag to hardcode \$libdir into a binary during linking.
16012 # This must work even if \$libdir does not exist.
16013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16014
16015 # If ld is used when linking, flag to hardcode \$libdir into
16016 # a binary during linking. This must work even if \$libdir does
16017 # not exist.
16018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16019
16020 # Whether we need a single -rpath flag with a separated argument.
16021 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16022
16023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16024 # resulting binary.
16025 hardcode_direct=$hardcode_direct_F77
16026
16027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16028 # resulting binary.
16029 hardcode_minus_L=$hardcode_minus_L_F77
16030
16031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16032 # the resulting binary.
16033 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16034
16035 # Set to yes if building a shared library automatically hardcodes DIR into the library
16036 # and all subsequent libraries and executables linked against it.
16037 hardcode_automatic=$hardcode_automatic_F77
16038
16039 # Variables whose values should be saved in libtool wrapper scripts and
16040 # restored at relink time.
16041 variables_saved_for_relink="$variables_saved_for_relink"
16042
16043 # Whether libtool must link a program against all its dependency libraries.
16044 link_all_deplibs=$link_all_deplibs_F77
16045
16046 # Compile-time system search path for libraries
16047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16048
16049 # Run-time system search path for libraries
16050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16051
16052 # Fix the shell variable \$srcfile for the compiler.
16053 fix_srcfile_path="$fix_srcfile_path_F77"
16054
16055 # Set to yes if exported symbols are required.
16056 always_export_symbols=$always_export_symbols_F77
16057
16058 # The commands to list exported symbols.
16059 export_symbols_cmds=$lt_export_symbols_cmds_F77
16060
16061 # The commands to extract the exported symbol list from a shared archive.
16062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16063
16064 # Symbols that should not be listed in the preloaded symbols.
16065 exclude_expsyms=$lt_exclude_expsyms_F77
16066
16067 # Symbols that must always be exported.
16068 include_expsyms=$lt_include_expsyms_F77
16069
16070 # ### END LIBTOOL TAG CONFIG: $tagname
16071
16072 __EOF__
16073
16074
16075 else
16076 # If there is no Makefile yet, we rely on a make rule to execute
16077 # `config.status --recheck' to rerun these tests and create the
16078 # libtool script then.
16079 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16080 if test -f "$ltmain_in"; then
16081 test -f Makefile && make "$ltmain"
16082 fi
16083 fi
16084
16085
16086 ac_ext=c
16087 ac_cpp='$CPP $CPPFLAGS'
16088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16091
16092 CC="$lt_save_CC"
16093
16094 else
16095 tagname=""
16096 fi
16097 ;;
16098
16099 GCJ)
16100 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16101
16102
16103 # Source file extension for Java test sources.
16104 ac_ext=java
16105
16106 # Object file extension for compiled Java test sources.
16107 objext=o
16108 objext_GCJ=$objext
16109
16110 # Code to be used in simple compile tests
16111 lt_simple_compile_test_code="class foo {}\n"
16112
16113 # Code to be used in simple link tests
16114 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16115
16116 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16117
16118 # If no C compiler was specified, use CC.
16119 LTCC=${LTCC-"$CC"}
16120
16121 # If no C compiler flags were specified, use CFLAGS.
16122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16123
16124 # Allow CC to be a program name with arguments.
16125 compiler=$CC
16126
16127
16128 # save warnings/boilerplate of simple test code
16129 ac_outfile=conftest.$ac_objext
16130 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16131 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16132 _lt_compiler_boilerplate=`cat conftest.err`
16133 $rm conftest*
16134
16135 ac_outfile=conftest.$ac_objext
16136 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16137 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16138 _lt_linker_boilerplate=`cat conftest.err`
16139 $rm conftest*
16140
16141
16142 # Allow CC to be a program name with arguments.
16143 lt_save_CC="$CC"
16144 CC=${GCJ-"gcj"}
16145 compiler=$CC
16146 compiler_GCJ=$CC
16147 for cc_temp in $compiler""; do
16148 case $cc_temp in
16149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16151 \-*) ;;
16152 *) break;;
16153 esac
16154 done
16155 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16156
16157
16158 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16159 archive_cmds_need_lc_GCJ=no
16160
16161 old_archive_cmds_GCJ=$old_archive_cmds
16162
16163
16164 lt_prog_compiler_no_builtin_flag_GCJ=
16165
16166 if test "$GCC" = yes; then
16167 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16168
16169
16170 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16171 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16172 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175 lt_cv_prog_compiler_rtti_exceptions=no
16176 ac_outfile=conftest.$ac_objext
16177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16178 lt_compiler_flag="-fno-rtti -fno-exceptions"
16179 # Insert the option either (1) after the last *FLAGS variable, or
16180 # (2) before a word containing "conftest.", or (3) at the end.
16181 # Note that $ac_compile itself does not contain backslashes and begins
16182 # with a dollar sign (not a hyphen), so the echo should work correctly.
16183 # The option is referenced via a variable to avoid confusing sed.
16184 lt_compile=`echo "$ac_compile" | $SED \
16185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16187 -e 's:$: $lt_compiler_flag:'`
16188 (eval echo "\"\$as_me:16188: $lt_compile\"" >&5)
16189 (eval "$lt_compile" 2>conftest.err)
16190 ac_status=$?
16191 cat conftest.err >&5
16192 echo "$as_me:16192: \$? = $ac_status" >&5
16193 if (exit $ac_status) && test -s "$ac_outfile"; then
16194 # The compiler can only warn and ignore the option if not recognized
16195 # So say no if there are warnings other than the usual output.
16196 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16199 lt_cv_prog_compiler_rtti_exceptions=yes
16200 fi
16201 fi
16202 $rm conftest*
16203
16204 fi
16205 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16206 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16207
16208 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16209 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16210 else
16211 :
16212 fi
16213
16214 fi
16215
16216 lt_prog_compiler_wl_GCJ=
16217 lt_prog_compiler_pic_GCJ=
16218 lt_prog_compiler_static_GCJ=
16219
16220 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16222
16223 if test "$GCC" = yes; then
16224 lt_prog_compiler_wl_GCJ='-Wl,'
16225 lt_prog_compiler_static_GCJ='-static'
16226
16227 case $host_os in
16228 aix*)
16229 # All AIX code is PIC.
16230 if test "$host_cpu" = ia64; then
16231 # AIX 5 now supports IA64 processor
16232 lt_prog_compiler_static_GCJ='-Bstatic'
16233 fi
16234 ;;
16235
16236 amigaos*)
16237 # FIXME: we need at least 68020 code to build shared libraries, but
16238 # adding the `-m68020' flag to GCC prevents building anything better,
16239 # like `-m68040'.
16240 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16241 ;;
16242
16243 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16244 # PIC is the default for these OSes.
16245 ;;
16246
16247 mingw* | pw32* | os2*)
16248 # This hack is so that the source file can tell whether it is being
16249 # built for inclusion in a dll (and should export symbols for example).
16250 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16251 ;;
16252
16253 darwin* | rhapsody*)
16254 # PIC is the default on this platform
16255 # Common symbols not allowed in MH_DYLIB files
16256 lt_prog_compiler_pic_GCJ='-fno-common'
16257 ;;
16258
16259 interix3*)
16260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16261 # Instead, we relocate shared libraries at runtime.
16262 ;;
16263
16264 msdosdjgpp*)
16265 # Just because we use GCC doesn't mean we suddenly get shared libraries
16266 # on systems that don't support them.
16267 lt_prog_compiler_can_build_shared_GCJ=no
16268 enable_shared=no
16269 ;;
16270
16271 sysv4*MP*)
16272 if test -d /usr/nec; then
16273 lt_prog_compiler_pic_GCJ=-Kconform_pic
16274 fi
16275 ;;
16276
16277 hpux*)
16278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16279 # not for PA HP-UX.
16280 case $host_cpu in
16281 hppa*64*|ia64*)
16282 # +Z the default
16283 ;;
16284 *)
16285 lt_prog_compiler_pic_GCJ='-fPIC'
16286 ;;
16287 esac
16288 ;;
16289
16290 *)
16291 lt_prog_compiler_pic_GCJ='-fPIC'
16292 ;;
16293 esac
16294 else
16295 # PORTME Check for flag to pass linker flags through the system compiler.
16296 case $host_os in
16297 aix*)
16298 lt_prog_compiler_wl_GCJ='-Wl,'
16299 if test "$host_cpu" = ia64; then
16300 # AIX 5 now supports IA64 processor
16301 lt_prog_compiler_static_GCJ='-Bstatic'
16302 else
16303 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16304 fi
16305 ;;
16306 darwin*)
16307 # PIC is the default on this platform
16308 # Common symbols not allowed in MH_DYLIB files
16309 case $cc_basename in
16310 xlc*)
16311 lt_prog_compiler_pic_GCJ='-qnocommon'
16312 lt_prog_compiler_wl_GCJ='-Wl,'
16313 ;;
16314 esac
16315 ;;
16316
16317 mingw* | pw32* | os2*)
16318 # This hack is so that the source file can tell whether it is being
16319 # built for inclusion in a dll (and should export symbols for example).
16320 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16321 ;;
16322
16323 hpux9* | hpux10* | hpux11*)
16324 lt_prog_compiler_wl_GCJ='-Wl,'
16325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16326 # not for PA HP-UX.
16327 case $host_cpu in
16328 hppa*64*|ia64*)
16329 # +Z the default
16330 ;;
16331 *)
16332 lt_prog_compiler_pic_GCJ='+Z'
16333 ;;
16334 esac
16335 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16336 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16337 ;;
16338
16339 irix5* | irix6* | nonstopux*)
16340 lt_prog_compiler_wl_GCJ='-Wl,'
16341 # PIC (with -KPIC) is the default.
16342 lt_prog_compiler_static_GCJ='-non_shared'
16343 ;;
16344
16345 newsos6)
16346 lt_prog_compiler_pic_GCJ='-KPIC'
16347 lt_prog_compiler_static_GCJ='-Bstatic'
16348 ;;
16349
16350 linux*)
16351 case $cc_basename in
16352 icc* | ecc*)
16353 lt_prog_compiler_wl_GCJ='-Wl,'
16354 lt_prog_compiler_pic_GCJ='-KPIC'
16355 lt_prog_compiler_static_GCJ='-static'
16356 ;;
16357 pgcc* | pgf77* | pgf90* | pgf95*)
16358 # Portland Group compilers (*not* the Pentium gcc compiler,
16359 # which looks to be a dead project)
16360 lt_prog_compiler_wl_GCJ='-Wl,'
16361 lt_prog_compiler_pic_GCJ='-fpic'
16362 lt_prog_compiler_static_GCJ='-Bstatic'
16363 ;;
16364 ccc*)
16365 lt_prog_compiler_wl_GCJ='-Wl,'
16366 # All Alpha code is PIC.
16367 lt_prog_compiler_static_GCJ='-non_shared'
16368 ;;
16369 esac
16370 ;;
16371
16372 osf3* | osf4* | osf5*)
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16374 # All OSF/1 code is PIC.
16375 lt_prog_compiler_static_GCJ='-non_shared'
16376 ;;
16377
16378 solaris*)
16379 lt_prog_compiler_pic_GCJ='-KPIC'
16380 lt_prog_compiler_static_GCJ='-Bstatic'
16381 case $cc_basename in
16382 f77* | f90* | f95*)
16383 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16384 *)
16385 lt_prog_compiler_wl_GCJ='-Wl,';;
16386 esac
16387 ;;
16388
16389 sunos4*)
16390 lt_prog_compiler_wl_GCJ='-Qoption ld '
16391 lt_prog_compiler_pic_GCJ='-PIC'
16392 lt_prog_compiler_static_GCJ='-Bstatic'
16393 ;;
16394
16395 sysv4 | sysv4.2uw2* | sysv4.3*)
16396 lt_prog_compiler_wl_GCJ='-Wl,'
16397 lt_prog_compiler_pic_GCJ='-KPIC'
16398 lt_prog_compiler_static_GCJ='-Bstatic'
16399 ;;
16400
16401 sysv4*MP*)
16402 if test -d /usr/nec ;then
16403 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16404 lt_prog_compiler_static_GCJ='-Bstatic'
16405 fi
16406 ;;
16407
16408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16409 lt_prog_compiler_wl_GCJ='-Wl,'
16410 lt_prog_compiler_pic_GCJ='-KPIC'
16411 lt_prog_compiler_static_GCJ='-Bstatic'
16412 ;;
16413
16414 unicos*)
16415 lt_prog_compiler_wl_GCJ='-Wl,'
16416 lt_prog_compiler_can_build_shared_GCJ=no
16417 ;;
16418
16419 uts4*)
16420 lt_prog_compiler_pic_GCJ='-pic'
16421 lt_prog_compiler_static_GCJ='-Bstatic'
16422 ;;
16423
16424 *)
16425 lt_prog_compiler_can_build_shared_GCJ=no
16426 ;;
16427 esac
16428 fi
16429
16430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16431 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16432
16433 #
16434 # Check to make sure the PIC flag actually works.
16435 #
16436 if test -n "$lt_prog_compiler_pic_GCJ"; then
16437
16438 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16440 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443 lt_prog_compiler_pic_works_GCJ=no
16444 ac_outfile=conftest.$ac_objext
16445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16446 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16447 # Insert the option either (1) after the last *FLAGS variable, or
16448 # (2) before a word containing "conftest.", or (3) at the end.
16449 # Note that $ac_compile itself does not contain backslashes and begins
16450 # with a dollar sign (not a hyphen), so the echo should work correctly.
16451 # The option is referenced via a variable to avoid confusing sed.
16452 lt_compile=`echo "$ac_compile" | $SED \
16453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16455 -e 's:$: $lt_compiler_flag:'`
16456 (eval echo "\"\$as_me:16456: $lt_compile\"" >&5)
16457 (eval "$lt_compile" 2>conftest.err)
16458 ac_status=$?
16459 cat conftest.err >&5
16460 echo "$as_me:16460: \$? = $ac_status" >&5
16461 if (exit $ac_status) && test -s "$ac_outfile"; then
16462 # The compiler can only warn and ignore the option if not recognized
16463 # So say no if there are warnings other than the usual output.
16464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16467 lt_prog_compiler_pic_works_GCJ=yes
16468 fi
16469 fi
16470 $rm conftest*
16471
16472 fi
16473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16474 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16475
16476 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16477 case $lt_prog_compiler_pic_GCJ in
16478 "" | " "*) ;;
16479 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16480 esac
16481 else
16482 lt_prog_compiler_pic_GCJ=
16483 lt_prog_compiler_can_build_shared_GCJ=no
16484 fi
16485
16486 fi
16487 case $host_os in
16488 # For platforms which do not support PIC, -DPIC is meaningless:
16489 *djgpp*)
16490 lt_prog_compiler_pic_GCJ=
16491 ;;
16492 *)
16493 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16494 ;;
16495 esac
16496
16497 #
16498 # Check to make sure the static flag actually works.
16499 #
16500 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16501 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16503 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16504 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 else
16506 lt_prog_compiler_static_works_GCJ=no
16507 save_LDFLAGS="$LDFLAGS"
16508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16509 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16511 # The linker can only warn and ignore the option if not recognized
16512 # So say no if there are warnings
16513 if test -s conftest.err; then
16514 # Append any errors to the config.log.
16515 cat conftest.err 1>&5
16516 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16518 if diff conftest.exp conftest.er2 >/dev/null; then
16519 lt_prog_compiler_static_works_GCJ=yes
16520 fi
16521 else
16522 lt_prog_compiler_static_works_GCJ=yes
16523 fi
16524 fi
16525 $rm conftest*
16526 LDFLAGS="$save_LDFLAGS"
16527
16528 fi
16529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16530 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16531
16532 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16533 :
16534 else
16535 lt_prog_compiler_static_GCJ=
16536 fi
16537
16538
16539 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16541 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544 lt_cv_prog_compiler_c_o_GCJ=no
16545 $rm -r conftest 2>/dev/null
16546 mkdir conftest
16547 cd conftest
16548 mkdir out
16549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16550
16551 lt_compiler_flag="-o out/conftest2.$ac_objext"
16552 # Insert the option either (1) after the last *FLAGS variable, or
16553 # (2) before a word containing "conftest.", or (3) at the end.
16554 # Note that $ac_compile itself does not contain backslashes and begins
16555 # with a dollar sign (not a hyphen), so the echo should work correctly.
16556 lt_compile=`echo "$ac_compile" | $SED \
16557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16559 -e 's:$: $lt_compiler_flag:'`
16560 (eval echo "\"\$as_me:16560: $lt_compile\"" >&5)
16561 (eval "$lt_compile" 2>out/conftest.err)
16562 ac_status=$?
16563 cat out/conftest.err >&5
16564 echo "$as_me:16564: \$? = $ac_status" >&5
16565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16566 then
16567 # The compiler can only warn and ignore the option if not recognized
16568 # So say no if there are warnings
16569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16572 lt_cv_prog_compiler_c_o_GCJ=yes
16573 fi
16574 fi
16575 chmod u+w . 2>&5
16576 $rm conftest*
16577 # SGI C++ compiler will create directory out/ii_files/ for
16578 # template instantiation
16579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16580 $rm out/* && rmdir out
16581 cd ..
16582 rmdir conftest
16583 $rm conftest*
16584
16585 fi
16586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16588
16589
16590 hard_links="nottested"
16591 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16592 # do not overwrite the value of need_locks provided by the user
16593 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16595 hard_links=yes
16596 $rm conftest*
16597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16598 touch conftest.a
16599 ln conftest.a conftest.b 2>&5 || hard_links=no
16600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601 { echo "$as_me:$LINENO: result: $hard_links" >&5
16602 echo "${ECHO_T}$hard_links" >&6; }
16603 if test "$hard_links" = no; then
16604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16606 need_locks=warn
16607 fi
16608 else
16609 need_locks=no
16610 fi
16611
16612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16614
16615 runpath_var=
16616 allow_undefined_flag_GCJ=
16617 enable_shared_with_static_runtimes_GCJ=no
16618 archive_cmds_GCJ=
16619 archive_expsym_cmds_GCJ=
16620 old_archive_From_new_cmds_GCJ=
16621 old_archive_from_expsyms_cmds_GCJ=
16622 export_dynamic_flag_spec_GCJ=
16623 whole_archive_flag_spec_GCJ=
16624 thread_safe_flag_spec_GCJ=
16625 hardcode_libdir_flag_spec_GCJ=
16626 hardcode_libdir_flag_spec_ld_GCJ=
16627 hardcode_libdir_separator_GCJ=
16628 hardcode_direct_GCJ=no
16629 hardcode_minus_L_GCJ=no
16630 hardcode_shlibpath_var_GCJ=unsupported
16631 link_all_deplibs_GCJ=unknown
16632 hardcode_automatic_GCJ=no
16633 module_cmds_GCJ=
16634 module_expsym_cmds_GCJ=
16635 always_export_symbols_GCJ=no
16636 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16637 # include_expsyms should be a list of space-separated symbols to be *always*
16638 # included in the symbol list
16639 include_expsyms_GCJ=
16640 # exclude_expsyms can be an extended regexp of symbols to exclude
16641 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16642 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16643 # as well as any symbol that contains `d'.
16644 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16645 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16646 # platforms (ab)use it in PIC code, but their linkers get confused if
16647 # the symbol is explicitly referenced. Since portable code cannot
16648 # rely on this symbol name, it's probably fine to never include it in
16649 # preloaded symbol tables.
16650 extract_expsyms_cmds=
16651 # Just being paranoid about ensuring that cc_basename is set.
16652 for cc_temp in $compiler""; do
16653 case $cc_temp in
16654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16656 \-*) ;;
16657 *) break;;
16658 esac
16659 done
16660 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16661
16662 case $host_os in
16663 cygwin* | mingw* | pw32*)
16664 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16665 # When not using gcc, we currently assume that we are using
16666 # Microsoft Visual C++.
16667 if test "$GCC" != yes; then
16668 with_gnu_ld=no
16669 fi
16670 ;;
16671 interix*)
16672 # we just hope/assume this is gcc and not c89 (= MSVC++)
16673 with_gnu_ld=yes
16674 ;;
16675 openbsd*)
16676 with_gnu_ld=no
16677 ;;
16678 esac
16679
16680 ld_shlibs_GCJ=yes
16681 if test "$with_gnu_ld" = yes; then
16682 # If archive_cmds runs LD, not CC, wlarc should be empty
16683 wlarc='${wl}'
16684
16685 # Set some defaults for GNU ld with shared library support. These
16686 # are reset later if shared libraries are not supported. Putting them
16687 # here allows them to be overridden if necessary.
16688 runpath_var=LD_RUN_PATH
16689 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16690 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16691 # ancient GNU ld didn't support --whole-archive et. al.
16692 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16693 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16694 else
16695 whole_archive_flag_spec_GCJ=
16696 fi
16697 supports_anon_versioning=no
16698 case `$LD -v 2>/dev/null` in
16699 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16700 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16701 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16702 *\ 2.11.*) ;; # other 2.11 versions
16703 *) supports_anon_versioning=yes ;;
16704 esac
16705
16706 # See if GNU ld supports shared libraries.
16707 case $host_os in
16708 aix3* | aix4* | aix5*)
16709 # On AIX/PPC, the GNU linker is very broken
16710 if test "$host_cpu" != ia64; then
16711 ld_shlibs_GCJ=no
16712 cat <<EOF 1>&2
16713
16714 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16715 *** to be unable to reliably create shared libraries on AIX.
16716 *** Therefore, libtool is disabling shared libraries support. If you
16717 *** really care for shared libraries, you may want to modify your PATH
16718 *** so that a non-GNU linker is found, and then restart.
16719
16720 EOF
16721 fi
16722 ;;
16723
16724 amigaos*)
16725 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)'
16726 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16727 hardcode_minus_L_GCJ=yes
16728
16729 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16730 # that the semantics of dynamic libraries on AmigaOS, at least up
16731 # to version 4, is to share data among multiple programs linked
16732 # with the same dynamic library. Since this doesn't match the
16733 # behavior of shared libraries on other platforms, we can't use
16734 # them.
16735 ld_shlibs_GCJ=no
16736 ;;
16737
16738 beos*)
16739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16740 allow_undefined_flag_GCJ=unsupported
16741 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16742 # support --undefined. This deserves some investigation. FIXME
16743 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16744 else
16745 ld_shlibs_GCJ=no
16746 fi
16747 ;;
16748
16749 cygwin* | mingw* | pw32*)
16750 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16751 # as there is no search path for DLLs.
16752 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16753 allow_undefined_flag_GCJ=unsupported
16754 always_export_symbols_GCJ=no
16755 enable_shared_with_static_runtimes_GCJ=yes
16756 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16757
16758 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16759 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16760 # If the export-symbols file already is a .def file (1st line
16761 # is EXPORTS), use it as is; otherwise, prepend...
16762 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16763 cp $export_symbols $output_objdir/$soname.def;
16764 else
16765 echo EXPORTS > $output_objdir/$soname.def;
16766 cat $export_symbols >> $output_objdir/$soname.def;
16767 fi~
16768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16769 else
16770 ld_shlibs_GCJ=no
16771 fi
16772 ;;
16773
16774 interix3*)
16775 hardcode_direct_GCJ=no
16776 hardcode_shlibpath_var_GCJ=no
16777 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16778 export_dynamic_flag_spec_GCJ='${wl}-E'
16779 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16780 # Instead, shared libraries are loaded at an image base (0x10000000 by
16781 # default) and relocated if they conflict, which is a slow very memory
16782 # consuming and fragmenting process. To avoid this, we pick a random,
16783 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16784 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16785 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'
16786 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'
16787 ;;
16788
16789 linux*)
16790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16791 tmp_addflag=
16792 case $cc_basename,$host_cpu in
16793 pgcc*) # Portland Group C compiler
16794 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'
16795 tmp_addflag=' $pic_flag'
16796 ;;
16797 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
16800 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16801 tmp_addflag=' -i_dynamic' ;;
16802 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16803 tmp_addflag=' -i_dynamic -nofor_main' ;;
16804 ifc* | ifort*) # Intel Fortran compiler
16805 tmp_addflag=' -nofor_main' ;;
16806 esac
16807 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16808
16809 if test $supports_anon_versioning = yes; then
16810 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16812 $echo "local: *; };" >> $output_objdir/$libname.ver~
16813 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16814 fi
16815 else
16816 ld_shlibs_GCJ=no
16817 fi
16818 ;;
16819
16820 netbsd*)
16821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16822 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16823 wlarc=
16824 else
16825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16826 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16827 fi
16828 ;;
16829
16830 solaris*)
16831 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16832 ld_shlibs_GCJ=no
16833 cat <<EOF 1>&2
16834
16835 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16836 *** create shared libraries on Solaris systems. Therefore, libtool
16837 *** is disabling shared libraries support. We urge you to upgrade GNU
16838 *** binutils to release 2.9.1 or newer. Another option is to modify
16839 *** your PATH or compiler configuration so that the native linker is
16840 *** used, and then restart.
16841
16842 EOF
16843 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16844 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16845 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16846 else
16847 ld_shlibs_GCJ=no
16848 fi
16849 ;;
16850
16851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16852 case `$LD -v 2>&1` in
16853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16854 ld_shlibs_GCJ=no
16855 cat <<_LT_EOF 1>&2
16856
16857 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16858 *** reliably create shared libraries on SCO systems. Therefore, libtool
16859 *** is disabling shared libraries support. We urge you to upgrade GNU
16860 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16861 *** your PATH or compiler configuration so that the native linker is
16862 *** used, and then restart.
16863
16864 _LT_EOF
16865 ;;
16866 *)
16867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16868 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16869 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16870 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16871 else
16872 ld_shlibs_GCJ=no
16873 fi
16874 ;;
16875 esac
16876 ;;
16877
16878 sunos4*)
16879 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16880 wlarc=
16881 hardcode_direct_GCJ=yes
16882 hardcode_shlibpath_var_GCJ=no
16883 ;;
16884
16885 *)
16886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16887 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16888 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16889 else
16890 ld_shlibs_GCJ=no
16891 fi
16892 ;;
16893 esac
16894
16895 if test "$ld_shlibs_GCJ" = no; then
16896 runpath_var=
16897 hardcode_libdir_flag_spec_GCJ=
16898 export_dynamic_flag_spec_GCJ=
16899 whole_archive_flag_spec_GCJ=
16900 fi
16901 else
16902 # PORTME fill in a description of your system's linker (not GNU ld)
16903 case $host_os in
16904 aix3*)
16905 allow_undefined_flag_GCJ=unsupported
16906 always_export_symbols_GCJ=yes
16907 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'
16908 # Note: this linker hardcodes the directories in LIBPATH if there
16909 # are no directories specified by -L.
16910 hardcode_minus_L_GCJ=yes
16911 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16912 # Neither direct hardcoding nor static linking is supported with a
16913 # broken collect2.
16914 hardcode_direct_GCJ=unsupported
16915 fi
16916 ;;
16917
16918 aix4* | aix5*)
16919 if test "$host_cpu" = ia64; then
16920 # On IA64, the linker does run time linking by default, so we don't
16921 # have to do anything special.
16922 aix_use_runtimelinking=no
16923 exp_sym_flag='-Bexport'
16924 no_entry_flag=""
16925 else
16926 # If we're using GNU nm, then we don't want the "-C" option.
16927 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16928 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16929 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'
16930 else
16931 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'
16932 fi
16933 aix_use_runtimelinking=no
16934
16935 # Test if we are trying to use run time linking or normal
16936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16937 # need to do runtime linking.
16938 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16939 for ld_flag in $LDFLAGS; do
16940 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16941 aix_use_runtimelinking=yes
16942 break
16943 fi
16944 done
16945 ;;
16946 esac
16947
16948 exp_sym_flag='-bexport'
16949 no_entry_flag='-bnoentry'
16950 fi
16951
16952 # When large executables or shared objects are built, AIX ld can
16953 # have problems creating the table of contents. If linking a library
16954 # or program results in "error TOC overflow" add -mminimal-toc to
16955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16957
16958 archive_cmds_GCJ=''
16959 hardcode_direct_GCJ=yes
16960 hardcode_libdir_separator_GCJ=':'
16961 link_all_deplibs_GCJ=yes
16962
16963 if test "$GCC" = yes; then
16964 case $host_os in aix4.[012]|aix4.[012].*)
16965 # We only want to do this on AIX 4.2 and lower, the check
16966 # below for broken collect2 doesn't work under 4.3+
16967 collect2name=`${CC} -print-prog-name=collect2`
16968 if test -f "$collect2name" && \
16969 strings "$collect2name" | grep resolve_lib_name >/dev/null
16970 then
16971 # We have reworked collect2
16972 hardcode_direct_GCJ=yes
16973 else
16974 # We have old collect2
16975 hardcode_direct_GCJ=unsupported
16976 # It fails to find uninstalled libraries when the uninstalled
16977 # path is not listed in the libpath. Setting hardcode_minus_L
16978 # to unsupported forces relinking
16979 hardcode_minus_L_GCJ=yes
16980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981 hardcode_libdir_separator_GCJ=
16982 fi
16983 ;;
16984 esac
16985 shared_flag='-shared'
16986 if test "$aix_use_runtimelinking" = yes; then
16987 shared_flag="$shared_flag "'${wl}-G'
16988 fi
16989 else
16990 # not using gcc
16991 if test "$host_cpu" = ia64; then
16992 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16993 # chokes on -Wl,-G. The following line is correct:
16994 shared_flag='-G'
16995 else
16996 if test "$aix_use_runtimelinking" = yes; then
16997 shared_flag='${wl}-G'
16998 else
16999 shared_flag='${wl}-bM:SRE'
17000 fi
17001 fi
17002 fi
17003
17004 # It seems that -bexpall does not export symbols beginning with
17005 # underscore (_), so it is better to generate a list of symbols to export.
17006 always_export_symbols_GCJ=yes
17007 if test "$aix_use_runtimelinking" = yes; then
17008 # Warning - without using the other runtime loading flags (-brtl),
17009 # -berok will link without error, but may produce a broken library.
17010 allow_undefined_flag_GCJ='-berok'
17011 # Determine the default libpath from the value encoded in an empty executable.
17012 cat >conftest.$ac_ext <<_ACEOF
17013 /* confdefs.h. */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17018
17019 int
17020 main ()
17021 {
17022
17023 ;
17024 return 0;
17025 }
17026 _ACEOF
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (ac_try="$ac_link"
17029 case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_link") 2>conftest.er1
17035 ac_status=$?
17036 grep -v '^ *+' conftest.er1 >conftest.err
17037 rm -f conftest.er1
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } && {
17041 test -z "$ac_c_werror_flag" ||
17042 test ! -s conftest.err
17043 } && test -s conftest$ac_exeext &&
17044 $as_test_x conftest$ac_exeext; then
17045
17046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17047 }'`
17048 # Check for a 64-bit object if we didn't find anything.
17049 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; }
17050 }'`; fi
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17054
17055
17056 fi
17057
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 conftest$ac_exeext conftest.$ac_ext
17060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17061
17062 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17063 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"
17064 else
17065 if test "$host_cpu" = ia64; then
17066 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17067 allow_undefined_flag_GCJ="-z nodefs"
17068 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"
17069 else
17070 # Determine the default libpath from the value encoded in an empty executable.
17071 cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h. */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077
17078 int
17079 main ()
17080 {
17081
17082 ;
17083 return 0;
17084 }
17085 _ACEOF
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && {
17100 test -z "$ac_c_werror_flag" ||
17101 test ! -s conftest.err
17102 } && test -s conftest$ac_exeext &&
17103 $as_test_x conftest$ac_exeext; then
17104
17105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17106 }'`
17107 # Check for a 64-bit object if we didn't find anything.
17108 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; }
17109 }'`; fi
17110 else
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114
17115 fi
17116
17117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118 conftest$ac_exeext conftest.$ac_ext
17119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17120
17121 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17122 # Warning - without using the other run time loading flags,
17123 # -berok will link without error, but may produce a broken library.
17124 no_undefined_flag_GCJ=' ${wl}-bernotok'
17125 allow_undefined_flag_GCJ=' ${wl}-berok'
17126 # Exported symbols can be pulled into shared objects from archives
17127 whole_archive_flag_spec_GCJ='$convenience'
17128 archive_cmds_need_lc_GCJ=yes
17129 # This is similar to how AIX traditionally builds its shared libraries.
17130 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'
17131 fi
17132 fi
17133 ;;
17134
17135 amigaos*)
17136 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)'
17137 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17138 hardcode_minus_L_GCJ=yes
17139 # see comment about different semantics on the GNU ld section
17140 ld_shlibs_GCJ=no
17141 ;;
17142
17143 bsdi[45]*)
17144 export_dynamic_flag_spec_GCJ=-rdynamic
17145 ;;
17146
17147 cygwin* | mingw* | pw32*)
17148 # When not using gcc, we currently assume that we are using
17149 # Microsoft Visual C++.
17150 # hardcode_libdir_flag_spec is actually meaningless, as there is
17151 # no search path for DLLs.
17152 hardcode_libdir_flag_spec_GCJ=' '
17153 allow_undefined_flag_GCJ=unsupported
17154 # Tell ltmain to make .lib files, not .a files.
17155 libext=lib
17156 # Tell ltmain to make .dll files, not .so files.
17157 shrext_cmds=".dll"
17158 # FIXME: Setting linknames here is a bad hack.
17159 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17160 # The linker will automatically build a .lib file if we build a DLL.
17161 old_archive_From_new_cmds_GCJ='true'
17162 # FIXME: Should let the user specify the lib program.
17163 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17164 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17165 enable_shared_with_static_runtimes_GCJ=yes
17166 ;;
17167
17168 darwin* | rhapsody*)
17169 case $host_os in
17170 rhapsody* | darwin1.[012])
17171 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17172 ;;
17173 *) # Darwin 1.3 on
17174 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17175 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17176 else
17177 case ${MACOSX_DEPLOYMENT_TARGET} in
17178 10.[012])
17179 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17180 ;;
17181 10.*)
17182 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17183 ;;
17184 esac
17185 fi
17186 ;;
17187 esac
17188 archive_cmds_need_lc_GCJ=no
17189 hardcode_direct_GCJ=no
17190 hardcode_automatic_GCJ=yes
17191 hardcode_shlibpath_var_GCJ=unsupported
17192 whole_archive_flag_spec_GCJ=''
17193 link_all_deplibs_GCJ=yes
17194 if test "$GCC" = yes ; then
17195 output_verbose_link_cmd='echo'
17196 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17197 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17198 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17199 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}'
17200 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}'
17201 else
17202 case $cc_basename in
17203 xlc*)
17204 output_verbose_link_cmd='echo'
17205 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17206 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17208 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}'
17209 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}'
17210 ;;
17211 *)
17212 ld_shlibs_GCJ=no
17213 ;;
17214 esac
17215 fi
17216 ;;
17217
17218 dgux*)
17219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17220 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17221 hardcode_shlibpath_var_GCJ=no
17222 ;;
17223
17224 freebsd1*)
17225 ld_shlibs_GCJ=no
17226 ;;
17227
17228 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17229 # support. Future versions do this automatically, but an explicit c++rt0.o
17230 # does not break anything, and helps significantly (at the cost of a little
17231 # extra space).
17232 freebsd2.2*)
17233 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17234 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17235 hardcode_direct_GCJ=yes
17236 hardcode_shlibpath_var_GCJ=no
17237 ;;
17238
17239 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17240 freebsd2*)
17241 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17242 hardcode_direct_GCJ=yes
17243 hardcode_minus_L_GCJ=yes
17244 hardcode_shlibpath_var_GCJ=no
17245 ;;
17246
17247 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17248 freebsd* | kfreebsd*-gnu | dragonfly*)
17249 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17250 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17251 hardcode_direct_GCJ=yes
17252 hardcode_shlibpath_var_GCJ=no
17253 ;;
17254
17255 hpux9*)
17256 if test "$GCC" = yes; then
17257 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'
17258 else
17259 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'
17260 fi
17261 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17262 hardcode_libdir_separator_GCJ=:
17263 hardcode_direct_GCJ=yes
17264
17265 # hardcode_minus_L: Not really in the search PATH,
17266 # but as the default location of the library.
17267 hardcode_minus_L_GCJ=yes
17268 export_dynamic_flag_spec_GCJ='${wl}-E'
17269 ;;
17270
17271 hpux10*)
17272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17273 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17274 else
17275 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17276 fi
17277 if test "$with_gnu_ld" = no; then
17278 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17279 hardcode_libdir_separator_GCJ=:
17280
17281 hardcode_direct_GCJ=yes
17282 export_dynamic_flag_spec_GCJ='${wl}-E'
17283
17284 # hardcode_minus_L: Not really in the search PATH,
17285 # but as the default location of the library.
17286 hardcode_minus_L_GCJ=yes
17287 fi
17288 ;;
17289
17290 hpux11*)
17291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17292 case $host_cpu in
17293 hppa*64*)
17294 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17295 ;;
17296 ia64*)
17297 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17298 ;;
17299 *)
17300 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17301 ;;
17302 esac
17303 else
17304 case $host_cpu in
17305 hppa*64*)
17306 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17307 ;;
17308 ia64*)
17309 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17310 ;;
17311 *)
17312 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17313 ;;
17314 esac
17315 fi
17316 if test "$with_gnu_ld" = no; then
17317 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17318 hardcode_libdir_separator_GCJ=:
17319
17320 case $host_cpu in
17321 hppa*64*|ia64*)
17322 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17323 hardcode_direct_GCJ=no
17324 hardcode_shlibpath_var_GCJ=no
17325 ;;
17326 *)
17327 hardcode_direct_GCJ=yes
17328 export_dynamic_flag_spec_GCJ='${wl}-E'
17329
17330 # hardcode_minus_L: Not really in the search PATH,
17331 # but as the default location of the library.
17332 hardcode_minus_L_GCJ=yes
17333 ;;
17334 esac
17335 fi
17336 ;;
17337
17338 irix5* | irix6* | nonstopux*)
17339 if test "$GCC" = yes; then
17340 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'
17341 else
17342 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'
17343 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17344 fi
17345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17346 hardcode_libdir_separator_GCJ=:
17347 link_all_deplibs_GCJ=yes
17348 ;;
17349
17350 netbsd*)
17351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17352 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17353 else
17354 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17355 fi
17356 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17357 hardcode_direct_GCJ=yes
17358 hardcode_shlibpath_var_GCJ=no
17359 ;;
17360
17361 newsos6)
17362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17363 hardcode_direct_GCJ=yes
17364 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17365 hardcode_libdir_separator_GCJ=:
17366 hardcode_shlibpath_var_GCJ=no
17367 ;;
17368
17369 openbsd*)
17370 hardcode_direct_GCJ=yes
17371 hardcode_shlibpath_var_GCJ=no
17372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17373 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17374 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17376 export_dynamic_flag_spec_GCJ='${wl}-E'
17377 else
17378 case $host_os in
17379 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17380 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17381 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17382 ;;
17383 *)
17384 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17386 ;;
17387 esac
17388 fi
17389 ;;
17390
17391 os2*)
17392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17393 hardcode_minus_L_GCJ=yes
17394 allow_undefined_flag_GCJ=unsupported
17395 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'
17396 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17397 ;;
17398
17399 osf3*)
17400 if test "$GCC" = yes; then
17401 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17402 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'
17403 else
17404 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17405 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'
17406 fi
17407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17408 hardcode_libdir_separator_GCJ=:
17409 ;;
17410
17411 osf4* | osf5*) # as osf3* with the addition of -msym flag
17412 if test "$GCC" = yes; then
17413 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17414 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'
17415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17416 else
17417 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17418 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'
17419 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~
17420 $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'
17421
17422 # Both c and cxx compiler support -rpath directly
17423 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17424 fi
17425 hardcode_libdir_separator_GCJ=:
17426 ;;
17427
17428 solaris*)
17429 no_undefined_flag_GCJ=' -z text'
17430 if test "$GCC" = yes; then
17431 wlarc='${wl}'
17432 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17433 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17434 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17435 else
17436 wlarc=''
17437 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17438 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17440 fi
17441 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17442 hardcode_shlibpath_var_GCJ=no
17443 case $host_os in
17444 solaris2.[0-5] | solaris2.[0-5].*) ;;
17445 *)
17446 # The compiler driver will combine linker options so we
17447 # cannot just pass the convience library names through
17448 # without $wl, iff we do not link with $LD.
17449 # Luckily, gcc supports the same syntax we need for Sun Studio.
17450 # Supported since Solaris 2.6 (maybe 2.5.1?)
17451 case $wlarc in
17452 '')
17453 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17454 *)
17455 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' ;;
17456 esac ;;
17457 esac
17458 link_all_deplibs_GCJ=yes
17459 ;;
17460
17461 sunos4*)
17462 if test "x$host_vendor" = xsequent; then
17463 # Use $CC to link under sequent, because it throws in some extra .o
17464 # files that make .init and .fini sections work.
17465 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17466 else
17467 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17468 fi
17469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17470 hardcode_direct_GCJ=yes
17471 hardcode_minus_L_GCJ=yes
17472 hardcode_shlibpath_var_GCJ=no
17473 ;;
17474
17475 sysv4)
17476 case $host_vendor in
17477 sni)
17478 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17479 hardcode_direct_GCJ=yes # is this really true???
17480 ;;
17481 siemens)
17482 ## LD is ld it makes a PLAMLIB
17483 ## CC just makes a GrossModule.
17484 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17485 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17486 hardcode_direct_GCJ=no
17487 ;;
17488 motorola)
17489 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17490 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17491 ;;
17492 esac
17493 runpath_var='LD_RUN_PATH'
17494 hardcode_shlibpath_var_GCJ=no
17495 ;;
17496
17497 sysv4.3*)
17498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17499 hardcode_shlibpath_var_GCJ=no
17500 export_dynamic_flag_spec_GCJ='-Bexport'
17501 ;;
17502
17503 sysv4*MP*)
17504 if test -d /usr/nec; then
17505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17506 hardcode_shlibpath_var_GCJ=no
17507 runpath_var=LD_RUN_PATH
17508 hardcode_runpath_var=yes
17509 ld_shlibs_GCJ=yes
17510 fi
17511 ;;
17512
17513 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17514 no_undefined_flag_GCJ='${wl}-z,text'
17515 archive_cmds_need_lc_GCJ=no
17516 hardcode_shlibpath_var_GCJ=no
17517 runpath_var='LD_RUN_PATH'
17518
17519 if test "$GCC" = yes; then
17520 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17521 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17522 else
17523 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17525 fi
17526 ;;
17527
17528 sysv5* | sco3.2v5* | sco5v6*)
17529 # Note: We can NOT use -z defs as we might desire, because we do not
17530 # link with -lc, and that would cause any symbols used from libc to
17531 # always be unresolved, which means just about no library would
17532 # ever link correctly. If we're not using GNU ld we use -z text
17533 # though, which does catch some bad symbols but isn't as heavy-handed
17534 # as -z defs.
17535 no_undefined_flag_GCJ='${wl}-z,text'
17536 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17537 archive_cmds_need_lc_GCJ=no
17538 hardcode_shlibpath_var_GCJ=no
17539 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17540 hardcode_libdir_separator_GCJ=':'
17541 link_all_deplibs_GCJ=yes
17542 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17543 runpath_var='LD_RUN_PATH'
17544
17545 if test "$GCC" = yes; then
17546 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17547 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17548 else
17549 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17550 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17551 fi
17552 ;;
17553
17554 uts4*)
17555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17557 hardcode_shlibpath_var_GCJ=no
17558 ;;
17559
17560 *)
17561 ld_shlibs_GCJ=no
17562 ;;
17563 esac
17564 fi
17565
17566 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17567 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17568 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17569
17570 #
17571 # Do we need to explicitly link libc?
17572 #
17573 case "x$archive_cmds_need_lc_GCJ" in
17574 x|xyes)
17575 # Assume -lc should be added
17576 archive_cmds_need_lc_GCJ=yes
17577
17578 if test "$enable_shared" = yes && test "$GCC" = yes; then
17579 case $archive_cmds_GCJ in
17580 *'~'*)
17581 # FIXME: we may have to deal with multi-command sequences.
17582 ;;
17583 '$CC '*)
17584 # Test whether the compiler implicitly links with -lc since on some
17585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17586 # to ld, don't add -lc before -lgcc.
17587 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17588 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17589 $rm conftest*
17590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17591
17592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17593 (eval $ac_compile) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } 2>conftest.err; then
17597 soname=conftest
17598 lib=conftest
17599 libobjs=conftest.$ac_objext
17600 deplibs=
17601 wl=$lt_prog_compiler_wl_GCJ
17602 pic_flag=$lt_prog_compiler_pic_GCJ
17603 compiler_flags=-v
17604 linker_flags=-v
17605 verstring=
17606 output_objdir=.
17607 libname=conftest
17608 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17609 allow_undefined_flag_GCJ=
17610 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17611 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }
17615 then
17616 archive_cmds_need_lc_GCJ=no
17617 else
17618 archive_cmds_need_lc_GCJ=yes
17619 fi
17620 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17621 else
17622 cat conftest.err 1>&5
17623 fi
17624 $rm conftest*
17625 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17626 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17627 ;;
17628 esac
17629 fi
17630 ;;
17631 esac
17632
17633 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17635 library_names_spec=
17636 libname_spec='lib$name'
17637 soname_spec=
17638 shrext_cmds=".so"
17639 postinstall_cmds=
17640 postuninstall_cmds=
17641 finish_cmds=
17642 finish_eval=
17643 shlibpath_var=
17644 shlibpath_overrides_runpath=unknown
17645 version_type=none
17646 dynamic_linker="$host_os ld.so"
17647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17648 if test "$GCC" = yes; then
17649 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17650 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17651 # if the path contains ";" then we assume it to be the separator
17652 # otherwise default to the standard path separator (i.e. ":") - it is
17653 # assumed that no part of a normal pathname contains ";" but that should
17654 # okay in the real world where ";" in dirpaths is itself problematic.
17655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17656 else
17657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17658 fi
17659 else
17660 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17661 fi
17662 need_lib_prefix=unknown
17663 hardcode_into_libs=no
17664
17665 # when you set need_version to no, make sure it does not cause -set_version
17666 # flags to be left without arguments
17667 need_version=unknown
17668
17669 case $host_os in
17670 aix3*)
17671 version_type=linux
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17673 shlibpath_var=LIBPATH
17674
17675 # AIX 3 has no versioning support, so we append a major version to the name.
17676 soname_spec='${libname}${release}${shared_ext}$major'
17677 ;;
17678
17679 aix4* | aix5*)
17680 version_type=linux
17681 need_lib_prefix=no
17682 need_version=no
17683 hardcode_into_libs=yes
17684 if test "$host_cpu" = ia64; then
17685 # AIX 5 supports IA64
17686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17687 shlibpath_var=LD_LIBRARY_PATH
17688 else
17689 # With GCC up to 2.95.x, collect2 would create an import file
17690 # for dependence libraries. The import file would start with
17691 # the line `#! .'. This would cause the generated library to
17692 # depend on `.', always an invalid library. This was fixed in
17693 # development snapshots of GCC prior to 3.0.
17694 case $host_os in
17695 aix4 | aix4.[01] | aix4.[01].*)
17696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17697 echo ' yes '
17698 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17699 :
17700 else
17701 can_build_shared=no
17702 fi
17703 ;;
17704 esac
17705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17706 # soname into executable. Probably we can add versioning support to
17707 # collect2, so additional links can be useful in future.
17708 if test "$aix_use_runtimelinking" = yes; then
17709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17710 # instead of lib<name>.a to let people know that these are not
17711 # typical AIX shared libraries.
17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17713 else
17714 # We preserve .a as extension for shared libraries through AIX4.2
17715 # and later when we are not doing run time linking.
17716 library_names_spec='${libname}${release}.a $libname.a'
17717 soname_spec='${libname}${release}${shared_ext}$major'
17718 fi
17719 shlibpath_var=LIBPATH
17720 fi
17721 ;;
17722
17723 amigaos*)
17724 library_names_spec='$libname.ixlibrary $libname.a'
17725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17726 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'
17727 ;;
17728
17729 beos*)
17730 library_names_spec='${libname}${shared_ext}'
17731 dynamic_linker="$host_os ld.so"
17732 shlibpath_var=LIBRARY_PATH
17733 ;;
17734
17735 bsdi[45]*)
17736 version_type=linux
17737 need_version=no
17738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17744 # the default ld.so.conf also contains /usr/contrib/lib and
17745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17746 # libtool to hard-code these into programs
17747 ;;
17748
17749 cygwin* | mingw* | pw32*)
17750 version_type=windows
17751 shrext_cmds=".dll"
17752 need_version=no
17753 need_lib_prefix=no
17754
17755 case $GCC,$host_os in
17756 yes,cygwin* | yes,mingw* | yes,pw32*)
17757 library_names_spec='$libname.dll.a'
17758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17759 postinstall_cmds='base_file=`basename \${file}`~
17760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17761 dldir=$destdir/`dirname \$dlpath`~
17762 test -d \$dldir || mkdir -p \$dldir~
17763 $install_prog $dir/$dlname \$dldir/$dlname~
17764 chmod a+x \$dldir/$dlname'
17765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17766 dlpath=$dir/\$dldll~
17767 $rm \$dlpath'
17768 shlibpath_overrides_runpath=yes
17769
17770 case $host_os in
17771 cygwin*)
17772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17774 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17775 ;;
17776 mingw*)
17777 # MinGW DLLs use traditional 'lib' prefix
17778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17780 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17781 # It is most probably a Windows format PATH printed by
17782 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17783 # path with ; separators, and with drive letters. We can handle the
17784 # drive letters (cygwin fileutils understands them), so leave them,
17785 # especially as we might pass files found there to a mingw objdump,
17786 # which wouldn't understand a cygwinified path. Ahh.
17787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17788 else
17789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17790 fi
17791 ;;
17792 pw32*)
17793 # pw32 DLLs use 'pw' prefix rather than 'lib'
17794 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17795 ;;
17796 esac
17797 ;;
17798
17799 *)
17800 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17801 ;;
17802 esac
17803 dynamic_linker='Win32 ld.exe'
17804 # FIXME: first we should search . and the directory the executable is in
17805 shlibpath_var=PATH
17806 ;;
17807
17808 darwin* | rhapsody*)
17809 dynamic_linker="$host_os dyld"
17810 version_type=darwin
17811 need_lib_prefix=no
17812 need_version=no
17813 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17814 soname_spec='${libname}${release}${major}$shared_ext'
17815 shlibpath_overrides_runpath=yes
17816 shlibpath_var=DYLD_LIBRARY_PATH
17817 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17818 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17819 if test "$GCC" = yes; then
17820 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"`
17821 else
17822 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17823 fi
17824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17825 ;;
17826
17827 dgux*)
17828 version_type=linux
17829 need_lib_prefix=no
17830 need_version=no
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17832 soname_spec='${libname}${release}${shared_ext}$major'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 ;;
17835
17836 freebsd1*)
17837 dynamic_linker=no
17838 ;;
17839
17840 kfreebsd*-gnu)
17841 version_type=linux
17842 need_lib_prefix=no
17843 need_version=no
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17845 soname_spec='${libname}${release}${shared_ext}$major'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 shlibpath_overrides_runpath=no
17848 hardcode_into_libs=yes
17849 dynamic_linker='GNU ld.so'
17850 ;;
17851
17852 freebsd* | dragonfly*)
17853 # DragonFly does not have aout. When/if they implement a new
17854 # versioning mechanism, adjust this.
17855 if test -x /usr/bin/objformat; then
17856 objformat=`/usr/bin/objformat`
17857 else
17858 case $host_os in
17859 freebsd[123]*) objformat=aout ;;
17860 *) objformat=elf ;;
17861 esac
17862 fi
17863 version_type=freebsd-$objformat
17864 case $version_type in
17865 freebsd-elf*)
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17867 need_version=no
17868 need_lib_prefix=no
17869 ;;
17870 freebsd-*)
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17872 need_version=yes
17873 ;;
17874 esac
17875 shlibpath_var=LD_LIBRARY_PATH
17876 case $host_os in
17877 freebsd2*)
17878 shlibpath_overrides_runpath=yes
17879 ;;
17880 freebsd3.[01]* | freebsdelf3.[01]*)
17881 shlibpath_overrides_runpath=yes
17882 hardcode_into_libs=yes
17883 ;;
17884 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17885 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17886 shlibpath_overrides_runpath=no
17887 hardcode_into_libs=yes
17888 ;;
17889 freebsd*) # from 4.6 on
17890 shlibpath_overrides_runpath=yes
17891 hardcode_into_libs=yes
17892 ;;
17893 esac
17894 ;;
17895
17896 gnu*)
17897 version_type=linux
17898 need_lib_prefix=no
17899 need_version=no
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17901 soname_spec='${libname}${release}${shared_ext}$major'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 hardcode_into_libs=yes
17904 ;;
17905
17906 hpux9* | hpux10* | hpux11*)
17907 # Give a soname corresponding to the major version so that dld.sl refuses to
17908 # link against other versions.
17909 version_type=sunos
17910 need_lib_prefix=no
17911 need_version=no
17912 case $host_cpu in
17913 ia64*)
17914 shrext_cmds='.so'
17915 hardcode_into_libs=yes
17916 dynamic_linker="$host_os dld.so"
17917 shlibpath_var=LD_LIBRARY_PATH
17918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17920 soname_spec='${libname}${release}${shared_ext}$major'
17921 if test "X$HPUX_IA64_MODE" = X32; then
17922 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17923 else
17924 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17925 fi
17926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17927 ;;
17928 hppa*64*)
17929 shrext_cmds='.sl'
17930 hardcode_into_libs=yes
17931 dynamic_linker="$host_os dld.sl"
17932 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 soname_spec='${libname}${release}${shared_ext}$major'
17936 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17938 ;;
17939 *)
17940 shrext_cmds='.sl'
17941 dynamic_linker="$host_os dld.sl"
17942 shlibpath_var=SHLIB_PATH
17943 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945 soname_spec='${libname}${release}${shared_ext}$major'
17946 ;;
17947 esac
17948 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17949 postinstall_cmds='chmod 555 $lib'
17950 ;;
17951
17952 interix3*)
17953 version_type=linux
17954 need_lib_prefix=no
17955 need_version=no
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 shlibpath_overrides_runpath=no
17961 hardcode_into_libs=yes
17962 ;;
17963
17964 irix5* | irix6* | nonstopux*)
17965 case $host_os in
17966 nonstopux*) version_type=nonstopux ;;
17967 *)
17968 if test "$lt_cv_prog_gnu_ld" = yes; then
17969 version_type=linux
17970 else
17971 version_type=irix
17972 fi ;;
17973 esac
17974 need_lib_prefix=no
17975 need_version=no
17976 soname_spec='${libname}${release}${shared_ext}$major'
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17978 case $host_os in
17979 irix5* | nonstopux*)
17980 libsuff= shlibsuff=
17981 ;;
17982 *)
17983 case $LD in # libtool.m4 will add one of these switches to LD
17984 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17985 libsuff= shlibsuff= libmagic=32-bit;;
17986 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17987 libsuff=32 shlibsuff=N32 libmagic=N32;;
17988 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17989 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17990 *) libsuff= shlibsuff= libmagic=never-match;;
17991 esac
17992 ;;
17993 esac
17994 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17995 shlibpath_overrides_runpath=no
17996 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17997 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17998 hardcode_into_libs=yes
17999 ;;
18000
18001 # No shared lib support for Linux oldld, aout, or coff.
18002 linux*oldld* | linux*aout* | linux*coff*)
18003 dynamic_linker=no
18004 ;;
18005
18006 # This must be Linux ELF.
18007 linux*)
18008 version_type=linux
18009 need_lib_prefix=no
18010 need_version=no
18011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012 soname_spec='${libname}${release}${shared_ext}$major'
18013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18014 shlibpath_var=LD_LIBRARY_PATH
18015 shlibpath_overrides_runpath=no
18016 # This implies no fast_install, which is unacceptable.
18017 # Some rework will be needed to allow for fast_install
18018 # before this can be enabled.
18019 hardcode_into_libs=yes
18020
18021 # Append ld.so.conf contents to the search path
18022 if test -f /etc/ld.so.conf; then
18023 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' ' '`
18024 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18025 fi
18026
18027 # We used to test for /lib/ld.so.1 and disable shared libraries on
18028 # powerpc, because MkLinux only supported shared libraries with the
18029 # GNU dynamic linker. Since this was broken with cross compilers,
18030 # most powerpc-linux boxes support dynamic linking these days and
18031 # people can always --disable-shared, the test was removed, and we
18032 # assume the GNU/Linux dynamic linker is in use.
18033 dynamic_linker='GNU/Linux ld.so'
18034 ;;
18035
18036 knetbsd*-gnu)
18037 version_type=linux
18038 need_lib_prefix=no
18039 need_version=no
18040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18041 soname_spec='${libname}${release}${shared_ext}$major'
18042 shlibpath_var=LD_LIBRARY_PATH
18043 shlibpath_overrides_runpath=no
18044 hardcode_into_libs=yes
18045 dynamic_linker='GNU ld.so'
18046 ;;
18047
18048 netbsd*)
18049 version_type=sunos
18050 need_lib_prefix=no
18051 need_version=no
18052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18055 dynamic_linker='NetBSD (a.out) ld.so'
18056 else
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 dynamic_linker='NetBSD ld.elf_so'
18060 fi
18061 shlibpath_var=LD_LIBRARY_PATH
18062 shlibpath_overrides_runpath=yes
18063 hardcode_into_libs=yes
18064 ;;
18065
18066 newsos6)
18067 version_type=linux
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069 shlibpath_var=LD_LIBRARY_PATH
18070 shlibpath_overrides_runpath=yes
18071 ;;
18072
18073 nto-qnx*)
18074 version_type=linux
18075 need_lib_prefix=no
18076 need_version=no
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 shlibpath_var=LD_LIBRARY_PATH
18080 shlibpath_overrides_runpath=yes
18081 ;;
18082
18083 openbsd*)
18084 version_type=sunos
18085 sys_lib_dlsearch_path_spec="/usr/lib"
18086 need_lib_prefix=no
18087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18088 case $host_os in
18089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18090 *) need_version=no ;;
18091 esac
18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18094 shlibpath_var=LD_LIBRARY_PATH
18095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18096 case $host_os in
18097 openbsd2.[89] | openbsd2.[89].*)
18098 shlibpath_overrides_runpath=no
18099 ;;
18100 *)
18101 shlibpath_overrides_runpath=yes
18102 ;;
18103 esac
18104 else
18105 shlibpath_overrides_runpath=yes
18106 fi
18107 ;;
18108
18109 os2*)
18110 libname_spec='$name'
18111 shrext_cmds=".dll"
18112 need_lib_prefix=no
18113 library_names_spec='$libname${shared_ext} $libname.a'
18114 dynamic_linker='OS/2 ld.exe'
18115 shlibpath_var=LIBPATH
18116 ;;
18117
18118 osf3* | osf4* | osf5*)
18119 version_type=osf
18120 need_lib_prefix=no
18121 need_version=no
18122 soname_spec='${libname}${release}${shared_ext}$major'
18123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18124 shlibpath_var=LD_LIBRARY_PATH
18125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18127 ;;
18128
18129 solaris*)
18130 version_type=linux
18131 need_lib_prefix=no
18132 need_version=no
18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18134 soname_spec='${libname}${release}${shared_ext}$major'
18135 shlibpath_var=LD_LIBRARY_PATH
18136 shlibpath_overrides_runpath=yes
18137 hardcode_into_libs=yes
18138 # ldd complains unless libraries are executable
18139 postinstall_cmds='chmod +x $lib'
18140 ;;
18141
18142 sunos4*)
18143 version_type=sunos
18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 shlibpath_overrides_runpath=yes
18148 if test "$with_gnu_ld" = yes; then
18149 need_lib_prefix=no
18150 fi
18151 need_version=yes
18152 ;;
18153
18154 sysv4 | sysv4.3*)
18155 version_type=linux
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec='${libname}${release}${shared_ext}$major'
18158 shlibpath_var=LD_LIBRARY_PATH
18159 case $host_vendor in
18160 sni)
18161 shlibpath_overrides_runpath=no
18162 need_lib_prefix=no
18163 export_dynamic_flag_spec='${wl}-Blargedynsym'
18164 runpath_var=LD_RUN_PATH
18165 ;;
18166 siemens)
18167 need_lib_prefix=no
18168 ;;
18169 motorola)
18170 need_lib_prefix=no
18171 need_version=no
18172 shlibpath_overrides_runpath=no
18173 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18174 ;;
18175 esac
18176 ;;
18177
18178 sysv4*MP*)
18179 if test -d /usr/nec ;then
18180 version_type=linux
18181 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18182 soname_spec='$libname${shared_ext}.$major'
18183 shlibpath_var=LD_LIBRARY_PATH
18184 fi
18185 ;;
18186
18187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18188 version_type=freebsd-elf
18189 need_lib_prefix=no
18190 need_version=no
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 hardcode_into_libs=yes
18195 if test "$with_gnu_ld" = yes; then
18196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18197 shlibpath_overrides_runpath=no
18198 else
18199 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18200 shlibpath_overrides_runpath=yes
18201 case $host_os in
18202 sco3.2v5*)
18203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18204 ;;
18205 esac
18206 fi
18207 sys_lib_dlsearch_path_spec='/usr/lib'
18208 ;;
18209
18210 uts4*)
18211 version_type=linux
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 ;;
18216
18217 *)
18218 dynamic_linker=no
18219 ;;
18220 esac
18221 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18222 echo "${ECHO_T}$dynamic_linker" >&6; }
18223 test "$dynamic_linker" = no && can_build_shared=no
18224
18225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18226 if test "$GCC" = yes; then
18227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18228 fi
18229
18230 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18231 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18232 hardcode_action_GCJ=
18233 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18234 test -n "$runpath_var_GCJ" || \
18235 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18236
18237 # We can hardcode non-existant directories.
18238 if test "$hardcode_direct_GCJ" != no &&
18239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18240 # have to relink, otherwise we might link with an installed library
18241 # when we should be linking with a yet-to-be-installed one
18242 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18243 test "$hardcode_minus_L_GCJ" != no; then
18244 # Linking always hardcodes the temporary library directory.
18245 hardcode_action_GCJ=relink
18246 else
18247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18248 hardcode_action_GCJ=immediate
18249 fi
18250 else
18251 # We cannot hardcode anything, or else we can only hardcode existing
18252 # directories.
18253 hardcode_action_GCJ=unsupported
18254 fi
18255 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18256 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18257
18258 if test "$hardcode_action_GCJ" = relink; then
18259 # Fast installation is not supported
18260 enable_fast_install=no
18261 elif test "$shlibpath_overrides_runpath" = yes ||
18262 test "$enable_shared" = no; then
18263 # Fast installation is not necessary
18264 enable_fast_install=needless
18265 fi
18266
18267
18268 # The else clause should only fire when bootstrapping the
18269 # libtool distribution, otherwise you forgot to ship ltmain.sh
18270 # with your package, and you will get complaints that there are
18271 # no rules to generate ltmain.sh.
18272 if test -f "$ltmain"; then
18273 # See if we are running on zsh, and set the options which allow our commands through
18274 # without removal of \ escapes.
18275 if test -n "${ZSH_VERSION+set}" ; then
18276 setopt NO_GLOB_SUBST
18277 fi
18278 # Now quote all the things that may contain metacharacters while being
18279 # careful not to overquote the AC_SUBSTed values. We take copies of the
18280 # variables and quote the copies for generation of the libtool script.
18281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18282 SED SHELL STRIP \
18283 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18284 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18285 deplibs_check_method reload_flag reload_cmds need_locks \
18286 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18287 lt_cv_sys_global_symbol_to_c_name_address \
18288 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18289 old_postinstall_cmds old_postuninstall_cmds \
18290 compiler_GCJ \
18291 CC_GCJ \
18292 LD_GCJ \
18293 lt_prog_compiler_wl_GCJ \
18294 lt_prog_compiler_pic_GCJ \
18295 lt_prog_compiler_static_GCJ \
18296 lt_prog_compiler_no_builtin_flag_GCJ \
18297 export_dynamic_flag_spec_GCJ \
18298 thread_safe_flag_spec_GCJ \
18299 whole_archive_flag_spec_GCJ \
18300 enable_shared_with_static_runtimes_GCJ \
18301 old_archive_cmds_GCJ \
18302 old_archive_from_new_cmds_GCJ \
18303 predep_objects_GCJ \
18304 postdep_objects_GCJ \
18305 predeps_GCJ \
18306 postdeps_GCJ \
18307 compiler_lib_search_path_GCJ \
18308 archive_cmds_GCJ \
18309 archive_expsym_cmds_GCJ \
18310 postinstall_cmds_GCJ \
18311 postuninstall_cmds_GCJ \
18312 old_archive_from_expsyms_cmds_GCJ \
18313 allow_undefined_flag_GCJ \
18314 no_undefined_flag_GCJ \
18315 export_symbols_cmds_GCJ \
18316 hardcode_libdir_flag_spec_GCJ \
18317 hardcode_libdir_flag_spec_ld_GCJ \
18318 hardcode_libdir_separator_GCJ \
18319 hardcode_automatic_GCJ \
18320 module_cmds_GCJ \
18321 module_expsym_cmds_GCJ \
18322 lt_cv_prog_compiler_c_o_GCJ \
18323 exclude_expsyms_GCJ \
18324 include_expsyms_GCJ; do
18325
18326 case $var in
18327 old_archive_cmds_GCJ | \
18328 old_archive_from_new_cmds_GCJ | \
18329 archive_cmds_GCJ | \
18330 archive_expsym_cmds_GCJ | \
18331 module_cmds_GCJ | \
18332 module_expsym_cmds_GCJ | \
18333 old_archive_from_expsyms_cmds_GCJ | \
18334 export_symbols_cmds_GCJ | \
18335 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18336 postinstall_cmds | postuninstall_cmds | \
18337 old_postinstall_cmds | old_postuninstall_cmds | \
18338 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18339 # Double-quote double-evaled strings.
18340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18341 ;;
18342 *)
18343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18344 ;;
18345 esac
18346 done
18347
18348 case $lt_echo in
18349 *'\$0 --fallback-echo"')
18350 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18351 ;;
18352 esac
18353
18354 cfgfile="$ofile"
18355
18356 cat <<__EOF__ >> "$cfgfile"
18357 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18358
18359 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18360
18361 # Shell to use when invoking shell scripts.
18362 SHELL=$lt_SHELL
18363
18364 # Whether or not to build shared libraries.
18365 build_libtool_libs=$enable_shared
18366
18367 # Whether or not to build static libraries.
18368 build_old_libs=$enable_static
18369
18370 # Whether or not to add -lc for building shared libraries.
18371 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18372
18373 # Whether or not to disallow shared libs when runtime libs are static
18374 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18375
18376 # Whether or not to optimize for fast installation.
18377 fast_install=$enable_fast_install
18378
18379 # The host system.
18380 host_alias=$host_alias
18381 host=$host
18382 host_os=$host_os
18383
18384 # The build system.
18385 build_alias=$build_alias
18386 build=$build
18387 build_os=$build_os
18388
18389 # An echo program that does not interpret backslashes.
18390 echo=$lt_echo
18391
18392 # The archiver.
18393 AR=$lt_AR
18394 AR_FLAGS=$lt_AR_FLAGS
18395
18396 # A C compiler.
18397 LTCC=$lt_LTCC
18398
18399 # LTCC compiler flags.
18400 LTCFLAGS=$lt_LTCFLAGS
18401
18402 # A language-specific compiler.
18403 CC=$lt_compiler_GCJ
18404
18405 # Is the compiler the GNU C compiler?
18406 with_gcc=$GCC_GCJ
18407
18408 # An ERE matcher.
18409 EGREP=$lt_EGREP
18410
18411 # The linker used to build libraries.
18412 LD=$lt_LD_GCJ
18413
18414 # Whether we need hard or soft links.
18415 LN_S=$lt_LN_S
18416
18417 # A BSD-compatible nm program.
18418 NM=$lt_NM
18419
18420 # A symbol stripping program
18421 STRIP=$lt_STRIP
18422
18423 # Used to examine libraries when file_magic_cmd begins "file"
18424 MAGIC_CMD=$MAGIC_CMD
18425
18426 # Used on cygwin: DLL creation program.
18427 DLLTOOL="$DLLTOOL"
18428
18429 # Used on cygwin: object dumper.
18430 OBJDUMP="$OBJDUMP"
18431
18432 # Used on cygwin: assembler.
18433 AS="$AS"
18434
18435 # The name of the directory that contains temporary libtool files.
18436 objdir=$objdir
18437
18438 # How to create reloadable object files.
18439 reload_flag=$lt_reload_flag
18440 reload_cmds=$lt_reload_cmds
18441
18442 # How to pass a linker flag through the compiler.
18443 wl=$lt_lt_prog_compiler_wl_GCJ
18444
18445 # Object file suffix (normally "o").
18446 objext="$ac_objext"
18447
18448 # Old archive suffix (normally "a").
18449 libext="$libext"
18450
18451 # Shared library suffix (normally ".so").
18452 shrext_cmds='$shrext_cmds'
18453
18454 # Executable file suffix (normally "").
18455 exeext="$exeext"
18456
18457 # Additional compiler flags for building library objects.
18458 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18459 pic_mode=$pic_mode
18460
18461 # What is the maximum length of a command?
18462 max_cmd_len=$lt_cv_sys_max_cmd_len
18463
18464 # Does compiler simultaneously support -c and -o options?
18465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18466
18467 # Must we lock files when doing compilation?
18468 need_locks=$lt_need_locks
18469
18470 # Do we need the lib prefix for modules?
18471 need_lib_prefix=$need_lib_prefix
18472
18473 # Do we need a version for libraries?
18474 need_version=$need_version
18475
18476 # Whether dlopen is supported.
18477 dlopen_support=$enable_dlopen
18478
18479 # Whether dlopen of programs is supported.
18480 dlopen_self=$enable_dlopen_self
18481
18482 # Whether dlopen of statically linked programs is supported.
18483 dlopen_self_static=$enable_dlopen_self_static
18484
18485 # Compiler flag to prevent dynamic linking.
18486 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18487
18488 # Compiler flag to turn off builtin functions.
18489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18490
18491 # Compiler flag to allow reflexive dlopens.
18492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18493
18494 # Compiler flag to generate shared objects directly from archives.
18495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18496
18497 # Compiler flag to generate thread-safe objects.
18498 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18499
18500 # Library versioning type.
18501 version_type=$version_type
18502
18503 # Format of library name prefix.
18504 libname_spec=$lt_libname_spec
18505
18506 # List of archive names. First name is the real one, the rest are links.
18507 # The last name is the one that the linker finds with -lNAME.
18508 library_names_spec=$lt_library_names_spec
18509
18510 # The coded name of the library, if different from the real name.
18511 soname_spec=$lt_soname_spec
18512
18513 # Commands used to build and install an old-style archive.
18514 RANLIB=$lt_RANLIB
18515 old_archive_cmds=$lt_old_archive_cmds_GCJ
18516 old_postinstall_cmds=$lt_old_postinstall_cmds
18517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18518
18519 # Create an old-style archive from a shared archive.
18520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18521
18522 # Create a temporary old-style archive to link instead of a shared archive.
18523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18524
18525 # Commands used to build and install a shared archive.
18526 archive_cmds=$lt_archive_cmds_GCJ
18527 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18528 postinstall_cmds=$lt_postinstall_cmds
18529 postuninstall_cmds=$lt_postuninstall_cmds
18530
18531 # Commands used to build a loadable module (assumed same as above if empty)
18532 module_cmds=$lt_module_cmds_GCJ
18533 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18534
18535 # Commands to strip libraries.
18536 old_striplib=$lt_old_striplib
18537 striplib=$lt_striplib
18538
18539 # Dependencies to place before the objects being linked to create a
18540 # shared library.
18541 predep_objects=$lt_predep_objects_GCJ
18542
18543 # Dependencies to place after the objects being linked to create a
18544 # shared library.
18545 postdep_objects=$lt_postdep_objects_GCJ
18546
18547 # Dependencies to place before the objects being linked to create a
18548 # shared library.
18549 predeps=$lt_predeps_GCJ
18550
18551 # Dependencies to place after the objects being linked to create a
18552 # shared library.
18553 postdeps=$lt_postdeps_GCJ
18554
18555 # The library search path used internally by the compiler when linking
18556 # a shared library.
18557 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18558
18559 # Method to check whether dependent libraries are shared objects.
18560 deplibs_check_method=$lt_deplibs_check_method
18561
18562 # Command to use when deplibs_check_method == file_magic.
18563 file_magic_cmd=$lt_file_magic_cmd
18564
18565 # Flag that allows shared libraries with undefined symbols to be built.
18566 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18567
18568 # Flag that forces no undefined symbols.
18569 no_undefined_flag=$lt_no_undefined_flag_GCJ
18570
18571 # Commands used to finish a libtool library installation in a directory.
18572 finish_cmds=$lt_finish_cmds
18573
18574 # Same as above, but a single script fragment to be evaled but not shown.
18575 finish_eval=$lt_finish_eval
18576
18577 # Take the output of nm and produce a listing of raw symbols and C names.
18578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18579
18580 # Transform the output of nm in a proper C declaration
18581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18582
18583 # Transform the output of nm in a C name address pair
18584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18585
18586 # This is the shared library runtime path variable.
18587 runpath_var=$runpath_var
18588
18589 # This is the shared library path variable.
18590 shlibpath_var=$shlibpath_var
18591
18592 # Is shlibpath searched before the hard-coded library search path?
18593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18594
18595 # How to hardcode a shared library path into an executable.
18596 hardcode_action=$hardcode_action_GCJ
18597
18598 # Whether we should hardcode library paths into libraries.
18599 hardcode_into_libs=$hardcode_into_libs
18600
18601 # Flag to hardcode \$libdir into a binary during linking.
18602 # This must work even if \$libdir does not exist.
18603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18604
18605 # If ld is used when linking, flag to hardcode \$libdir into
18606 # a binary during linking. This must work even if \$libdir does
18607 # not exist.
18608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18609
18610 # Whether we need a single -rpath flag with a separated argument.
18611 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18612
18613 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18614 # resulting binary.
18615 hardcode_direct=$hardcode_direct_GCJ
18616
18617 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18618 # resulting binary.
18619 hardcode_minus_L=$hardcode_minus_L_GCJ
18620
18621 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18622 # the resulting binary.
18623 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18624
18625 # Set to yes if building a shared library automatically hardcodes DIR into the library
18626 # and all subsequent libraries and executables linked against it.
18627 hardcode_automatic=$hardcode_automatic_GCJ
18628
18629 # Variables whose values should be saved in libtool wrapper scripts and
18630 # restored at relink time.
18631 variables_saved_for_relink="$variables_saved_for_relink"
18632
18633 # Whether libtool must link a program against all its dependency libraries.
18634 link_all_deplibs=$link_all_deplibs_GCJ
18635
18636 # Compile-time system search path for libraries
18637 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18638
18639 # Run-time system search path for libraries
18640 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18641
18642 # Fix the shell variable \$srcfile for the compiler.
18643 fix_srcfile_path="$fix_srcfile_path_GCJ"
18644
18645 # Set to yes if exported symbols are required.
18646 always_export_symbols=$always_export_symbols_GCJ
18647
18648 # The commands to list exported symbols.
18649 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18650
18651 # The commands to extract the exported symbol list from a shared archive.
18652 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18653
18654 # Symbols that should not be listed in the preloaded symbols.
18655 exclude_expsyms=$lt_exclude_expsyms_GCJ
18656
18657 # Symbols that must always be exported.
18658 include_expsyms=$lt_include_expsyms_GCJ
18659
18660 # ### END LIBTOOL TAG CONFIG: $tagname
18661
18662 __EOF__
18663
18664
18665 else
18666 # If there is no Makefile yet, we rely on a make rule to execute
18667 # `config.status --recheck' to rerun these tests and create the
18668 # libtool script then.
18669 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18670 if test -f "$ltmain_in"; then
18671 test -f Makefile && make "$ltmain"
18672 fi
18673 fi
18674
18675
18676 ac_ext=c
18677 ac_cpp='$CPP $CPPFLAGS'
18678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18681
18682 CC="$lt_save_CC"
18683
18684 else
18685 tagname=""
18686 fi
18687 ;;
18688
18689 RC)
18690
18691
18692 # Source file extension for RC test sources.
18693 ac_ext=rc
18694
18695 # Object file extension for compiled RC test sources.
18696 objext=o
18697 objext_RC=$objext
18698
18699 # Code to be used in simple compile tests
18700 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18701
18702 # Code to be used in simple link tests
18703 lt_simple_link_test_code="$lt_simple_compile_test_code"
18704
18705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18706
18707 # If no C compiler was specified, use CC.
18708 LTCC=${LTCC-"$CC"}
18709
18710 # If no C compiler flags were specified, use CFLAGS.
18711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18712
18713 # Allow CC to be a program name with arguments.
18714 compiler=$CC
18715
18716
18717 # save warnings/boilerplate of simple test code
18718 ac_outfile=conftest.$ac_objext
18719 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18721 _lt_compiler_boilerplate=`cat conftest.err`
18722 $rm conftest*
18723
18724 ac_outfile=conftest.$ac_objext
18725 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18727 _lt_linker_boilerplate=`cat conftest.err`
18728 $rm conftest*
18729
18730
18731 # Allow CC to be a program name with arguments.
18732 lt_save_CC="$CC"
18733 CC=${RC-"windres"}
18734 compiler=$CC
18735 compiler_RC=$CC
18736 for cc_temp in $compiler""; do
18737 case $cc_temp in
18738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18740 \-*) ;;
18741 *) break;;
18742 esac
18743 done
18744 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18745
18746 lt_cv_prog_compiler_c_o_RC=yes
18747
18748 # The else clause should only fire when bootstrapping the
18749 # libtool distribution, otherwise you forgot to ship ltmain.sh
18750 # with your package, and you will get complaints that there are
18751 # no rules to generate ltmain.sh.
18752 if test -f "$ltmain"; then
18753 # See if we are running on zsh, and set the options which allow our commands through
18754 # without removal of \ escapes.
18755 if test -n "${ZSH_VERSION+set}" ; then
18756 setopt NO_GLOB_SUBST
18757 fi
18758 # Now quote all the things that may contain metacharacters while being
18759 # careful not to overquote the AC_SUBSTed values. We take copies of the
18760 # variables and quote the copies for generation of the libtool script.
18761 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18762 SED SHELL STRIP \
18763 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18764 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18765 deplibs_check_method reload_flag reload_cmds need_locks \
18766 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18767 lt_cv_sys_global_symbol_to_c_name_address \
18768 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18769 old_postinstall_cmds old_postuninstall_cmds \
18770 compiler_RC \
18771 CC_RC \
18772 LD_RC \
18773 lt_prog_compiler_wl_RC \
18774 lt_prog_compiler_pic_RC \
18775 lt_prog_compiler_static_RC \
18776 lt_prog_compiler_no_builtin_flag_RC \
18777 export_dynamic_flag_spec_RC \
18778 thread_safe_flag_spec_RC \
18779 whole_archive_flag_spec_RC \
18780 enable_shared_with_static_runtimes_RC \
18781 old_archive_cmds_RC \
18782 old_archive_from_new_cmds_RC \
18783 predep_objects_RC \
18784 postdep_objects_RC \
18785 predeps_RC \
18786 postdeps_RC \
18787 compiler_lib_search_path_RC \
18788 archive_cmds_RC \
18789 archive_expsym_cmds_RC \
18790 postinstall_cmds_RC \
18791 postuninstall_cmds_RC \
18792 old_archive_from_expsyms_cmds_RC \
18793 allow_undefined_flag_RC \
18794 no_undefined_flag_RC \
18795 export_symbols_cmds_RC \
18796 hardcode_libdir_flag_spec_RC \
18797 hardcode_libdir_flag_spec_ld_RC \
18798 hardcode_libdir_separator_RC \
18799 hardcode_automatic_RC \
18800 module_cmds_RC \
18801 module_expsym_cmds_RC \
18802 lt_cv_prog_compiler_c_o_RC \
18803 exclude_expsyms_RC \
18804 include_expsyms_RC; do
18805
18806 case $var in
18807 old_archive_cmds_RC | \
18808 old_archive_from_new_cmds_RC | \
18809 archive_cmds_RC | \
18810 archive_expsym_cmds_RC | \
18811 module_cmds_RC | \
18812 module_expsym_cmds_RC | \
18813 old_archive_from_expsyms_cmds_RC | \
18814 export_symbols_cmds_RC | \
18815 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18816 postinstall_cmds | postuninstall_cmds | \
18817 old_postinstall_cmds | old_postuninstall_cmds | \
18818 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18819 # Double-quote double-evaled strings.
18820 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18821 ;;
18822 *)
18823 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18824 ;;
18825 esac
18826 done
18827
18828 case $lt_echo in
18829 *'\$0 --fallback-echo"')
18830 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18831 ;;
18832 esac
18833
18834 cfgfile="$ofile"
18835
18836 cat <<__EOF__ >> "$cfgfile"
18837 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18838
18839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18840
18841 # Shell to use when invoking shell scripts.
18842 SHELL=$lt_SHELL
18843
18844 # Whether or not to build shared libraries.
18845 build_libtool_libs=$enable_shared
18846
18847 # Whether or not to build static libraries.
18848 build_old_libs=$enable_static
18849
18850 # Whether or not to add -lc for building shared libraries.
18851 build_libtool_need_lc=$archive_cmds_need_lc_RC
18852
18853 # Whether or not to disallow shared libs when runtime libs are static
18854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18855
18856 # Whether or not to optimize for fast installation.
18857 fast_install=$enable_fast_install
18858
18859 # The host system.
18860 host_alias=$host_alias
18861 host=$host
18862 host_os=$host_os
18863
18864 # The build system.
18865 build_alias=$build_alias
18866 build=$build
18867 build_os=$build_os
18868
18869 # An echo program that does not interpret backslashes.
18870 echo=$lt_echo
18871
18872 # The archiver.
18873 AR=$lt_AR
18874 AR_FLAGS=$lt_AR_FLAGS
18875
18876 # A C compiler.
18877 LTCC=$lt_LTCC
18878
18879 # LTCC compiler flags.
18880 LTCFLAGS=$lt_LTCFLAGS
18881
18882 # A language-specific compiler.
18883 CC=$lt_compiler_RC
18884
18885 # Is the compiler the GNU C compiler?
18886 with_gcc=$GCC_RC
18887
18888 # An ERE matcher.
18889 EGREP=$lt_EGREP
18890
18891 # The linker used to build libraries.
18892 LD=$lt_LD_RC
18893
18894 # Whether we need hard or soft links.
18895 LN_S=$lt_LN_S
18896
18897 # A BSD-compatible nm program.
18898 NM=$lt_NM
18899
18900 # A symbol stripping program
18901 STRIP=$lt_STRIP
18902
18903 # Used to examine libraries when file_magic_cmd begins "file"
18904 MAGIC_CMD=$MAGIC_CMD
18905
18906 # Used on cygwin: DLL creation program.
18907 DLLTOOL="$DLLTOOL"
18908
18909 # Used on cygwin: object dumper.
18910 OBJDUMP="$OBJDUMP"
18911
18912 # Used on cygwin: assembler.
18913 AS="$AS"
18914
18915 # The name of the directory that contains temporary libtool files.
18916 objdir=$objdir
18917
18918 # How to create reloadable object files.
18919 reload_flag=$lt_reload_flag
18920 reload_cmds=$lt_reload_cmds
18921
18922 # How to pass a linker flag through the compiler.
18923 wl=$lt_lt_prog_compiler_wl_RC
18924
18925 # Object file suffix (normally "o").
18926 objext="$ac_objext"
18927
18928 # Old archive suffix (normally "a").
18929 libext="$libext"
18930
18931 # Shared library suffix (normally ".so").
18932 shrext_cmds='$shrext_cmds'
18933
18934 # Executable file suffix (normally "").
18935 exeext="$exeext"
18936
18937 # Additional compiler flags for building library objects.
18938 pic_flag=$lt_lt_prog_compiler_pic_RC
18939 pic_mode=$pic_mode
18940
18941 # What is the maximum length of a command?
18942 max_cmd_len=$lt_cv_sys_max_cmd_len
18943
18944 # Does compiler simultaneously support -c and -o options?
18945 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18946
18947 # Must we lock files when doing compilation?
18948 need_locks=$lt_need_locks
18949
18950 # Do we need the lib prefix for modules?
18951 need_lib_prefix=$need_lib_prefix
18952
18953 # Do we need a version for libraries?
18954 need_version=$need_version
18955
18956 # Whether dlopen is supported.
18957 dlopen_support=$enable_dlopen
18958
18959 # Whether dlopen of programs is supported.
18960 dlopen_self=$enable_dlopen_self
18961
18962 # Whether dlopen of statically linked programs is supported.
18963 dlopen_self_static=$enable_dlopen_self_static
18964
18965 # Compiler flag to prevent dynamic linking.
18966 link_static_flag=$lt_lt_prog_compiler_static_RC
18967
18968 # Compiler flag to turn off builtin functions.
18969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18970
18971 # Compiler flag to allow reflexive dlopens.
18972 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18973
18974 # Compiler flag to generate shared objects directly from archives.
18975 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18976
18977 # Compiler flag to generate thread-safe objects.
18978 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18979
18980 # Library versioning type.
18981 version_type=$version_type
18982
18983 # Format of library name prefix.
18984 libname_spec=$lt_libname_spec
18985
18986 # List of archive names. First name is the real one, the rest are links.
18987 # The last name is the one that the linker finds with -lNAME.
18988 library_names_spec=$lt_library_names_spec
18989
18990 # The coded name of the library, if different from the real name.
18991 soname_spec=$lt_soname_spec
18992
18993 # Commands used to build and install an old-style archive.
18994 RANLIB=$lt_RANLIB
18995 old_archive_cmds=$lt_old_archive_cmds_RC
18996 old_postinstall_cmds=$lt_old_postinstall_cmds
18997 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18998
18999 # Create an old-style archive from a shared archive.
19000 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19001
19002 # Create a temporary old-style archive to link instead of a shared archive.
19003 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19004
19005 # Commands used to build and install a shared archive.
19006 archive_cmds=$lt_archive_cmds_RC
19007 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19008 postinstall_cmds=$lt_postinstall_cmds
19009 postuninstall_cmds=$lt_postuninstall_cmds
19010
19011 # Commands used to build a loadable module (assumed same as above if empty)
19012 module_cmds=$lt_module_cmds_RC
19013 module_expsym_cmds=$lt_module_expsym_cmds_RC
19014
19015 # Commands to strip libraries.
19016 old_striplib=$lt_old_striplib
19017 striplib=$lt_striplib
19018
19019 # Dependencies to place before the objects being linked to create a
19020 # shared library.
19021 predep_objects=$lt_predep_objects_RC
19022
19023 # Dependencies to place after the objects being linked to create a
19024 # shared library.
19025 postdep_objects=$lt_postdep_objects_RC
19026
19027 # Dependencies to place before the objects being linked to create a
19028 # shared library.
19029 predeps=$lt_predeps_RC
19030
19031 # Dependencies to place after the objects being linked to create a
19032 # shared library.
19033 postdeps=$lt_postdeps_RC
19034
19035 # The library search path used internally by the compiler when linking
19036 # a shared library.
19037 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19038
19039 # Method to check whether dependent libraries are shared objects.
19040 deplibs_check_method=$lt_deplibs_check_method
19041
19042 # Command to use when deplibs_check_method == file_magic.
19043 file_magic_cmd=$lt_file_magic_cmd
19044
19045 # Flag that allows shared libraries with undefined symbols to be built.
19046 allow_undefined_flag=$lt_allow_undefined_flag_RC
19047
19048 # Flag that forces no undefined symbols.
19049 no_undefined_flag=$lt_no_undefined_flag_RC
19050
19051 # Commands used to finish a libtool library installation in a directory.
19052 finish_cmds=$lt_finish_cmds
19053
19054 # Same as above, but a single script fragment to be evaled but not shown.
19055 finish_eval=$lt_finish_eval
19056
19057 # Take the output of nm and produce a listing of raw symbols and C names.
19058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19059
19060 # Transform the output of nm in a proper C declaration
19061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19062
19063 # Transform the output of nm in a C name address pair
19064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19065
19066 # This is the shared library runtime path variable.
19067 runpath_var=$runpath_var
19068
19069 # This is the shared library path variable.
19070 shlibpath_var=$shlibpath_var
19071
19072 # Is shlibpath searched before the hard-coded library search path?
19073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19074
19075 # How to hardcode a shared library path into an executable.
19076 hardcode_action=$hardcode_action_RC
19077
19078 # Whether we should hardcode library paths into libraries.
19079 hardcode_into_libs=$hardcode_into_libs
19080
19081 # Flag to hardcode \$libdir into a binary during linking.
19082 # This must work even if \$libdir does not exist.
19083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19084
19085 # If ld is used when linking, flag to hardcode \$libdir into
19086 # a binary during linking. This must work even if \$libdir does
19087 # not exist.
19088 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19089
19090 # Whether we need a single -rpath flag with a separated argument.
19091 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19092
19093 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19094 # resulting binary.
19095 hardcode_direct=$hardcode_direct_RC
19096
19097 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19098 # resulting binary.
19099 hardcode_minus_L=$hardcode_minus_L_RC
19100
19101 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19102 # the resulting binary.
19103 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19104
19105 # Set to yes if building a shared library automatically hardcodes DIR into the library
19106 # and all subsequent libraries and executables linked against it.
19107 hardcode_automatic=$hardcode_automatic_RC
19108
19109 # Variables whose values should be saved in libtool wrapper scripts and
19110 # restored at relink time.
19111 variables_saved_for_relink="$variables_saved_for_relink"
19112
19113 # Whether libtool must link a program against all its dependency libraries.
19114 link_all_deplibs=$link_all_deplibs_RC
19115
19116 # Compile-time system search path for libraries
19117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19118
19119 # Run-time system search path for libraries
19120 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19121
19122 # Fix the shell variable \$srcfile for the compiler.
19123 fix_srcfile_path="$fix_srcfile_path_RC"
19124
19125 # Set to yes if exported symbols are required.
19126 always_export_symbols=$always_export_symbols_RC
19127
19128 # The commands to list exported symbols.
19129 export_symbols_cmds=$lt_export_symbols_cmds_RC
19130
19131 # The commands to extract the exported symbol list from a shared archive.
19132 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19133
19134 # Symbols that should not be listed in the preloaded symbols.
19135 exclude_expsyms=$lt_exclude_expsyms_RC
19136
19137 # Symbols that must always be exported.
19138 include_expsyms=$lt_include_expsyms_RC
19139
19140 # ### END LIBTOOL TAG CONFIG: $tagname
19141
19142 __EOF__
19143
19144
19145 else
19146 # If there is no Makefile yet, we rely on a make rule to execute
19147 # `config.status --recheck' to rerun these tests and create the
19148 # libtool script then.
19149 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19150 if test -f "$ltmain_in"; then
19151 test -f Makefile && make "$ltmain"
19152 fi
19153 fi
19154
19155
19156 ac_ext=c
19157 ac_cpp='$CPP $CPPFLAGS'
19158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19161
19162 CC="$lt_save_CC"
19163
19164 ;;
19165
19166 *)
19167 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19168 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19169 { (exit 1); exit 1; }; }
19170 ;;
19171 esac
19172
19173 # Append the new tag name to the list of available tags.
19174 if test -n "$tagname" ; then
19175 available_tags="$available_tags $tagname"
19176 fi
19177 fi
19178 done
19179 IFS="$lt_save_ifs"
19180
19181 # Now substitute the updated list of available tags.
19182 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19183 mv "${ofile}T" "$ofile"
19184 chmod +x "$ofile"
19185 else
19186 rm -f "${ofile}T"
19187 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19188 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19189 { (exit 1); exit 1; }; }
19190 fi
19191 fi
19192
19193
19194
19195 # This can be used to rebuild libtool when needed
19196 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19197
19198 # Always use our own libtool.
19199 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19200
19201 # Prevent multiple expansion
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224 if test "x$GCC" = xyes ; then
19225 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
19226 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
19227 -Wbad-function-cast"
19228 case `gcc -dumpversion` in
19229 3.4.* | 4.*)
19230 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
19231 ;;
19232 esac
19233 else
19234 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
19235 echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
19236 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 $ac_includes_default
19246 int
19247 main ()
19248 {
19249 #ifndef __SUNPRO_C
19250 (void) __SUNPRO_C;
19251 #endif
19252
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19274 ac_cv_have_decl___SUNPRO_C=yes
19275 else
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279 ac_cv_have_decl___SUNPRO_C=no
19280 fi
19281
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 fi
19284 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
19285 echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
19286 if test $ac_cv_have_decl___SUNPRO_C = yes; then
19287 SUNCC="yes"
19288 else
19289 SUNCC="no"
19290 fi
19291
19292 if test "x$SUNCC" = "xyes"; then
19293 CWARNFLAGS="-v"
19294 fi
19295 fi
19296
19297
19298
19299 pciids_path=/usr/share/hwdata
19300
19301 # Check whether --with-pciids-path was given.
19302 if test "${with_pciids_path+set}" = set; then
19303 withval=$with_pciids_path; pciids_path="$withval"
19304 fi
19305
19306
19307 prefix_NONE=
19308 exec_prefix_NONE=
19309 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19310 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19311 eval ac_define_dir="\"$pciids_path\""
19312 eval ac_define_dir="\"$ac_define_dir\""
19313 PCIIDS_PATH="$ac_define_dir"
19314
19315
19316 cat >>confdefs.h <<_ACEOF
19317 #define PCIIDS_PATH "$ac_define_dir"
19318 _ACEOF
19319
19320 test "$prefix_NONE" && prefix=NONE
19321 test "$exec_prefix_NONE" && exec_prefix=NONE
19322
19323
19324 use_zlib=no
19325
19326 # Check whether --with-zlib was given.
19327 if test "${with_zlib+set}" = set; then
19328 withval=$with_zlib; use_zlib="$withval"
19329 fi
19330
19331 if test "x$use_zlib" = xyes; then
19332 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19333 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337 ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lz $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char gzopen ();
19353 int
19354 main ()
19355 {
19356 return gzopen ();
19357 ;
19358 return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19369 ac_status=$?
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } && {
19375 test -z "$ac_c_werror_flag" ||
19376 test ! -s conftest.err
19377 } && test -s conftest$ac_exeext &&
19378 $as_test_x conftest$ac_exeext; then
19379 ac_cv_lib_z_gzopen=yes
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_lib_z_gzopen=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19390 fi
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19392 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
19393 if test $ac_cv_lib_z_gzopen = yes; then
19394 PCIACCESS_LIBS="$PCIACCESS_LIBS -lz"
19395 else
19396 { { echo "$as_me:$LINENO: error: Check for zlib library failed" >&5
19397 echo "$as_me: error: Check for zlib library failed" >&2;}
19398 { (exit 1); exit 1; }; }
19399 fi
19400
19401 if test "${ac_cv_header_zlib_h+set}" = set; then
19402 { echo "$as_me:$LINENO: checking for zlib.h" >&5
19403 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
19404 if test "${ac_cv_header_zlib_h+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 fi
19407 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19408 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
19409 else
19410 # Is the header compilable?
19411 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
19412 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
19413 cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h. */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19419 $ac_includes_default
19420 #include <zlib.h>
19421 _ACEOF
19422 rm -f conftest.$ac_objext
19423 if { (ac_try="$ac_compile"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_compile") 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest.$ac_objext; then
19439 ac_header_compiler=yes
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19443
19444 ac_header_compiler=no
19445 fi
19446
19447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19449 echo "${ECHO_T}$ac_header_compiler" >&6; }
19450
19451 # Is the header present?
19452 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
19453 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
19454 cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h. */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19460 #include <zlib.h>
19461 _ACEOF
19462 if { (ac_try="$ac_cpp conftest.$ac_ext"
19463 case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19466 esac
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } >/dev/null && {
19475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 }; then
19478 ac_header_preproc=yes
19479 else
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ac_header_preproc=no
19484 fi
19485
19486 rm -f conftest.err conftest.$ac_ext
19487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19488 echo "${ECHO_T}$ac_header_preproc" >&6; }
19489
19490 # So? What about this header?
19491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19492 yes:no: )
19493 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19494 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19495 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19496 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19497 ac_header_preproc=yes
19498 ;;
19499 no:yes:* )
19500 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19501 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19503 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19505 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19507 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19509 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19510 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19511 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19512 ( cat <<\_ASBOX
19513 ## --------------------------------------------------------------------------------------------- ##
19514 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
19515 ## --------------------------------------------------------------------------------------------- ##
19516 _ASBOX
19517 ) | sed "s/^/$as_me: WARNING: /" >&2
19518 ;;
19519 esac
19520 { echo "$as_me:$LINENO: checking for zlib.h" >&5
19521 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
19522 if test "${ac_cv_header_zlib_h+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525 ac_cv_header_zlib_h=$ac_header_preproc
19526 fi
19527 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19528 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
19529
19530 fi
19531 if test $ac_cv_header_zlib_h = yes; then
19532
19533 cat >>confdefs.h <<\_ACEOF
19534 #define HAVE_ZLIB 1
19535 _ACEOF
19536
19537 else
19538 { { echo "$as_me:$LINENO: error: Check for zlib.h header file failed" >&5
19539 echo "$as_me: error: Check for zlib.h header file failed" >&2;}
19540 { (exit 1); exit 1; }; }
19541 fi
19542
19543
19544 fi
19545
19546 case $host_os in
19547 *freebsd* | *dragonfly*)
19548 freebsd=yes
19549 ;;
19550 *linux*)
19551 linux=yes
19552 ;;
19553 *netbsd*)
19554 case $host in
19555 *i386*)
19556 PCIACCESS_LIBS="-li386"
19557 ;;
19558 *x86_64*|*amd64*)
19559 PCIACCESS_LIBS="-lx86_64"
19560 ;;
19561 esac
19562 netbsd=yes
19563 ;;
19564 *openbsd*)
19565 openbsd=yes
19566 ;;
19567 *solaris*)
19568 solaris=yes
19569 PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo"
19570 ;;
19571 esac
19572
19573 if test "x$linux" = xyes; then
19574 LINUX_TRUE=
19575 LINUX_FALSE='#'
19576 else
19577 LINUX_TRUE='#'
19578 LINUX_FALSE=
19579 fi
19580
19581 if test "x$freebsd" = xyes; then
19582 FREEBSD_TRUE=
19583 FREEBSD_FALSE='#'
19584 else
19585 FREEBSD_TRUE='#'
19586 FREEBSD_FALSE=
19587 fi
19588
19589 if test "x$netbsd" = xyes; then
19590 NETBSD_TRUE=
19591 NETBSD_FALSE='#'
19592 else
19593 NETBSD_TRUE='#'
19594 NETBSD_FALSE=
19595 fi
19596
19597 if test "x$openbsd" = xyes; then
19598 OPENBSD_TRUE=
19599 OPENBSD_FALSE='#'
19600 else
19601 OPENBSD_TRUE='#'
19602 OPENBSD_FALSE=
19603 fi
19604
19605 if test "x$solaris" = xyes; then
19606 SOLARIS_TRUE=
19607 SOLARIS_FALSE='#'
19608 else
19609 SOLARIS_TRUE='#'
19610 SOLARIS_FALSE=
19611 fi
19612
19613
19614 # Check whether --enable-largefile was given.
19615 if test "${enable_largefile+set}" = set; then
19616 enableval=$enable_largefile;
19617 fi
19618
19619 if test "$enable_largefile" != no; then
19620
19621 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19622 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
19623 if test "${ac_cv_sys_largefile_CC+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626 ac_cv_sys_largefile_CC=no
19627 if test "$GCC" != yes; then
19628 ac_save_CC=$CC
19629 while :; do
19630 # IRIX 6.2 and later do not support large files by default,
19631 # so use the C compiler's -n32 option if that helps.
19632 cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h. */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19638 #include <sys/types.h>
19639 /* Check that off_t can represent 2**63 - 1 correctly.
19640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19641 since some C++ compilers masquerading as C compilers
19642 incorrectly reject 9223372036854775807. */
19643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19645 && LARGE_OFF_T % 2147483647 == 1)
19646 ? 1 : -1];
19647 int
19648 main ()
19649 {
19650
19651 ;
19652 return 0;
19653 }
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19660 esac
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_compile") 2>conftest.er1
19663 ac_status=$?
19664 grep -v '^ *+' conftest.er1 >conftest.err
19665 rm -f conftest.er1
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && {
19669 test -z "$ac_c_werror_flag" ||
19670 test ! -s conftest.err
19671 } && test -s conftest.$ac_objext; then
19672 break
19673 else
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19676
19677
19678 fi
19679
19680 rm -f core conftest.err conftest.$ac_objext
19681 CC="$CC -n32"
19682 rm -f conftest.$ac_objext
19683 if { (ac_try="$ac_compile"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
19699 ac_cv_sys_largefile_CC=' -n32'; break
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704
19705 fi
19706
19707 rm -f core conftest.err conftest.$ac_objext
19708 break
19709 done
19710 CC=$ac_save_CC
19711 rm -f conftest.$ac_ext
19712 fi
19713 fi
19714 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19715 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
19716 if test "$ac_cv_sys_largefile_CC" != no; then
19717 CC=$CC$ac_cv_sys_largefile_CC
19718 fi
19719
19720 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19721 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
19722 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725 while :; do
19726 cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h. */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19732 #include <sys/types.h>
19733 /* Check that off_t can represent 2**63 - 1 correctly.
19734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19735 since some C++ compilers masquerading as C compilers
19736 incorrectly reject 9223372036854775807. */
19737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19739 && LARGE_OFF_T % 2147483647 == 1)
19740 ? 1 : -1];
19741 int
19742 main ()
19743 {
19744
19745 ;
19746 return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (ac_try="$ac_compile"
19751 case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19754 esac
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_compile") 2>conftest.er1
19757 ac_status=$?
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } && {
19763 test -z "$ac_c_werror_flag" ||
19764 test ! -s conftest.err
19765 } && test -s conftest.$ac_objext; then
19766 ac_cv_sys_file_offset_bits=no; break
19767 else
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19770
19771
19772 fi
19773
19774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h. */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 #define _FILE_OFFSET_BITS 64
19782 #include <sys/types.h>
19783 /* Check that off_t can represent 2**63 - 1 correctly.
19784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19785 since some C++ compilers masquerading as C compilers
19786 incorrectly reject 9223372036854775807. */
19787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19789 && LARGE_OFF_T % 2147483647 == 1)
19790 ? 1 : -1];
19791 int
19792 main ()
19793 {
19794
19795 ;
19796 return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } && {
19813 test -z "$ac_c_werror_flag" ||
19814 test ! -s conftest.err
19815 } && test -s conftest.$ac_objext; then
19816 ac_cv_sys_file_offset_bits=64; break
19817 else
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 ac_cv_sys_file_offset_bits=unknown
19826 break
19827 done
19828 fi
19829 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19830 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19831 case $ac_cv_sys_file_offset_bits in #(
19832 no | unknown) ;;
19833 *)
19834 cat >>confdefs.h <<_ACEOF
19835 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19836 _ACEOF
19837 ;;
19838 esac
19839 rm -f conftest*
19840 if test $ac_cv_sys_file_offset_bits = unknown; then
19841 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19842 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
19843 if test "${ac_cv_sys_large_files+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846 while :; do
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h. */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 #include <sys/types.h>
19854 /* Check that off_t can represent 2**63 - 1 correctly.
19855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19856 since some C++ compilers masquerading as C compilers
19857 incorrectly reject 9223372036854775807. */
19858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19860 && LARGE_OFF_T % 2147483647 == 1)
19861 ? 1 : -1];
19862 int
19863 main ()
19864 {
19865
19866 ;
19867 return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_compile") 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } && {
19884 test -z "$ac_c_werror_flag" ||
19885 test ! -s conftest.err
19886 } && test -s conftest.$ac_objext; then
19887 ac_cv_sys_large_files=no; break
19888 else
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892
19893 fi
19894
19895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 #define _LARGE_FILES 1
19903 #include <sys/types.h>
19904 /* Check that off_t can represent 2**63 - 1 correctly.
19905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19906 since some C++ compilers masquerading as C compilers
19907 incorrectly reject 9223372036854775807. */
19908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19910 && LARGE_OFF_T % 2147483647 == 1)
19911 ? 1 : -1];
19912 int
19913 main ()
19914 {
19915
19916 ;
19917 return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (ac_try="$ac_compile"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_compile") 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } && {
19934 test -z "$ac_c_werror_flag" ||
19935 test ! -s conftest.err
19936 } && test -s conftest.$ac_objext; then
19937 ac_cv_sys_large_files=1; break
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942
19943 fi
19944
19945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 ac_cv_sys_large_files=unknown
19947 break
19948 done
19949 fi
19950 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19951 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19952 case $ac_cv_sys_large_files in #(
19953 no | unknown) ;;
19954 *)
19955 cat >>confdefs.h <<_ACEOF
19956 #define _LARGE_FILES $ac_cv_sys_large_files
19957 _ACEOF
19958 ;;
19959 esac
19960 rm -f conftest*
19961 fi
19962 fi
19963
19964
19965 if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
19966 { echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5
19967 echo $ECHO_N "checking for asm/mtrr.h... $ECHO_C" >&6; }
19968 if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 fi
19971 { echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5
19972 echo "${ECHO_T}$ac_cv_header_asm_mtrr_h" >&6; }
19973 else
19974 # Is the header compilable?
19975 { echo "$as_me:$LINENO: checking asm/mtrr.h usability" >&5
19976 echo $ECHO_N "checking asm/mtrr.h usability... $ECHO_C" >&6; }
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 $ac_includes_default
19984 #include <asm/mtrr.h>
19985 _ACEOF
19986 rm -f conftest.$ac_objext
19987 if { (ac_try="$ac_compile"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_compile") 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest.$ac_objext; then
20003 ac_header_compiler=yes
20004 else
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ac_header_compiler=no
20009 fi
20010
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20013 echo "${ECHO_T}$ac_header_compiler" >&6; }
20014
20015 # Is the header present?
20016 { echo "$as_me:$LINENO: checking asm/mtrr.h presence" >&5
20017 echo $ECHO_N "checking asm/mtrr.h presence... $ECHO_C" >&6; }
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 #include <asm/mtrr.h>
20025 _ACEOF
20026 if { (ac_try="$ac_cpp conftest.$ac_ext"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } >/dev/null && {
20039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20041 }; then
20042 ac_header_preproc=yes
20043 else
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047 ac_header_preproc=no
20048 fi
20049
20050 rm -f conftest.err conftest.$ac_ext
20051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20052 echo "${ECHO_T}$ac_header_preproc" >&6; }
20053
20054 # So? What about this header?
20055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20056 yes:no: )
20057 { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&5
20058 echo "$as_me: WARNING: asm/mtrr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&5
20060 echo "$as_me: WARNING: asm/mtrr.h: proceeding with the compiler's result" >&2;}
20061 ac_header_preproc=yes
20062 ;;
20063 no:yes:* )
20064 { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: present but cannot be compiled" >&5
20065 echo "$as_me: WARNING: asm/mtrr.h: present but cannot be compiled" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: check for missing prerequisite headers?" >&5
20067 echo "$as_me: WARNING: asm/mtrr.h: check for missing prerequisite headers?" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: see the Autoconf documentation" >&5
20069 echo "$as_me: WARNING: asm/mtrr.h: see the Autoconf documentation" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: section \"Present But Cannot Be Compiled\"" >&5
20071 echo "$as_me: WARNING: asm/mtrr.h: section \"Present But Cannot Be Compiled\"" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&5
20073 echo "$as_me: WARNING: asm/mtrr.h: proceeding with the preprocessor's result" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&5
20075 echo "$as_me: WARNING: asm/mtrr.h: in the future, the compiler will take precedence" >&2;}
20076 ( cat <<\_ASBOX
20077 ## --------------------------------------------------------------------------------------------- ##
20078 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
20079 ## --------------------------------------------------------------------------------------------- ##
20080 _ASBOX
20081 ) | sed "s/^/$as_me: WARNING: /" >&2
20082 ;;
20083 esac
20084 { echo "$as_me:$LINENO: checking for asm/mtrr.h" >&5
20085 echo $ECHO_N "checking for asm/mtrr.h... $ECHO_C" >&6; }
20086 if test "${ac_cv_header_asm_mtrr_h+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089 ac_cv_header_asm_mtrr_h=$ac_header_preproc
20090 fi
20091 { echo "$as_me:$LINENO: result: $ac_cv_header_asm_mtrr_h" >&5
20092 echo "${ECHO_T}$ac_cv_header_asm_mtrr_h" >&6; }
20093
20094 fi
20095 if test $ac_cv_header_asm_mtrr_h = yes; then
20096 have_mtrr_h="yes"
20097 else
20098 have_mtrr_h="no"
20099 fi
20100
20101
20102
20103 if test "x$have_mtrr_h" = xyes; then
20104
20105 cat >>confdefs.h <<\_ACEOF
20106 #define HAVE_MTRR 1
20107 _ACEOF
20108
20109 fi
20110
20111 { echo "$as_me:$LINENO: checking for struct pci_io.pi_sel.pc_domain" >&5
20112 echo $ECHO_N "checking for struct pci_io.pi_sel.pc_domain... $ECHO_C" >&6; }
20113 if test "${ac_cv_member_struct_pci_io_pi_sel_pc_domain+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h. */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 #include <sys/types.h>
20123 #include <sys/pciio.h>
20124
20125
20126 int
20127 main ()
20128 {
20129 static struct pci_io ac_aggr;
20130 if (ac_aggr.pi_sel.pc_domain)
20131 return 0;
20132 ;
20133 return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (ac_try="$ac_compile"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_compile") 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest.$ac_objext; then
20153 ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes
20154 else
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164 #include <sys/types.h>
20165 #include <sys/pciio.h>
20166
20167
20168 int
20169 main ()
20170 {
20171 static struct pci_io ac_aggr;
20172 if (sizeof ac_aggr.pi_sel.pc_domain)
20173 return 0;
20174 ;
20175 return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (ac_try="$ac_compile"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_compile") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest.$ac_objext; then
20195 ac_cv_member_struct_pci_io_pi_sel_pc_domain=yes
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200 ac_cv_member_struct_pci_io_pi_sel_pc_domain=no
20201 fi
20202
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204 fi
20205
20206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20207 fi
20208 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&5
20209 echo "${ECHO_T}$ac_cv_member_struct_pci_io_pi_sel_pc_domain" >&6; }
20210 if test $ac_cv_member_struct_pci_io_pi_sel_pc_domain = yes; then
20211
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_PCI_IO_PC_DOMAIN 1
20214 _ACEOF
20215
20216 fi
20217
20218
20219
20220
20221
20222
20223
20224 # Check whether --with-release-version was given.
20225 if test "${with_release_version+set}" = set; then
20226 withval=$with_release_version; RELEASE_VERSION="$withval"
20227 else
20228 RELEASE_VERSION=""
20229 fi
20230
20231 if test "x$RELEASE_VERSION" != "x"; then
20232 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20233 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20234 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20235 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20236 fi
20237
20238 cat >>confdefs.h <<_ACEOF
20239 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20240 _ACEOF
20241
20242 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20243 if test "x$PVM" = "x"; then
20244 PVM="0"
20245 fi
20246
20247 cat >>confdefs.h <<_ACEOF
20248 #define PACKAGE_VERSION_MINOR $PVM
20249 _ACEOF
20250
20251 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20252 if test "x$PVP" = "x"; then
20253 PVP="0"
20254 fi
20255
20256 cat >>confdefs.h <<_ACEOF
20257 #define PACKAGE_VERSION_PATCHLEVEL $PVP
20258 _ACEOF
20259
20260
20261
20262 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
20263 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
20264 echo 'git directory not found: installing possibly empty changelog.' >&2)"
20265
20266 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
20267
20268
20269
20270 ac_config_files="$ac_config_files Makefile src/Makefile pciaccess.pc"
20271
20272 cat >confcache <<\_ACEOF
20273 # This file is a shell script that caches the results of configure
20274 # tests run on this system so they can be shared between configure
20275 # scripts and configure runs, see configure's option --config-cache.
20276 # It is not useful on other systems. If it contains results you don't
20277 # want to keep, you may remove or edit it.
20278 #
20279 # config.status only pays attention to the cache file if you give it
20280 # the --recheck option to rerun configure.
20281 #
20282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20284 # following values.
20285
20286 _ACEOF
20287
20288 # The following way of writing the cache mishandles newlines in values,
20289 # but we know of no workaround that is simple, portable, and efficient.
20290 # So, we kill variables containing newlines.
20291 # Ultrix sh set writes to stderr and can't be redirected directly,
20292 # and sets the high bit in the cache file unless we assign to the vars.
20293 (
20294 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20295 eval ac_val=\$$ac_var
20296 case $ac_val in #(
20297 *${as_nl}*)
20298 case $ac_var in #(
20299 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20300 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20301 esac
20302 case $ac_var in #(
20303 _ | IFS | as_nl) ;; #(
20304 *) $as_unset $ac_var ;;
20305 esac ;;
20306 esac
20307 done
20308
20309 (set) 2>&1 |
20310 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20311 *${as_nl}ac_space=\ *)
20312 # `set' does not quote correctly, so add quotes (double-quote
20313 # substitution turns \\\\ into \\, and sed turns \\ into \).
20314 sed -n \
20315 "s/'/'\\\\''/g;
20316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20317 ;; #(
20318 *)
20319 # `set' quotes correctly as required by POSIX, so do not add quotes.
20320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20321 ;;
20322 esac |
20323 sort
20324 ) |
20325 sed '
20326 /^ac_cv_env_/b end
20327 t clear
20328 :clear
20329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20330 t end
20331 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20332 :end' >>confcache
20333 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20334 if test -w "$cache_file"; then
20335 test "x$cache_file" != "x/dev/null" &&
20336 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20337 echo "$as_me: updating cache $cache_file" >&6;}
20338 cat confcache >$cache_file
20339 else
20340 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20341 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20342 fi
20343 fi
20344 rm -f confcache
20345
20346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20347 # Let make expand exec_prefix.
20348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20349
20350 DEFS=-DHAVE_CONFIG_H
20351
20352 ac_libobjs=
20353 ac_ltlibobjs=
20354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20355 # 1. Remove the extension, and $U if already installed.
20356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20357 ac_i=`echo "$ac_i" | sed "$ac_script"`
20358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20359 # will be set to the directory where LIBOBJS objects are built.
20360 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20361 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20362 done
20363 LIBOBJS=$ac_libobjs
20364
20365 LTLIBOBJS=$ac_ltlibobjs
20366
20367
20368 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20369 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20370 Usually this means the macro was only invoked conditionally." >&5
20371 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20372 Usually this means the macro was only invoked conditionally." >&2;}
20373 { (exit 1); exit 1; }; }
20374 fi
20375 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20376 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20377 Usually this means the macro was only invoked conditionally." >&5
20378 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20379 Usually this means the macro was only invoked conditionally." >&2;}
20380 { (exit 1); exit 1; }; }
20381 fi
20382 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20383 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20384 Usually this means the macro was only invoked conditionally." >&5
20385 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20386 Usually this means the macro was only invoked conditionally." >&2;}
20387 { (exit 1); exit 1; }; }
20388 fi
20389 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20390 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20391 Usually this means the macro was only invoked conditionally." >&5
20392 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20393 Usually this means the macro was only invoked conditionally." >&2;}
20394 { (exit 1); exit 1; }; }
20395 fi
20396 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
20397 { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
20398 Usually this means the macro was only invoked conditionally." >&5
20399 echo "$as_me: error: conditional \"LINUX\" was never defined.
20400 Usually this means the macro was only invoked conditionally." >&2;}
20401 { (exit 1); exit 1; }; }
20402 fi
20403 if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
20404 { { echo "$as_me:$LINENO: error: conditional \"FREEBSD\" was never defined.
20405 Usually this means the macro was only invoked conditionally." >&5
20406 echo "$as_me: error: conditional \"FREEBSD\" was never defined.
20407 Usually this means the macro was only invoked conditionally." >&2;}
20408 { (exit 1); exit 1; }; }
20409 fi
20410 if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
20411 { { echo "$as_me:$LINENO: error: conditional \"NETBSD\" was never defined.
20412 Usually this means the macro was only invoked conditionally." >&5
20413 echo "$as_me: error: conditional \"NETBSD\" was never defined.
20414 Usually this means the macro was only invoked conditionally." >&2;}
20415 { (exit 1); exit 1; }; }
20416 fi
20417 if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then
20418 { { echo "$as_me:$LINENO: error: conditional \"OPENBSD\" was never defined.
20419 Usually this means the macro was only invoked conditionally." >&5
20420 echo "$as_me: error: conditional \"OPENBSD\" was never defined.
20421 Usually this means the macro was only invoked conditionally." >&2;}
20422 { (exit 1); exit 1; }; }
20423 fi
20424 if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
20425 { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
20426 Usually this means the macro was only invoked conditionally." >&5
20427 echo "$as_me: error: conditional \"SOLARIS\" was never defined.
20428 Usually this means the macro was only invoked conditionally." >&2;}
20429 { (exit 1); exit 1; }; }
20430 fi
20431
20432 : ${CONFIG_STATUS=./config.status}
20433 ac_clean_files_save=$ac_clean_files
20434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20435 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20436 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20437 cat >$CONFIG_STATUS <<_ACEOF
20438 #! $SHELL
20439 # Generated by $as_me.
20440 # Run this file to recreate the current configuration.
20441 # Compiler output produced by configure, useful for debugging
20442 # configure, is in config.log if it exists.
20443
20444 debug=false
20445 ac_cs_recheck=false
20446 ac_cs_silent=false
20447 SHELL=\${CONFIG_SHELL-$SHELL}
20448 _ACEOF
20449
20450 cat >>$CONFIG_STATUS <<\_ACEOF
20451 ## --------------------- ##
20452 ## M4sh Initialization. ##
20453 ## --------------------- ##
20454
20455 # Be more Bourne compatible
20456 DUALCASE=1; export DUALCASE # for MKS sh
20457 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20458 emulate sh
20459 NULLCMD=:
20460 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20461 # is contrary to our usage. Disable this feature.
20462 alias -g '${1+"$@"}'='"$@"'
20463 setopt NO_GLOB_SUBST
20464 else
20465 case `(set -o) 2>/dev/null` in
20466 *posix*) set -o posix ;;
20467 esac
20468
20469 fi
20470
20471
20472
20473
20474 # PATH needs CR
20475 # Avoid depending upon Character Ranges.
20476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20479 as_cr_digits='0123456789'
20480 as_cr_alnum=$as_cr_Letters$as_cr_digits
20481
20482 # The user is always right.
20483 if test "${PATH_SEPARATOR+set}" != set; then
20484 echo "#! /bin/sh" >conf$$.sh
20485 echo "exit 0" >>conf$$.sh
20486 chmod +x conf$$.sh
20487 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20488 PATH_SEPARATOR=';'
20489 else
20490 PATH_SEPARATOR=:
20491 fi
20492 rm -f conf$$.sh
20493 fi
20494
20495 # Support unset when possible.
20496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20497 as_unset=unset
20498 else
20499 as_unset=false
20500 fi
20501
20502
20503 # IFS
20504 # We need space, tab and new line, in precisely that order. Quoting is
20505 # there to prevent editors from complaining about space-tab.
20506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20507 # splitting by setting IFS to empty value.)
20508 as_nl='
20509 '
20510 IFS=" "" $as_nl"
20511
20512 # Find who we are. Look in the path if we contain no directory separator.
20513 case $0 in
20514 *[\\/]* ) as_myself=$0 ;;
20515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20516 for as_dir in $PATH
20517 do
20518 IFS=$as_save_IFS
20519 test -z "$as_dir" && as_dir=.
20520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20521 done
20522 IFS=$as_save_IFS
20523
20524 ;;
20525 esac
20526 # We did not find ourselves, most probably we were run as `sh COMMAND'
20527 # in which case we are not to be found in the path.
20528 if test "x$as_myself" = x; then
20529 as_myself=$0
20530 fi
20531 if test ! -f "$as_myself"; then
20532 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20533 { (exit 1); exit 1; }
20534 fi
20535
20536 # Work around bugs in pre-3.0 UWIN ksh.
20537 for as_var in ENV MAIL MAILPATH
20538 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20539 done
20540 PS1='$ '
20541 PS2='> '
20542 PS4='+ '
20543
20544 # NLS nuisances.
20545 for as_var in \
20546 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20547 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20548 LC_TELEPHONE LC_TIME
20549 do
20550 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20551 eval $as_var=C; export $as_var
20552 else
20553 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20554 fi
20555 done
20556
20557 # Required to use basename.
20558 if expr a : '\(a\)' >/dev/null 2>&1 &&
20559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20560 as_expr=expr
20561 else
20562 as_expr=false
20563 fi
20564
20565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20566 as_basename=basename
20567 else
20568 as_basename=false
20569 fi
20570
20571
20572 # Name of the executable.
20573 as_me=`$as_basename -- "$0" ||
20574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20575 X"$0" : 'X\(//\)$' \| \
20576 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20577 echo X/"$0" |
20578 sed '/^.*\/\([^/][^/]*\)\/*$/{
20579 s//\1/
20580 q
20581 }
20582 /^X\/\(\/\/\)$/{
20583 s//\1/
20584 q
20585 }
20586 /^X\/\(\/\).*/{
20587 s//\1/
20588 q
20589 }
20590 s/.*/./; q'`
20591
20592 # CDPATH.
20593 $as_unset CDPATH
20594
20595
20596
20597 as_lineno_1=$LINENO
20598 as_lineno_2=$LINENO
20599 test "x$as_lineno_1" != "x$as_lineno_2" &&
20600 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20601
20602 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20603 # uniformly replaced by the line number. The first 'sed' inserts a
20604 # line-number line after each line using $LINENO; the second 'sed'
20605 # does the real work. The second script uses 'N' to pair each
20606 # line-number line with the line containing $LINENO, and appends
20607 # trailing '-' during substitution so that $LINENO is not a special
20608 # case at line end.
20609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20610 # scripts with optimization help from Paolo Bonzini. Blame Lee
20611 # E. McMahon (1931-1989) for sed's syntax. :-)
20612 sed -n '
20613 p
20614 /[$]LINENO/=
20615 ' <$as_myself |
20616 sed '
20617 s/[$]LINENO.*/&-/
20618 t lineno
20619 b
20620 :lineno
20621 N
20622 :loop
20623 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20624 t loop
20625 s/-\n.*//
20626 ' >$as_me.lineno &&
20627 chmod +x "$as_me.lineno" ||
20628 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20629 { (exit 1); exit 1; }; }
20630
20631 # Don't try to exec as it changes $[0], causing all sort of problems
20632 # (the dirname of $[0] is not the place where we might find the
20633 # original and so on. Autoconf is especially sensitive to this).
20634 . "./$as_me.lineno"
20635 # Exit status is that of the last command.
20636 exit
20637 }
20638
20639
20640 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20641 as_dirname=dirname
20642 else
20643 as_dirname=false
20644 fi
20645
20646 ECHO_C= ECHO_N= ECHO_T=
20647 case `echo -n x` in
20648 -n*)
20649 case `echo 'x\c'` in
20650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20651 *) ECHO_C='\c';;
20652 esac;;
20653 *)
20654 ECHO_N='-n';;
20655 esac
20656
20657 if expr a : '\(a\)' >/dev/null 2>&1 &&
20658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20659 as_expr=expr
20660 else
20661 as_expr=false
20662 fi
20663
20664 rm -f conf$$ conf$$.exe conf$$.file
20665 if test -d conf$$.dir; then
20666 rm -f conf$$.dir/conf$$.file
20667 else
20668 rm -f conf$$.dir
20669 mkdir conf$$.dir
20670 fi
20671 echo >conf$$.file
20672 if ln -s conf$$.file conf$$ 2>/dev/null; then
20673 as_ln_s='ln -s'
20674 # ... but there are two gotchas:
20675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20677 # In both cases, we have to default to `cp -p'.
20678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20679 as_ln_s='cp -p'
20680 elif ln conf$$.file conf$$ 2>/dev/null; then
20681 as_ln_s=ln
20682 else
20683 as_ln_s='cp -p'
20684 fi
20685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20686 rmdir conf$$.dir 2>/dev/null
20687
20688 if mkdir -p . 2>/dev/null; then
20689 as_mkdir_p=:
20690 else
20691 test -d ./-p && rmdir ./-p
20692 as_mkdir_p=false
20693 fi
20694
20695 if test -x / >/dev/null 2>&1; then
20696 as_test_x='test -x'
20697 else
20698 if ls -dL / >/dev/null 2>&1; then
20699 as_ls_L_option=L
20700 else
20701 as_ls_L_option=
20702 fi
20703 as_test_x='
20704 eval sh -c '\''
20705 if test -d "$1"; then
20706 test -d "$1/.";
20707 else
20708 case $1 in
20709 -*)set "./$1";;
20710 esac;
20711 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20712 ???[sx]*):;;*)false;;esac;fi
20713 '\'' sh
20714 '
20715 fi
20716 as_executable_p=$as_test_x
20717
20718 # Sed expression to map a string onto a valid CPP name.
20719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20720
20721 # Sed expression to map a string onto a valid variable name.
20722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20723
20724
20725 exec 6>&1
20726
20727 # Save the log message, to keep $[0] and so on meaningful, and to
20728 # report actual input values of CONFIG_FILES etc. instead of their
20729 # values after options handling.
20730 ac_log="
20731 This file was extended by libpciaccess $as_me 0.10.6, which was
20732 generated by GNU Autoconf 2.61. Invocation command line was
20733
20734 CONFIG_FILES = $CONFIG_FILES
20735 CONFIG_HEADERS = $CONFIG_HEADERS
20736 CONFIG_LINKS = $CONFIG_LINKS
20737 CONFIG_COMMANDS = $CONFIG_COMMANDS
20738 $ $0 $@
20739
20740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20741 "
20742
20743 _ACEOF
20744
20745 cat >>$CONFIG_STATUS <<_ACEOF
20746 # Files that config.status was made for.
20747 config_files="$ac_config_files"
20748 config_headers="$ac_config_headers"
20749 config_commands="$ac_config_commands"
20750
20751 _ACEOF
20752
20753 cat >>$CONFIG_STATUS <<\_ACEOF
20754 ac_cs_usage="\
20755 \`$as_me' instantiates files from templates according to the
20756 current configuration.
20757
20758 Usage: $0 [OPTIONS] [FILE]...
20759
20760 -h, --help print this help, then exit
20761 -V, --version print version number and configuration settings, then exit
20762 -q, --quiet do not print progress messages
20763 -d, --debug don't remove temporary files
20764 --recheck update $as_me by reconfiguring in the same conditions
20765 --file=FILE[:TEMPLATE]
20766 instantiate the configuration file FILE
20767 --header=FILE[:TEMPLATE]
20768 instantiate the configuration header FILE
20769
20770 Configuration files:
20771 $config_files
20772
20773 Configuration headers:
20774 $config_headers
20775
20776 Configuration commands:
20777 $config_commands
20778
20779 Report bugs to <bug-autoconf (at] gnu.org>."
20780
20781 _ACEOF
20782 cat >>$CONFIG_STATUS <<_ACEOF
20783 ac_cs_version="\\
20784 libpciaccess config.status 0.10.6
20785 configured by $0, generated by GNU Autoconf 2.61,
20786 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20787
20788 Copyright (C) 2006 Free Software Foundation, Inc.
20789 This config.status script is free software; the Free Software Foundation
20790 gives unlimited permission to copy, distribute and modify it."
20791
20792 ac_pwd='$ac_pwd'
20793 srcdir='$srcdir'
20794 INSTALL='$INSTALL'
20795 MKDIR_P='$MKDIR_P'
20796 _ACEOF
20797
20798 cat >>$CONFIG_STATUS <<\_ACEOF
20799 # If no file are specified by the user, then we need to provide default
20800 # value. By we need to know if files were specified by the user.
20801 ac_need_defaults=:
20802 while test $# != 0
20803 do
20804 case $1 in
20805 --*=*)
20806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20807 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20808 ac_shift=:
20809 ;;
20810 *)
20811 ac_option=$1
20812 ac_optarg=$2
20813 ac_shift=shift
20814 ;;
20815 esac
20816
20817 case $ac_option in
20818 # Handling of the options.
20819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20820 ac_cs_recheck=: ;;
20821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20822 echo "$ac_cs_version"; exit ;;
20823 --debug | --debu | --deb | --de | --d | -d )
20824 debug=: ;;
20825 --file | --fil | --fi | --f )
20826 $ac_shift
20827 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20828 ac_need_defaults=false;;
20829 --header | --heade | --head | --hea )
20830 $ac_shift
20831 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20832 ac_need_defaults=false;;
20833 --he | --h)
20834 # Conflict between --help and --header
20835 { echo "$as_me: error: ambiguous option: $1
20836 Try \`$0 --help' for more information." >&2
20837 { (exit 1); exit 1; }; };;
20838 --help | --hel | -h )
20839 echo "$ac_cs_usage"; exit ;;
20840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20841 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20842 ac_cs_silent=: ;;
20843
20844 # This is an error.
20845 -*) { echo "$as_me: error: unrecognized option: $1
20846 Try \`$0 --help' for more information." >&2
20847 { (exit 1); exit 1; }; } ;;
20848
20849 *) ac_config_targets="$ac_config_targets $1"
20850 ac_need_defaults=false ;;
20851
20852 esac
20853 shift
20854 done
20855
20856 ac_configure_extra_args=
20857
20858 if $ac_cs_silent; then
20859 exec 6>/dev/null
20860 ac_configure_extra_args="$ac_configure_extra_args --silent"
20861 fi
20862
20863 _ACEOF
20864 cat >>$CONFIG_STATUS <<_ACEOF
20865 if \$ac_cs_recheck; then
20866 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20867 CONFIG_SHELL=$SHELL
20868 export CONFIG_SHELL
20869 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20870 fi
20871
20872 _ACEOF
20873 cat >>$CONFIG_STATUS <<\_ACEOF
20874 exec 5>>config.log
20875 {
20876 echo
20877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20878 ## Running $as_me. ##
20879 _ASBOX
20880 echo "$ac_log"
20881 } >&5
20882
20883 _ACEOF
20884 cat >>$CONFIG_STATUS <<_ACEOF
20885 #
20886 # INIT-COMMANDS
20887 #
20888 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20889
20890 _ACEOF
20891
20892 cat >>$CONFIG_STATUS <<\_ACEOF
20893
20894 # Handling of arguments.
20895 for ac_config_target in $ac_config_targets
20896 do
20897 case $ac_config_target in
20898 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20899 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20901 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20902 "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;;
20903
20904 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20905 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20906 { (exit 1); exit 1; }; };;
20907 esac
20908 done
20909
20910
20911 # If the user did not use the arguments to specify the items to instantiate,
20912 # then the envvar interface is used. Set only those that are not.
20913 # We use the long form for the default assignment because of an extremely
20914 # bizarre bug on SunOS 4.1.3.
20915 if $ac_need_defaults; then
20916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20918 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20919 fi
20920
20921 # Have a temporary directory for convenience. Make it in the build tree
20922 # simply because there is no reason against having it here, and in addition,
20923 # creating and moving files from /tmp can sometimes cause problems.
20924 # Hook for its removal unless debugging.
20925 # Note that there is a small window in which the directory will not be cleaned:
20926 # after its creation but before its name has been assigned to `$tmp'.
20927 $debug ||
20928 {
20929 tmp=
20930 trap 'exit_status=$?
20931 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20932 ' 0
20933 trap '{ (exit 1); exit 1; }' 1 2 13 15
20934 }
20935 # Create a (secure) tmp directory for tmp files.
20936
20937 {
20938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20939 test -n "$tmp" && test -d "$tmp"
20940 } ||
20941 {
20942 tmp=./conf$$-$RANDOM
20943 (umask 077 && mkdir "$tmp")
20944 } ||
20945 {
20946 echo "$me: cannot create a temporary directory in ." >&2
20947 { (exit 1); exit 1; }
20948 }
20949
20950 #
20951 # Set up the sed scripts for CONFIG_FILES section.
20952 #
20953
20954 # No need to generate the scripts if there are no CONFIG_FILES.
20955 # This happens for instance when ./config.status config.h
20956 if test -n "$CONFIG_FILES"; then
20957
20958 _ACEOF
20959
20960
20961
20962 ac_delim='%!_!# '
20963 for ac_last_try in false false false false false :; do
20964 cat >conf$$subs.sed <<_ACEOF
20965 SHELL!$SHELL$ac_delim
20966 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20967 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20968 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20969 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20970 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20971 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20972 exec_prefix!$exec_prefix$ac_delim
20973 prefix!$prefix$ac_delim
20974 program_transform_name!$program_transform_name$ac_delim
20975 bindir!$bindir$ac_delim
20976 sbindir!$sbindir$ac_delim
20977 libexecdir!$libexecdir$ac_delim
20978 datarootdir!$datarootdir$ac_delim
20979 datadir!$datadir$ac_delim
20980 sysconfdir!$sysconfdir$ac_delim
20981 sharedstatedir!$sharedstatedir$ac_delim
20982 localstatedir!$localstatedir$ac_delim
20983 includedir!$includedir$ac_delim
20984 oldincludedir!$oldincludedir$ac_delim
20985 docdir!$docdir$ac_delim
20986 infodir!$infodir$ac_delim
20987 htmldir!$htmldir$ac_delim
20988 dvidir!$dvidir$ac_delim
20989 pdfdir!$pdfdir$ac_delim
20990 psdir!$psdir$ac_delim
20991 libdir!$libdir$ac_delim
20992 localedir!$localedir$ac_delim
20993 mandir!$mandir$ac_delim
20994 DEFS!$DEFS$ac_delim
20995 ECHO_C!$ECHO_C$ac_delim
20996 ECHO_N!$ECHO_N$ac_delim
20997 ECHO_T!$ECHO_T$ac_delim
20998 LIBS!$LIBS$ac_delim
20999 build_alias!$build_alias$ac_delim
21000 host_alias!$host_alias$ac_delim
21001 target_alias!$target_alias$ac_delim
21002 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21003 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21004 INSTALL_DATA!$INSTALL_DATA$ac_delim
21005 am__isrc!$am__isrc$ac_delim
21006 CYGPATH_W!$CYGPATH_W$ac_delim
21007 PACKAGE!$PACKAGE$ac_delim
21008 VERSION!$VERSION$ac_delim
21009 ACLOCAL!$ACLOCAL$ac_delim
21010 AUTOCONF!$AUTOCONF$ac_delim
21011 AUTOMAKE!$AUTOMAKE$ac_delim
21012 AUTOHEADER!$AUTOHEADER$ac_delim
21013 MAKEINFO!$MAKEINFO$ac_delim
21014 install_sh!$install_sh$ac_delim
21015 STRIP!$STRIP$ac_delim
21016 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21017 mkdir_p!$mkdir_p$ac_delim
21018 AWK!$AWK$ac_delim
21019 SET_MAKE!$SET_MAKE$ac_delim
21020 am__leading_dot!$am__leading_dot$ac_delim
21021 AMTAR!$AMTAR$ac_delim
21022 am__tar!$am__tar$ac_delim
21023 am__untar!$am__untar$ac_delim
21024 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21025 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21026 MAINT!$MAINT$ac_delim
21027 CC!$CC$ac_delim
21028 CFLAGS!$CFLAGS$ac_delim
21029 LDFLAGS!$LDFLAGS$ac_delim
21030 CPPFLAGS!$CPPFLAGS$ac_delim
21031 ac_ct_CC!$ac_ct_CC$ac_delim
21032 EXEEXT!$EXEEXT$ac_delim
21033 OBJEXT!$OBJEXT$ac_delim
21034 DEPDIR!$DEPDIR$ac_delim
21035 am__include!$am__include$ac_delim
21036 am__quote!$am__quote$ac_delim
21037 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21038 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21039 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21040 CCDEPMODE!$CCDEPMODE$ac_delim
21041 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21042 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21043 build!$build$ac_delim
21044 build_cpu!$build_cpu$ac_delim
21045 build_vendor!$build_vendor$ac_delim
21046 build_os!$build_os$ac_delim
21047 host!$host$ac_delim
21048 host_cpu!$host_cpu$ac_delim
21049 host_vendor!$host_vendor$ac_delim
21050 host_os!$host_os$ac_delim
21051 GREP!$GREP$ac_delim
21052 EGREP!$EGREP$ac_delim
21053 LN_S!$LN_S$ac_delim
21054 ECHO!$ECHO$ac_delim
21055 AR!$AR$ac_delim
21056 RANLIB!$RANLIB$ac_delim
21057 CPP!$CPP$ac_delim
21058 CXX!$CXX$ac_delim
21059 CXXFLAGS!$CXXFLAGS$ac_delim
21060 ac_ct_CXX!$ac_ct_CXX$ac_delim
21061 CXXDEPMODE!$CXXDEPMODE$ac_delim
21062 _ACEOF
21063
21064 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21065 break
21066 elif $ac_last_try; then
21067 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21068 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21069 { (exit 1); exit 1; }; }
21070 else
21071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21072 fi
21073 done
21074
21075 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21076 if test -n "$ac_eof"; then
21077 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21078 ac_eof=`expr $ac_eof + 1`
21079 fi
21080
21081 cat >>$CONFIG_STATUS <<_ACEOF
21082 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21084 _ACEOF
21085 sed '
21086 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21087 s/^/s,@/; s/!/@,|#_!!_#|/
21088 :n
21089 t n
21090 s/'"$ac_delim"'$/,g/; t
21091 s/$/\\/; p
21092 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21093 ' >>$CONFIG_STATUS <conf$$subs.sed
21094 rm -f conf$$subs.sed
21095 cat >>$CONFIG_STATUS <<_ACEOF
21096 CEOF$ac_eof
21097 _ACEOF
21098
21099
21100 ac_delim='%!_!# '
21101 for ac_last_try in false false false false false :; do
21102 cat >conf$$subs.sed <<_ACEOF
21103 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21104 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21105 CXXCPP!$CXXCPP$ac_delim
21106 F77!$F77$ac_delim
21107 FFLAGS!$FFLAGS$ac_delim
21108 ac_ct_F77!$ac_ct_F77$ac_delim
21109 LIBTOOL!$LIBTOOL$ac_delim
21110 CWARNFLAGS!$CWARNFLAGS$ac_delim
21111 PCIIDS_PATH!$PCIIDS_PATH$ac_delim
21112 LINUX_TRUE!$LINUX_TRUE$ac_delim
21113 LINUX_FALSE!$LINUX_FALSE$ac_delim
21114 FREEBSD_TRUE!$FREEBSD_TRUE$ac_delim
21115 FREEBSD_FALSE!$FREEBSD_FALSE$ac_delim
21116 NETBSD_TRUE!$NETBSD_TRUE$ac_delim
21117 NETBSD_FALSE!$NETBSD_FALSE$ac_delim
21118 OPENBSD_TRUE!$OPENBSD_TRUE$ac_delim
21119 OPENBSD_FALSE!$OPENBSD_FALSE$ac_delim
21120 SOLARIS_TRUE!$SOLARIS_TRUE$ac_delim
21121 SOLARIS_FALSE!$SOLARIS_FALSE$ac_delim
21122 PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
21123 PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
21124 CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
21125 distcleancheck_listfiles!$distcleancheck_listfiles$ac_delim
21126 LIBOBJS!$LIBOBJS$ac_delim
21127 LTLIBOBJS!$LTLIBOBJS$ac_delim
21128 _ACEOF
21129
21130 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
21131 break
21132 elif $ac_last_try; then
21133 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21134 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21135 { (exit 1); exit 1; }; }
21136 else
21137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21138 fi
21139 done
21140
21141 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21142 if test -n "$ac_eof"; then
21143 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21144 ac_eof=`expr $ac_eof + 1`
21145 fi
21146
21147 cat >>$CONFIG_STATUS <<_ACEOF
21148 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21150 _ACEOF
21151 sed '
21152 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21153 s/^/s,@/; s/!/@,|#_!!_#|/
21154 :n
21155 t n
21156 s/'"$ac_delim"'$/,g/; t
21157 s/$/\\/; p
21158 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21159 ' >>$CONFIG_STATUS <conf$$subs.sed
21160 rm -f conf$$subs.sed
21161 cat >>$CONFIG_STATUS <<_ACEOF
21162 :end
21163 s/|#_!!_#|//g
21164 CEOF$ac_eof
21165 _ACEOF
21166
21167
21168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21170 # trailing colons and then remove the whole line if VPATH becomes empty
21171 # (actually we leave an empty line to preserve line numbers).
21172 if test "x$srcdir" = x.; then
21173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21174 s/:*\$(srcdir):*/:/
21175 s/:*\${srcdir}:*/:/
21176 s/:*@srcdir@:*/:/
21177 s/^\([^=]*=[ ]*\):*/\1/
21178 s/:*$//
21179 s/^[^=]*=[ ]*$//
21180 }'
21181 fi
21182
21183 cat >>$CONFIG_STATUS <<\_ACEOF
21184 fi # test -n "$CONFIG_FILES"
21185
21186
21187 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21188 do
21189 case $ac_tag in
21190 :[FHLC]) ac_mode=$ac_tag; continue;;
21191 esac
21192 case $ac_mode$ac_tag in
21193 :[FHL]*:*);;
21194 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21195 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21196 { (exit 1); exit 1; }; };;
21197 :[FH]-) ac_tag=-:-;;
21198 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21199 esac
21200 ac_save_IFS=$IFS
21201 IFS=:
21202 set x $ac_tag
21203 IFS=$ac_save_IFS
21204 shift
21205 ac_file=$1
21206 shift
21207
21208 case $ac_mode in
21209 :L) ac_source=$1;;
21210 :[FH])
21211 ac_file_inputs=
21212 for ac_f
21213 do
21214 case $ac_f in
21215 -) ac_f="$tmp/stdin";;
21216 *) # Look for the file first in the build tree, then in the source tree
21217 # (if the path is not absolute). The absolute path cannot be DOS-style,
21218 # because $ac_f cannot contain `:'.
21219 test -f "$ac_f" ||
21220 case $ac_f in
21221 [\\/$]*) false;;
21222 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21223 esac ||
21224 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21225 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21226 { (exit 1); exit 1; }; };;
21227 esac
21228 ac_file_inputs="$ac_file_inputs $ac_f"
21229 done
21230
21231 # Let's still pretend it is `configure' which instantiates (i.e., don't
21232 # use $as_me), people would be surprised to read:
21233 # /* config.h. Generated by config.status. */
21234 configure_input="Generated from "`IFS=:
21235 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21236 if test x"$ac_file" != x-; then
21237 configure_input="$ac_file. $configure_input"
21238 { echo "$as_me:$LINENO: creating $ac_file" >&5
21239 echo "$as_me: creating $ac_file" >&6;}
21240 fi
21241
21242 case $ac_tag in
21243 *:-:* | *:-) cat >"$tmp/stdin";;
21244 esac
21245 ;;
21246 esac
21247
21248 ac_dir=`$as_dirname -- "$ac_file" ||
21249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21250 X"$ac_file" : 'X\(//\)[^/]' \| \
21251 X"$ac_file" : 'X\(//\)$' \| \
21252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21253 echo X"$ac_file" |
21254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21255 s//\1/
21256 q
21257 }
21258 /^X\(\/\/\)[^/].*/{
21259 s//\1/
21260 q
21261 }
21262 /^X\(\/\/\)$/{
21263 s//\1/
21264 q
21265 }
21266 /^X\(\/\).*/{
21267 s//\1/
21268 q
21269 }
21270 s/.*/./; q'`
21271 { as_dir="$ac_dir"
21272 case $as_dir in #(
21273 -*) as_dir=./$as_dir;;
21274 esac
21275 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21276 as_dirs=
21277 while :; do
21278 case $as_dir in #(
21279 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21280 *) as_qdir=$as_dir;;
21281 esac
21282 as_dirs="'$as_qdir' $as_dirs"
21283 as_dir=`$as_dirname -- "$as_dir" ||
21284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21285 X"$as_dir" : 'X\(//\)[^/]' \| \
21286 X"$as_dir" : 'X\(//\)$' \| \
21287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21288 echo X"$as_dir" |
21289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21290 s//\1/
21291 q
21292 }
21293 /^X\(\/\/\)[^/].*/{
21294 s//\1/
21295 q
21296 }
21297 /^X\(\/\/\)$/{
21298 s//\1/
21299 q
21300 }
21301 /^X\(\/\).*/{
21302 s//\1/
21303 q
21304 }
21305 s/.*/./; q'`
21306 test -d "$as_dir" && break
21307 done
21308 test -z "$as_dirs" || eval "mkdir $as_dirs"
21309 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21311 { (exit 1); exit 1; }; }; }
21312 ac_builddir=.
21313
21314 case "$ac_dir" in
21315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21316 *)
21317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21318 # A ".." for each directory in $ac_dir_suffix.
21319 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21320 case $ac_top_builddir_sub in
21321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21323 esac ;;
21324 esac
21325 ac_abs_top_builddir=$ac_pwd
21326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21327 # for backward compatibility:
21328 ac_top_builddir=$ac_top_build_prefix
21329
21330 case $srcdir in
21331 .) # We are building in place.
21332 ac_srcdir=.
21333 ac_top_srcdir=$ac_top_builddir_sub
21334 ac_abs_top_srcdir=$ac_pwd ;;
21335 [\\/]* | ?:[\\/]* ) # Absolute name.
21336 ac_srcdir=$srcdir$ac_dir_suffix;
21337 ac_top_srcdir=$srcdir
21338 ac_abs_top_srcdir=$srcdir ;;
21339 *) # Relative name.
21340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21341 ac_top_srcdir=$ac_top_build_prefix$srcdir
21342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21343 esac
21344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21345
21346
21347 case $ac_mode in
21348 :F)
21349 #
21350 # CONFIG_FILE
21351 #
21352
21353 case $INSTALL in
21354 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21355 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21356 esac
21357 ac_MKDIR_P=$MKDIR_P
21358 case $MKDIR_P in
21359 [\\/$]* | ?:[\\/]* ) ;;
21360 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21361 esac
21362 _ACEOF
21363
21364 cat >>$CONFIG_STATUS <<\_ACEOF
21365 # If the template does not know about datarootdir, expand it.
21366 # FIXME: This hack should be removed a few years after 2.60.
21367 ac_datarootdir_hack=; ac_datarootdir_seen=
21368
21369 case `sed -n '/datarootdir/ {
21370 p
21371 q
21372 }
21373 /@datadir@/p
21374 /@docdir@/p
21375 /@infodir@/p
21376 /@localedir@/p
21377 /@mandir@/p
21378 ' $ac_file_inputs` in
21379 *datarootdir*) ac_datarootdir_seen=yes;;
21380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21381 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21382 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21383 _ACEOF
21384 cat >>$CONFIG_STATUS <<_ACEOF
21385 ac_datarootdir_hack='
21386 s&@datadir@&$datadir&g
21387 s&@docdir@&$docdir&g
21388 s&@infodir@&$infodir&g
21389 s&@localedir@&$localedir&g
21390 s&@mandir@&$mandir&g
21391 s&\\\${datarootdir}&$datarootdir&g' ;;
21392 esac
21393 _ACEOF
21394
21395 # Neutralize VPATH when `$srcdir' = `.'.
21396 # Shell code in configure.ac might set extrasub.
21397 # FIXME: do we really want to maintain this feature?
21398 cat >>$CONFIG_STATUS <<_ACEOF
21399 sed "$ac_vpsub
21400 $extrasub
21401 _ACEOF
21402 cat >>$CONFIG_STATUS <<\_ACEOF
21403 :t
21404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21405 s&@configure_input@&$configure_input&;t t
21406 s&@top_builddir@&$ac_top_builddir_sub&;t t
21407 s&@srcdir@&$ac_srcdir&;t t
21408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21409 s&@top_srcdir@&$ac_top_srcdir&;t t
21410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21411 s&@builddir@&$ac_builddir&;t t
21412 s&@abs_builddir@&$ac_abs_builddir&;t t
21413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21414 s&@INSTALL@&$ac_INSTALL&;t t
21415 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21416 $ac_datarootdir_hack
21417 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21418
21419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21420 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21422 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21423 which seems to be undefined. Please make sure it is defined." >&5
21424 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21425 which seems to be undefined. Please make sure it is defined." >&2;}
21426
21427 rm -f "$tmp/stdin"
21428 case $ac_file in
21429 -) cat "$tmp/out"; rm -f "$tmp/out";;
21430 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21431 esac
21432 ;;
21433 :H)
21434 #
21435 # CONFIG_HEADER
21436 #
21437 _ACEOF
21438
21439 # Transform confdefs.h into a sed script `conftest.defines', that
21440 # substitutes the proper values into config.h.in to produce config.h.
21441 rm -f conftest.defines conftest.tail
21442 # First, append a space to every undef/define line, to ease matching.
21443 echo 's/$/ /' >conftest.defines
21444 # Then, protect against being on the right side of a sed subst, or in
21445 # an unquoted here document, in config.status. If some macros were
21446 # called several times there might be several #defines for the same
21447 # symbol, which is useless. But do not sort them, since the last
21448 # AC_DEFINE must be honored.
21449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21450 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21451 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21452 # PARAMS is the parameter list in the macro definition--in most cases, it's
21453 # just an empty string.
21454 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21455 ac_dB='\\)[ (].*,\\1define\\2'
21456 ac_dC=' '
21457 ac_dD=' ,'
21458
21459 uniq confdefs.h |
21460 sed -n '
21461 t rset
21462 :rset
21463 s/^[ ]*#[ ]*define[ ][ ]*//
21464 t ok
21465 d
21466 :ok
21467 s/[\\&,]/\\&/g
21468 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21469 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21470 ' >>conftest.defines
21471
21472 # Remove the space that was appended to ease matching.
21473 # Then replace #undef with comments. This is necessary, for
21474 # example, in the case of _POSIX_SOURCE, which is predefined and required
21475 # on some systems where configure will not decide to define it.
21476 # (The regexp can be short, since the line contains either #define or #undef.)
21477 echo 's/ $//
21478 s,^[ #]*u.*,/* & */,' >>conftest.defines
21479
21480 # Break up conftest.defines:
21481 ac_max_sed_lines=50
21482
21483 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21484 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21485 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21486 # et cetera.
21487 ac_in='$ac_file_inputs'
21488 ac_out='"$tmp/out1"'
21489 ac_nxt='"$tmp/out2"'
21490
21491 while :
21492 do
21493 # Write a here document:
21494 cat >>$CONFIG_STATUS <<_ACEOF
21495 # First, check the format of the line:
21496 cat >"\$tmp/defines.sed" <<\\CEOF
21497 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21498 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21499 b
21500 :def
21501 _ACEOF
21502 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21503 echo 'CEOF
21504 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21505 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21506 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21507 grep . conftest.tail >/dev/null || break
21508 rm -f conftest.defines
21509 mv conftest.tail conftest.defines
21510 done
21511 rm -f conftest.defines conftest.tail
21512
21513 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21515 if test x"$ac_file" != x-; then
21516 echo "/* $configure_input */" >"$tmp/config.h"
21517 cat "$ac_result" >>"$tmp/config.h"
21518 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21519 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21520 echo "$as_me: $ac_file is unchanged" >&6;}
21521 else
21522 rm -f $ac_file
21523 mv "$tmp/config.h" $ac_file
21524 fi
21525 else
21526 echo "/* $configure_input */"
21527 cat "$ac_result"
21528 fi
21529 rm -f "$tmp/out12"
21530 # Compute $ac_file's index in $config_headers.
21531 _am_stamp_count=1
21532 for _am_header in $config_headers :; do
21533 case $_am_header in
21534 $ac_file | $ac_file:* )
21535 break ;;
21536 * )
21537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21538 esac
21539 done
21540 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21541 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21542 X$ac_file : 'X\(//\)[^/]' \| \
21543 X$ac_file : 'X\(//\)$' \| \
21544 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21545 echo X$ac_file |
21546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21547 s//\1/
21548 q
21549 }
21550 /^X\(\/\/\)[^/].*/{
21551 s//\1/
21552 q
21553 }
21554 /^X\(\/\/\)$/{
21555 s//\1/
21556 q
21557 }
21558 /^X\(\/\).*/{
21559 s//\1/
21560 q
21561 }
21562 s/.*/./; q'`/stamp-h$_am_stamp_count
21563 ;;
21564
21565 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21566 echo "$as_me: executing $ac_file commands" >&6;}
21567 ;;
21568 esac
21569
21570
21571 case $ac_file$ac_mode in
21572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21573 # Strip MF so we end up with the name of the file.
21574 mf=`echo "$mf" | sed -e 's/:.*$//'`
21575 # Check whether this is an Automake generated Makefile or not.
21576 # We used to match only the files named `Makefile.in', but
21577 # some people rename them; so instead we look at the file content.
21578 # Grep'ing the first line is not enough: some people post-process
21579 # each Makefile.in and add a new line on top of each file to say so.
21580 # Grep'ing the whole file is not good either: AIX grep has a line
21581 # limit of 2048, but all sed's we know have understand at least 4000.
21582 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21583 dirpart=`$as_dirname -- "$mf" ||
21584 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21585 X"$mf" : 'X\(//\)[^/]' \| \
21586 X"$mf" : 'X\(//\)$' \| \
21587 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21588 echo X"$mf" |
21589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21590 s//\1/
21591 q
21592 }
21593 /^X\(\/\/\)[^/].*/{
21594 s//\1/
21595 q
21596 }
21597 /^X\(\/\/\)$/{
21598 s//\1/
21599 q
21600 }
21601 /^X\(\/\).*/{
21602 s//\1/
21603 q
21604 }
21605 s/.*/./; q'`
21606 else
21607 continue
21608 fi
21609 # Extract the definition of DEPDIR, am__include, and am__quote
21610 # from the Makefile without running `make'.
21611 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21612 test -z "$DEPDIR" && continue
21613 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21614 test -z "am__include" && continue
21615 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21616 # When using ansi2knr, U may be empty or an underscore; expand it
21617 U=`sed -n 's/^U = //p' < "$mf"`
21618 # Find all dependency output files, they are included files with
21619 # $(DEPDIR) in their names. We invoke sed twice because it is the
21620 # simplest approach to changing $(DEPDIR) to its actual value in the
21621 # expansion.
21622 for file in `sed -n "
21623 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21625 # Make sure the directory exists.
21626 test -f "$dirpart/$file" && continue
21627 fdir=`$as_dirname -- "$file" ||
21628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21629 X"$file" : 'X\(//\)[^/]' \| \
21630 X"$file" : 'X\(//\)$' \| \
21631 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21632 echo X"$file" |
21633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21634 s//\1/
21635 q
21636 }
21637 /^X\(\/\/\)[^/].*/{
21638 s//\1/
21639 q
21640 }
21641 /^X\(\/\/\)$/{
21642 s//\1/
21643 q
21644 }
21645 /^X\(\/\).*/{
21646 s//\1/
21647 q
21648 }
21649 s/.*/./; q'`
21650 { as_dir=$dirpart/$fdir
21651 case $as_dir in #(
21652 -*) as_dir=./$as_dir;;
21653 esac
21654 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21655 as_dirs=
21656 while :; do
21657 case $as_dir in #(
21658 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21659 *) as_qdir=$as_dir;;
21660 esac
21661 as_dirs="'$as_qdir' $as_dirs"
21662 as_dir=`$as_dirname -- "$as_dir" ||
21663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664 X"$as_dir" : 'X\(//\)[^/]' \| \
21665 X"$as_dir" : 'X\(//\)$' \| \
21666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21667 echo X"$as_dir" |
21668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21669 s//\1/
21670 q
21671 }
21672 /^X\(\/\/\)[^/].*/{
21673 s//\1/
21674 q
21675 }
21676 /^X\(\/\/\)$/{
21677 s//\1/
21678 q
21679 }
21680 /^X\(\/\).*/{
21681 s//\1/
21682 q
21683 }
21684 s/.*/./; q'`
21685 test -d "$as_dir" && break
21686 done
21687 test -z "$as_dirs" || eval "mkdir $as_dirs"
21688 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21689 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21690 { (exit 1); exit 1; }; }; }
21691 # echo "creating $dirpart/$file"
21692 echo '# dummy' > "$dirpart/$file"
21693 done
21694 done
21695 ;;
21696
21697 esac
21698 done # for ac_tag
21699
21700
21701 { (exit 0); exit 0; }
21702 _ACEOF
21703 chmod +x $CONFIG_STATUS
21704 ac_clean_files=$ac_clean_files_save
21705
21706
21707 # configure is writing to config.log, and then calls config.status.
21708 # config.status does its own redirection, appending to config.log.
21709 # Unfortunately, on DOS this fails, as config.log is still kept open
21710 # by configure, so config.status won't be able to write to it; its
21711 # output is simply discarded. So we exec the FD to /dev/null,
21712 # effectively closing config.log, so it can be properly (re)opened and
21713 # appended to by config.status. When coming back to configure, we
21714 # need to make the FD available again.
21715 if test "$no_create" != yes; then
21716 ac_cs_success=:
21717 ac_config_status_args=
21718 test "$silent" = yes &&
21719 ac_config_status_args="$ac_config_status_args --quiet"
21720 exec 5>/dev/null
21721 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21722 exec 5>>config.log
21723 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21724 # would make configure fail if this is the last instruction.
21725 $ac_cs_success || { (exit 1); exit 1; }
21726 fi
21727
21728