comparison ext/guichan-0.8.1/configure @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for guichan 0.8.1.
4 #
5 # Report bugs to <olof.naessen@gmail.com>.
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='guichan'
730 PACKAGE_TARNAME='guichan'
731 PACKAGE_VERSION='0.8.1'
732 PACKAGE_STRING='guichan 0.8.1'
733 PACKAGE_BUGREPORT='olof.naessen@gmail.com'
734
735 ac_unique_file="src/gui.cpp"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 GUICHAN_MAJOR_VERSION
822 GUICHAN_MINOR_VERSION
823 GUICHAN_MICRO_VERSION
824 GUICHAN_VERSION
825 GUICHAN_INTERFACE_AGE
826 GUICHAN_BINARY_AGE
827 LT_RELEASE
828 LT_CURRENT
829 LT_REVISION
830 LT_AGE
831 INSTALL_PROGRAM
832 INSTALL_SCRIPT
833 INSTALL_DATA
834 am__isrc
835 CYGPATH_W
836 PACKAGE
837 VERSION
838 ACLOCAL
839 AUTOCONF
840 AUTOMAKE
841 AUTOHEADER
842 MAKEINFO
843 install_sh
844 STRIP
845 INSTALL_STRIP_PROGRAM
846 mkdir_p
847 AWK
848 SET_MAKE
849 am__leading_dot
850 AMTAR
851 am__tar
852 am__untar
853 CXX
854 CXXFLAGS
855 LDFLAGS
856 CPPFLAGS
857 ac_ct_CXX
858 EXEEXT
859 OBJEXT
860 DEPDIR
861 am__include
862 am__quote
863 AMDEP_TRUE
864 AMDEP_FALSE
865 AMDEPBACKSLASH
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CC
870 CFLAGS
871 ac_ct_CC
872 CCDEPMODE
873 am__fastdepCC_TRUE
874 am__fastdepCC_FALSE
875 GREP
876 EGREP
877 LN_S
878 ECHO
879 AR
880 RANLIB
881 DLLTOOL
882 AS
883 OBJDUMP
884 CPP
885 CXXCPP
886 F77
887 FFLAGS
888 ac_ct_F77
889 LIBTOOL
890 HAVE_ALLEGRO
891 HAVE_SDL
892 GUICHAN_EXTRADIRS
893 LIBOBJS
894 LTLIBOBJS'
895 ac_subst_files=''
896 ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CXX
900 CXXFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 CCC
905 CC
906 CFLAGS
907 CPP
908 CXXCPP
909 F77
910 FFLAGS'
911
912
913 # Initialize some variables set by options.
914 ac_init_help=
915 ac_init_version=false
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
958
959 ac_prev=
960 ac_dashdash=
961 for ac_option
962 do
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
968 fi
969
970 case $ac_option in
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *) ac_optarg=yes ;;
973 esac
974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
980
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
985
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
1000
1001 -datadir | --datadir | --datadi | --datad)
1002 ac_prev=datadir ;;
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1005
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
1013 -disable-* | --disable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=no ;;
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1031
1032 -enable-* | --enable-*)
1033 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_$ac_feature=\$ac_optarg ;;
1040
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1049
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1053
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1060
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1065
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1071
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1078
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1083
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1088
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1095
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1100
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1107
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1112
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1116
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1120
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1124
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1133
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1138
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1145
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1152
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1169
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1174
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1179
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1183
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 ac_prev=sbindir ;;
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 | --sbi=* | --sb=*)
1188 sbindir=$ac_optarg ;;
1189
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1193 | --sha | --sh)
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 | --sha=* | --sh=*)
1199 sharedstatedir=$ac_optarg ;;
1200
1201 -site | --site | --sit)
1202 ac_prev=site ;;
1203 -site=* | --site=* | --sit=*)
1204 site=$ac_optarg ;;
1205
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 ac_prev=srcdir ;;
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1210
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1217
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1222
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 verbose=yes ;;
1225
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1228
1229 -with-* | --with-*)
1230 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_$ac_package=no ;;
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1264
1265 -*) { echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267 { (exit 1); exit 1; }; }
1268 ;;
1269
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275 { (exit 1); exit 1; }; }
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1278
1279 *)
1280 # FIXME: should be removed in autoconf 3.0.
1281 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 ;;
1286
1287 esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 { echo "$as_me: error: missing argument to $ac_option" >&2
1293 { (exit 1); exit 1; }; }
1294 fi
1295
1296 # Be sure to have absolute directory names.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1301 do
1302 eval ac_val=\$$ac_var
1303 case $ac_val in
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 esac
1307 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1326 fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { echo "$as_me: error: Working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$0" ||
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$0" : 'X\(//\)[^/]' \| \
1352 X"$0" : 'X\(//\)$' \| \
1353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1354 echo X"$0" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\).*/{
1368 s//\1/
1369 q
1370 }
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1375 fi
1376 else
1377 ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures guichan 0.8.1 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/guichan]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1467
1468 cat <<\_ACEOF
1469
1470 Program names:
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 --target=TARGET configure for building compilers for TARGET [HOST]
1479 _ACEOF
1480 fi
1481
1482 if test -n "$ac_init_help"; then
1483 case $ac_init_help in
1484 short | recursive ) echo "Configuration of guichan 0.8.1:";;
1485 esac
1486 cat <<\_ACEOF
1487
1488 Optional Features:
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --disable-dependency-tracking speeds up one-time build
1492 --enable-dependency-tracking do not reject slow dependency extractors
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
1498 --enable-opengl Enable OpenGL support default=yes
1499 --enable-force-opengl Force OpenGL support (skip checks for OpenGL) default=no
1500 --enable-sdlimage Enable SDL_image support default=yes
1501 --enable-force-sdlimage Force SDL Image support (skip checks for SDL Image) default=no
1502 --enable-allegro Enable Allegro support default=yes
1503 --enable-force-allegro Force Allegro support (skip checks for Allegro) default=no
1504 --enable-sdl Enable SDL support default=yes
1505 --enable-force-sdl Force SDL support (skip checks for SDL) default=no
1506
1507 Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1511 --with-pic try to use only PIC/non-PIC objects [default=use
1512 both]
1513 --with-tags[=TAGS] include additional configurations [automatic]
1514
1515 Some influential environment variables:
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 CPP C preprocessor
1526 CXXCPP C++ preprocessor
1527 F77 Fortran 77 compiler command
1528 FFLAGS Fortran 77 compiler flags
1529
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1532
1533 Report bugs to <olof.naessen@gmail.com>.
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" || continue
1542 ac_builddir=.
1543
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *)
1547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1559
1560 case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1589 fi
1590
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593 cat <<\_ACEOF
1594 guichan configure 0.8.1
1595 generated by GNU Autoconf 2.61
1596
1597 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1598 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602 exit
1603 fi
1604 cat >config.log <<_ACEOF
1605 This file contains any messages produced by compilers while
1606 running configure, to aid debugging if configure makes a mistake.
1607
1608 It was created by guichan $as_me 0.8.1, which was
1609 generated by GNU Autoconf 2.61. Invocation command line was
1610
1611 $ $0 $@
1612
1613 _ACEOF
1614 exec 5>>config.log
1615 {
1616 cat <<_ASUNAME
1617 ## --------- ##
1618 ## Platform. ##
1619 ## --------- ##
1620
1621 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1622 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1623 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1624 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1625 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1626
1627 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1628 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1629
1630 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1631 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1632 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1633 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1634 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1635 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1636 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1637
1638 _ASUNAME
1639
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1642 do
1643 IFS=$as_save_IFS
1644 test -z "$as_dir" && as_dir=.
1645 echo "PATH: $as_dir"
1646 done
1647 IFS=$as_save_IFS
1648
1649 } >&5
1650
1651 cat >&5 <<_ACEOF
1652
1653
1654 ## ----------- ##
1655 ## Core tests. ##
1656 ## ----------- ##
1657
1658 _ACEOF
1659
1660
1661 # Keep a trace of the command line.
1662 # Strip out --no-create and --no-recursion so they do not pile up.
1663 # Strip out --silent because we don't want to record it for future runs.
1664 # Also quote any args containing shell meta-characters.
1665 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_configure_args=
1667 ac_configure_args0=
1668 ac_configure_args1=
1669 ac_must_keep_next=false
1670 for ac_pass in 1 2
1671 do
1672 for ac_arg
1673 do
1674 case $ac_arg in
1675 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1677 | -silent | --silent | --silen | --sile | --sil)
1678 continue ;;
1679 *\'*)
1680 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1681 esac
1682 case $ac_pass in
1683 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1684 2)
1685 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1686 if test $ac_must_keep_next = true; then
1687 ac_must_keep_next=false # Got value, back to normal.
1688 else
1689 case $ac_arg in
1690 *=* | --config-cache | -C | -disable-* | --disable-* \
1691 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1692 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1693 | -with-* | --with-* | -without-* | --without-* | --x)
1694 case "$ac_configure_args0 " in
1695 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1696 esac
1697 ;;
1698 -* ) ac_must_keep_next=true ;;
1699 esac
1700 fi
1701 ac_configure_args="$ac_configure_args '$ac_arg'"
1702 ;;
1703 esac
1704 done
1705 done
1706 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1707 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1708
1709 # When interrupted or exit'd, cleanup temporary files, and complete
1710 # config.log. We remove comments because anyway the quotes in there
1711 # would cause problems or look ugly.
1712 # WARNING: Use '\'' to represent an apostrophe within the trap.
1713 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1714 trap 'exit_status=$?
1715 # Save into config.log some information that might help in debugging.
1716 {
1717 echo
1718
1719 cat <<\_ASBOX
1720 ## ---------------- ##
1721 ## Cache variables. ##
1722 ## ---------------- ##
1723 _ASBOX
1724 echo
1725 # The following way of writing the cache mishandles newlines in values,
1726 (
1727 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1728 eval ac_val=\$$ac_var
1729 case $ac_val in #(
1730 *${as_nl}*)
1731 case $ac_var in #(
1732 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1733 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1734 esac
1735 case $ac_var in #(
1736 _ | IFS | as_nl) ;; #(
1737 *) $as_unset $ac_var ;;
1738 esac ;;
1739 esac
1740 done
1741 (set) 2>&1 |
1742 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1743 *${as_nl}ac_space=\ *)
1744 sed -n \
1745 "s/'\''/'\''\\\\'\'''\''/g;
1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 ;; #(
1748 *)
1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1750 ;;
1751 esac |
1752 sort
1753 )
1754 echo
1755
1756 cat <<\_ASBOX
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1760 _ASBOX
1761 echo
1762 for ac_var in $ac_subst_vars
1763 do
1764 eval ac_val=\$$ac_var
1765 case $ac_val in
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 esac
1768 echo "$ac_var='\''$ac_val'\''"
1769 done | sort
1770 echo
1771
1772 if test -n "$ac_subst_files"; then
1773 cat <<\_ASBOX
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1777 _ASBOX
1778 echo
1779 for ac_var in $ac_subst_files
1780 do
1781 eval ac_val=\$$ac_var
1782 case $ac_val in
1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 esac
1785 echo "$ac_var='\''$ac_val'\''"
1786 done | sort
1787 echo
1788 fi
1789
1790 if test -s confdefs.h; then
1791 cat <<\_ASBOX
1792 ## ----------- ##
1793 ## confdefs.h. ##
1794 ## ----------- ##
1795 _ASBOX
1796 echo
1797 cat confdefs.h
1798 echo
1799 fi
1800 test "$ac_signal" != 0 &&
1801 echo "$as_me: caught signal $ac_signal"
1802 echo "$as_me: exit $exit_status"
1803 } >&5
1804 rm -f core *.core core.conftest.* &&
1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 exit $exit_status
1807 ' 0
1808 for ac_signal in 1 2 13 15; do
1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1810 done
1811 ac_signal=0
1812
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1815
1816 # Predefined preprocessor variables.
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1840 _ACEOF
1841
1842
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 set x "$CONFIG_SITE"
1847 elif test "x$prefix" != xNONE; then
1848 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1849 else
1850 set x "$ac_default_prefix/share/config.site" \
1851 "$ac_default_prefix/etc/config.site"
1852 fi
1853 shift
1854 for ac_site_file
1855 do
1856 if test -r "$ac_site_file"; then
1857 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1858 echo "$as_me: loading site script $ac_site_file" >&6;}
1859 sed 's/^/| /' "$ac_site_file" >&5
1860 . "$ac_site_file"
1861 fi
1862 done
1863
1864 if test -r "$cache_file"; then
1865 # Some versions of bash will fail to source /dev/null (special
1866 # files actually), so we avoid doing that.
1867 if test -f "$cache_file"; then
1868 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1869 echo "$as_me: loading cache $cache_file" >&6;}
1870 case $cache_file in
1871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1872 *) . "./$cache_file";;
1873 esac
1874 fi
1875 else
1876 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1877 echo "$as_me: creating cache $cache_file" >&6;}
1878 >$cache_file
1879 fi
1880
1881 # Check that the precious variables saved in the cache have kept the same
1882 # value.
1883 ac_cache_corrupted=false
1884 for ac_var in $ac_precious_vars; do
1885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1886 eval ac_new_set=\$ac_env_${ac_var}_set
1887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1888 eval ac_new_val=\$ac_env_${ac_var}_value
1889 case $ac_old_set,$ac_new_set in
1890 set,)
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,set)
1895 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,);;
1899 *)
1900 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1904 echo "$as_me: former value: $ac_old_val" >&2;}
1905 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1906 echo "$as_me: current value: $ac_new_val" >&2;}
1907 ac_cache_corrupted=:
1908 fi;;
1909 esac
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1912 case $ac_new_val in
1913 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1915 esac
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919 esac
1920 fi
1921 done
1922 if $ac_cache_corrupted; then
1923 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1924 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1927 { (exit 1); exit 1; }; }
1928 fi
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959
1960
1961
1962 ac_aux_dir=
1963 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1964 if test -f "$ac_dir/install-sh"; then
1965 ac_aux_dir=$ac_dir
1966 ac_install_sh="$ac_aux_dir/install-sh -c"
1967 break
1968 elif test -f "$ac_dir/install.sh"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/install.sh -c"
1971 break
1972 elif test -f "$ac_dir/shtool"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/shtool install -c"
1975 break
1976 fi
1977 done
1978 if test -z "$ac_aux_dir"; then
1979 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1980 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1981 { (exit 1); exit 1; }; }
1982 fi
1983
1984 # These three variables are undocumented and unsupported,
1985 # and are intended to be withdrawn in a future Autoconf release.
1986 # They can cause serious problems if a builder's source tree is in a directory
1987 # whose full name contains unusual characters.
1988 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1989 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1990 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1991
1992
1993 # Make sure we can run config.sub.
1994 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1995 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1996 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1997 { (exit 1); exit 1; }; }
1998
1999 { echo "$as_me:$LINENO: checking build system type" >&5
2000 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2001 if test "${ac_cv_build+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004 ac_build_alias=$build_alias
2005 test "x$ac_build_alias" = x &&
2006 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2007 test "x$ac_build_alias" = x &&
2008 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2009 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2010 { (exit 1); exit 1; }; }
2011 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2012 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2013 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2014 { (exit 1); exit 1; }; }
2015
2016 fi
2017 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2018 echo "${ECHO_T}$ac_cv_build" >&6; }
2019 case $ac_cv_build in
2020 *-*-*) ;;
2021 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2022 echo "$as_me: error: invalid value of canonical build" >&2;}
2023 { (exit 1); exit 1; }; };;
2024 esac
2025 build=$ac_cv_build
2026 ac_save_IFS=$IFS; IFS='-'
2027 set x $ac_cv_build
2028 shift
2029 build_cpu=$1
2030 build_vendor=$2
2031 shift; shift
2032 # Remember, the first character of IFS is used to create $*,
2033 # except with old shells:
2034 build_os=$*
2035 IFS=$ac_save_IFS
2036 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2037
2038
2039 { echo "$as_me:$LINENO: checking host system type" >&5
2040 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2041 if test "${ac_cv_host+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 if test "x$host_alias" = x; then
2045 ac_cv_host=$ac_cv_build
2046 else
2047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2048 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2049 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2050 { (exit 1); exit 1; }; }
2051 fi
2052
2053 fi
2054 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2055 echo "${ECHO_T}$ac_cv_host" >&6; }
2056 case $ac_cv_host in
2057 *-*-*) ;;
2058 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2059 echo "$as_me: error: invalid value of canonical host" >&2;}
2060 { (exit 1); exit 1; }; };;
2061 esac
2062 host=$ac_cv_host
2063 ac_save_IFS=$IFS; IFS='-'
2064 set x $ac_cv_host
2065 shift
2066 host_cpu=$1
2067 host_vendor=$2
2068 shift; shift
2069 # Remember, the first character of IFS is used to create $*,
2070 # except with old shells:
2071 host_os=$*
2072 IFS=$ac_save_IFS
2073 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2074
2075
2076 { echo "$as_me:$LINENO: checking target system type" >&5
2077 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2078 if test "${ac_cv_target+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 if test "x$target_alias" = x; then
2082 ac_cv_target=$ac_cv_host
2083 else
2084 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2085 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2086 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
2088 fi
2089
2090 fi
2091 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2092 echo "${ECHO_T}$ac_cv_target" >&6; }
2093 case $ac_cv_target in
2094 *-*-*) ;;
2095 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2096 echo "$as_me: error: invalid value of canonical target" >&2;}
2097 { (exit 1); exit 1; }; };;
2098 esac
2099 target=$ac_cv_target
2100 ac_save_IFS=$IFS; IFS='-'
2101 set x $ac_cv_target
2102 shift
2103 target_cpu=$1
2104 target_vendor=$2
2105 shift; shift
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2108 target_os=$*
2109 IFS=$ac_save_IFS
2110 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2111
2112
2113 # The aliases save the names the user supplied, while $host etc.
2114 # will get canonicalized.
2115 test -n "$target_alias" &&
2116 test "$program_prefix$program_suffix$program_transform_name" = \
2117 NONENONEs,x,x, &&
2118 program_prefix=${target_alias}-
2119
2120
2121 ALLEGRO="disabled"
2122 OPENGL="disabled"
2123 SDL="disabled"
2124 SDLIMAGE="disabled"
2125
2126 GUICHAN_MAJOR_VERSION=0
2127 GUICHAN_MINOR_VERSION=8
2128 GUICHAN_MICRO_VERSION=1
2129 GUICHAN_INTERFACE_AGE=0
2130 GUICHAN_BINARY_AGE=0
2131 GUICHAN_VERSION=$GUICHAN_MAJOR_VERSION.$GUICHAN_MINOR_VERSION.$GUICHAN_MICRO_VERSION
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141 LT_RELEASE=$GUICHAN_MAJOR_VERSION.$GUICHAN_MINOR_VERSION.$GUICHAN_MICRO_VERSION
2142 LT_CURRENT=`expr $GUICHAN_MICRO_VERSION - $GUICHAN_INTERFACE_AGE`
2143 LT_REVISION=$GUICHAN_INTERFACE_AGE
2144 LT_AGE=`expr $GUICHAN_BINARY_AGE - $GUICHAN_INTERFACE_AGE`
2145
2146
2147
2148
2149
2150
2151 am__api_version='1.10'
2152
2153 # Find a good install program. We prefer a C program (faster),
2154 # so one script is as good as another. But avoid the broken or
2155 # incompatible versions:
2156 # SysV /etc/install, /usr/sbin/install
2157 # SunOS /usr/etc/install
2158 # IRIX /sbin/install
2159 # AIX /bin/install
2160 # AmigaOS /C/install, which installs bootblocks on floppy discs
2161 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2162 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2163 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2164 # OS/2's system install, which has a completely different semantic
2165 # ./install, which can be erroneously created by make from ./install.sh.
2166 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2167 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2168 if test -z "$INSTALL"; then
2169 if test "${ac_cv_path_install+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 # Account for people who put trailing slashes in PATH elements.
2178 case $as_dir/ in
2179 ./ | .// | /cC/* | \
2180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2181 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2182 /usr/ucb/* ) ;;
2183 *)
2184 # OSF1 and SCO ODT 3.0 have their own names for install.
2185 # Don't use installbsd from OSF since it installs stuff as root
2186 # by default.
2187 for ac_prog in ginstall scoinst install; do
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2190 if test $ac_prog = install &&
2191 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2192 # AIX install. It has an incompatible calling convention.
2193 :
2194 elif test $ac_prog = install &&
2195 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2196 # program-specific install script used by HP pwplus--don't use.
2197 :
2198 else
2199 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2200 break 3
2201 fi
2202 fi
2203 done
2204 done
2205 ;;
2206 esac
2207 done
2208 IFS=$as_save_IFS
2209
2210
2211 fi
2212 if test "${ac_cv_path_install+set}" = set; then
2213 INSTALL=$ac_cv_path_install
2214 else
2215 # As a last resort, use the slow shell script. Don't cache a
2216 # value for INSTALL within a source directory, because that will
2217 # break other packages using the cache if that directory is
2218 # removed, or if the value is a relative name.
2219 INSTALL=$ac_install_sh
2220 fi
2221 fi
2222 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2223 echo "${ECHO_T}$INSTALL" >&6; }
2224
2225 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2226 # It thinks the first close brace ends the variable substitution.
2227 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2228
2229 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2230
2231 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2232
2233 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2234 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2235 # Just in case
2236 sleep 1
2237 echo timestamp > conftest.file
2238 # Do `set' in a subshell so we don't clobber the current shell's
2239 # arguments. Must try -L first in case configure is actually a
2240 # symlink; some systems play weird games with the mod time of symlinks
2241 # (eg FreeBSD returns the mod time of the symlink's containing
2242 # directory).
2243 if (
2244 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2245 if test "$*" = "X"; then
2246 # -L didn't work.
2247 set X `ls -t $srcdir/configure conftest.file`
2248 fi
2249 rm -f conftest.file
2250 if test "$*" != "X $srcdir/configure conftest.file" \
2251 && test "$*" != "X conftest.file $srcdir/configure"; then
2252
2253 # If neither matched, then we have a broken ls. This can happen
2254 # if, for instance, CONFIG_SHELL is bash and it inherits a
2255 # broken ls alias from the environment. This has actually
2256 # happened. Such a system could not be considered "sane".
2257 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2258 alias in your environment" >&5
2259 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2260 alias in your environment" >&2;}
2261 { (exit 1); exit 1; }; }
2262 fi
2263
2264 test "$2" = conftest.file
2265 )
2266 then
2267 # Ok.
2268 :
2269 else
2270 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2271 Check your system clock" >&5
2272 echo "$as_me: error: newly created file is older than distributed files!
2273 Check your system clock" >&2;}
2274 { (exit 1); exit 1; }; }
2275 fi
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2278 test "$program_prefix" != NONE &&
2279 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2280 # Use a double $ so make ignores it.
2281 test "$program_suffix" != NONE &&
2282 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2283 # Double any \ or $. echo might interpret backslashes.
2284 # By default was `s,x,x', remove it if useless.
2285 cat <<\_ACEOF >conftest.sed
2286 s/[\\$]/&&/g;s/;s,x,x,$//
2287 _ACEOF
2288 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2289 rm -f conftest.sed
2290
2291 # expand $ac_aux_dir to an absolute path
2292 am_aux_dir=`cd $ac_aux_dir && pwd`
2293
2294 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2295 # Use eval to expand $SHELL
2296 if eval "$MISSING --run true"; then
2297 am_missing_run="$MISSING --run "
2298 else
2299 am_missing_run=
2300 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2301 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2302 fi
2303
2304 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2305 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2306 if test -z "$MKDIR_P"; then
2307 if test "${ac_cv_path_mkdir+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2312 do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_prog in mkdir gmkdir; do
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2318 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2319 'mkdir (GNU coreutils) '* | \
2320 'mkdir (coreutils) '* | \
2321 'mkdir (fileutils) '4.1*)
2322 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2323 break 3;;
2324 esac
2325 done
2326 done
2327 done
2328 IFS=$as_save_IFS
2329
2330 fi
2331
2332 if test "${ac_cv_path_mkdir+set}" = set; then
2333 MKDIR_P="$ac_cv_path_mkdir -p"
2334 else
2335 # As a last resort, use the slow shell script. Don't cache a
2336 # value for MKDIR_P within a source directory, because that will
2337 # break other packages using the cache if that directory is
2338 # removed, or if the value is a relative name.
2339 test -d ./--version && rmdir ./--version
2340 MKDIR_P="$ac_install_sh -d"
2341 fi
2342 fi
2343 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2344 echo "${ECHO_T}$MKDIR_P" >&6; }
2345
2346 mkdir_p="$MKDIR_P"
2347 case $mkdir_p in
2348 [\\/$]* | ?:[\\/]*) ;;
2349 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2350 esac
2351
2352 for ac_prog in gawk mawk nawk awk
2353 do
2354 # Extract the first word of "$ac_prog", so it can be a program name with args.
2355 set dummy $ac_prog; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_AWK+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 if test -n "$AWK"; then
2362 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_AWK="$ac_prog"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 AWK=$ac_cv_prog_AWK
2382 if test -n "$AWK"; then
2383 { echo "$as_me:$LINENO: result: $AWK" >&5
2384 echo "${ECHO_T}$AWK" >&6; }
2385 else
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390
2391 test -n "$AWK" && break
2392 done
2393
2394 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2395 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2396 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2397 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 cat >conftest.make <<\_ACEOF
2401 SHELL = /bin/sh
2402 all:
2403 @echo '@@@%%%=$(MAKE)=@@@%%%'
2404 _ACEOF
2405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2406 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2407 *@@@%%%=?*=@@@%%%*)
2408 eval ac_cv_prog_make_${ac_make}_set=yes;;
2409 *)
2410 eval ac_cv_prog_make_${ac_make}_set=no;;
2411 esac
2412 rm -f conftest.make
2413 fi
2414 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2415 { echo "$as_me:$LINENO: result: yes" >&5
2416 echo "${ECHO_T}yes" >&6; }
2417 SET_MAKE=
2418 else
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 SET_MAKE="MAKE=${MAKE-make}"
2422 fi
2423
2424 rm -rf .tst 2>/dev/null
2425 mkdir .tst 2>/dev/null
2426 if test -d .tst; then
2427 am__leading_dot=.
2428 else
2429 am__leading_dot=_
2430 fi
2431 rmdir .tst 2>/dev/null
2432
2433 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2434 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2435 # is not polluted with repeated "-I."
2436 am__isrc=' -I$(srcdir)'
2437 # test to see if srcdir already configured
2438 if test -f $srcdir/config.status; then
2439 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2440 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2441 { (exit 1); exit 1; }; }
2442 fi
2443 fi
2444
2445 # test whether we have cygpath
2446 if test -z "$CYGPATH_W"; then
2447 if (cygpath --version) >/dev/null 2>/dev/null; then
2448 CYGPATH_W='cygpath -w'
2449 else
2450 CYGPATH_W=echo
2451 fi
2452 fi
2453
2454
2455 # Define the identity of the package.
2456 PACKAGE=guichan
2457 VERSION=$GUICHAN_VERSION
2458
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE "$PACKAGE"
2462 _ACEOF
2463
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define VERSION "$VERSION"
2467 _ACEOF
2468
2469 # Some tools Automake needs.
2470
2471 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2472
2473
2474 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2475
2476
2477 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2478
2479
2480 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2481
2482
2483 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2484
2485 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2486
2487 # Installed binaries are usually stripped using `strip' when the user
2488 # run `make install-strip'. However `strip' might not be the right
2489 # tool to use in cross-compilation environments, therefore Automake
2490 # will honor the `STRIP' environment variable to overrule this program.
2491 if test "$cross_compiling" != no; then
2492 if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2494 set dummy ${ac_tool_prefix}strip; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_STRIP+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500 if test -n "$STRIP"; then
2501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH
2505 do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 break 2
2513 fi
2514 done
2515 done
2516 IFS=$as_save_IFS
2517
2518 fi
2519 fi
2520 STRIP=$ac_cv_prog_STRIP
2521 if test -n "$STRIP"; then
2522 { echo "$as_me:$LINENO: result: $STRIP" >&5
2523 echo "${ECHO_T}$STRIP" >&6; }
2524 else
2525 { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2527 fi
2528
2529
2530 fi
2531 if test -z "$ac_cv_prog_STRIP"; then
2532 ac_ct_STRIP=$STRIP
2533 # Extract the first word of "strip", so it can be a program name with args.
2534 set dummy strip; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$ac_ct_STRIP"; then
2541 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_ac_ct_STRIP="strip"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2561 if test -n "$ac_ct_STRIP"; then
2562 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2563 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2564 else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2568
2569 if test "x$ac_ct_STRIP" = x; then
2570 STRIP=":"
2571 else
2572 case $cross_compiling:$ac_tool_warned in
2573 yes:)
2574 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2575 whose name does not start with the host triplet. If you think this
2576 configuration is useful to you, please write to autoconf@gnu.org." >&5
2577 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2578 whose name does not start with the host triplet. If you think this
2579 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2580 ac_tool_warned=yes ;;
2581 esac
2582 STRIP=$ac_ct_STRIP
2583 fi
2584 else
2585 STRIP="$ac_cv_prog_STRIP"
2586 fi
2587
2588 fi
2589 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2590
2591 # We need awk for the "check" target. The system "awk" is bad on
2592 # some platforms.
2593 # Always define AMTAR for backward compatibility.
2594
2595 AMTAR=${AMTAR-"${am_missing_run}tar"}
2596
2597 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2598
2599
2600
2601
2602
2603 ac_config_headers="$ac_config_headers include/config.hpp"
2604
2605
2606
2607
2608 ac_ext=cpp
2609 ac_cpp='$CXXCPP $CPPFLAGS'
2610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2613 if test -z "$CXX"; then
2614 if test -n "$CCC"; then
2615 CXX=$CCC
2616 else
2617 if test -n "$ac_tool_prefix"; then
2618 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2619 do
2620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_CXX+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 if test -n "$CXX"; then
2628 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 CXX=$ac_cv_prog_CXX
2648 if test -n "$CXX"; then
2649 { echo "$as_me:$LINENO: result: $CXX" >&5
2650 echo "${ECHO_T}$CXX" >&6; }
2651 else
2652 { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2654 fi
2655
2656
2657 test -n "$CXX" && break
2658 done
2659 fi
2660 if test -z "$CXX"; then
2661 ac_ct_CXX=$CXX
2662 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2663 do
2664 # Extract the first word of "$ac_prog", so it can be a program name with args.
2665 set dummy $ac_prog; ac_word=$2
2666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2668 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671 if test -n "$ac_ct_CXX"; then
2672 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_ac_ct_CXX="$ac_prog"
2682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi
2690 fi
2691 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2692 if test -n "$ac_ct_CXX"; then
2693 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2694 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2695 else
2696 { echo "$as_me:$LINENO: result: no" >&5
2697 echo "${ECHO_T}no" >&6; }
2698 fi
2699
2700
2701 test -n "$ac_ct_CXX" && break
2702 done
2703
2704 if test "x$ac_ct_CXX" = x; then
2705 CXX="g++"
2706 else
2707 case $cross_compiling:$ac_tool_warned in
2708 yes:)
2709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2710 whose name does not start with the host triplet. If you think this
2711 configuration is useful to you, please write to autoconf@gnu.org." >&5
2712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2713 whose name does not start with the host triplet. If you think this
2714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2715 ac_tool_warned=yes ;;
2716 esac
2717 CXX=$ac_ct_CXX
2718 fi
2719 fi
2720
2721 fi
2722 fi
2723 # Provide some information about the compiler.
2724 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2725 ac_compiler=`set X $ac_compile; echo $2`
2726 { (ac_try="$ac_compiler --version >&5"
2727 case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler --version >&5") 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2736 { (ac_try="$ac_compiler -v >&5"
2737 case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compiler -v >&5") 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }
2746 { (ac_try="$ac_compiler -V >&5"
2747 case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compiler -V >&5") 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2756
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763
2764 int
2765 main ()
2766 {
2767
2768 ;
2769 return 0;
2770 }
2771 _ACEOF
2772 ac_clean_files_save=$ac_clean_files
2773 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2774 # Try to create an executable without -o first, disregard a.out.
2775 # It will help us diagnose broken compilers, and finding out an intuition
2776 # of exeext.
2777 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2778 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2779 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2780 #
2781 # List of possible output files, starting from the most likely.
2782 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2783 # only as a last resort. b.out is created by i960 compilers.
2784 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2785 #
2786 # The IRIX 6 linker writes into existing files which may not be
2787 # executable, retaining their permissions. Remove them first so a
2788 # subsequent execution test works.
2789 ac_rmfiles=
2790 for ac_file in $ac_files
2791 do
2792 case $ac_file in
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2794 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2795 esac
2796 done
2797 rm -f $ac_rmfiles
2798
2799 if { (ac_try="$ac_link_default"
2800 case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803 esac
2804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_link_default") 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; then
2809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2810 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2811 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2812 # so that the user can short-circuit this test for compilers unknown to
2813 # Autoconf.
2814 for ac_file in $ac_files ''
2815 do
2816 test -f "$ac_file" || continue
2817 case $ac_file in
2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2819 ;;
2820 [ab].out )
2821 # We found the default executable, but exeext='' is most
2822 # certainly right.
2823 break;;
2824 *.* )
2825 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2826 then :; else
2827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 fi
2829 # We set ac_cv_exeext here because the later test for it is not
2830 # safe: cross compilers may not add the suffix if given an `-o'
2831 # argument, so we may need to know it at that point already.
2832 # Even if this section looks crufty: it has the advantage of
2833 # actually working.
2834 break;;
2835 * )
2836 break;;
2837 esac
2838 done
2839 test "$ac_cv_exeext" = no && ac_cv_exeext=
2840
2841 else
2842 ac_file=''
2843 fi
2844
2845 { echo "$as_me:$LINENO: result: $ac_file" >&5
2846 echo "${ECHO_T}$ac_file" >&6; }
2847 if test -z "$ac_file"; then
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: C++ compiler cannot create executables
2854 See \`config.log' for more details." >&2;}
2855 { (exit 77); exit 77; }; }
2856 fi
2857
2858 ac_exeext=$ac_cv_exeext
2859
2860 # Check that the compiler produces executables we can run. If not, either
2861 # the compiler is broken, or we cross compile.
2862 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2863 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2864 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2865 # If not cross compiling, check that we can run a simple program.
2866 if test "$cross_compiling" != yes; then
2867 if { ac_try='./$ac_file'
2868 { (case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_try") 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 cross_compiling=no
2878 else
2879 if test "$cross_compiling" = maybe; then
2880 cross_compiling=yes
2881 else
2882 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2883 If you meant to cross compile, use \`--host'.
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: cannot run C++ compiled programs.
2886 If you meant to cross compile, use \`--host'.
2887 See \`config.log' for more details." >&2;}
2888 { (exit 1); exit 1; }; }
2889 fi
2890 fi
2891 fi
2892 { echo "$as_me:$LINENO: result: yes" >&5
2893 echo "${ECHO_T}yes" >&6; }
2894
2895 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2896 ac_clean_files=$ac_clean_files_save
2897 # Check that the compiler produces executables we can run. If not, either
2898 # the compiler is broken, or we cross compile.
2899 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2900 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2901 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2902 echo "${ECHO_T}$cross_compiling" >&6; }
2903
2904 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2905 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2906 if { (ac_try="$ac_link"
2907 case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_link") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; then
2916 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2917 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2918 # work properly (i.e., refer to `conftest.exe'), while it won't with
2919 # `rm'.
2920 for ac_file in conftest.exe conftest conftest.*; do
2921 test -f "$ac_file" || continue
2922 case $ac_file in
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 break;;
2926 * ) break;;
2927 esac
2928 done
2929 else
2930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2935 fi
2936
2937 rm -f conftest$ac_cv_exeext
2938 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2939 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2940
2941 rm -f conftest.$ac_ext
2942 EXEEXT=$ac_cv_exeext
2943 ac_exeext=$EXEEXT
2944 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2946 if test "${ac_cv_objext+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955
2956 int
2957 main ()
2958 {
2959
2960 ;
2961 return 0;
2962 }
2963 _ACEOF
2964 rm -f conftest.o conftest.obj
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_compile") 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; then
2975 for ac_file in conftest.o conftest.obj conftest.*; do
2976 test -f "$ac_file" || continue;
2977 case $ac_file in
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2979 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2980 break;;
2981 esac
2982 done
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2988 See \`config.log' for more details." >&5
2989 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2990 See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2992 fi
2993
2994 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2995 fi
2996 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2997 echo "${ECHO_T}$ac_cv_objext" >&6; }
2998 OBJEXT=$ac_cv_objext
2999 ac_objext=$OBJEXT
3000 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3001 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3002 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011
3012 int
3013 main ()
3014 {
3015 #ifndef __GNUC__
3016 choke me
3017 #endif
3018
3019 ;
3020 return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_cxx_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3040 ac_compiler_gnu=yes
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 ac_compiler_gnu=no
3046 fi
3047
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3050
3051 fi
3052 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3053 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3054 GXX=`test $ac_compiler_gnu = yes && echo yes`
3055 ac_test_CXXFLAGS=${CXXFLAGS+set}
3056 ac_save_CXXFLAGS=$CXXFLAGS
3057 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3058 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_cxx_g+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3063 ac_cxx_werror_flag=yes
3064 ac_cv_prog_cxx_g=no
3065 CXXFLAGS="-g"
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072
3073 int
3074 main ()
3075 {
3076
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_cxx_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_prog_cxx_g=yes
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 CXXFLAGS=""
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110
3111 int
3112 main ()
3113 {
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } && {
3133 test -z "$ac_cxx_werror_flag" ||
3134 test ! -s conftest.err
3135 } && test -s conftest.$ac_objext; then
3136 :
3137 else
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3142 CXXFLAGS="-g"
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149
3150 int
3151 main ()
3152 {
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_cxx_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_cv_prog_cxx_g=yes
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191 fi
3192 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3194 if test "$ac_test_CXXFLAGS" = set; then
3195 CXXFLAGS=$ac_save_CXXFLAGS
3196 elif test $ac_cv_prog_cxx_g = yes; then
3197 if test "$GXX" = yes; then
3198 CXXFLAGS="-g -O2"
3199 else
3200 CXXFLAGS="-g"
3201 fi
3202 else
3203 if test "$GXX" = yes; then
3204 CXXFLAGS="-O2"
3205 else
3206 CXXFLAGS=
3207 fi
3208 fi
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 DEPDIR="${am__leading_dot}deps"
3215
3216 ac_config_commands="$ac_config_commands depfiles"
3217
3218
3219 am_make=${MAKE-make}
3220 cat > confinc << 'END'
3221 am__doit:
3222 @echo done
3223 .PHONY: am__doit
3224 END
3225 # If we don't find an include directive, just comment out the code.
3226 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3228 am__include="#"
3229 am__quote=
3230 _am_result=none
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3239 am__include=include
3240 am__quote=
3241 _am_result=GNU
3242 fi
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245 echo '.include "confinc"' > confmf
3246 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247 am__include=.include
3248 am__quote="\""
3249 _am_result=BSD
3250 fi
3251 fi
3252
3253
3254 { echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6; }
3256 rm -f confinc confmf
3257
3258 # Check whether --enable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260 enableval=$enable_dependency_tracking;
3261 fi
3262
3263 if test "x$enable_dependency_tracking" != xno; then
3264 am_depcomp="$ac_aux_dir/depcomp"
3265 AMDEPBACKSLASH='\'
3266 fi
3267 if test "x$enable_dependency_tracking" != xno; then
3268 AMDEP_TRUE=
3269 AMDEP_FALSE='#'
3270 else
3271 AMDEP_TRUE='#'
3272 AMDEP_FALSE=
3273 fi
3274
3275
3276
3277 depcc="$CXX" am_compiler_list=
3278
3279 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3280 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3281 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3285 # We make a subdir and do the tests there. Otherwise we can end up
3286 # making bogus files that we don't know about and never remove. For
3287 # instance it was reported that on HP-UX the gcc test will end up
3288 # making a dummy file named `D' -- because `-MD' means `put the output
3289 # in D'.
3290 mkdir conftest.dir
3291 # Copy depcomp to subdir because otherwise we won't find it if we're
3292 # using a relative directory.
3293 cp "$am_depcomp" conftest.dir
3294 cd conftest.dir
3295 # We will build objects and dependencies in a subdirectory because
3296 # it helps to detect inapplicable dependency modes. For instance
3297 # both Tru64's cc and ICC support -MD to output dependencies as a
3298 # side effect of compilation, but ICC will put the dependencies in
3299 # the current directory while Tru64 will put them in the object
3300 # directory.
3301 mkdir sub
3302
3303 am_cv_CXX_dependencies_compiler_type=none
3304 if test "$am_compiler_list" = ""; then
3305 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3306 fi
3307 for depmode in $am_compiler_list; do
3308 # Setup a source with many dependencies, because some compilers
3309 # like to wrap large dependency lists on column 80 (with \), and
3310 # we should not choose a depcomp mode which is confused by this.
3311 #
3312 # We need to recreate these files for each test, as the compiler may
3313 # overwrite some of them when testing with obscure command lines.
3314 # This happens at least with the AIX C compiler.
3315 : > sub/conftest.c
3316 for i in 1 2 3 4 5 6; do
3317 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3318 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3319 # Solaris 8's {/usr,}/bin/sh.
3320 touch sub/conftst$i.h
3321 done
3322 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3323
3324 case $depmode in
3325 nosideeffect)
3326 # after this tag, mechanisms are not by side-effect, so they'll
3327 # only be used when explicitly requested
3328 if test "x$enable_dependency_tracking" = xyes; then
3329 continue
3330 else
3331 break
3332 fi
3333 ;;
3334 none) break ;;
3335 esac
3336 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3337 # mode. It turns out that the SunPro C++ compiler does not properly
3338 # handle `-M -o', and we need to detect this.
3339 if depmode=$depmode \
3340 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3342 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3343 >/dev/null 2>conftest.err &&
3344 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3345 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3346 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3347 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3348 # icc doesn't choke on unknown options, it will just issue warnings
3349 # or remarks (even with -Werror). So we grep stderr for any message
3350 # that says an option was ignored or not supported.
3351 # When given -MP, icc 7.0 and 7.1 complain thusly:
3352 # icc: Command line warning: ignoring option '-M'; no argument required
3353 # The diagnosis changed in icc 8.0:
3354 # icc: Command line remark: option '-MP' not supported
3355 if (grep 'ignoring option' conftest.err ||
3356 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3357 am_cv_CXX_dependencies_compiler_type=$depmode
3358 break
3359 fi
3360 fi
3361 done
3362
3363 cd ..
3364 rm -rf conftest.dir
3365 else
3366 am_cv_CXX_dependencies_compiler_type=none
3367 fi
3368
3369 fi
3370 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3371 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3372 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3373
3374 if
3375 test "x$enable_dependency_tracking" != xno \
3376 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3377 am__fastdepCXX_TRUE=
3378 am__fastdepCXX_FALSE='#'
3379 else
3380 am__fastdepCXX_TRUE='#'
3381 am__fastdepCXX_FALSE=
3382 fi
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3395 if test "${ac_cv_prog_CC+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { echo "$as_me:$LINENO: result: $CC" >&5
3421 echo "${ECHO_T}$CC" >&6; }
3422 else
3423 { echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6; }
3425 fi
3426
3427
3428 fi
3429 if test -z "$ac_cv_prog_CC"; then
3430 ac_ct_CC=$CC
3431 # Extract the first word of "gcc", so it can be a program name with args.
3432 set dummy gcc; ac_word=$2
3433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_ac_ct_CC="gcc"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3461 echo "${ECHO_T}$ac_ct_CC" >&6; }
3462 else
3463 { echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6; }
3465 fi
3466
3467 if test "x$ac_ct_CC" = x; then
3468 CC=""
3469 else
3470 case $cross_compiling:$ac_tool_warned in
3471 yes:)
3472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3473 whose name does not start with the host triplet. If you think this
3474 configuration is useful to you, please write to autoconf@gnu.org." >&5
3475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3476 whose name does not start with the host triplet. If you think this
3477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3478 ac_tool_warned=yes ;;
3479 esac
3480 CC=$ac_ct_CC
3481 fi
3482 else
3483 CC="$ac_cv_prog_CC"
3484 fi
3485
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}cc; ac_word=$2
3490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC="${ac_tool_prefix}cc"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { echo "$as_me:$LINENO: result: $CC" >&5
3518 echo "${ECHO_T}$CC" >&6; }
3519 else
3520 { echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6; }
3522 fi
3523
3524
3525 fi
3526 fi
3527 if test -z "$CC"; then
3528 # Extract the first word of "cc", so it can be a program name with args.
3529 set dummy cc; ac_word=$2
3530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3532 if test "${ac_cv_prog_CC+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 ac_prog_rejected=no
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3547 ac_prog_rejected=yes
3548 continue
3549 fi
3550 ac_cv_prog_CC="cc"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556 IFS=$as_save_IFS
3557
3558 if test $ac_prog_rejected = yes; then
3559 # We found a bogon in the path, so make sure we never use it.
3560 set dummy $ac_cv_prog_CC
3561 shift
3562 if test $# != 0; then
3563 # We chose a different compiler from the bogus one.
3564 # However, it has the same basename, so the bogon will be chosen
3565 # first if we set CC to just the basename; use the full file name.
3566 shift
3567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3568 fi
3569 fi
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574 { echo "$as_me:$LINENO: result: $CC" >&5
3575 echo "${ECHO_T}$CC" >&6; }
3576 else
3577 { echo "$as_me:$LINENO: result: no" >&5
3578 echo "${ECHO_T}no" >&6; }
3579 fi
3580
3581
3582 fi
3583 if test -z "$CC"; then
3584 if test -n "$ac_tool_prefix"; then
3585 for ac_prog in cl.exe
3586 do
3587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3607 fi
3608 done
3609 done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { echo "$as_me:$LINENO: result: $CC" >&5
3617 echo "${ECHO_T}$CC" >&6; }
3618 else
3619 { echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6; }
3621 fi
3622
3623
3624 test -n "$CC" && break
3625 done
3626 fi
3627 if test -z "$CC"; then
3628 ac_ct_CC=$CC
3629 for ac_prog in cl.exe
3630 do
3631 # Extract the first word of "$ac_prog", so it can be a program name with args.
3632 set dummy $ac_prog; ac_word=$2
3633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 if test -n "$ac_ct_CC"; then
3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_ac_ct_CC="$ac_prog"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3659 if test -n "$ac_ct_CC"; then
3660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3661 echo "${ECHO_T}$ac_ct_CC" >&6; }
3662 else
3663 { echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6; }
3665 fi
3666
3667
3668 test -n "$ac_ct_CC" && break
3669 done
3670
3671 if test "x$ac_ct_CC" = x; then
3672 CC=""
3673 else
3674 case $cross_compiling:$ac_tool_warned in
3675 yes:)
3676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3677 whose name does not start with the host triplet. If you think this
3678 configuration is useful to you, please write to autoconf@gnu.org." >&5
3679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3680 whose name does not start with the host triplet. If you think this
3681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3682 ac_tool_warned=yes ;;
3683 esac
3684 CC=$ac_ct_CC
3685 fi
3686 fi
3687
3688 fi
3689
3690
3691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3692 See \`config.log' for more details." >&5
3693 echo "$as_me: error: no acceptable C compiler found in \$PATH
3694 See \`config.log' for more details." >&2;}
3695 { (exit 1); exit 1; }; }
3696
3697 # Provide some information about the compiler.
3698 echo "$as_me:$LINENO: checking for C compiler version" >&5
3699 ac_compiler=`set X $ac_compile; echo $2`
3700 { (ac_try="$ac_compiler --version >&5"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_compiler --version >&5") 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }
3710 { (ac_try="$ac_compiler -v >&5"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_compiler -v >&5") 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }
3720 { (ac_try="$ac_compiler -V >&5"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_compiler -V >&5") 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }
3730
3731 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3732 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742
3743 int
3744 main ()
3745 {
3746 #ifndef __GNUC__
3747 choke me
3748 #endif
3749
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } && {
3768 test -z "$ac_c_werror_flag" ||
3769 test ! -s conftest.err
3770 } && test -s conftest.$ac_objext; then
3771 ac_compiler_gnu=yes
3772 else
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 ac_compiler_gnu=no
3777 fi
3778
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3781
3782 fi
3783 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3785 GCC=`test $ac_compiler_gnu = yes && echo yes`
3786 ac_test_CFLAGS=${CFLAGS+set}
3787 ac_save_CFLAGS=$CFLAGS
3788 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3789 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3790 if test "${ac_cv_prog_cc_g+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 ac_save_c_werror_flag=$ac_c_werror_flag
3794 ac_c_werror_flag=yes
3795 ac_cv_prog_cc_g=no
3796 CFLAGS="-g"
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803
3804 int
3805 main ()
3806 {
3807
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_compile") 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && {
3826 test -z "$ac_c_werror_flag" ||
3827 test ! -s conftest.err
3828 } && test -s conftest.$ac_objext; then
3829 ac_cv_prog_cc_g=yes
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 CFLAGS=""
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841
3842 int
3843 main ()
3844 {
3845
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3867 :
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_c_werror_flag=$ac_save_c_werror_flag
3873 CFLAGS="-g"
3874 cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h. */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880
3881 int
3882 main ()
3883 {
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3906 ac_cv_prog_cc_g=yes
3907 else
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 fi
3916
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 fi
3919
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 ac_c_werror_flag=$ac_save_c_werror_flag
3922 fi
3923 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3924 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3925 if test "$ac_test_CFLAGS" = set; then
3926 CFLAGS=$ac_save_CFLAGS
3927 elif test $ac_cv_prog_cc_g = yes; then
3928 if test "$GCC" = yes; then
3929 CFLAGS="-g -O2"
3930 else
3931 CFLAGS="-g"
3932 fi
3933 else
3934 if test "$GCC" = yes; then
3935 CFLAGS="-O2"
3936 else
3937 CFLAGS=
3938 fi
3939 fi
3940 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3941 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3942 if test "${ac_cv_prog_cc_c89+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 ac_cv_prog_cc_c89=no
3946 ac_save_CC=$CC
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 #include <stdarg.h>
3954 #include <stdio.h>
3955 #include <sys/types.h>
3956 #include <sys/stat.h>
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3961 char **p;
3962 int i;
3963 {
3964 return p[i];
3965 }
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3967 {
3968 char *s;
3969 va_list v;
3970 va_start (v,p);
3971 s = g (p, va_arg (v,int));
3972 va_end (v);
3973 return s;
3974 }
3975
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3977 function prototypes and stuff, but not '\xHH' hex character constants.
3978 These don't provoke an error unfortunately, instead are silently treated
3979 as 'x'. The following induces an error, until -std is added to get
3980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3981 array size at least. It's necessary to write '\x00'==0 to get something
3982 that's true only with -std. */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3984
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986 inside strings and character constants. */
3987 #define FOO(x) 'x'
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3989
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3994 int argc;
3995 char **argv;
3996 int
3997 main ()
3998 {
3999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4006 do
4007 CC="$ac_save_CC $ac_arg"
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compile") 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest.$ac_objext; then
4025 ac_cv_prog_cc_c89=$ac_arg
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030
4031 fi
4032
4033 rm -f core conftest.err conftest.$ac_objext
4034 test "x$ac_cv_prog_cc_c89" != "xno" && break
4035 done
4036 rm -f conftest.$ac_ext
4037 CC=$ac_save_CC
4038
4039 fi
4040 # AC_CACHE_VAL
4041 case "x$ac_cv_prog_cc_c89" in
4042 x)
4043 { echo "$as_me:$LINENO: result: none needed" >&5
4044 echo "${ECHO_T}none needed" >&6; } ;;
4045 xno)
4046 { echo "$as_me:$LINENO: result: unsupported" >&5
4047 echo "${ECHO_T}unsupported" >&6; } ;;
4048 *)
4049 CC="$CC $ac_cv_prog_cc_c89"
4050 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4051 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4052 esac
4053
4054
4055 ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061 depcc="$CC" am_compiler_list=
4062
4063 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4064 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4065 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4069 # We make a subdir and do the tests there. Otherwise we can end up
4070 # making bogus files that we don't know about and never remove. For
4071 # instance it was reported that on HP-UX the gcc test will end up
4072 # making a dummy file named `D' -- because `-MD' means `put the output
4073 # in D'.
4074 mkdir conftest.dir
4075 # Copy depcomp to subdir because otherwise we won't find it if we're
4076 # using a relative directory.
4077 cp "$am_depcomp" conftest.dir
4078 cd conftest.dir
4079 # We will build objects and dependencies in a subdirectory because
4080 # it helps to detect inapplicable dependency modes. For instance
4081 # both Tru64's cc and ICC support -MD to output dependencies as a
4082 # side effect of compilation, but ICC will put the dependencies in
4083 # the current directory while Tru64 will put them in the object
4084 # directory.
4085 mkdir sub
4086
4087 am_cv_CC_dependencies_compiler_type=none
4088 if test "$am_compiler_list" = ""; then
4089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4090 fi
4091 for depmode in $am_compiler_list; do
4092 # Setup a source with many dependencies, because some compilers
4093 # like to wrap large dependency lists on column 80 (with \), and
4094 # we should not choose a depcomp mode which is confused by this.
4095 #
4096 # We need to recreate these files for each test, as the compiler may
4097 # overwrite some of them when testing with obscure command lines.
4098 # This happens at least with the AIX C compiler.
4099 : > sub/conftest.c
4100 for i in 1 2 3 4 5 6; do
4101 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4102 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4103 # Solaris 8's {/usr,}/bin/sh.
4104 touch sub/conftst$i.h
4105 done
4106 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4107
4108 case $depmode in
4109 nosideeffect)
4110 # after this tag, mechanisms are not by side-effect, so they'll
4111 # only be used when explicitly requested
4112 if test "x$enable_dependency_tracking" = xyes; then
4113 continue
4114 else
4115 break
4116 fi
4117 ;;
4118 none) break ;;
4119 esac
4120 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4121 # mode. It turns out that the SunPro C++ compiler does not properly
4122 # handle `-M -o', and we need to detect this.
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
4145 done
4146
4147 cd ..
4148 rm -rf conftest.dir
4149 else
4150 am_cv_CC_dependencies_compiler_type=none
4151 fi
4152
4153 fi
4154 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4155 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4156 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4157
4158 if
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161 am__fastdepCC_TRUE=
4162 am__fastdepCC_FALSE='#'
4163 else
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
4166 fi
4167
4168
4169
4170
4171
4172 # Check whether --enable-shared was given.
4173 if test "${enable_shared+set}" = set; then
4174 enableval=$enable_shared; p=${PACKAGE-default}
4175 case $enableval in
4176 yes) enable_shared=yes ;;
4177 no) enable_shared=no ;;
4178 *)
4179 enable_shared=no
4180 # Look at the argument we got. We use all the common list separators.
4181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4182 for pkg in $enableval; do
4183 IFS="$lt_save_ifs"
4184 if test "X$pkg" = "X$p"; then
4185 enable_shared=yes
4186 fi
4187 done
4188 IFS="$lt_save_ifs"
4189 ;;
4190 esac
4191 else
4192 enable_shared=yes
4193 fi
4194
4195
4196 # Check whether --enable-static was given.
4197 if test "${enable_static+set}" = set; then
4198 enableval=$enable_static; p=${PACKAGE-default}
4199 case $enableval in
4200 yes) enable_static=yes ;;
4201 no) enable_static=no ;;
4202 *)
4203 enable_static=no
4204 # Look at the argument we got. We use all the common list separators.
4205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4206 for pkg in $enableval; do
4207 IFS="$lt_save_ifs"
4208 if test "X$pkg" = "X$p"; then
4209 enable_static=yes
4210 fi
4211 done
4212 IFS="$lt_save_ifs"
4213 ;;
4214 esac
4215 else
4216 enable_static=yes
4217 fi
4218
4219
4220 # Check whether --enable-fast-install was given.
4221 if test "${enable_fast_install+set}" = set; then
4222 enableval=$enable_fast_install; p=${PACKAGE-default}
4223 case $enableval in
4224 yes) enable_fast_install=yes ;;
4225 no) enable_fast_install=no ;;
4226 *)
4227 enable_fast_install=no
4228 # Look at the argument we got. We use all the common list separators.
4229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4230 for pkg in $enableval; do
4231 IFS="$lt_save_ifs"
4232 if test "X$pkg" = "X$p"; then
4233 enable_fast_install=yes
4234 fi
4235 done
4236 IFS="$lt_save_ifs"
4237 ;;
4238 esac
4239 else
4240 enable_fast_install=yes
4241 fi
4242
4243
4244 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4245 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4246 if test "${lt_cv_path_SED+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 # Loop through the user's path and test for sed and gsed.
4250 # Then use that list of sed's as ones to test for truncation.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for lt_ac_prog in sed gsed; do
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4259 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4260 fi
4261 done
4262 done
4263 done
4264 lt_ac_max=0
4265 lt_ac_count=0
4266 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4267 # along with /bin/sed that truncates output.
4268 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4269 test ! -f $lt_ac_sed && break
4270 cat /dev/null > conftest.in
4271 lt_ac_count=0
4272 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4273 # Check for GNU sed and select it if it is found.
4274 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4275 lt_cv_path_SED=$lt_ac_sed
4276 break
4277 fi
4278 while true; do
4279 cat conftest.in conftest.in >conftest.tmp
4280 mv conftest.tmp conftest.in
4281 cp conftest.in conftest.nl
4282 echo >>conftest.nl
4283 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4284 cmp -s conftest.out conftest.nl || break
4285 # 10000 chars as input seems more than enough
4286 test $lt_ac_count -gt 10 && break
4287 lt_ac_count=`expr $lt_ac_count + 1`
4288 if test $lt_ac_count -gt $lt_ac_max; then
4289 lt_ac_max=$lt_ac_count
4290 lt_cv_path_SED=$lt_ac_sed
4291 fi
4292 done
4293 done
4294
4295 fi
4296
4297 SED=$lt_cv_path_SED
4298 { echo "$as_me:$LINENO: result: $SED" >&5
4299 echo "${ECHO_T}$SED" >&6; }
4300
4301 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4302 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4303 if test "${ac_cv_path_GREP+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 # Extract the first word of "grep ggrep" to use in msg output
4307 if test -z "$GREP"; then
4308 set dummy grep ggrep; ac_prog_name=$2
4309 if test "${ac_cv_path_GREP+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 ac_path_GREP_found=false
4313 # Loop through the user's path and test for each of PROGNAME-LIST
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_prog in grep ggrep; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4322 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4323 # Check for GNU ac_path_GREP and select it if it is found.
4324 # Check for GNU $ac_path_GREP
4325 case `"$ac_path_GREP" --version 2>&1` in
4326 *GNU*)
4327 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4328 *)
4329 ac_count=0
4330 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4331 while :
4332 do
4333 cat "conftest.in" "conftest.in" >"conftest.tmp"
4334 mv "conftest.tmp" "conftest.in"
4335 cp "conftest.in" "conftest.nl"
4336 echo 'GREP' >> "conftest.nl"
4337 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4339 ac_count=`expr $ac_count + 1`
4340 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4341 # Best one so far, save it but keep looking for a better one
4342 ac_cv_path_GREP="$ac_path_GREP"
4343 ac_path_GREP_max=$ac_count
4344 fi
4345 # 10*(2^10) chars as input seems more than enough
4346 test $ac_count -gt 10 && break
4347 done
4348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4349 esac
4350
4351
4352 $ac_path_GREP_found && break 3
4353 done
4354 done
4355
4356 done
4357 IFS=$as_save_IFS
4358
4359
4360 fi
4361
4362 GREP="$ac_cv_path_GREP"
4363 if test -z "$GREP"; then
4364 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4365 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4366 { (exit 1); exit 1; }; }
4367 fi
4368
4369 else
4370 ac_cv_path_GREP=$GREP
4371 fi
4372
4373
4374 fi
4375 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4376 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4377 GREP="$ac_cv_path_GREP"
4378
4379
4380 { echo "$as_me:$LINENO: checking for egrep" >&5
4381 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4382 if test "${ac_cv_path_EGREP+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4386 then ac_cv_path_EGREP="$GREP -E"
4387 else
4388 # Extract the first word of "egrep" to use in msg output
4389 if test -z "$EGREP"; then
4390 set dummy egrep; ac_prog_name=$2
4391 if test "${ac_cv_path_EGREP+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 ac_path_EGREP_found=false
4395 # Loop through the user's path and test for each of PROGNAME-LIST
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398 do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_prog in egrep; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4404 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4405 # Check for GNU ac_path_EGREP and select it if it is found.
4406 # Check for GNU $ac_path_EGREP
4407 case `"$ac_path_EGREP" --version 2>&1` in
4408 *GNU*)
4409 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410 *)
4411 ac_count=0
4412 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4413 while :
4414 do
4415 cat "conftest.in" "conftest.in" >"conftest.tmp"
4416 mv "conftest.tmp" "conftest.in"
4417 cp "conftest.in" "conftest.nl"
4418 echo 'EGREP' >> "conftest.nl"
4419 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421 ac_count=`expr $ac_count + 1`
4422 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4423 # Best one so far, save it but keep looking for a better one
4424 ac_cv_path_EGREP="$ac_path_EGREP"
4425 ac_path_EGREP_max=$ac_count
4426 fi
4427 # 10*(2^10) chars as input seems more than enough
4428 test $ac_count -gt 10 && break
4429 done
4430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431 esac
4432
4433
4434 $ac_path_EGREP_found && break 3
4435 done
4436 done
4437
4438 done
4439 IFS=$as_save_IFS
4440
4441
4442 fi
4443
4444 EGREP="$ac_cv_path_EGREP"
4445 if test -z "$EGREP"; then
4446 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4447 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4448 { (exit 1); exit 1; }; }
4449 fi
4450
4451 else
4452 ac_cv_path_EGREP=$EGREP
4453 fi
4454
4455
4456 fi
4457 fi
4458 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4459 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4461
4462
4463
4464 # Check whether --with-gnu-ld was given.
4465 if test "${with_gnu_ld+set}" = set; then
4466 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4467 else
4468 with_gnu_ld=no
4469 fi
4470
4471 ac_prog=ld
4472 if test "$GCC" = yes; then
4473 # Check if gcc -print-prog-name=ld gives a path.
4474 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4475 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4476 case $host in
4477 *-*-mingw*)
4478 # gcc leaves a trailing carriage return which upsets mingw
4479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4480 *)
4481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4482 esac
4483 case $ac_prog in
4484 # Accept absolute paths.
4485 [\\/]* | ?:[\\/]*)
4486 re_direlt='/[^/][^/]*/\.\./'
4487 # Canonicalize the pathname of ld
4488 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4490 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4491 done
4492 test -z "$LD" && LD="$ac_prog"
4493 ;;
4494 "")
4495 # If it fails, then pretend we aren't using GCC.
4496 ac_prog=ld
4497 ;;
4498 *)
4499 # If it is relative, then search for the first ld in PATH.
4500 with_gnu_ld=unknown
4501 ;;
4502 esac
4503 elif test "$with_gnu_ld" = yes; then
4504 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4506 else
4507 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4509 fi
4510 if test "${lt_cv_path_LD+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 if test -z "$LD"; then
4514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4515 for ac_dir in $PATH; do
4516 IFS="$lt_save_ifs"
4517 test -z "$ac_dir" && ac_dir=.
4518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4519 lt_cv_path_LD="$ac_dir/$ac_prog"
4520 # Check to see if the program is GNU ld. I'd rather use --version,
4521 # but apparently some GNU ld's only accept -v.
4522 # Break only if it was the GNU/non-GNU ld that we prefer.
4523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4524 *GNU* | *'with BFD'*)
4525 test "$with_gnu_ld" != no && break
4526 ;;
4527 *)
4528 test "$with_gnu_ld" != yes && break
4529 ;;
4530 esac
4531 fi
4532 done
4533 IFS="$lt_save_ifs"
4534 else
4535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4536 fi
4537 fi
4538
4539 LD="$lt_cv_path_LD"
4540 if test -n "$LD"; then
4541 { echo "$as_me:$LINENO: result: $LD" >&5
4542 echo "${ECHO_T}$LD" >&6; }
4543 else
4544 { echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6; }
4546 fi
4547 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4548 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4549 { (exit 1); exit 1; }; }
4550 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4551 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4552 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4556 case `$LD -v 2>&1 </dev/null` in
4557 *GNU* | *'with BFD'*)
4558 lt_cv_prog_gnu_ld=yes
4559 ;;
4560 *)
4561 lt_cv_prog_gnu_ld=no
4562 ;;
4563 esac
4564 fi
4565 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4566 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4567 with_gnu_ld=$lt_cv_prog_gnu_ld
4568
4569
4570 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4571 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4572 if test "${lt_cv_ld_reload_flag+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 lt_cv_ld_reload_flag='-r'
4576 fi
4577 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4578 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4579 reload_flag=$lt_cv_ld_reload_flag
4580 case $reload_flag in
4581 "" | " "*) ;;
4582 *) reload_flag=" $reload_flag" ;;
4583 esac
4584 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4585 case $host_os in
4586 darwin*)
4587 if test "$GCC" = yes; then
4588 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4589 else
4590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4591 fi
4592 ;;
4593 esac
4594
4595 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4596 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4597 if test "${lt_cv_path_NM+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 if test -n "$NM"; then
4601 # Let the user override the test.
4602 lt_cv_path_NM="$NM"
4603 else
4604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4605 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4606 IFS="$lt_save_ifs"
4607 test -z "$ac_dir" && ac_dir=.
4608 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4610 # Check to see if the nm accepts a BSD-compat flag.
4611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4612 # nm: unknown option "B" ignored
4613 # Tru64's nm complains that /dev/null is an invalid object file
4614 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4615 */dev/null* | *'Invalid file or object type'*)
4616 lt_cv_path_NM="$tmp_nm -B"
4617 break
4618 ;;
4619 *)
4620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4621 */dev/null*)
4622 lt_cv_path_NM="$tmp_nm -p"
4623 break
4624 ;;
4625 *)
4626 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4627 continue # so that we can try to find one that supports BSD flags
4628 ;;
4629 esac
4630 esac
4631 fi
4632 done
4633 IFS="$lt_save_ifs"
4634 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4635 fi
4636 fi
4637 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4638 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4639 NM="$lt_cv_path_NM"
4640
4641 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4642 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4643 LN_S=$as_ln_s
4644 if test "$LN_S" = "ln -s"; then
4645 { echo "$as_me:$LINENO: result: yes" >&5
4646 echo "${ECHO_T}yes" >&6; }
4647 else
4648 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4649 echo "${ECHO_T}no, using $LN_S" >&6; }
4650 fi
4651
4652 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4653 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4654 if test "${lt_cv_deplibs_check_method+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657 lt_cv_file_magic_cmd='$MAGIC_CMD'
4658 lt_cv_file_magic_test_file=
4659 lt_cv_deplibs_check_method='unknown'
4660 # Need to set the preceding variable on all platforms that support
4661 # interlibrary dependencies.
4662 # 'none' -- dependencies not supported.
4663 # `unknown' -- same as none, but documents that we really don't know.
4664 # 'pass_all' -- all dependencies passed with no checks.
4665 # 'test_compile' -- check by making test program.
4666 # 'file_magic [[regex]]' -- check by looking for files in library path
4667 # which responds to the $file_magic_cmd with a given extended regex.
4668 # If you have `file' or equivalent on your system and you're not sure
4669 # whether `pass_all' will *always* work, you probably want this one.
4670
4671 case $host_os in
4672 aix4* | aix5*)
4673 lt_cv_deplibs_check_method=pass_all
4674 ;;
4675
4676 beos*)
4677 lt_cv_deplibs_check_method=pass_all
4678 ;;
4679
4680 bsdi[45]*)
4681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4682 lt_cv_file_magic_cmd='/usr/bin/file -L'
4683 lt_cv_file_magic_test_file=/shlib/libc.so
4684 ;;
4685
4686 cygwin*)
4687 # func_win32_libid is a shell function defined in ltmain.sh
4688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4689 lt_cv_file_magic_cmd='func_win32_libid'
4690 ;;
4691
4692 mingw* | pw32*)
4693 # Base MSYS/MinGW do not provide the 'file' command needed by
4694 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4695 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4696 lt_cv_file_magic_cmd='$OBJDUMP -f'
4697 ;;
4698
4699 darwin* | rhapsody*)
4700 lt_cv_deplibs_check_method=pass_all
4701 ;;
4702
4703 freebsd* | kfreebsd*-gnu)
4704 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4705 case $host_cpu in
4706 i*86 )
4707 # Not sure whether the presence of OpenBSD here was a mistake.
4708 # Let's accept both of them until this is cleared up.
4709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4710 lt_cv_file_magic_cmd=/usr/bin/file
4711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4712 ;;
4713 esac
4714 else
4715 lt_cv_deplibs_check_method=pass_all
4716 fi
4717 ;;
4718
4719 gnu*)
4720 lt_cv_deplibs_check_method=pass_all
4721 ;;
4722
4723 hpux10.20* | hpux11*)
4724 lt_cv_file_magic_cmd=/usr/bin/file
4725 case "$host_cpu" in
4726 ia64*)
4727 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4728 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4729 ;;
4730 hppa*64*)
4731 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]'
4732 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4733 ;;
4734 *)
4735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4736 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4737 ;;
4738 esac
4739 ;;
4740
4741 irix5* | irix6* | nonstopux*)
4742 case $LD in
4743 *-32|*"-32 ") libmagic=32-bit;;
4744 *-n32|*"-n32 ") libmagic=N32;;
4745 *-64|*"-64 ") libmagic=64-bit;;
4746 *) libmagic=never-match;;
4747 esac
4748 lt_cv_deplibs_check_method=pass_all
4749 ;;
4750
4751 # This must be Linux ELF.
4752 linux*)
4753 lt_cv_deplibs_check_method=pass_all
4754 ;;
4755
4756 netbsd*)
4757 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4759 else
4760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4761 fi
4762 ;;
4763
4764 newos6*)
4765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4766 lt_cv_file_magic_cmd=/usr/bin/file
4767 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4768 ;;
4769
4770 nto-qnx*)
4771 lt_cv_deplibs_check_method=unknown
4772 ;;
4773
4774 openbsd*)
4775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4777 else
4778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4779 fi
4780 ;;
4781
4782 osf3* | osf4* | osf5*)
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
4785
4786 sco3.2v5*)
4787 lt_cv_deplibs_check_method=pass_all
4788 ;;
4789
4790 solaris*)
4791 lt_cv_deplibs_check_method=pass_all
4792 ;;
4793
4794 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4795 case $host_vendor in
4796 motorola)
4797 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]'
4798 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4799 ;;
4800 ncr)
4801 lt_cv_deplibs_check_method=pass_all
4802 ;;
4803 sequent)
4804 lt_cv_file_magic_cmd='/bin/file'
4805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4806 ;;
4807 sni)
4808 lt_cv_file_magic_cmd='/bin/file'
4809 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4810 lt_cv_file_magic_test_file=/lib/libc.so
4811 ;;
4812 siemens)
4813 lt_cv_deplibs_check_method=pass_all
4814 ;;
4815 esac
4816 ;;
4817
4818 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4819 lt_cv_deplibs_check_method=pass_all
4820 ;;
4821 esac
4822
4823 fi
4824 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4825 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4826 file_magic_cmd=$lt_cv_file_magic_cmd
4827 deplibs_check_method=$lt_cv_deplibs_check_method
4828 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4829
4830
4831
4832
4833 # If no C compiler was specified, use CC.
4834 LTCC=${LTCC-"$CC"}
4835
4836 # Allow CC to be a program name with arguments.
4837 compiler=$CC
4838
4839
4840 # Check whether --enable-libtool-lock was given.
4841 if test "${enable_libtool_lock+set}" = set; then
4842 enableval=$enable_libtool_lock;
4843 fi
4844
4845 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4846
4847 # Some flags need to be propagated to the compiler or linker for good
4848 # libtool support.
4849 case $host in
4850 ia64-*-hpux*)
4851 # Find out which ABI we are using.
4852 echo 'int i;' > conftest.$ac_ext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; then
4858 case `/usr/bin/file conftest.$ac_objext` in
4859 *ELF-32*)
4860 HPUX_IA64_MODE="32"
4861 ;;
4862 *ELF-64*)
4863 HPUX_IA64_MODE="64"
4864 ;;
4865 esac
4866 fi
4867 rm -rf conftest*
4868 ;;
4869 *-*-irix6*)
4870 # Find out which ABI we are using.
4871 echo '#line 4871 "configure"' > conftest.$ac_ext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; then
4877 if test "$lt_cv_prog_gnu_ld" = yes; then
4878 case `/usr/bin/file conftest.$ac_objext` in
4879 *32-bit*)
4880 LD="${LD-ld} -melf32bsmip"
4881 ;;
4882 *N32*)
4883 LD="${LD-ld} -melf32bmipn32"
4884 ;;
4885 *64-bit*)
4886 LD="${LD-ld} -melf64bmip"
4887 ;;
4888 esac
4889 else
4890 case `/usr/bin/file conftest.$ac_objext` in
4891 *32-bit*)
4892 LD="${LD-ld} -32"
4893 ;;
4894 *N32*)
4895 LD="${LD-ld} -n32"
4896 ;;
4897 *64-bit*)
4898 LD="${LD-ld} -64"
4899 ;;
4900 esac
4901 fi
4902 fi
4903 rm -rf conftest*
4904 ;;
4905
4906 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4907 # Find out which ABI we are using.
4908 echo 'int i;' > conftest.$ac_ext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910 (eval $ac_compile) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; then
4914 case "`/usr/bin/file conftest.o`" in
4915 *32-bit*)
4916 case $host in
4917 x86_64-*linux*)
4918 LD="${LD-ld} -m elf_i386"
4919 ;;
4920 ppc64-*linux*|powerpc64-*linux*)
4921 LD="${LD-ld} -m elf32ppclinux"
4922 ;;
4923 s390x-*linux*)
4924 LD="${LD-ld} -m elf_s390"
4925 ;;
4926 sparc64-*linux*)
4927 LD="${LD-ld} -m elf32_sparc"
4928 ;;
4929 esac
4930 ;;
4931 *64-bit*)
4932 case $host in
4933 x86_64-*linux*)
4934 LD="${LD-ld} -m elf_x86_64"
4935 ;;
4936 ppc*-*linux*|powerpc*-*linux*)
4937 LD="${LD-ld} -m elf64ppc"
4938 ;;
4939 s390*-*linux*)
4940 LD="${LD-ld} -m elf64_s390"
4941 ;;
4942 sparc*-*linux*)
4943 LD="${LD-ld} -m elf64_sparc"
4944 ;;
4945 esac
4946 ;;
4947 esac
4948 fi
4949 rm -rf conftest*
4950 ;;
4951
4952 *-*-linux*)
4953 # Test if the compiler is 64bit
4954 echo 'int i;' > conftest.$ac_ext
4955 lt_cv_cc_64bit_output=no
4956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4957 (eval $ac_compile) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; then
4961 case `/usr/bin/file conftest.$ac_objext` in
4962 *"ELF 64"*)
4963 lt_cv_cc_64bit_output=yes
4964 ;;
4965 esac
4966 fi
4967 rm -rf conftest*
4968 ;;
4969
4970 *-*-sco3.2v5*)
4971 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4972 SAVE_CFLAGS="$CFLAGS"
4973 CFLAGS="$CFLAGS -belf"
4974 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4975 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4976 if test "${lt_cv_cc_needs_belf+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 ac_ext=c
4980 ac_cpp='$CPP $CPPFLAGS'
4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991
4992 int
4993 main ()
4994 {
4995
4996 ;
4997 return 0;
4998 }
4999 _ACEOF
5000 rm -f conftest.$ac_objext conftest$ac_exeext
5001 if { (ac_try="$ac_link"
5002 case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_link") 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && {
5014 test -z "$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 } && test -s conftest$ac_exeext &&
5017 $as_test_x conftest$ac_exeext; then
5018 lt_cv_cc_needs_belf=yes
5019 else
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 lt_cv_cc_needs_belf=no
5024 fi
5025
5026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5027 conftest$ac_exeext conftest.$ac_ext
5028 ac_ext=c
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033
5034 fi
5035 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5036 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5037 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5038 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5039 CFLAGS="$SAVE_CFLAGS"
5040 fi
5041 ;;
5042 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5043 if test -n "$ac_tool_prefix"; then
5044 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5045 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 if test -n "$DLLTOOL"; then
5052 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 DLLTOOL=$ac_cv_prog_DLLTOOL
5072 if test -n "$DLLTOOL"; then
5073 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5074 echo "${ECHO_T}$DLLTOOL" >&6; }
5075 else
5076 { echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6; }
5078 fi
5079
5080
5081 fi
5082 if test -z "$ac_cv_prog_DLLTOOL"; then
5083 ac_ct_DLLTOOL=$DLLTOOL
5084 # Extract the first word of "dlltool", so it can be a program name with args.
5085 set dummy dlltool; ac_word=$2
5086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5088 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 if test -n "$ac_ct_DLLTOOL"; then
5092 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105 done
5106 done
5107 IFS=$as_save_IFS
5108
5109 fi
5110 fi
5111 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5112 if test -n "$ac_ct_DLLTOOL"; then
5113 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5114 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5115 else
5116 { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5118 fi
5119
5120 if test "x$ac_ct_DLLTOOL" = x; then
5121 DLLTOOL="false"
5122 else
5123 case $cross_compiling:$ac_tool_warned in
5124 yes:)
5125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5126 whose name does not start with the host triplet. If you think this
5127 configuration is useful to you, please write to autoconf@gnu.org." >&5
5128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5129 whose name does not start with the host triplet. If you think this
5130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133 DLLTOOL=$ac_ct_DLLTOOL
5134 fi
5135 else
5136 DLLTOOL="$ac_cv_prog_DLLTOOL"
5137 fi
5138
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}as; ac_word=$2
5142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5144 if test "${ac_cv_prog_AS+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 if test -n "$AS"; then
5148 ac_cv_prog_AS="$AS" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_AS="${ac_tool_prefix}as"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 fi
5166 fi
5167 AS=$ac_cv_prog_AS
5168 if test -n "$AS"; then
5169 { echo "$as_me:$LINENO: result: $AS" >&5
5170 echo "${ECHO_T}$AS" >&6; }
5171 else
5172 { echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6; }
5174 fi
5175
5176
5177 fi
5178 if test -z "$ac_cv_prog_AS"; then
5179 ac_ct_AS=$AS
5180 # Extract the first word of "as", so it can be a program name with args.
5181 set dummy as; ac_word=$2
5182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 if test -n "$ac_ct_AS"; then
5188 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_ac_ct_AS="as"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5208 if test -n "$ac_ct_AS"; then
5209 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5210 echo "${ECHO_T}$ac_ct_AS" >&6; }
5211 else
5212 { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5214 fi
5215
5216 if test "x$ac_ct_AS" = x; then
5217 AS="false"
5218 else
5219 case $cross_compiling:$ac_tool_warned in
5220 yes:)
5221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5222 whose name does not start with the host triplet. If you think this
5223 configuration is useful to you, please write to autoconf@gnu.org." >&5
5224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5225 whose name does not start with the host triplet. If you think this
5226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229 AS=$ac_ct_AS
5230 fi
5231 else
5232 AS="$ac_cv_prog_AS"
5233 fi
5234
5235 if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5237 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5240 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 if test -n "$OBJDUMP"; then
5244 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261 fi
5262 fi
5263 OBJDUMP=$ac_cv_prog_OBJDUMP
5264 if test -n "$OBJDUMP"; then
5265 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5266 echo "${ECHO_T}$OBJDUMP" >&6; }
5267 else
5268 { echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6; }
5270 fi
5271
5272
5273 fi
5274 if test -z "$ac_cv_prog_OBJDUMP"; then
5275 ac_ct_OBJDUMP=$OBJDUMP
5276 # Extract the first word of "objdump", so it can be a program name with args.
5277 set dummy objdump; ac_word=$2
5278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5280 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 if test -n "$ac_ct_OBJDUMP"; then
5284 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297 done
5298 done
5299 IFS=$as_save_IFS
5300
5301 fi
5302 fi
5303 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5304 if test -n "$ac_ct_OBJDUMP"; then
5305 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5306 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5307 else
5308 { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5310 fi
5311
5312 if test "x$ac_ct_OBJDUMP" = x; then
5313 OBJDUMP="false"
5314 else
5315 case $cross_compiling:$ac_tool_warned in
5316 yes:)
5317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5318 whose name does not start with the host triplet. If you think this
5319 configuration is useful to you, please write to autoconf@gnu.org." >&5
5320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5321 whose name does not start with the host triplet. If you think this
5322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5323 ac_tool_warned=yes ;;
5324 esac
5325 OBJDUMP=$ac_ct_OBJDUMP
5326 fi
5327 else
5328 OBJDUMP="$ac_cv_prog_OBJDUMP"
5329 fi
5330
5331 ;;
5332
5333 esac
5334
5335 need_locks="$enable_libtool_lock"
5336
5337
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5345 # On Suns, sometimes $CPP names a directory.
5346 if test -n "$CPP" && test -d "$CPP"; then
5347 CPP=
5348 fi
5349 if test -z "$CPP"; then
5350 if test "${ac_cv_prog_CPP+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353 # Double quotes because CPP needs to be expanded
5354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5355 do
5356 ac_preproc_ok=false
5357 for ac_c_preproc_warn_flag in '' yes
5358 do
5359 # Use a header file that comes with gcc, so configuring glibc
5360 # with a fresh cross-compiler works.
5361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5362 # <limits.h> exists even on freestanding compilers.
5363 # On the NeXT, cc -E runs the code through the compiler's parser,
5364 # not just through cpp. "Syntax error" is here to catch this case.
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #ifdef __STDC__
5372 # include <limits.h>
5373 #else
5374 # include <assert.h>
5375 #endif
5376 Syntax error
5377 _ACEOF
5378 if { (ac_try="$ac_cpp conftest.$ac_ext"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } >/dev/null && {
5391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 }; then
5394 :
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 # Broken: fails on valid input.
5400 continue
5401 fi
5402
5403 rm -f conftest.err conftest.$ac_ext
5404
5405 # OK, works on sane cases. Now check whether nonexistent headers
5406 # can be detected and how.
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include <ac_nonexistent.h>
5414 _ACEOF
5415 if { (ac_try="$ac_cpp conftest.$ac_ext"
5416 case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } >/dev/null && {
5428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5429 test ! -s conftest.err
5430 }; then
5431 # Broken: success on invalid input.
5432 continue
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 # Passes both tests.
5438 ac_preproc_ok=:
5439 break
5440 fi
5441
5442 rm -f conftest.err conftest.$ac_ext
5443
5444 done
5445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5446 rm -f conftest.err conftest.$ac_ext
5447 if $ac_preproc_ok; then
5448 break
5449 fi
5450
5451 done
5452 ac_cv_prog_CPP=$CPP
5453
5454 fi
5455 CPP=$ac_cv_prog_CPP
5456 else
5457 ac_cv_prog_CPP=$CPP
5458 fi
5459 { echo "$as_me:$LINENO: result: $CPP" >&5
5460 echo "${ECHO_T}$CPP" >&6; }
5461 ac_preproc_ok=false
5462 for ac_c_preproc_warn_flag in '' yes
5463 do
5464 # Use a header file that comes with gcc, so configuring glibc
5465 # with a fresh cross-compiler works.
5466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467 # <limits.h> exists even on freestanding compilers.
5468 # On the NeXT, cc -E runs the code through the compiler's parser,
5469 # not just through cpp. "Syntax error" is here to catch this case.
5470 cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h. */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 #ifdef __STDC__
5477 # include <limits.h>
5478 #else
5479 # include <assert.h>
5480 #endif
5481 Syntax error
5482 _ACEOF
5483 if { (ac_try="$ac_cpp conftest.$ac_ext"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null && {
5496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 }; then
5499 :
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 # Broken: fails on valid input.
5505 continue
5506 fi
5507
5508 rm -f conftest.err conftest.$ac_ext
5509
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <ac_nonexistent.h>
5519 _ACEOF
5520 if { (ac_try="$ac_cpp conftest.$ac_ext"
5521 case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } >/dev/null && {
5533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5534 test ! -s conftest.err
5535 }; then
5536 # Broken: success on invalid input.
5537 continue
5538 else
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 # Passes both tests.
5543 ac_preproc_ok=:
5544 break
5545 fi
5546
5547 rm -f conftest.err conftest.$ac_ext
5548
5549 done
5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551 rm -f conftest.err conftest.$ac_ext
5552 if $ac_preproc_ok; then
5553 :
5554 else
5555 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5560 fi
5561
5562 ac_ext=c
5563 ac_cpp='$CPP $CPPFLAGS'
5564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567
5568
5569 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5570 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5571 if test "${ac_cv_header_stdc+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #include <stdlib.h>
5581 #include <stdarg.h>
5582 #include <string.h>
5583 #include <float.h>
5584
5585 int
5586 main ()
5587 {
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 rm -f conftest.$ac_objext
5594 if { (ac_try="$ac_compile"
5595 case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_compile") 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && {
5607 test -z "$ac_c_werror_flag" ||
5608 test ! -s conftest.err
5609 } && test -s conftest.$ac_objext; then
5610 ac_cv_header_stdc=yes
5611 else
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 ac_cv_header_stdc=no
5616 fi
5617
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619
5620 if test $ac_cv_header_stdc = yes; then
5621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <string.h>
5629
5630 _ACEOF
5631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5632 $EGREP "memchr" >/dev/null 2>&1; then
5633 :
5634 else
5635 ac_cv_header_stdc=no
5636 fi
5637 rm -f conftest*
5638
5639 fi
5640
5641 if test $ac_cv_header_stdc = yes; then
5642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <stdlib.h>
5650
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "free" >/dev/null 2>&1; then
5654 :
5655 else
5656 ac_cv_header_stdc=no
5657 fi
5658 rm -f conftest*
5659
5660 fi
5661
5662 if test $ac_cv_header_stdc = yes; then
5663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5664 if test "$cross_compiling" = yes; then
5665 :
5666 else
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #include <ctype.h>
5674 #include <stdlib.h>
5675 #if ((' ' & 0x0FF) == 0x020)
5676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5678 #else
5679 # define ISLOWER(c) \
5680 (('a' <= (c) && (c) <= 'i') \
5681 || ('j' <= (c) && (c) <= 'r') \
5682 || ('s' <= (c) && (c) <= 'z'))
5683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5684 #endif
5685
5686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5687 int
5688 main ()
5689 {
5690 int i;
5691 for (i = 0; i < 256; i++)
5692 if (XOR (islower (i), ISLOWER (i))
5693 || toupper (i) != TOUPPER (i))
5694 return 2;
5695 return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest$ac_exeext
5699 if { (ac_try="$ac_link"
5700 case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_link") 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5709 { (case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_try") 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 :
5719 else
5720 echo "$as_me: program exited with status $ac_status" >&5
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 ( exit $ac_status )
5725 ac_cv_header_stdc=no
5726 fi
5727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5728 fi
5729
5730
5731 fi
5732 fi
5733 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5734 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5735 if test $ac_cv_header_stdc = yes; then
5736
5737 cat >>confdefs.h <<\_ACEOF
5738 #define STDC_HEADERS 1
5739 _ACEOF
5740
5741 fi
5742
5743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5754 inttypes.h stdint.h unistd.h
5755 do
5756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h. */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 $ac_includes_default
5769
5770 #include <$ac_header>
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 eval "$as_ac_Header=yes"
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 eval "$as_ac_Header=no"
5795 fi
5796
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 fi
5799 ac_res=`eval echo '${'$as_ac_Header'}'`
5800 { echo "$as_me:$LINENO: result: $ac_res" >&5
5801 echo "${ECHO_T}$ac_res" >&6; }
5802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805 _ACEOF
5806
5807 fi
5808
5809 done
5810
5811
5812
5813 for ac_header in dlfcn.h
5814 do
5815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 fi
5822 ac_res=`eval echo '${'$as_ac_Header'}'`
5823 { echo "$as_me:$LINENO: result: $ac_res" >&5
5824 echo "${ECHO_T}$ac_res" >&6; }
5825 else
5826 # Is the header compilable?
5827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 $ac_includes_default
5836 #include <$ac_header>
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (ac_try="$ac_compile"
5840 case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && {
5852 test -z "$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 } && test -s conftest.$ac_objext; then
5855 ac_header_compiler=yes
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 ac_header_compiler=no
5861 fi
5862
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5865 echo "${ECHO_T}$ac_header_compiler" >&6; }
5866
5867 # Is the header present?
5868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <$ac_header>
5877 _ACEOF
5878 if { (ac_try="$ac_cpp conftest.$ac_ext"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } >/dev/null && {
5891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5892 test ! -s conftest.err
5893 }; then
5894 ac_header_preproc=yes
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 ac_header_preproc=no
5900 fi
5901
5902 rm -f conftest.err conftest.$ac_ext
5903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5904 echo "${ECHO_T}$ac_header_preproc" >&6; }
5905
5906 # So? What about this header?
5907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5908 yes:no: )
5909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5913 ac_header_preproc=yes
5914 ;;
5915 no:yes:* )
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5928 ( cat <<\_ASBOX
5929 ## ------------------------------------- ##
5930 ## Report this to olof.naessen@gmail.com ##
5931 ## ------------------------------------- ##
5932 _ASBOX
5933 ) | sed "s/^/$as_me: WARNING: /" >&2
5934 ;;
5935 esac
5936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941 eval "$as_ac_Header=\$ac_header_preproc"
5942 fi
5943 ac_res=`eval echo '${'$as_ac_Header'}'`
5944 { echo "$as_me:$LINENO: result: $ac_res" >&5
5945 echo "${ECHO_T}$ac_res" >&6; }
5946
5947 fi
5948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5949 cat >>confdefs.h <<_ACEOF
5950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5951 _ACEOF
5952
5953 fi
5954
5955 done
5956
5957
5958
5959 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5960 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5961 (test "X$CXX" != "Xg++"))) ; then
5962 ac_ext=cpp
5963 ac_cpp='$CXXCPP $CPPFLAGS'
5964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5967 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5968 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5969 if test -z "$CXXCPP"; then
5970 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973 # Double quotes because CXXCPP needs to be expanded
5974 for CXXCPP in "$CXX -E" "/lib/cpp"
5975 do
5976 ac_preproc_ok=false
5977 for ac_cxx_preproc_warn_flag in '' yes
5978 do
5979 # Use a header file that comes with gcc, so configuring glibc
5980 # with a fresh cross-compiler works.
5981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982 # <limits.h> exists even on freestanding compilers.
5983 # On the NeXT, cc -E runs the code through the compiler's parser,
5984 # not just through cpp. "Syntax error" is here to catch this case.
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 #ifdef __STDC__
5992 # include <limits.h>
5993 #else
5994 # include <assert.h>
5995 #endif
5996 Syntax error
5997 _ACEOF
5998 if { (ac_try="$ac_cpp conftest.$ac_ext"
5999 case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002 esac
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev/null && {
6011 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6012 test ! -s conftest.err
6013 }; then
6014 :
6015 else
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 # Broken: fails on valid input.
6020 continue
6021 fi
6022
6023 rm -f conftest.err conftest.$ac_ext
6024
6025 # OK, works on sane cases. Now check whether nonexistent headers
6026 # can be detected and how.
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 #include <ac_nonexistent.h>
6034 _ACEOF
6035 if { (ac_try="$ac_cpp conftest.$ac_ext"
6036 case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039 esac
6040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } >/dev/null && {
6048 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6049 test ! -s conftest.err
6050 }; then
6051 # Broken: success on invalid input.
6052 continue
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 # Passes both tests.
6058 ac_preproc_ok=:
6059 break
6060 fi
6061
6062 rm -f conftest.err conftest.$ac_ext
6063
6064 done
6065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6066 rm -f conftest.err conftest.$ac_ext
6067 if $ac_preproc_ok; then
6068 break
6069 fi
6070
6071 done
6072 ac_cv_prog_CXXCPP=$CXXCPP
6073
6074 fi
6075 CXXCPP=$ac_cv_prog_CXXCPP
6076 else
6077 ac_cv_prog_CXXCPP=$CXXCPP
6078 fi
6079 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6080 echo "${ECHO_T}$CXXCPP" >&6; }
6081 ac_preproc_ok=false
6082 for ac_cxx_preproc_warn_flag in '' yes
6083 do
6084 # Use a header file that comes with gcc, so configuring glibc
6085 # with a fresh cross-compiler works.
6086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6087 # <limits.h> exists even on freestanding compilers.
6088 # On the NeXT, cc -E runs the code through the compiler's parser,
6089 # not just through cpp. "Syntax error" is here to catch this case.
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #ifdef __STDC__
6097 # include <limits.h>
6098 #else
6099 # include <assert.h>
6100 #endif
6101 Syntax error
6102 _ACEOF
6103 if { (ac_try="$ac_cpp conftest.$ac_ext"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } >/dev/null && {
6116 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6117 test ! -s conftest.err
6118 }; then
6119 :
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 # Broken: fails on valid input.
6125 continue
6126 fi
6127
6128 rm -f conftest.err conftest.$ac_ext
6129
6130 # OK, works on sane cases. Now check whether nonexistent headers
6131 # can be detected and how.
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #include <ac_nonexistent.h>
6139 _ACEOF
6140 if { (ac_try="$ac_cpp conftest.$ac_ext"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } >/dev/null && {
6153 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6154 test ! -s conftest.err
6155 }; then
6156 # Broken: success on invalid input.
6157 continue
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 # Passes both tests.
6163 ac_preproc_ok=:
6164 break
6165 fi
6166
6167 rm -f conftest.err conftest.$ac_ext
6168
6169 done
6170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6171 rm -f conftest.err conftest.$ac_ext
6172 if $ac_preproc_ok; then
6173 :
6174 else
6175 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6176 See \`config.log' for more details." >&5
6177 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6178 See \`config.log' for more details." >&2;}
6179 { (exit 1); exit 1; }; }
6180 fi
6181
6182 ac_ext=cpp
6183 ac_cpp='$CXXCPP $CPPFLAGS'
6184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6187
6188 fi
6189
6190
6191 ac_ext=f
6192 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6193 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6195 if test -n "$ac_tool_prefix"; then
6196 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
6197 do
6198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6202 if test "${ac_cv_prog_F77+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 if test -n "$F77"; then
6206 ac_cv_prog_F77="$F77" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6218 fi
6219 done
6220 done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 F77=$ac_cv_prog_F77
6226 if test -n "$F77"; then
6227 { echo "$as_me:$LINENO: result: $F77" >&5
6228 echo "${ECHO_T}$F77" >&6; }
6229 else
6230 { echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6; }
6232 fi
6233
6234
6235 test -n "$F77" && break
6236 done
6237 fi
6238 if test -z "$F77"; then
6239 ac_ct_F77=$F77
6240 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
6241 do
6242 # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy $ac_prog; ac_word=$2
6244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6246 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 if test -n "$ac_ct_F77"; then
6250 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_prog_ac_ct_F77="$ac_prog"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263 done
6264 done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6270 if test -n "$ac_ct_F77"; then
6271 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6272 echo "${ECHO_T}$ac_ct_F77" >&6; }
6273 else
6274 { echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6; }
6276 fi
6277
6278
6279 test -n "$ac_ct_F77" && break
6280 done
6281
6282 if test "x$ac_ct_F77" = x; then
6283 F77=""
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6288 whose name does not start with the host triplet. If you think this
6289 configuration is useful to you, please write to autoconf@gnu.org." >&5
6290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6291 whose name does not start with the host triplet. If you think this
6292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295 F77=$ac_ct_F77
6296 fi
6297 fi
6298
6299
6300 # Provide some information about the compiler.
6301 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6302 ac_compiler=`set X $ac_compile; echo $2`
6303 { (ac_try="$ac_compiler --version >&5"
6304 case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compiler --version >&5") 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }
6313 { (ac_try="$ac_compiler -v >&5"
6314 case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317 esac
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_compiler -v >&5") 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }
6323 { (ac_try="$ac_compiler -V >&5"
6324 case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_compiler -V >&5") 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }
6333 rm -f a.out
6334
6335 # If we don't use `.F' as extension, the preprocessor is not run on the
6336 # input file. (Note that this only needs to work for GNU compilers.)
6337 ac_save_ext=$ac_ext
6338 ac_ext=F
6339 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6340 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6341 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 cat >conftest.$ac_ext <<_ACEOF
6345 program main
6346 #ifndef __GNUC__
6347 choke me
6348 #endif
6349
6350 end
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compile") 2>conftest.er1
6360 ac_status=$?
6361 grep -v '^ *+' conftest.er1 >conftest.err
6362 rm -f conftest.er1
6363 cat conftest.err >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } && {
6366 test -z "$ac_f77_werror_flag" ||
6367 test ! -s conftest.err
6368 } && test -s conftest.$ac_objext; then
6369 ac_compiler_gnu=yes
6370 else
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 ac_compiler_gnu=no
6375 fi
6376
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6379
6380 fi
6381 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6382 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6383 ac_ext=$ac_save_ext
6384 ac_test_FFLAGS=${FFLAGS+set}
6385 ac_save_FFLAGS=$FFLAGS
6386 FFLAGS=
6387 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6388 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6389 if test "${ac_cv_prog_f77_g+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392 FFLAGS=-g
6393 cat >conftest.$ac_ext <<_ACEOF
6394 program main
6395
6396 end
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6400 case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403 esac
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_f77_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.$ac_objext; then
6415 ac_cv_prog_f77_g=yes
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6419
6420 ac_cv_prog_f77_g=no
6421 fi
6422
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424
6425 fi
6426 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6427 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6428 if test "$ac_test_FFLAGS" = set; then
6429 FFLAGS=$ac_save_FFLAGS
6430 elif test $ac_cv_prog_f77_g = yes; then
6431 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6432 FFLAGS="-g -O2"
6433 else
6434 FFLAGS="-g"
6435 fi
6436 else
6437 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6438 FFLAGS="-O2"
6439 else
6440 FFLAGS=
6441 fi
6442 fi
6443
6444 G77=`test $ac_compiler_gnu = yes && echo yes`
6445 ac_ext=c
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450
6451
6452
6453 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6454
6455 # find the maximum length of command line arguments
6456 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6457 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6458 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 i=0
6462 teststring="ABCD"
6463
6464 case $build_os in
6465 msdosdjgpp*)
6466 # On DJGPP, this test can blow up pretty badly due to problems in libc
6467 # (any single argument exceeding 2000 bytes causes a buffer overrun
6468 # during glob expansion). Even if it were fixed, the result of this
6469 # check would be larger than it should be.
6470 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6471 ;;
6472
6473 gnu*)
6474 # Under GNU Hurd, this test is not required because there is
6475 # no limit to the length of command line arguments.
6476 # Libtool will interpret -1 as no limit whatsoever
6477 lt_cv_sys_max_cmd_len=-1;
6478 ;;
6479
6480 cygwin* | mingw*)
6481 # On Win9x/ME, this test blows up -- it succeeds, but takes
6482 # about 5 minutes as the teststring grows exponentially.
6483 # Worse, since 9x/ME are not pre-emptively multitasking,
6484 # you end up with a "frozen" computer, even though with patience
6485 # the test eventually succeeds (with a max line length of 256k).
6486 # Instead, let's just punt: use the minimum linelength reported by
6487 # all of the supported platforms: 8192 (on NT/2K/XP).
6488 lt_cv_sys_max_cmd_len=8192;
6489 ;;
6490
6491 amigaos*)
6492 # On AmigaOS with pdksh, this test takes hours, literally.
6493 # So we just punt and use a minimum line length of 8192.
6494 lt_cv_sys_max_cmd_len=8192;
6495 ;;
6496
6497 netbsd* | freebsd* | openbsd* | darwin* )
6498 # This has been around since 386BSD, at least. Likely further.
6499 if test -x /sbin/sysctl; then
6500 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6501 elif test -x /usr/sbin/sysctl; then
6502 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6503 else
6504 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6505 fi
6506 # And add a safety zone
6507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6508 ;;
6509
6510 *)
6511 # If test is not a shell built-in, we'll probably end up computing a
6512 # maximum length that is only half of the actual maximum length, but
6513 # we can't tell.
6514 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6515 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6516 = "XX$teststring") >/dev/null 2>&1 &&
6517 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6518 lt_cv_sys_max_cmd_len=$new_result &&
6519 test $i != 17 # 1/2 MB should be enough
6520 do
6521 i=`expr $i + 1`
6522 teststring=$teststring$teststring
6523 done
6524 teststring=
6525 # Add a significant safety factor because C++ compilers can tack on massive
6526 # amounts of additional arguments before passing them to the linker.
6527 # It appears as though 1/2 is a usable value.
6528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6529 ;;
6530 esac
6531
6532 fi
6533
6534 if test -n $lt_cv_sys_max_cmd_len ; then
6535 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6536 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6537 else
6538 { echo "$as_me:$LINENO: result: none" >&5
6539 echo "${ECHO_T}none" >&6; }
6540 fi
6541
6542
6543
6544
6545 # Check for command to grab the raw symbol name followed by C symbol from nm.
6546 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6547 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6548 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551
6552 # These are sane defaults that work on at least a few old systems.
6553 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6554
6555 # Character class describing NM global symbol codes.
6556 symcode='[BCDEGRST]'
6557
6558 # Regexp to match symbols that can be accessed directly from C.
6559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6560
6561 # Transform the above into a raw symbol and a C symbol.
6562 symxfrm='\1 \2\3 \3'
6563
6564 # Transform an extracted symbol line into a proper C declaration
6565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6566
6567 # Transform an extracted symbol line into symbol name and symbol address
6568 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'"
6569
6570 # Define system-specific variables.
6571 case $host_os in
6572 aix*)
6573 symcode='[BCDT]'
6574 ;;
6575 cygwin* | mingw* | pw32*)
6576 symcode='[ABCDGISTW]'
6577 ;;
6578 hpux*) # Its linker distinguishes data from code symbols
6579 if test "$host_cpu" = ia64; then
6580 symcode='[ABCDEGRST]'
6581 fi
6582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6583 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'"
6584 ;;
6585 linux*)
6586 if test "$host_cpu" = ia64; then
6587 symcode='[ABCDGIRSTW]'
6588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6589 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'"
6590 fi
6591 ;;
6592 irix* | nonstopux*)
6593 symcode='[BCDEGRST]'
6594 ;;
6595 osf*)
6596 symcode='[BCDEGQRST]'
6597 ;;
6598 solaris* | sysv5*)
6599 symcode='[BDRT]'
6600 ;;
6601 sysv4)
6602 symcode='[DFNSTU]'
6603 ;;
6604 esac
6605
6606 # Handle CRLF in mingw tool chain
6607 opt_cr=
6608 case $build_os in
6609 mingw*)
6610 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6611 ;;
6612 esac
6613
6614 # If we're using GNU nm, then use its standard symbol codes.
6615 case `$NM -V 2>&1` in
6616 *GNU* | *'with BFD'*)
6617 symcode='[ABCDGIRSTW]' ;;
6618 esac
6619
6620 # Try without a prefix undercore, then with it.
6621 for ac_symprfx in "" "_"; do
6622
6623 # Write the raw and C identifiers.
6624 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6625
6626 # Check to see that the pipe works correctly.
6627 pipe_works=no
6628
6629 rm -f conftest*
6630 cat > conftest.$ac_ext <<EOF
6631 #ifdef __cplusplus
6632 extern "C" {
6633 #endif
6634 char nm_test_var;
6635 void nm_test_func(){}
6636 #ifdef __cplusplus
6637 }
6638 #endif
6639 int main(){nm_test_var='a';nm_test_func();return(0);}
6640 EOF
6641
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; then
6647 # Now try to grab the symbols.
6648 nlist=conftest.nm
6649 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6650 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && test -s "$nlist"; then
6654 # Try sorting and uniquifying the output.
6655 if sort "$nlist" | uniq > "$nlist"T; then
6656 mv -f "$nlist"T "$nlist"
6657 else
6658 rm -f "$nlist"T
6659 fi
6660
6661 # Make sure that we snagged all the symbols we need.
6662 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6663 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6664 cat <<EOF > conftest.$ac_ext
6665 #ifdef __cplusplus
6666 extern "C" {
6667 #endif
6668
6669 EOF
6670 # Now generate the symbol file.
6671 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6672
6673 cat <<EOF >> conftest.$ac_ext
6674 #if defined (__STDC__) && __STDC__
6675 # define lt_ptr_t void *
6676 #else
6677 # define lt_ptr_t char *
6678 # define const
6679 #endif
6680
6681 /* The mapping between symbol names and symbols. */
6682 const struct {
6683 const char *name;
6684 lt_ptr_t address;
6685 }
6686 lt_preloaded_symbols[] =
6687 {
6688 EOF
6689 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6690 cat <<\EOF >> conftest.$ac_ext
6691 {0, (lt_ptr_t) 0}
6692 };
6693
6694 #ifdef __cplusplus
6695 }
6696 #endif
6697 EOF
6698 # Now try linking the two files.
6699 mv conftest.$ac_objext conftstm.$ac_objext
6700 lt_save_LIBS="$LIBS"
6701 lt_save_CFLAGS="$CFLAGS"
6702 LIBS="conftstm.$ac_objext"
6703 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6709 pipe_works=yes
6710 fi
6711 LIBS="$lt_save_LIBS"
6712 CFLAGS="$lt_save_CFLAGS"
6713 else
6714 echo "cannot find nm_test_func in $nlist" >&5
6715 fi
6716 else
6717 echo "cannot find nm_test_var in $nlist" >&5
6718 fi
6719 else
6720 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6721 fi
6722 else
6723 echo "$progname: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6725 fi
6726 rm -f conftest* conftst*
6727
6728 # Do not use the global_symbol_pipe unless it works.
6729 if test "$pipe_works" = yes; then
6730 break
6731 else
6732 lt_cv_sys_global_symbol_pipe=
6733 fi
6734 done
6735
6736 fi
6737
6738 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6739 lt_cv_sys_global_symbol_to_cdecl=
6740 fi
6741 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6742 { echo "$as_me:$LINENO: result: failed" >&5
6743 echo "${ECHO_T}failed" >&6; }
6744 else
6745 { echo "$as_me:$LINENO: result: ok" >&5
6746 echo "${ECHO_T}ok" >&6; }
6747 fi
6748
6749 { echo "$as_me:$LINENO: checking for objdir" >&5
6750 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6751 if test "${lt_cv_objdir+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754 rm -f .libs 2>/dev/null
6755 mkdir .libs 2>/dev/null
6756 if test -d .libs; then
6757 lt_cv_objdir=.libs
6758 else
6759 # MS-DOS does not allow filenames that begin with a dot.
6760 lt_cv_objdir=_libs
6761 fi
6762 rmdir .libs 2>/dev/null
6763 fi
6764 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6765 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6766 objdir=$lt_cv_objdir
6767
6768
6769
6770
6771
6772 case $host_os in
6773 aix3*)
6774 # AIX sometimes has problems with the GCC collect2 program. For some
6775 # reason, if we set the COLLECT_NAMES environment variable, the problems
6776 # vanish in a puff of smoke.
6777 if test "X${COLLECT_NAMES+set}" != Xset; then
6778 COLLECT_NAMES=
6779 export COLLECT_NAMES
6780 fi
6781 ;;
6782 esac
6783
6784 # Sed substitution that helps us do robust quoting. It backslashifies
6785 # metacharacters that are still active within double-quoted strings.
6786 Xsed='sed -e s/^X//'
6787 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6788
6789 # Same as above, but do not quote variable references.
6790 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6791
6792 # Sed substitution to delay expansion of an escaped shell variable in a
6793 # double_quote_subst'ed string.
6794 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6795
6796 # Sed substitution to avoid accidental globbing in evaled expressions
6797 no_glob_subst='s/\*/\\\*/g'
6798
6799 # Constants:
6800 rm="rm -f"
6801
6802 # Global variables:
6803 default_ofile=libtool
6804 can_build_shared=yes
6805
6806 # All known linkers require a `.a' archive for static linking (except M$VC,
6807 # which needs '.lib').
6808 libext=a
6809 ltmain="$ac_aux_dir/ltmain.sh"
6810 ofile="$default_ofile"
6811 with_gnu_ld="$lt_cv_prog_gnu_ld"
6812
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}ar; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_AR+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 if test -n "$AR"; then
6822 ac_cv_prog_AR="$AR" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_AR="${ac_tool_prefix}ar"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 AR=$ac_cv_prog_AR
6842 if test -n "$AR"; then
6843 { echo "$as_me:$LINENO: result: $AR" >&5
6844 echo "${ECHO_T}$AR" >&6; }
6845 else
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_AR"; then
6853 ac_ct_AR=$AR
6854 # Extract the first word of "ar", so it can be a program name with args.
6855 set dummy ar; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 if test -n "$ac_ct_AR"; then
6862 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_AR="ar"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6882 if test -n "$ac_ct_AR"; then
6883 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6884 echo "${ECHO_T}$ac_ct_AR" >&6; }
6885 else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890 if test "x$ac_ct_AR" = x; then
6891 AR="false"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet. If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet. If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903 AR=$ac_ct_AR
6904 fi
6905 else
6906 AR="$ac_cv_prog_AR"
6907 fi
6908
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_prog_RANLIB+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 if test -n "$RANLIB"; then
6918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 RANLIB=$ac_cv_prog_RANLIB
6938 if test -n "$RANLIB"; then
6939 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6940 echo "${ECHO_T}$RANLIB" >&6; }
6941 else
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6944 fi
6945
6946
6947 fi
6948 if test -z "$ac_cv_prog_RANLIB"; then
6949 ac_ct_RANLIB=$RANLIB
6950 # Extract the first word of "ranlib", so it can be a program name with args.
6951 set dummy ranlib; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957 if test -n "$ac_ct_RANLIB"; then
6958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_prog_ac_ct_RANLIB="ranlib"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6978 if test -n "$ac_ct_RANLIB"; then
6979 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6980 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6981 else
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986 if test "x$ac_ct_RANLIB" = x; then
6987 RANLIB=":"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990 yes:)
6991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6992 whose name does not start with the host triplet. If you think this
6993 configuration is useful to you, please write to autoconf@gnu.org." >&5
6994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6995 whose name does not start with the host triplet. If you think this
6996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999 RANLIB=$ac_ct_RANLIB
7000 fi
7001 else
7002 RANLIB="$ac_cv_prog_RANLIB"
7003 fi
7004
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}strip; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_prog_STRIP+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 if test -n "$STRIP"; then
7014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 STRIP=$ac_cv_prog_STRIP
7034 if test -n "$STRIP"; then
7035 { echo "$as_me:$LINENO: result: $STRIP" >&5
7036 echo "${ECHO_T}$STRIP" >&6; }
7037 else
7038 { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7040 fi
7041
7042
7043 fi
7044 if test -z "$ac_cv_prog_STRIP"; then
7045 ac_ct_STRIP=$STRIP
7046 # Extract the first word of "strip", so it can be a program name with args.
7047 set dummy strip; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 if test -n "$ac_ct_STRIP"; then
7054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_STRIP="strip"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7074 if test -n "$ac_ct_STRIP"; then
7075 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7076 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7077 else
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7080 fi
7081
7082 if test "x$ac_ct_STRIP" = x; then
7083 STRIP=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086 yes:)
7087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7088 whose name does not start with the host triplet. If you think this
7089 configuration is useful to you, please write to autoconf@gnu.org." >&5
7090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7091 whose name does not start with the host triplet. If you think this
7092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095 STRIP=$ac_ct_STRIP
7096 fi
7097 else
7098 STRIP="$ac_cv_prog_STRIP"
7099 fi
7100
7101
7102 old_CC="$CC"
7103 old_CFLAGS="$CFLAGS"
7104
7105 # Set sane defaults for various variables
7106 test -z "$AR" && AR=ar
7107 test -z "$AR_FLAGS" && AR_FLAGS=cru
7108 test -z "$AS" && AS=as
7109 test -z "$CC" && CC=cc
7110 test -z "$LTCC" && LTCC=$CC
7111 test -z "$DLLTOOL" && DLLTOOL=dlltool
7112 test -z "$LD" && LD=ld
7113 test -z "$LN_S" && LN_S="ln -s"
7114 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7115 test -z "$NM" && NM=nm
7116 test -z "$SED" && SED=sed
7117 test -z "$OBJDUMP" && OBJDUMP=objdump
7118 test -z "$RANLIB" && RANLIB=:
7119 test -z "$STRIP" && STRIP=:
7120 test -z "$ac_objext" && ac_objext=o
7121
7122 # Determine commands to create old-style static archives.
7123 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7124 old_postinstall_cmds='chmod 644 $oldlib'
7125 old_postuninstall_cmds=
7126
7127 if test -n "$RANLIB"; then
7128 case $host_os in
7129 openbsd*)
7130 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7131 ;;
7132 *)
7133 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7134 ;;
7135 esac
7136 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7137 fi
7138
7139 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7140
7141 # Only perform the check for file, if the check method requires it
7142 case $deplibs_check_method in
7143 file_magic*)
7144 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7145 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7146 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7147 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 case $MAGIC_CMD in
7151 [\\/*] | ?:[\\/]*)
7152 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7153 ;;
7154 *)
7155 lt_save_MAGIC_CMD="$MAGIC_CMD"
7156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7157 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7158 for ac_dir in $ac_dummy; do
7159 IFS="$lt_save_ifs"
7160 test -z "$ac_dir" && ac_dir=.
7161 if test -f $ac_dir/${ac_tool_prefix}file; then
7162 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7163 if test -n "$file_magic_test_file"; then
7164 case $deplibs_check_method in
7165 "file_magic "*)
7166 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7168 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7169 $EGREP "$file_magic_regex" > /dev/null; then
7170 :
7171 else
7172 cat <<EOF 1>&2
7173
7174 *** Warning: the command libtool uses to detect shared libraries,
7175 *** $file_magic_cmd, produces output that libtool cannot recognize.
7176 *** The result is that libtool may fail to recognize shared libraries
7177 *** as such. This will affect the creation of libtool libraries that
7178 *** depend on shared libraries, but programs linked with such libtool
7179 *** libraries will work regardless of this problem. Nevertheless, you
7180 *** may want to report the problem to your system manager and/or to
7181 *** bug-libtool@gnu.org
7182
7183 EOF
7184 fi ;;
7185 esac
7186 fi
7187 break
7188 fi
7189 done
7190 IFS="$lt_save_ifs"
7191 MAGIC_CMD="$lt_save_MAGIC_CMD"
7192 ;;
7193 esac
7194 fi
7195
7196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197 if test -n "$MAGIC_CMD"; then
7198 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7199 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7200 else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205 if test -z "$lt_cv_path_MAGIC_CMD"; then
7206 if test -n "$ac_tool_prefix"; then
7207 { echo "$as_me:$LINENO: checking for file" >&5
7208 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212 case $MAGIC_CMD in
7213 [\\/*] | ?:[\\/]*)
7214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7215 ;;
7216 *)
7217 lt_save_MAGIC_CMD="$MAGIC_CMD"
7218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7219 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7220 for ac_dir in $ac_dummy; do
7221 IFS="$lt_save_ifs"
7222 test -z "$ac_dir" && ac_dir=.
7223 if test -f $ac_dir/file; then
7224 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7225 if test -n "$file_magic_test_file"; then
7226 case $deplibs_check_method in
7227 "file_magic "*)
7228 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7231 $EGREP "$file_magic_regex" > /dev/null; then
7232 :
7233 else
7234 cat <<EOF 1>&2
7235
7236 *** Warning: the command libtool uses to detect shared libraries,
7237 *** $file_magic_cmd, produces output that libtool cannot recognize.
7238 *** The result is that libtool may fail to recognize shared libraries
7239 *** as such. This will affect the creation of libtool libraries that
7240 *** depend on shared libraries, but programs linked with such libtool
7241 *** libraries will work regardless of this problem. Nevertheless, you
7242 *** may want to report the problem to your system manager and/or to
7243 *** bug-libtool@gnu.org
7244
7245 EOF
7246 fi ;;
7247 esac
7248 fi
7249 break
7250 fi
7251 done
7252 IFS="$lt_save_ifs"
7253 MAGIC_CMD="$lt_save_MAGIC_CMD"
7254 ;;
7255 esac
7256 fi
7257
7258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259 if test -n "$MAGIC_CMD"; then
7260 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7261 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7262 else
7263 { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7265 fi
7266
7267 else
7268 MAGIC_CMD=:
7269 fi
7270 fi
7271
7272 fi
7273 ;;
7274 esac
7275
7276 enable_dlopen=no
7277 enable_win32_dll=yes
7278
7279 # Check whether --enable-libtool-lock was given.
7280 if test "${enable_libtool_lock+set}" = set; then
7281 enableval=$enable_libtool_lock;
7282 fi
7283
7284 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7285
7286
7287 # Check whether --with-pic was given.
7288 if test "${with_pic+set}" = set; then
7289 withval=$with_pic; pic_mode="$withval"
7290 else
7291 pic_mode=default
7292 fi
7293
7294 test -z "$pic_mode" && pic_mode=default
7295
7296 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7297 #
7298 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7299 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7300 # calls AC_LIBTOOL_CONFIG and creates libtool.
7301 #
7302 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7303 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
7304 if test -z "$ltmain"; then
7305 { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7307 echo
7308 echo "*** Gentoo sanity check failed! ***"
7309 echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
7310 echo
7311 exit 1
7312 fi
7313 gentoo_lt_version="1.5.10"
7314 gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
7315 if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7318 echo
7319 echo "*** Gentoo sanity check failed! ***"
7320 echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
7321 echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
7322 echo
7323 echo "Please run:"
7324 echo
7325 echo " libtoolize --copy --force"
7326 echo
7327 echo "if appropriate, please contact the maintainer of this"
7328 echo "package (or your distribution) for help."
7329 echo
7330 exit 1
7331 else
7332 { echo "$as_me:$LINENO: result: yes" >&5
7333 echo "${ECHO_T}yes" >&6; }
7334 fi
7335
7336
7337 # Use C for the default configuration in the libtool script
7338 tagname=
7339 lt_save_CC="$CC"
7340 ac_ext=c
7341 ac_cpp='$CPP $CPPFLAGS'
7342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7345
7346
7347 # Source file extension for C test sources.
7348 ac_ext=c
7349
7350 # Object file extension for compiled C test sources.
7351 objext=o
7352 objext=$objext
7353
7354 # Code to be used in simple compile tests
7355 lt_simple_compile_test_code="int some_variable = 0;\n"
7356
7357 # Code to be used in simple link tests
7358 lt_simple_link_test_code='int main(){return(0);}\n'
7359
7360
7361 # If no C compiler was specified, use CC.
7362 LTCC=${LTCC-"$CC"}
7363
7364 # Allow CC to be a program name with arguments.
7365 compiler=$CC
7366
7367
7368 #
7369 # Check for any special shared library compilation flags.
7370 #
7371 lt_prog_cc_shlib=
7372 if test "$GCC" = no; then
7373 case $host_os in
7374 sco3.2v5*)
7375 lt_prog_cc_shlib='-belf'
7376 ;;
7377 esac
7378 fi
7379 if test -n "$lt_prog_cc_shlib"; then
7380 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7381 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7382 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7383 else
7384 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7385 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7386 lt_cv_prog_cc_can_build_shared=no
7387 fi
7388 fi
7389
7390
7391 #
7392 # Check to make sure the static flag actually works.
7393 #
7394 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7395 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7396 if test "${lt_prog_compiler_static_works+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399 lt_prog_compiler_static_works=no
7400 save_LDFLAGS="$LDFLAGS"
7401 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7402 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7404 # The compiler can only warn and ignore the option if not recognized
7405 # So say no if there are warnings
7406 if test -s conftest.err; then
7407 # Append any errors to the config.log.
7408 cat conftest.err 1>&5
7409 else
7410 lt_prog_compiler_static_works=yes
7411 fi
7412 fi
7413 $rm conftest*
7414 LDFLAGS="$save_LDFLAGS"
7415
7416 fi
7417 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7418 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7419
7420 if test x"$lt_prog_compiler_static_works" = xyes; then
7421 :
7422 else
7423 lt_prog_compiler_static=
7424 fi
7425
7426
7427
7428
7429 lt_prog_compiler_no_builtin_flag=
7430
7431 if test "$GCC" = yes; then
7432 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7433
7434
7435 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7436 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7437 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440 lt_cv_prog_compiler_rtti_exceptions=no
7441 ac_outfile=conftest.$ac_objext
7442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7443 lt_compiler_flag="-fno-rtti -fno-exceptions"
7444 # Insert the option either (1) after the last *FLAGS variable, or
7445 # (2) before a word containing "conftest.", or (3) at the end.
7446 # Note that $ac_compile itself does not contain backslashes and begins
7447 # with a dollar sign (not a hyphen), so the echo should work correctly.
7448 # The option is referenced via a variable to avoid confusing sed.
7449 lt_compile=`echo "$ac_compile" | $SED \
7450 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7452 -e 's:$: $lt_compiler_flag:'`
7453 (eval echo "\"\$as_me:7453: $lt_compile\"" >&5)
7454 (eval "$lt_compile" 2>conftest.err)
7455 ac_status=$?
7456 cat conftest.err >&5
7457 echo "$as_me:7457: \$? = $ac_status" >&5
7458 if (exit $ac_status) && test -s "$ac_outfile"; then
7459 # The compiler can only warn and ignore the option if not recognized
7460 # So say no if there are warnings
7461 if test ! -s conftest.err; then
7462 lt_cv_prog_compiler_rtti_exceptions=yes
7463 fi
7464 fi
7465 $rm conftest*
7466
7467 fi
7468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7469 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7470
7471 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7472 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7473 else
7474 :
7475 fi
7476
7477 fi
7478
7479 lt_prog_compiler_wl=
7480 lt_prog_compiler_pic=
7481 lt_prog_compiler_static=
7482
7483 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7484 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7485
7486 if test "$GCC" = yes; then
7487 lt_prog_compiler_wl='-Wl,'
7488 lt_prog_compiler_static='-static'
7489
7490 case $host_os in
7491 aix*)
7492 # All AIX code is PIC.
7493 if test "$host_cpu" = ia64; then
7494 # AIX 5 now supports IA64 processor
7495 lt_prog_compiler_static='-Bstatic'
7496 fi
7497 ;;
7498
7499 amigaos*)
7500 # FIXME: we need at least 68020 code to build shared libraries, but
7501 # adding the `-m68020' flag to GCC prevents building anything better,
7502 # like `-m68040'.
7503 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7504 ;;
7505
7506 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7507 # PIC is the default for these OSes.
7508 ;;
7509
7510 mingw* | pw32* | os2*)
7511 # This hack is so that the source file can tell whether it is being
7512 # built for inclusion in a dll (and should export symbols for example).
7513 lt_prog_compiler_pic='-DDLL_EXPORT'
7514 ;;
7515
7516 darwin* | rhapsody*)
7517 # PIC is the default on this platform
7518 # Common symbols not allowed in MH_DYLIB files
7519 lt_prog_compiler_pic='-fno-common'
7520 ;;
7521
7522 msdosdjgpp*)
7523 # Just because we use GCC doesn't mean we suddenly get shared libraries
7524 # on systems that don't support them.
7525 lt_prog_compiler_can_build_shared=no
7526 enable_shared=no
7527 ;;
7528
7529 sysv4*MP*)
7530 if test -d /usr/nec; then
7531 lt_prog_compiler_pic=-Kconform_pic
7532 fi
7533 ;;
7534
7535 hpux*)
7536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7537 # not for PA HP-UX.
7538 case "$host_cpu" in
7539 hppa*64*|ia64*)
7540 # +Z the default
7541 ;;
7542 *)
7543 lt_prog_compiler_pic='-fPIC'
7544 ;;
7545 esac
7546 ;;
7547
7548 *)
7549 lt_prog_compiler_pic='-fPIC'
7550 ;;
7551 esac
7552 else
7553 # PORTME Check for flag to pass linker flags through the system compiler.
7554 case $host_os in
7555 aix*)
7556 lt_prog_compiler_wl='-Wl,'
7557 if test "$host_cpu" = ia64; then
7558 # AIX 5 now supports IA64 processor
7559 lt_prog_compiler_static='-Bstatic'
7560 else
7561 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7562 fi
7563 ;;
7564 darwin*)
7565 # PIC is the default on this platform
7566 # Common symbols not allowed in MH_DYLIB files
7567 case "$cc_basename" in
7568 xlc*)
7569 lt_prog_compiler_pic='-qnocommon'
7570 lt_prog_compiler_wl='-Wl,'
7571 ;;
7572 esac
7573 ;;
7574
7575 mingw* | pw32* | os2*)
7576 # This hack is so that the source file can tell whether it is being
7577 # built for inclusion in a dll (and should export symbols for example).
7578 lt_prog_compiler_pic='-DDLL_EXPORT'
7579 ;;
7580
7581 hpux9* | hpux10* | hpux11*)
7582 lt_prog_compiler_wl='-Wl,'
7583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7584 # not for PA HP-UX.
7585 case "$host_cpu" in
7586 hppa*64*|ia64*)
7587 # +Z the default
7588 ;;
7589 *)
7590 lt_prog_compiler_pic='+Z'
7591 ;;
7592 esac
7593 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7594 lt_prog_compiler_static='${wl}-a ${wl}archive'
7595 ;;
7596
7597 irix5* | irix6* | nonstopux*)
7598 lt_prog_compiler_wl='-Wl,'
7599 # PIC (with -KPIC) is the default.
7600 lt_prog_compiler_static='-non_shared'
7601 ;;
7602
7603 newsos6)
7604 lt_prog_compiler_pic='-KPIC'
7605 lt_prog_compiler_static='-Bstatic'
7606 ;;
7607
7608 linux*)
7609 case $CC in
7610 icc* | ecc*)
7611 lt_prog_compiler_wl='-Wl,'
7612 lt_prog_compiler_pic='-KPIC'
7613 lt_prog_compiler_static='-static'
7614 ;;
7615 ccc*)
7616 lt_prog_compiler_wl='-Wl,'
7617 # All Alpha code is PIC.
7618 lt_prog_compiler_static='-non_shared'
7619 ;;
7620 esac
7621 ;;
7622
7623 osf3* | osf4* | osf5*)
7624 lt_prog_compiler_wl='-Wl,'
7625 # All OSF/1 code is PIC.
7626 lt_prog_compiler_static='-non_shared'
7627 ;;
7628
7629 sco3.2v5*)
7630 lt_prog_compiler_pic='-Kpic'
7631 lt_prog_compiler_static='-dn'
7632 ;;
7633
7634 solaris*)
7635 lt_prog_compiler_wl='-Wl,'
7636 lt_prog_compiler_pic='-KPIC'
7637 lt_prog_compiler_static='-Bstatic'
7638 ;;
7639
7640 sunos4*)
7641 lt_prog_compiler_wl='-Qoption ld '
7642 lt_prog_compiler_pic='-PIC'
7643 lt_prog_compiler_static='-Bstatic'
7644 ;;
7645
7646 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_pic='-KPIC'
7649 lt_prog_compiler_static='-Bstatic'
7650 ;;
7651
7652 sysv4*MP*)
7653 if test -d /usr/nec ;then
7654 lt_prog_compiler_pic='-Kconform_pic'
7655 lt_prog_compiler_static='-Bstatic'
7656 fi
7657 ;;
7658
7659 uts4*)
7660 lt_prog_compiler_pic='-pic'
7661 lt_prog_compiler_static='-Bstatic'
7662 ;;
7663
7664 *)
7665 lt_prog_compiler_can_build_shared=no
7666 ;;
7667 esac
7668 fi
7669
7670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7671 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7672
7673 #
7674 # Check to make sure the PIC flag actually works.
7675 #
7676 if test -n "$lt_prog_compiler_pic"; then
7677
7678 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7679 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7680 if test "${lt_prog_compiler_pic_works+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 lt_prog_compiler_pic_works=no
7684 ac_outfile=conftest.$ac_objext
7685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7686 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7693 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>conftest.err)
7698 ac_status=$?
7699 cat conftest.err >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings
7704 if test ! -s conftest.err; then
7705 lt_prog_compiler_pic_works=yes
7706 fi
7707 fi
7708 $rm conftest*
7709
7710 fi
7711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7712 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7713
7714 if test x"$lt_prog_compiler_pic_works" = xyes; then
7715 case $lt_prog_compiler_pic in
7716 "" | " "*) ;;
7717 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7718 esac
7719 else
7720 lt_prog_compiler_pic=
7721 lt_prog_compiler_can_build_shared=no
7722 fi
7723
7724 fi
7725 case "$host_os" in
7726 # For platforms which do not support PIC, -DPIC is meaningless:
7727 *djgpp*)
7728 lt_prog_compiler_pic=
7729 ;;
7730 *)
7731 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7732 ;;
7733 esac
7734
7735 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7736 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7737 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740 lt_cv_prog_compiler_c_o=no
7741 $rm -r conftest 2>/dev/null
7742 mkdir conftest
7743 cd conftest
7744 mkdir out
7745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7746
7747 lt_compiler_flag="-o out/conftest2.$ac_objext"
7748 # Insert the option either (1) after the last *FLAGS variable, or
7749 # (2) before a word containing "conftest.", or (3) at the end.
7750 # Note that $ac_compile itself does not contain backslashes and begins
7751 # with a dollar sign (not a hyphen), so the echo should work correctly.
7752 lt_compile=`echo "$ac_compile" | $SED \
7753 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7755 -e 's:$: $lt_compiler_flag:'`
7756 (eval echo "\"\$as_me:7756: $lt_compile\"" >&5)
7757 (eval "$lt_compile" 2>out/conftest.err)
7758 ac_status=$?
7759 cat out/conftest.err >&5
7760 echo "$as_me:7760: \$? = $ac_status" >&5
7761 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7762 then
7763 # The compiler can only warn and ignore the option if not recognized
7764 # So say no if there are warnings
7765 if test ! -s out/conftest.err; then
7766 lt_cv_prog_compiler_c_o=yes
7767 fi
7768 fi
7769 chmod u+w .
7770 $rm conftest*
7771 # SGI C++ compiler will create directory out/ii_files/ for
7772 # template instantiation
7773 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7774 $rm out/* && rmdir out
7775 cd ..
7776 rmdir conftest
7777 $rm conftest*
7778
7779 fi
7780 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7781 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7782
7783
7784 hard_links="nottested"
7785 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7786 # do not overwrite the value of need_locks provided by the user
7787 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7788 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7789 hard_links=yes
7790 $rm conftest*
7791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7792 touch conftest.a
7793 ln conftest.a conftest.b 2>&5 || hard_links=no
7794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7795 { echo "$as_me:$LINENO: result: $hard_links" >&5
7796 echo "${ECHO_T}$hard_links" >&6; }
7797 if test "$hard_links" = no; then
7798 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7799 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7800 need_locks=warn
7801 fi
7802 else
7803 need_locks=no
7804 fi
7805
7806 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7807 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7808
7809 runpath_var=
7810 allow_undefined_flag=
7811 enable_shared_with_static_runtimes=no
7812 archive_cmds=
7813 archive_expsym_cmds=
7814 old_archive_From_new_cmds=
7815 old_archive_from_expsyms_cmds=
7816 export_dynamic_flag_spec=
7817 whole_archive_flag_spec=
7818 thread_safe_flag_spec=
7819 hardcode_libdir_flag_spec=
7820 hardcode_libdir_flag_spec_ld=
7821 hardcode_libdir_separator=
7822 hardcode_direct=no
7823 hardcode_minus_L=no
7824 hardcode_shlibpath_var=unsupported
7825 link_all_deplibs=unknown
7826 hardcode_automatic=no
7827 module_cmds=
7828 module_expsym_cmds=
7829 always_export_symbols=no
7830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7831 # include_expsyms should be a list of space-separated symbols to be *always*
7832 # included in the symbol list
7833 include_expsyms=
7834 # exclude_expsyms can be an extended regexp of symbols to exclude
7835 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7836 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7837 # as well as any symbol that contains `d'.
7838 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7840 # platforms (ab)use it in PIC code, but their linkers get confused if
7841 # the symbol is explicitly referenced. Since portable code cannot
7842 # rely on this symbol name, it's probably fine to never include it in
7843 # preloaded symbol tables.
7844 extract_expsyms_cmds=
7845
7846 case $host_os in
7847 cygwin* | mingw* | pw32*)
7848 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7849 # When not using gcc, we currently assume that we are using
7850 # Microsoft Visual C++.
7851 if test "$GCC" != yes; then
7852 with_gnu_ld=no
7853 fi
7854 ;;
7855 openbsd*)
7856 with_gnu_ld=no
7857 ;;
7858 esac
7859
7860 ld_shlibs=yes
7861 if test "$with_gnu_ld" = yes; then
7862 # If archive_cmds runs LD, not CC, wlarc should be empty
7863 wlarc='${wl}'
7864
7865 # See if GNU ld supports shared libraries.
7866 case $host_os in
7867 aix3* | aix4* | aix5*)
7868 # On AIX/PPC, the GNU linker is very broken
7869 if test "$host_cpu" != ia64; then
7870 ld_shlibs=no
7871 cat <<EOF 1>&2
7872
7873 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7874 *** to be unable to reliably create shared libraries on AIX.
7875 *** Therefore, libtool is disabling shared libraries support. If you
7876 *** really care for shared libraries, you may want to modify your PATH
7877 *** so that a non-GNU linker is found, and then restart.
7878
7879 EOF
7880 fi
7881 ;;
7882
7883 amigaos*)
7884 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)'
7885 hardcode_libdir_flag_spec='-L$libdir'
7886 hardcode_minus_L=yes
7887
7888 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7889 # that the semantics of dynamic libraries on AmigaOS, at least up
7890 # to version 4, is to share data among multiple programs linked
7891 # with the same dynamic library. Since this doesn't match the
7892 # behavior of shared libraries on other platforms, we can't use
7893 # them.
7894 ld_shlibs=no
7895 ;;
7896
7897 beos*)
7898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7899 allow_undefined_flag=unsupported
7900 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7901 # support --undefined. This deserves some investigation. FIXME
7902 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7903 else
7904 ld_shlibs=no
7905 fi
7906 ;;
7907
7908 cygwin* | mingw* | pw32*)
7909 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7910 # as there is no search path for DLLs.
7911 hardcode_libdir_flag_spec='-L$libdir'
7912 allow_undefined_flag=unsupported
7913 always_export_symbols=no
7914 enable_shared_with_static_runtimes=yes
7915 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7916
7917 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7919 # If the export-symbols file already is a .def file (1st line
7920 # is EXPORTS), use it as is; otherwise, prepend...
7921 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7922 cp $export_symbols $output_objdir/$soname.def;
7923 else
7924 echo EXPORTS > $output_objdir/$soname.def;
7925 cat $export_symbols >> $output_objdir/$soname.def;
7926 fi~
7927 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7928 else
7929 ld_shlibs=no
7930 fi
7931 ;;
7932
7933 netbsd*)
7934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7935 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7936 wlarc=
7937 else
7938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7940 fi
7941 ;;
7942
7943 solaris* | sysv5*)
7944 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7945 ld_shlibs=no
7946 cat <<EOF 1>&2
7947
7948 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7949 *** create shared libraries on Solaris systems. Therefore, libtool
7950 *** is disabling shared libraries support. We urge you to upgrade GNU
7951 *** binutils to release 2.9.1 or newer. Another option is to modify
7952 *** your PATH or compiler configuration so that the native linker is
7953 *** used, and then restart.
7954
7955 EOF
7956 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7959 else
7960 ld_shlibs=no
7961 fi
7962 ;;
7963
7964 sunos4*)
7965 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7966 wlarc=
7967 hardcode_direct=yes
7968 hardcode_shlibpath_var=no
7969 ;;
7970
7971 linux*)
7972 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7973 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7974 archive_cmds="$tmp_archive_cmds"
7975 supports_anon_versioning=no
7976 case `$LD -v 2>/dev/null` in
7977 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7978 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7979 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7980 *\ 2.11.*) ;; # other 2.11 versions
7981 *) supports_anon_versioning=yes ;;
7982 esac
7983 if test $supports_anon_versioning = yes; then
7984 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7986 $echo "local: *; };" >> $output_objdir/$libname.ver~
7987 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7988 else
7989 archive_expsym_cmds="$tmp_archive_cmds"
7990 fi
7991 else
7992 ld_shlibs=no
7993 fi
7994 ;;
7995
7996 *)
7997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8000 else
8001 ld_shlibs=no
8002 fi
8003 ;;
8004 esac
8005
8006 if test "$ld_shlibs" = yes; then
8007 runpath_var=LD_RUN_PATH
8008 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8009 export_dynamic_flag_spec='${wl}--export-dynamic'
8010 # ancient GNU ld didn't support --whole-archive et. al.
8011 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8012 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8013 else
8014 whole_archive_flag_spec=
8015 fi
8016 fi
8017 else
8018 # PORTME fill in a description of your system's linker (not GNU ld)
8019 case $host_os in
8020 aix3*)
8021 allow_undefined_flag=unsupported
8022 always_export_symbols=yes
8023 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'
8024 # Note: this linker hardcodes the directories in LIBPATH if there
8025 # are no directories specified by -L.
8026 hardcode_minus_L=yes
8027 if test "$GCC" = yes && test -z "$link_static_flag"; then
8028 # Neither direct hardcoding nor static linking is supported with a
8029 # broken collect2.
8030 hardcode_direct=unsupported
8031 fi
8032 ;;
8033
8034 aix4* | aix5*)
8035 if test "$host_cpu" = ia64; then
8036 # On IA64, the linker does run time linking by default, so we don't
8037 # have to do anything special.
8038 aix_use_runtimelinking=no
8039 exp_sym_flag='-Bexport'
8040 no_entry_flag=""
8041 else
8042 # If we're using GNU nm, then we don't want the "-C" option.
8043 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8044 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8045 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'
8046 else
8047 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'
8048 fi
8049 aix_use_runtimelinking=no
8050
8051 # Test if we are trying to use run time linking or normal
8052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8053 # need to do runtime linking.
8054 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8055 for ld_flag in $LDFLAGS; do
8056 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8057 aix_use_runtimelinking=yes
8058 break
8059 fi
8060 done
8061 esac
8062
8063 exp_sym_flag='-bexport'
8064 no_entry_flag='-bnoentry'
8065 fi
8066
8067 # When large executables or shared objects are built, AIX ld can
8068 # have problems creating the table of contents. If linking a library
8069 # or program results in "error TOC overflow" add -mminimal-toc to
8070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8072
8073 archive_cmds=''
8074 hardcode_direct=yes
8075 hardcode_libdir_separator=':'
8076 link_all_deplibs=yes
8077
8078 if test "$GCC" = yes; then
8079 case $host_os in aix4.012|aix4.012.*)
8080 # We only want to do this on AIX 4.2 and lower, the check
8081 # below for broken collect2 doesn't work under 4.3+
8082 collect2name=`${CC} -print-prog-name=collect2`
8083 if test -f "$collect2name" && \
8084 strings "$collect2name" | grep resolve_lib_name >/dev/null
8085 then
8086 # We have reworked collect2
8087 hardcode_direct=yes
8088 else
8089 # We have old collect2
8090 hardcode_direct=unsupported
8091 # It fails to find uninstalled libraries when the uninstalled
8092 # path is not listed in the libpath. Setting hardcode_minus_L
8093 # to unsupported forces relinking
8094 hardcode_minus_L=yes
8095 hardcode_libdir_flag_spec='-L$libdir'
8096 hardcode_libdir_separator=
8097 fi
8098 esac
8099 shared_flag='-shared'
8100 else
8101 # not using gcc
8102 if test "$host_cpu" = ia64; then
8103 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8104 # chokes on -Wl,-G. The following line is correct:
8105 shared_flag='-G'
8106 else
8107 if test "$aix_use_runtimelinking" = yes; then
8108 shared_flag='${wl}-G'
8109 else
8110 shared_flag='${wl}-bM:SRE'
8111 fi
8112 fi
8113 fi
8114
8115 # It seems that -bexpall does not export symbols beginning with
8116 # underscore (_), so it is better to generate a list of symbols to export.
8117 always_export_symbols=yes
8118 if test "$aix_use_runtimelinking" = yes; then
8119 # Warning - without using the other runtime loading flags (-brtl),
8120 # -berok will link without error, but may produce a broken library.
8121 allow_undefined_flag='-berok'
8122 # Determine the default libpath from the value encoded in an empty executable.
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129
8130 int
8131 main ()
8132 {
8133
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (ac_try="$ac_link"
8140 case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_link") 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest$ac_exeext &&
8155 $as_test_x conftest$ac_exeext; then
8156
8157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8158 }'`
8159 # Check for a 64-bit object if we didn't find anything.
8160 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; }
8161 }'`; fi
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8165
8166
8167 fi
8168
8169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8170 conftest$ac_exeext conftest.$ac_ext
8171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8172
8173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8174 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8175 else
8176 if test "$host_cpu" = ia64; then
8177 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8178 allow_undefined_flag="-z nodefs"
8179 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8180 else
8181 # Determine the default libpath from the value encoded in an empty executable.
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188
8189 int
8190 main ()
8191 {
8192
8193 ;
8194 return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (ac_try="$ac_link"
8199 case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_link") 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8213 } && test -s conftest$ac_exeext &&
8214 $as_test_x conftest$ac_exeext; then
8215
8216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8217 }'`
8218 # Check for a 64-bit object if we didn't find anything.
8219 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; }
8220 }'`; fi
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225
8226 fi
8227
8228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8229 conftest$ac_exeext conftest.$ac_ext
8230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8231
8232 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8233 # Warning - without using the other run time loading flags,
8234 # -berok will link without error, but may produce a broken library.
8235 no_undefined_flag=' ${wl}-bernotok'
8236 allow_undefined_flag=' ${wl}-berok'
8237 # -bexpall does not export symbols beginning with underscore (_)
8238 always_export_symbols=yes
8239 # Exported symbols can be pulled into shared objects from archives
8240 whole_archive_flag_spec=' '
8241 archive_cmds_need_lc=yes
8242 # This is similar to how AIX traditionally builds it's shared libraries.
8243 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8244 fi
8245 fi
8246 ;;
8247
8248 amigaos*)
8249 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)'
8250 hardcode_libdir_flag_spec='-L$libdir'
8251 hardcode_minus_L=yes
8252 # see comment about different semantics on the GNU ld section
8253 ld_shlibs=no
8254 ;;
8255
8256 bsdi[45]*)
8257 export_dynamic_flag_spec=-rdynamic
8258 ;;
8259
8260 cygwin* | mingw* | pw32*)
8261 # When not using gcc, we currently assume that we are using
8262 # Microsoft Visual C++.
8263 # hardcode_libdir_flag_spec is actually meaningless, as there is
8264 # no search path for DLLs.
8265 hardcode_libdir_flag_spec=' '
8266 allow_undefined_flag=unsupported
8267 # Tell ltmain to make .lib files, not .a files.
8268 libext=lib
8269 # Tell ltmain to make .dll files, not .so files.
8270 shrext_cmds=".dll"
8271 # FIXME: Setting linknames here is a bad hack.
8272 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8273 # The linker will automatically build a .lib file if we build a DLL.
8274 old_archive_From_new_cmds='true'
8275 # FIXME: Should let the user specify the lib program.
8276 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8277 fix_srcfile_path='`cygpath -w "$srcfile"`'
8278 enable_shared_with_static_runtimes=yes
8279 ;;
8280
8281 darwin* | rhapsody*)
8282 case "$host_os" in
8283 rhapsody* | darwin1.[012])
8284 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8285 ;;
8286 *) # Darwin 1.3 on
8287 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8288 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8289 else
8290 case ${MACOSX_DEPLOYMENT_TARGET} in
8291 10.[012])
8292 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8293 ;;
8294 10.*)
8295 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8296 ;;
8297 esac
8298 fi
8299 ;;
8300 esac
8301 archive_cmds_need_lc=no
8302 hardcode_direct=no
8303 hardcode_automatic=yes
8304 hardcode_shlibpath_var=unsupported
8305 whole_archive_flag_spec=''
8306 link_all_deplibs=yes
8307 if test "$GCC" = yes ; then
8308 output_verbose_link_cmd='echo'
8309 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8310 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8311 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8312 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}'
8313 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}'
8314 else
8315 case "$cc_basename" in
8316 xlc*)
8317 output_verbose_link_cmd='echo'
8318 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8319 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8320 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8321 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}'
8322 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}'
8323 ;;
8324 *)
8325 ld_shlibs=no
8326 ;;
8327 esac
8328 fi
8329 ;;
8330
8331 dgux*)
8332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333 hardcode_libdir_flag_spec='-L$libdir'
8334 hardcode_shlibpath_var=no
8335 ;;
8336
8337 freebsd1*)
8338 ld_shlibs=no
8339 ;;
8340
8341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8342 # support. Future versions do this automatically, but an explicit c++rt0.o
8343 # does not break anything, and helps significantly (at the cost of a little
8344 # extra space).
8345 freebsd2.2*)
8346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8347 hardcode_libdir_flag_spec='-R$libdir'
8348 hardcode_direct=yes
8349 hardcode_shlibpath_var=no
8350 ;;
8351
8352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8353 freebsd2*)
8354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8355 hardcode_direct=yes
8356 hardcode_minus_L=yes
8357 hardcode_shlibpath_var=no
8358 ;;
8359
8360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8361 freebsd* | kfreebsd*-gnu)
8362 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8363 hardcode_libdir_flag_spec='-R$libdir'
8364 hardcode_direct=yes
8365 hardcode_shlibpath_var=no
8366 ;;
8367
8368 hpux9*)
8369 if test "$GCC" = yes; then
8370 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'
8371 else
8372 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'
8373 fi
8374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8375 hardcode_libdir_separator=:
8376 hardcode_direct=yes
8377
8378 # hardcode_minus_L: Not really in the search PATH,
8379 # but as the default location of the library.
8380 hardcode_minus_L=yes
8381 export_dynamic_flag_spec='${wl}-E'
8382 ;;
8383
8384 hpux10* | hpux11*)
8385 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8386 case "$host_cpu" in
8387 hppa*64*|ia64*)
8388 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8389 ;;
8390 *)
8391 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8392 ;;
8393 esac
8394 else
8395 case "$host_cpu" in
8396 hppa*64*|ia64*)
8397 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8398 ;;
8399 *)
8400 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8401 ;;
8402 esac
8403 fi
8404 if test "$with_gnu_ld" = no; then
8405 case "$host_cpu" in
8406 hppa*64*)
8407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8408 hardcode_libdir_flag_spec_ld='+b $libdir'
8409 hardcode_libdir_separator=:
8410 hardcode_direct=no
8411 hardcode_shlibpath_var=no
8412 ;;
8413 ia64*)
8414 hardcode_libdir_flag_spec='-L$libdir'
8415 hardcode_direct=no
8416 hardcode_shlibpath_var=no
8417
8418 # hardcode_minus_L: Not really in the search PATH,
8419 # but as the default location of the library.
8420 hardcode_minus_L=yes
8421 ;;
8422 *)
8423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8424 hardcode_libdir_separator=:
8425 hardcode_direct=yes
8426 export_dynamic_flag_spec='${wl}-E'
8427
8428 # hardcode_minus_L: Not really in the search PATH,
8429 # but as the default location of the library.
8430 hardcode_minus_L=yes
8431 ;;
8432 esac
8433 fi
8434 ;;
8435
8436 irix5* | irix6* | nonstopux*)
8437 if test "$GCC" = yes; then
8438 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'
8439 else
8440 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'
8441 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8442 fi
8443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444 hardcode_libdir_separator=:
8445 link_all_deplibs=yes
8446 ;;
8447
8448 netbsd*)
8449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8451 else
8452 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8453 fi
8454 hardcode_libdir_flag_spec='-R$libdir'
8455 hardcode_direct=yes
8456 hardcode_shlibpath_var=no
8457 ;;
8458
8459 newsos6)
8460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461 hardcode_direct=yes
8462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8463 hardcode_libdir_separator=:
8464 hardcode_shlibpath_var=no
8465 ;;
8466
8467 openbsd*)
8468 hardcode_direct=yes
8469 hardcode_shlibpath_var=no
8470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8472 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8473 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8474 export_dynamic_flag_spec='${wl}-E'
8475 else
8476 case $host_os in
8477 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8479 hardcode_libdir_flag_spec='-R$libdir'
8480 ;;
8481 *)
8482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8484 ;;
8485 esac
8486 fi
8487 ;;
8488
8489 os2*)
8490 hardcode_libdir_flag_spec='-L$libdir'
8491 hardcode_minus_L=yes
8492 allow_undefined_flag=unsupported
8493 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'
8494 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8495 ;;
8496
8497 osf3*)
8498 if test "$GCC" = yes; then
8499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8500 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'
8501 else
8502 allow_undefined_flag=' -expect_unresolved \*'
8503 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'
8504 fi
8505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8506 hardcode_libdir_separator=:
8507 ;;
8508
8509 osf4* | osf5*) # as osf3* with the addition of -msym flag
8510 if test "$GCC" = yes; then
8511 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8512 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'
8513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514 else
8515 allow_undefined_flag=' -expect_unresolved \*'
8516 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'
8517 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8518 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8519
8520 # Both c and cxx compiler support -rpath directly
8521 hardcode_libdir_flag_spec='-rpath $libdir'
8522 fi
8523 hardcode_libdir_separator=:
8524 ;;
8525
8526 sco3.2v5*)
8527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8528 hardcode_shlibpath_var=no
8529 export_dynamic_flag_spec='${wl}-Bexport'
8530 runpath_var=LD_RUN_PATH
8531 hardcode_runpath_var=yes
8532 ;;
8533
8534 solaris*)
8535 no_undefined_flag=' -z text'
8536 if test "$GCC" = yes; then
8537 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8539 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8540 else
8541 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8543 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8544 fi
8545 hardcode_libdir_flag_spec='-R$libdir'
8546 hardcode_shlibpath_var=no
8547 case $host_os in
8548 solaris2.[0-5] | solaris2.[0-5].*) ;;
8549 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8550 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8551 esac
8552 link_all_deplibs=yes
8553 ;;
8554
8555 sunos4*)
8556 if test "x$host_vendor" = xsequent; then
8557 # Use $CC to link under sequent, because it throws in some extra .o
8558 # files that make .init and .fini sections work.
8559 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8560 else
8561 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8562 fi
8563 hardcode_libdir_flag_spec='-L$libdir'
8564 hardcode_direct=yes
8565 hardcode_minus_L=yes
8566 hardcode_shlibpath_var=no
8567 ;;
8568
8569 sysv4)
8570 case $host_vendor in
8571 sni)
8572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8573 hardcode_direct=yes # is this really true???
8574 ;;
8575 siemens)
8576 ## LD is ld it makes a PLAMLIB
8577 ## CC just makes a GrossModule.
8578 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8579 reload_cmds='$CC -r -o $output$reload_objs'
8580 hardcode_direct=no
8581 ;;
8582 motorola)
8583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8584 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8585 ;;
8586 esac
8587 runpath_var='LD_RUN_PATH'
8588 hardcode_shlibpath_var=no
8589 ;;
8590
8591 sysv4.3*)
8592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8593 hardcode_shlibpath_var=no
8594 export_dynamic_flag_spec='-Bexport'
8595 ;;
8596
8597 sysv4*MP*)
8598 if test -d /usr/nec; then
8599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600 hardcode_shlibpath_var=no
8601 runpath_var=LD_RUN_PATH
8602 hardcode_runpath_var=yes
8603 ld_shlibs=yes
8604 fi
8605 ;;
8606
8607 sysv4.2uw2*)
8608 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8609 hardcode_direct=yes
8610 hardcode_minus_L=no
8611 hardcode_shlibpath_var=no
8612 hardcode_runpath_var=yes
8613 runpath_var=LD_RUN_PATH
8614 ;;
8615
8616 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8617 no_undefined_flag='${wl}-z ${wl}text'
8618 if test "$GCC" = yes; then
8619 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8620 else
8621 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8622 fi
8623 runpath_var='LD_RUN_PATH'
8624 hardcode_shlibpath_var=no
8625 ;;
8626
8627 sysv5*)
8628 no_undefined_flag=' -z text'
8629 # $CC -shared without GNU ld will not create a library from C++
8630 # object files and a static libstdc++, better avoid it by now
8631 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8632 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8634 hardcode_libdir_flag_spec=
8635 hardcode_shlibpath_var=no
8636 runpath_var='LD_RUN_PATH'
8637 ;;
8638
8639 uts4*)
8640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641 hardcode_libdir_flag_spec='-L$libdir'
8642 hardcode_shlibpath_var=no
8643 ;;
8644
8645 *)
8646 ld_shlibs=no
8647 ;;
8648 esac
8649 fi
8650
8651 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8652 echo "${ECHO_T}$ld_shlibs" >&6; }
8653 test "$ld_shlibs" = no && can_build_shared=no
8654
8655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8656 if test "$GCC" = yes; then
8657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8658 fi
8659
8660 #
8661 # Do we need to explicitly link libc?
8662 #
8663 case "x$archive_cmds_need_lc" in
8664 x|xyes)
8665 # Assume -lc should be added
8666 archive_cmds_need_lc=yes
8667
8668 if test "$enable_shared" = yes && test "$GCC" = yes; then
8669 case $archive_cmds in
8670 *'~'*)
8671 # FIXME: we may have to deal with multi-command sequences.
8672 ;;
8673 '$CC '*)
8674 # Test whether the compiler implicitly links with -lc since on some
8675 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8676 # to ld, don't add -lc before -lgcc.
8677 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8678 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8679 $rm conftest*
8680 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8681
8682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8683 (eval $ac_compile) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } 2>conftest.err; then
8687 soname=conftest
8688 lib=conftest
8689 libobjs=conftest.$ac_objext
8690 deplibs=
8691 wl=$lt_prog_compiler_wl
8692 compiler_flags=-v
8693 linker_flags=-v
8694 verstring=
8695 output_objdir=.
8696 libname=conftest
8697 lt_save_allow_undefined_flag=$allow_undefined_flag
8698 allow_undefined_flag=
8699 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8700 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }
8704 then
8705 archive_cmds_need_lc=no
8706 else
8707 archive_cmds_need_lc=yes
8708 fi
8709 allow_undefined_flag=$lt_save_allow_undefined_flag
8710 else
8711 cat conftest.err 1>&5
8712 fi
8713 $rm conftest*
8714 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8715 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8716 ;;
8717 esac
8718 fi
8719 ;;
8720 esac
8721
8722 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8723 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8724 library_names_spec=
8725 libname_spec='lib$name'
8726 soname_spec=
8727 shrext_cmds=".so"
8728 postinstall_cmds=
8729 postuninstall_cmds=
8730 finish_cmds=
8731 finish_eval=
8732 shlibpath_var=
8733 shlibpath_overrides_runpath=unknown
8734 version_type=none
8735 dynamic_linker="$host_os ld.so"
8736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8737 if test "$GCC" = yes; then
8738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8739 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8740 # if the path contains ";" then we assume it to be the separator
8741 # otherwise default to the standard path separator (i.e. ":") - it is
8742 # assumed that no part of a normal pathname contains ";" but that should
8743 # okay in the real world where ";" in dirpaths is itself problematic.
8744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8745 else
8746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8747 fi
8748 else
8749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8750 fi
8751 need_lib_prefix=unknown
8752 hardcode_into_libs=no
8753
8754 # when you set need_version to no, make sure it does not cause -set_version
8755 # flags to be left without arguments
8756 need_version=unknown
8757
8758 case $host_os in
8759 aix3*)
8760 version_type=linux
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8762 shlibpath_var=LIBPATH
8763
8764 # AIX 3 has no versioning support, so we append a major version to the name.
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 ;;
8767
8768 aix4* | aix5*)
8769 version_type=linux
8770 need_lib_prefix=no
8771 need_version=no
8772 hardcode_into_libs=yes
8773 if test "$host_cpu" = ia64; then
8774 # AIX 5 supports IA64
8775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8776 shlibpath_var=LD_LIBRARY_PATH
8777 else
8778 # With GCC up to 2.95.x, collect2 would create an import file
8779 # for dependence libraries. The import file would start with
8780 # the line `#! .'. This would cause the generated library to
8781 # depend on `.', always an invalid library. This was fixed in
8782 # development snapshots of GCC prior to 3.0.
8783 case $host_os in
8784 aix4 | aix4.[01] | aix4.[01].*)
8785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8786 echo ' yes '
8787 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8788 :
8789 else
8790 can_build_shared=no
8791 fi
8792 ;;
8793 esac
8794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8795 # soname into executable. Probably we can add versioning support to
8796 # collect2, so additional links can be useful in future.
8797 if test "$aix_use_runtimelinking" = yes; then
8798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8799 # instead of lib<name>.a to let people know that these are not
8800 # typical AIX shared libraries.
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 else
8803 # We preserve .a as extension for shared libraries through AIX4.2
8804 # and later when we are not doing run time linking.
8805 library_names_spec='${libname}${release}.a $libname.a'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 fi
8808 shlibpath_var=LIBPATH
8809 fi
8810 ;;
8811
8812 amigaos*)
8813 library_names_spec='$libname.ixlibrary $libname.a'
8814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8815 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'
8816 ;;
8817
8818 beos*)
8819 library_names_spec='${libname}${shared_ext}'
8820 dynamic_linker="$host_os ld.so"
8821 shlibpath_var=LIBRARY_PATH
8822 ;;
8823
8824 bsdi[45]*)
8825 version_type=linux
8826 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8833 # the default ld.so.conf also contains /usr/contrib/lib and
8834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8835 # libtool to hard-code these into programs
8836 ;;
8837
8838 cygwin* | mingw* | pw32*)
8839 version_type=windows
8840 shrext_cmds=".dll"
8841 need_version=no
8842 need_lib_prefix=no
8843
8844 case $GCC,$host_os in
8845 yes,cygwin* | yes,mingw* | yes,pw32*)
8846 library_names_spec='$libname.dll.a'
8847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8848 postinstall_cmds='base_file=`basename \${file}`~
8849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8850 dldir=$destdir/`dirname \$dlpath`~
8851 test -d \$dldir || mkdir -p \$dldir~
8852 $install_prog $dir/$dlname \$dldir/$dlname'
8853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8854 dlpath=$dir/\$dldll~
8855 $rm \$dlpath'
8856 shlibpath_overrides_runpath=yes
8857
8858 case $host_os in
8859 cygwin*)
8860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8863 ;;
8864 mingw*)
8865 # MinGW DLLs use traditional 'lib' prefix
8866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8869 # It is most probably a Windows format PATH printed by
8870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8871 # path with ; separators, and with drive letters. We can handle the
8872 # drive letters (cygwin fileutils understands them), so leave them,
8873 # especially as we might pass files found there to a mingw objdump,
8874 # which wouldn't understand a cygwinified path. Ahh.
8875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8876 else
8877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8878 fi
8879 ;;
8880 pw32*)
8881 # pw32 DLLs use 'pw' prefix rather than 'lib'
8882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8883 ;;
8884 esac
8885 ;;
8886
8887 linux*)
8888 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 supports_anon_versioning=no
8891 case `$LD -v 2>/dev/null` in
8892 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8893 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8894 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8895 *\ 2.11.*) ;; # other 2.11 versions
8896 *) supports_anon_versioning=yes ;;
8897 esac
8898 if test $supports_anon_versioning = yes; then
8899 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8901 $echo "local: *; };" >> $output_objdir/$libname.ver~
8902 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8903 else
8904 $archive_expsym_cmds="$archive_cmds"
8905 fi
8906 else
8907 ld_shlibs=no
8908 fi
8909 ;;
8910
8911 *)
8912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8913 ;;
8914 esac
8915 dynamic_linker='Win32 ld.exe'
8916 # FIXME: first we should search . and the directory the executable is in
8917 shlibpath_var=PATH
8918 ;;
8919
8920 darwin* | rhapsody*)
8921 dynamic_linker="$host_os dyld"
8922 version_type=darwin
8923 need_lib_prefix=no
8924 need_version=no
8925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8926 soname_spec='${libname}${release}${major}$shared_ext'
8927 shlibpath_overrides_runpath=yes
8928 shlibpath_var=DYLD_LIBRARY_PATH
8929 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8931 if test "$GCC" = yes; then
8932 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"`
8933 else
8934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8935 fi
8936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8937 ;;
8938
8939 dgux*)
8940 version_type=linux
8941 need_lib_prefix=no
8942 need_version=no
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 ;;
8947
8948 freebsd1*)
8949 dynamic_linker=no
8950 ;;
8951
8952 kfreebsd*-gnu)
8953 version_type=linux
8954 need_lib_prefix=no
8955 need_version=no
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8961 dynamic_linker='GNU ld.so'
8962 ;;
8963
8964 freebsd*)
8965 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8966 version_type=freebsd-$objformat
8967 case $version_type in
8968 freebsd-elf*)
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8970 need_version=no
8971 need_lib_prefix=no
8972 ;;
8973 freebsd-*)
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8975 need_version=yes
8976 ;;
8977 esac
8978 shlibpath_var=LD_LIBRARY_PATH
8979 case $host_os in
8980 freebsd2*)
8981 shlibpath_overrides_runpath=yes
8982 ;;
8983 freebsd3.01* | freebsdelf3.01*)
8984 shlibpath_overrides_runpath=yes
8985 hardcode_into_libs=yes
8986 ;;
8987 *) # from 3.2 on
8988 shlibpath_overrides_runpath=no
8989 hardcode_into_libs=yes
8990 ;;
8991 esac
8992 ;;
8993
8994 gnu*)
8995 version_type=linux
8996 need_lib_prefix=no
8997 need_version=no
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8999 soname_spec='${libname}${release}${shared_ext}$major'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 hardcode_into_libs=yes
9002 ;;
9003
9004 hpux9* | hpux10* | hpux11*)
9005 # Give a soname corresponding to the major version so that dld.sl refuses to
9006 # link against other versions.
9007 version_type=sunos
9008 need_lib_prefix=no
9009 need_version=no
9010 case "$host_cpu" in
9011 ia64*)
9012 shrext_cmds='.so'
9013 hardcode_into_libs=yes
9014 dynamic_linker="$host_os dld.so"
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 if test "X$HPUX_IA64_MODE" = X32; then
9020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9021 else
9022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9023 fi
9024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9025 ;;
9026 hppa*64*)
9027 shrext_cmds='.sl'
9028 hardcode_into_libs=yes
9029 dynamic_linker="$host_os dld.sl"
9030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9036 ;;
9037 *)
9038 shrext_cmds='.sl'
9039 dynamic_linker="$host_os dld.sl"
9040 shlibpath_var=SHLIB_PATH
9041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 ;;
9045 esac
9046 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9047 postinstall_cmds='chmod 555 $lib'
9048 ;;
9049
9050 irix5* | irix6* | nonstopux*)
9051 case $host_os in
9052 nonstopux*) version_type=nonstopux ;;
9053 *)
9054 if test "$lt_cv_prog_gnu_ld" = yes; then
9055 version_type=linux
9056 else
9057 version_type=irix
9058 fi ;;
9059 esac
9060 need_lib_prefix=no
9061 need_version=no
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 case $host_os in
9065 irix5* | nonstopux*)
9066 libsuff= shlibsuff=
9067 ;;
9068 *)
9069 case $LD in # libtool.m4 will add one of these switches to LD
9070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9071 libsuff= shlibsuff= libmagic=32-bit;;
9072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9073 libsuff=32 shlibsuff=N32 libmagic=N32;;
9074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9076 *) libsuff= shlibsuff= libmagic=never-match;;
9077 esac
9078 ;;
9079 esac
9080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9081 shlibpath_overrides_runpath=no
9082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9084 hardcode_into_libs=yes
9085 ;;
9086
9087 # No shared lib support for Linux oldld, aout, or coff.
9088 linux*oldld* | linux*aout* | linux*coff*)
9089 dynamic_linker=no
9090 ;;
9091
9092 # This must be Linux ELF.
9093 linux*)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=no
9102 # This implies no fast_install, which is unacceptable.
9103 # Some rework will be needed to allow for fast_install
9104 # before this can be enabled.
9105 hardcode_into_libs=yes
9106
9107 # Append ld.so.conf contents to the search path
9108 if test -f /etc/ld.so.conf; then
9109 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9111 fi
9112
9113 case $host_cpu:$lt_cv_cc_64bit_output in
9114 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
9115 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
9116 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
9117 ;;
9118 esac
9119
9120 # We used to test for /lib/ld.so.1 and disable shared libraries on
9121 # powerpc, because MkLinux only supported shared libraries with the
9122 # GNU dynamic linker. Since this was broken with cross compilers,
9123 # most powerpc-linux boxes support dynamic linking these days and
9124 # people can always --disable-shared, the test was removed, and we
9125 # assume the GNU/Linux dynamic linker is in use.
9126 dynamic_linker='GNU/Linux ld.so'
9127
9128 # Find out which ABI we are using (multilib Linux x86_64 hack).
9129 libsuff=
9130 case "$host_cpu" in
9131 x86_64*)
9132 echo '#line 9132 "configure"' > conftest.$ac_ext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9134 (eval $ac_compile) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; then
9138 case `/usr/bin/file conftest.$ac_objext` in
9139 *64-bit*)
9140 libsuff=64
9141 ;;
9142 esac
9143 fi
9144 rm -rf conftest*
9145 ;;
9146 *)
9147 ;;
9148 esac
9149 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9150 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9151 ;;
9152
9153 knetbsd*-gnu)
9154 version_type=linux
9155 need_lib_prefix=no
9156 need_version=no
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=no
9161 hardcode_into_libs=yes
9162 dynamic_linker='GNU ld.so'
9163 ;;
9164
9165 netbsd*)
9166 version_type=sunos
9167 need_lib_prefix=no
9168 need_version=no
9169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9172 dynamic_linker='NetBSD (a.out) ld.so'
9173 else
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 dynamic_linker='NetBSD ld.elf_so'
9177 fi
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9180 hardcode_into_libs=yes
9181 ;;
9182
9183 newsos6)
9184 version_type=linux
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=yes
9188 ;;
9189
9190 nto-qnx*)
9191 version_type=linux
9192 need_lib_prefix=no
9193 need_version=no
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=yes
9198 ;;
9199
9200 openbsd*)
9201 version_type=sunos
9202 need_lib_prefix=no
9203 need_version=no
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9208 case $host_os in
9209 openbsd2.[89] | openbsd2.[89].*)
9210 shlibpath_overrides_runpath=no
9211 ;;
9212 *)
9213 shlibpath_overrides_runpath=yes
9214 ;;
9215 esac
9216 else
9217 shlibpath_overrides_runpath=yes
9218 fi
9219 ;;
9220
9221 os2*)
9222 libname_spec='$name'
9223 shrext_cmds=".dll"
9224 need_lib_prefix=no
9225 library_names_spec='$libname${shared_ext} $libname.a'
9226 dynamic_linker='OS/2 ld.exe'
9227 shlibpath_var=LIBPATH
9228 ;;
9229
9230 osf3* | osf4* | osf5*)
9231 version_type=osf
9232 need_lib_prefix=no
9233 need_version=no
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9239 ;;
9240
9241 sco3.2v5*)
9242 version_type=osf
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 ;;
9247
9248 solaris*)
9249 version_type=linux
9250 need_lib_prefix=no
9251 need_version=no
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=yes
9256 hardcode_into_libs=yes
9257 # ldd complains unless libraries are executable
9258 postinstall_cmds='chmod +x $lib'
9259 ;;
9260
9261 sunos4*)
9262 version_type=sunos
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=yes
9267 if test "$with_gnu_ld" = yes; then
9268 need_lib_prefix=no
9269 fi
9270 need_version=yes
9271 ;;
9272
9273 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9274 version_type=linux
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 case $host_vendor in
9279 sni)
9280 shlibpath_overrides_runpath=no
9281 need_lib_prefix=no
9282 export_dynamic_flag_spec='${wl}-Blargedynsym'
9283 runpath_var=LD_RUN_PATH
9284 ;;
9285 siemens)
9286 need_lib_prefix=no
9287 ;;
9288 motorola)
9289 need_lib_prefix=no
9290 need_version=no
9291 shlibpath_overrides_runpath=no
9292 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9293 ;;
9294 esac
9295 ;;
9296
9297 sysv4*MP*)
9298 if test -d /usr/nec ;then
9299 version_type=linux
9300 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9301 soname_spec='$libname${shared_ext}.$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 fi
9304 ;;
9305
9306 uts4*)
9307 version_type=linux
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 ;;
9312
9313 *)
9314 dynamic_linker=no
9315 ;;
9316 esac
9317 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9318 echo "${ECHO_T}$dynamic_linker" >&6; }
9319 test "$dynamic_linker" = no && can_build_shared=no
9320
9321 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9322 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9323 hardcode_action=
9324 if test -n "$hardcode_libdir_flag_spec" || \
9325 test -n "$runpath_var" || \
9326 test "X$hardcode_automatic" = "Xyes" ; then
9327
9328 # We can hardcode non-existant directories.
9329 if test "$hardcode_direct" != no &&
9330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9331 # have to relink, otherwise we might link with an installed library
9332 # when we should be linking with a yet-to-be-installed one
9333 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9334 test "$hardcode_minus_L" != no; then
9335 # Linking always hardcodes the temporary library directory.
9336 hardcode_action=relink
9337 else
9338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9339 hardcode_action=immediate
9340 fi
9341 else
9342 # We cannot hardcode anything, or else we can only hardcode existing
9343 # directories.
9344 hardcode_action=unsupported
9345 fi
9346 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9347 echo "${ECHO_T}$hardcode_action" >&6; }
9348
9349 if test "$hardcode_action" = relink; then
9350 # Fast installation is not supported
9351 enable_fast_install=no
9352 elif test "$shlibpath_overrides_runpath" = yes ||
9353 test "$enable_shared" = no; then
9354 # Fast installation is not necessary
9355 enable_fast_install=needless
9356 fi
9357
9358 striplib=
9359 old_striplib=
9360 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9361 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9362 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9363 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9364 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9365 { echo "$as_me:$LINENO: result: yes" >&5
9366 echo "${ECHO_T}yes" >&6; }
9367 else
9368 # FIXME - insert some real tests, host_os isn't really good enough
9369 case $host_os in
9370 darwin*)
9371 if test -n "$STRIP" ; then
9372 striplib="$STRIP -x"
9373 { echo "$as_me:$LINENO: result: yes" >&5
9374 echo "${ECHO_T}yes" >&6; }
9375 else
9376 { echo "$as_me:$LINENO: result: no" >&5
9377 echo "${ECHO_T}no" >&6; }
9378 fi
9379 ;;
9380 *)
9381 { echo "$as_me:$LINENO: result: no" >&5
9382 echo "${ECHO_T}no" >&6; }
9383 ;;
9384 esac
9385 fi
9386
9387 if test "x$enable_dlopen" != xyes; then
9388 enable_dlopen=unknown
9389 enable_dlopen_self=unknown
9390 enable_dlopen_self_static=unknown
9391 else
9392 lt_cv_dlopen=no
9393 lt_cv_dlopen_libs=
9394
9395 case $host_os in
9396 beos*)
9397 lt_cv_dlopen="load_add_on"
9398 lt_cv_dlopen_libs=
9399 lt_cv_dlopen_self=yes
9400 ;;
9401
9402 mingw* | pw32*)
9403 lt_cv_dlopen="LoadLibrary"
9404 lt_cv_dlopen_libs=
9405 ;;
9406
9407 cygwin*)
9408 lt_cv_dlopen="dlopen"
9409 lt_cv_dlopen_libs=
9410 ;;
9411
9412 darwin*)
9413 # if libdl is installed we need to link against it
9414 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9415 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9416 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 ac_check_lib_save_LIBS=$LIBS
9420 LIBS="-ldl $LIBS"
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 char dlopen ();
9435 int
9436 main ()
9437 {
9438 return dlopen ();
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9445 case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448 esac
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest$ac_exeext &&
9460 $as_test_x conftest$ac_exeext; then
9461 ac_cv_lib_dl_dlopen=yes
9462 else
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9465
9466 ac_cv_lib_dl_dlopen=no
9467 fi
9468
9469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LIBS=$ac_check_lib_save_LIBS
9472 fi
9473 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9474 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9475 if test $ac_cv_lib_dl_dlopen = yes; then
9476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9477 else
9478
9479 lt_cv_dlopen="dyld"
9480 lt_cv_dlopen_libs=
9481 lt_cv_dlopen_self=yes
9482
9483 fi
9484
9485 ;;
9486
9487 *)
9488 { echo "$as_me:$LINENO: checking for shl_load" >&5
9489 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9490 if test "${ac_cv_func_shl_load+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9501 #define shl_load innocuous_shl_load
9502
9503 /* System header to define __stub macros and hopefully few prototypes,
9504 which can conflict with char shl_load (); below.
9505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9506 <limits.h> exists even on freestanding compilers. */
9507
9508 #ifdef __STDC__
9509 # include <limits.h>
9510 #else
9511 # include <assert.h>
9512 #endif
9513
9514 #undef shl_load
9515
9516 /* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 char shl_load ();
9523 /* The GNU C library defines this for functions which it implements
9524 to always fail with ENOSYS. Some functions are actually named
9525 something starting with __ and the normal name is an alias. */
9526 #if defined __stub_shl_load || defined __stub___shl_load
9527 choke me
9528 #endif
9529
9530 int
9531 main ()
9532 {
9533 return shl_load ();
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (ac_try="$ac_link"
9540 case "(($ac_try" in
9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542 *) ac_try_echo=$ac_try;;
9543 esac
9544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545 (eval "$ac_link") 2>conftest.er1
9546 ac_status=$?
9547 grep -v '^ *+' conftest.er1 >conftest.err
9548 rm -f conftest.er1
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && {
9552 test -z "$ac_c_werror_flag" ||
9553 test ! -s conftest.err
9554 } && test -s conftest$ac_exeext &&
9555 $as_test_x conftest$ac_exeext; then
9556 ac_cv_func_shl_load=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_cv_func_shl_load=no
9562 fi
9563
9564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9565 conftest$ac_exeext conftest.$ac_ext
9566 fi
9567 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9568 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9569 if test $ac_cv_func_shl_load = yes; then
9570 lt_cv_dlopen="shl_load"
9571 else
9572 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9573 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9574 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 ac_check_lib_save_LIBS=$LIBS
9578 LIBS="-ldld $LIBS"
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 char shl_load ();
9593 int
9594 main ()
9595 {
9596 return shl_load ();
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest$ac_exeext &&
9618 $as_test_x conftest$ac_exeext; then
9619 ac_cv_lib_dld_shl_load=yes
9620 else
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 ac_cv_lib_dld_shl_load=no
9625 fi
9626
9627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9628 conftest$ac_exeext conftest.$ac_ext
9629 LIBS=$ac_check_lib_save_LIBS
9630 fi
9631 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9632 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9633 if test $ac_cv_lib_dld_shl_load = yes; then
9634 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9635 else
9636 { echo "$as_me:$LINENO: checking for dlopen" >&5
9637 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9638 if test "${ac_cv_func_dlopen+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h. */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9647 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9649 #define dlopen innocuous_dlopen
9650
9651 /* System header to define __stub macros and hopefully few prototypes,
9652 which can conflict with char dlopen (); below.
9653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9654 <limits.h> exists even on freestanding compilers. */
9655
9656 #ifdef __STDC__
9657 # include <limits.h>
9658 #else
9659 # include <assert.h>
9660 #endif
9661
9662 #undef dlopen
9663
9664 /* Override any GCC internal prototype to avoid an error.
9665 Use char because int might match the return type of a GCC
9666 builtin and then its argument prototype would still apply. */
9667 #ifdef __cplusplus
9668 extern "C"
9669 #endif
9670 char dlopen ();
9671 /* The GNU C library defines this for functions which it implements
9672 to always fail with ENOSYS. Some functions are actually named
9673 something starting with __ and the normal name is an alias. */
9674 #if defined __stub_dlopen || defined __stub___dlopen
9675 choke me
9676 #endif
9677
9678 int
9679 main ()
9680 {
9681 return dlopen ();
9682 ;
9683 return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (ac_try="$ac_link"
9688 case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_link") 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } && {
9700 test -z "$ac_c_werror_flag" ||
9701 test ! -s conftest.err
9702 } && test -s conftest$ac_exeext &&
9703 $as_test_x conftest$ac_exeext; then
9704 ac_cv_func_dlopen=yes
9705 else
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 ac_cv_func_dlopen=no
9710 fi
9711
9712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9713 conftest$ac_exeext conftest.$ac_ext
9714 fi
9715 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9716 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9717 if test $ac_cv_func_dlopen = yes; then
9718 lt_cv_dlopen="dlopen"
9719 else
9720 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9721 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9722 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725 ac_check_lib_save_LIBS=$LIBS
9726 LIBS="-ldl $LIBS"
9727 cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h. */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733
9734 /* Override any GCC internal prototype to avoid an error.
9735 Use char because int might match the return type of a GCC
9736 builtin and then its argument prototype would still apply. */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 char dlopen ();
9741 int
9742 main ()
9743 {
9744 return dlopen ();
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9751 case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_link") 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && {
9763 test -z "$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 } && test -s conftest$ac_exeext &&
9766 $as_test_x conftest$ac_exeext; then
9767 ac_cv_lib_dl_dlopen=yes
9768 else
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 ac_cv_lib_dl_dlopen=no
9773 fi
9774
9775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9776 conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9778 fi
9779 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9780 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9781 if test $ac_cv_lib_dl_dlopen = yes; then
9782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9783 else
9784 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9785 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9786 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789 ac_check_lib_save_LIBS=$LIBS
9790 LIBS="-lsvld $LIBS"
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797
9798 /* Override any GCC internal prototype to avoid an error.
9799 Use char because int might match the return type of a GCC
9800 builtin and then its argument prototype would still apply. */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 char dlopen ();
9805 int
9806 main ()
9807 {
9808 return dlopen ();
9809 ;
9810 return 0;
9811 }
9812 _ACEOF
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (ac_try="$ac_link"
9815 case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9818 esac
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_link") 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } && {
9827 test -z "$ac_c_werror_flag" ||
9828 test ! -s conftest.err
9829 } && test -s conftest$ac_exeext &&
9830 $as_test_x conftest$ac_exeext; then
9831 ac_cv_lib_svld_dlopen=yes
9832 else
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9835
9836 ac_cv_lib_svld_dlopen=no
9837 fi
9838
9839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9840 conftest$ac_exeext conftest.$ac_ext
9841 LIBS=$ac_check_lib_save_LIBS
9842 fi
9843 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9844 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9845 if test $ac_cv_lib_svld_dlopen = yes; then
9846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9847 else
9848 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9849 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9850 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 ac_check_lib_save_LIBS=$LIBS
9854 LIBS="-ldld $LIBS"
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861
9862 /* Override any GCC internal prototype to avoid an error.
9863 Use char because int might match the return type of a GCC
9864 builtin and then its argument prototype would still apply. */
9865 #ifdef __cplusplus
9866 extern "C"
9867 #endif
9868 char dld_link ();
9869 int
9870 main ()
9871 {
9872 return dld_link ();
9873 ;
9874 return 0;
9875 }
9876 _ACEOF
9877 rm -f conftest.$ac_objext conftest$ac_exeext
9878 if { (ac_try="$ac_link"
9879 case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882 esac
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_link") 2>conftest.er1
9885 ac_status=$?
9886 grep -v '^ *+' conftest.er1 >conftest.err
9887 rm -f conftest.er1
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } && {
9891 test -z "$ac_c_werror_flag" ||
9892 test ! -s conftest.err
9893 } && test -s conftest$ac_exeext &&
9894 $as_test_x conftest$ac_exeext; then
9895 ac_cv_lib_dld_dld_link=yes
9896 else
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9899
9900 ac_cv_lib_dld_dld_link=no
9901 fi
9902
9903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9904 conftest$ac_exeext conftest.$ac_ext
9905 LIBS=$ac_check_lib_save_LIBS
9906 fi
9907 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9908 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9909 if test $ac_cv_lib_dld_dld_link = yes; then
9910 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9911 fi
9912
9913
9914 fi
9915
9916
9917 fi
9918
9919
9920 fi
9921
9922
9923 fi
9924
9925
9926 fi
9927
9928 ;;
9929 esac
9930
9931 if test "x$lt_cv_dlopen" != xno; then
9932 enable_dlopen=yes
9933 else
9934 enable_dlopen=no
9935 fi
9936
9937 case $lt_cv_dlopen in
9938 dlopen)
9939 save_CPPFLAGS="$CPPFLAGS"
9940 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9941
9942 save_LDFLAGS="$LDFLAGS"
9943 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9944
9945 save_LIBS="$LIBS"
9946 LIBS="$lt_cv_dlopen_libs $LIBS"
9947
9948 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9949 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9950 if test "${lt_cv_dlopen_self+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953 if test "$cross_compiling" = yes; then :
9954 lt_cv_dlopen_self=cross
9955 else
9956 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9957 lt_status=$lt_dlunknown
9958 cat > conftest.$ac_ext <<EOF
9959 #line 9959 "configure"
9960 #include "confdefs.h"
9961
9962 #if HAVE_DLFCN_H
9963 #include <dlfcn.h>
9964 #endif
9965
9966 #include <stdio.h>
9967
9968 #ifdef RTLD_GLOBAL
9969 # define LT_DLGLOBAL RTLD_GLOBAL
9970 #else
9971 # ifdef DL_GLOBAL
9972 # define LT_DLGLOBAL DL_GLOBAL
9973 # else
9974 # define LT_DLGLOBAL 0
9975 # endif
9976 #endif
9977
9978 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9979 find out it does not work in some platform. */
9980 #ifndef LT_DLLAZY_OR_NOW
9981 # ifdef RTLD_LAZY
9982 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9983 # else
9984 # ifdef DL_LAZY
9985 # define LT_DLLAZY_OR_NOW DL_LAZY
9986 # else
9987 # ifdef RTLD_NOW
9988 # define LT_DLLAZY_OR_NOW RTLD_NOW
9989 # else
9990 # ifdef DL_NOW
9991 # define LT_DLLAZY_OR_NOW DL_NOW
9992 # else
9993 # define LT_DLLAZY_OR_NOW 0
9994 # endif
9995 # endif
9996 # endif
9997 # endif
9998 #endif
9999
10000 #ifdef __cplusplus
10001 extern "C" void exit (int);
10002 #endif
10003
10004 void fnord() { int i=42;}
10005 int main ()
10006 {
10007 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10008 int status = $lt_dlunknown;
10009
10010 if (self)
10011 {
10012 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10013 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10014 /* dlclose (self); */
10015 }
10016
10017 exit (status);
10018 }
10019 EOF
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10025 (./conftest; exit; ) 2>/dev/null
10026 lt_status=$?
10027 case x$lt_status in
10028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10030 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10031 esac
10032 else :
10033 # compilation failed
10034 lt_cv_dlopen_self=no
10035 fi
10036 fi
10037 rm -fr conftest*
10038
10039
10040 fi
10041 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10042 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10043
10044 if test "x$lt_cv_dlopen_self" = xyes; then
10045 LDFLAGS="$LDFLAGS $link_static_flag"
10046 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10047 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10048 if test "${lt_cv_dlopen_self_static+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051 if test "$cross_compiling" = yes; then :
10052 lt_cv_dlopen_self_static=cross
10053 else
10054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10055 lt_status=$lt_dlunknown
10056 cat > conftest.$ac_ext <<EOF
10057 #line 10057 "configure"
10058 #include "confdefs.h"
10059
10060 #if HAVE_DLFCN_H
10061 #include <dlfcn.h>
10062 #endif
10063
10064 #include <stdio.h>
10065
10066 #ifdef RTLD_GLOBAL
10067 # define LT_DLGLOBAL RTLD_GLOBAL
10068 #else
10069 # ifdef DL_GLOBAL
10070 # define LT_DLGLOBAL DL_GLOBAL
10071 # else
10072 # define LT_DLGLOBAL 0
10073 # endif
10074 #endif
10075
10076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10077 find out it does not work in some platform. */
10078 #ifndef LT_DLLAZY_OR_NOW
10079 # ifdef RTLD_LAZY
10080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10081 # else
10082 # ifdef DL_LAZY
10083 # define LT_DLLAZY_OR_NOW DL_LAZY
10084 # else
10085 # ifdef RTLD_NOW
10086 # define LT_DLLAZY_OR_NOW RTLD_NOW
10087 # else
10088 # ifdef DL_NOW
10089 # define LT_DLLAZY_OR_NOW DL_NOW
10090 # else
10091 # define LT_DLLAZY_OR_NOW 0
10092 # endif
10093 # endif
10094 # endif
10095 # endif
10096 #endif
10097
10098 #ifdef __cplusplus
10099 extern "C" void exit (int);
10100 #endif
10101
10102 void fnord() { int i=42;}
10103 int main ()
10104 {
10105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10106 int status = $lt_dlunknown;
10107
10108 if (self)
10109 {
10110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10111 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10112 /* dlclose (self); */
10113 }
10114
10115 exit (status);
10116 }
10117 EOF
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10123 (./conftest; exit; ) 2>/dev/null
10124 lt_status=$?
10125 case x$lt_status in
10126 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10127 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10128 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10129 esac
10130 else :
10131 # compilation failed
10132 lt_cv_dlopen_self_static=no
10133 fi
10134 fi
10135 rm -fr conftest*
10136
10137
10138 fi
10139 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10140 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10141 fi
10142
10143 CPPFLAGS="$save_CPPFLAGS"
10144 LDFLAGS="$save_LDFLAGS"
10145 LIBS="$save_LIBS"
10146 ;;
10147 esac
10148
10149 case $lt_cv_dlopen_self in
10150 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10151 *) enable_dlopen_self=unknown ;;
10152 esac
10153
10154 case $lt_cv_dlopen_self_static in
10155 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10156 *) enable_dlopen_self_static=unknown ;;
10157 esac
10158 fi
10159
10160
10161 # Report which librarie types wil actually be built
10162 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10163 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10164 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10165 echo "${ECHO_T}$can_build_shared" >&6; }
10166
10167 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10168 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10169 test "$can_build_shared" = "no" && enable_shared=no
10170
10171 # On AIX, shared libraries and static libraries use the same namespace, and
10172 # are all built from PIC.
10173 case "$host_os" in
10174 aix3*)
10175 test "$enable_shared" = yes && enable_static=no
10176 if test -n "$RANLIB"; then
10177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10178 postinstall_cmds='$RANLIB $lib'
10179 fi
10180 ;;
10181
10182 aix4* | aix5*)
10183 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10184 test "$enable_shared" = yes && enable_static=no
10185 fi
10186 ;;
10187 esac
10188 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10189 echo "${ECHO_T}$enable_shared" >&6; }
10190
10191 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10192 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10193 # Make sure either enable_shared or enable_static is yes.
10194 test "$enable_shared" = yes || enable_static=yes
10195 { echo "$as_me:$LINENO: result: $enable_static" >&5
10196 echo "${ECHO_T}$enable_static" >&6; }
10197
10198 # The else clause should only fire when bootstrapping the
10199 # libtool distribution, otherwise you forgot to ship ltmain.sh
10200 # with your package, and you will get complaints that there are
10201 # no rules to generate ltmain.sh.
10202 if test -f "$ltmain"; then
10203 # See if we are running on zsh, and set the options which allow our commands through
10204 # without removal of \ escapes.
10205 if test -n "${ZSH_VERSION+set}" ; then
10206 setopt NO_GLOB_SUBST
10207 fi
10208 # Now quote all the things that may contain metacharacters while being
10209 # careful not to overquote the AC_SUBSTed values. We take copies of the
10210 # variables and quote the copies for generation of the libtool script.
10211 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10212 SED SHELL STRIP \
10213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10215 deplibs_check_method reload_flag reload_cmds need_locks \
10216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10217 lt_cv_sys_global_symbol_to_c_name_address \
10218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10219 old_postinstall_cmds old_postuninstall_cmds \
10220 compiler \
10221 CC \
10222 LD \
10223 lt_prog_compiler_wl \
10224 lt_prog_compiler_pic \
10225 lt_prog_compiler_static \
10226 lt_prog_compiler_no_builtin_flag \
10227 export_dynamic_flag_spec \
10228 thread_safe_flag_spec \
10229 whole_archive_flag_spec \
10230 enable_shared_with_static_runtimes \
10231 old_archive_cmds \
10232 old_archive_from_new_cmds \
10233 predep_objects \
10234 postdep_objects \
10235 predeps \
10236 postdeps \
10237 compiler_lib_search_path \
10238 archive_cmds \
10239 archive_expsym_cmds \
10240 postinstall_cmds \
10241 postuninstall_cmds \
10242 old_archive_from_expsyms_cmds \
10243 allow_undefined_flag \
10244 no_undefined_flag \
10245 export_symbols_cmds \
10246 hardcode_libdir_flag_spec \
10247 hardcode_libdir_flag_spec_ld \
10248 hardcode_libdir_separator \
10249 hardcode_automatic \
10250 module_cmds \
10251 module_expsym_cmds \
10252 lt_cv_prog_compiler_c_o \
10253 exclude_expsyms \
10254 include_expsyms; do
10255
10256 case $var in
10257 old_archive_cmds | \
10258 old_archive_from_new_cmds | \
10259 archive_cmds | \
10260 archive_expsym_cmds | \
10261 module_cmds | \
10262 module_expsym_cmds | \
10263 old_archive_from_expsyms_cmds | \
10264 export_symbols_cmds | \
10265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10266 postinstall_cmds | postuninstall_cmds | \
10267 old_postinstall_cmds | old_postuninstall_cmds | \
10268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10269 # Double-quote double-evaled strings.
10270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10271 ;;
10272 *)
10273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10274 ;;
10275 esac
10276 done
10277
10278 case $lt_echo in
10279 *'\$0 --fallback-echo"')
10280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10281 ;;
10282 esac
10283
10284 cfgfile="${ofile}T"
10285 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10286 $rm -f "$cfgfile"
10287 { echo "$as_me:$LINENO: creating $ofile" >&5
10288 echo "$as_me: creating $ofile" >&6;}
10289
10290 cat <<__EOF__ >> "$cfgfile"
10291 #! $SHELL
10292
10293 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10294 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10295 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10296 #
10297 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10298 # Free Software Foundation, Inc.
10299 #
10300 # This file is part of GNU Libtool:
10301 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10302 #
10303 # This program is free software; you can redistribute it and/or modify
10304 # it under the terms of the GNU General Public License as published by
10305 # the Free Software Foundation; either version 2 of the License, or
10306 # (at your option) any later version.
10307 #
10308 # This program is distributed in the hope that it will be useful, but
10309 # WITHOUT ANY WARRANTY; without even the implied warranty of
10310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10311 # General Public License for more details.
10312 #
10313 # You should have received a copy of the GNU General Public License
10314 # along with this program; if not, write to the Free Software
10315 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10316 #
10317 # As a special exception to the GNU General Public License, if you
10318 # distribute this file as part of a program that contains a
10319 # configuration script generated by Autoconf, you may include it under
10320 # the same distribution terms that you use for the rest of that program.
10321
10322 # A sed program that does not truncate output.
10323 SED=$lt_SED
10324
10325 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10326 Xsed="$SED -e s/^X//"
10327
10328 # The HP-UX ksh and POSIX shell print the target directory to stdout
10329 # if CDPATH is set.
10330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10331
10332 # The names of the tagged configurations supported by this script.
10333 available_tags=
10334
10335 # ### BEGIN LIBTOOL CONFIG
10336
10337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10338
10339 # Shell to use when invoking shell scripts.
10340 SHELL=$lt_SHELL
10341
10342 # Whether or not to build shared libraries.
10343 build_libtool_libs=$enable_shared
10344
10345 # Whether or not to build static libraries.
10346 build_old_libs=$enable_static
10347
10348 # Whether or not to add -lc for building shared libraries.
10349 build_libtool_need_lc=$archive_cmds_need_lc
10350
10351 # Whether or not to disallow shared libs when runtime libs are static
10352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10353
10354 # Whether or not to optimize for fast installation.
10355 fast_install=$enable_fast_install
10356
10357 # The host system.
10358 host_alias=$host_alias
10359 host=$host
10360
10361 # An echo program that does not interpret backslashes.
10362 echo=$lt_echo
10363
10364 # The archiver.
10365 AR=$lt_AR
10366 AR_FLAGS=$lt_AR_FLAGS
10367
10368 # A C compiler.
10369 LTCC=$lt_LTCC
10370
10371 # A language-specific compiler.
10372 CC=$lt_compiler
10373
10374 # Is the compiler the GNU C compiler?
10375 with_gcc=$GCC
10376
10377 # An ERE matcher.
10378 EGREP=$lt_EGREP
10379
10380 # The linker used to build libraries.
10381 LD=$lt_LD
10382
10383 # Whether we need hard or soft links.
10384 LN_S=$lt_LN_S
10385
10386 # A BSD-compatible nm program.
10387 NM=$lt_NM
10388
10389 # A symbol stripping program
10390 STRIP=$lt_STRIP
10391
10392 # Used to examine libraries when file_magic_cmd begins "file"
10393 MAGIC_CMD=$MAGIC_CMD
10394
10395 # Used on cygwin: DLL creation program.
10396 DLLTOOL="$DLLTOOL"
10397
10398 # Used on cygwin: object dumper.
10399 OBJDUMP="$OBJDUMP"
10400
10401 # Used on cygwin: assembler.
10402 AS="$AS"
10403
10404 # The name of the directory that contains temporary libtool files.
10405 objdir=$objdir
10406
10407 # How to create reloadable object files.
10408 reload_flag=$lt_reload_flag
10409 reload_cmds=$lt_reload_cmds
10410
10411 # How to pass a linker flag through the compiler.
10412 wl=$lt_lt_prog_compiler_wl
10413
10414 # Object file suffix (normally "o").
10415 objext="$ac_objext"
10416
10417 # Old archive suffix (normally "a").
10418 libext="$libext"
10419
10420 # Shared library suffix (normally ".so").
10421 shrext_cmds='$shrext_cmds'
10422
10423 # Executable file suffix (normally "").
10424 exeext="$exeext"
10425
10426 # Additional compiler flags for building library objects.
10427 pic_flag=$lt_lt_prog_compiler_pic
10428 pic_mode=$pic_mode
10429
10430 # What is the maximum length of a command?
10431 max_cmd_len=$lt_cv_sys_max_cmd_len
10432
10433 # Does compiler simultaneously support -c and -o options?
10434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10435
10436 # Must we lock files when doing compilation ?
10437 need_locks=$lt_need_locks
10438
10439 # Do we need the lib prefix for modules?
10440 need_lib_prefix=$need_lib_prefix
10441
10442 # Do we need a version for libraries?
10443 need_version=$need_version
10444
10445 # Whether dlopen is supported.
10446 dlopen_support=$enable_dlopen
10447
10448 # Whether dlopen of programs is supported.
10449 dlopen_self=$enable_dlopen_self
10450
10451 # Whether dlopen of statically linked programs is supported.
10452 dlopen_self_static=$enable_dlopen_self_static
10453
10454 # Compiler flag to prevent dynamic linking.
10455 link_static_flag=$lt_lt_prog_compiler_static
10456
10457 # Compiler flag to turn off builtin functions.
10458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10459
10460 # Compiler flag to allow reflexive dlopens.
10461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10462
10463 # Compiler flag to generate shared objects directly from archives.
10464 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10465
10466 # Compiler flag to generate thread-safe objects.
10467 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10468
10469 # Library versioning type.
10470 version_type=$version_type
10471
10472 # Format of library name prefix.
10473 libname_spec=$lt_libname_spec
10474
10475 # List of archive names. First name is the real one, the rest are links.
10476 # The last name is the one that the linker finds with -lNAME.
10477 library_names_spec=$lt_library_names_spec
10478
10479 # The coded name of the library, if different from the real name.
10480 soname_spec=$lt_soname_spec
10481
10482 # Commands used to build and install an old-style archive.
10483 RANLIB=$lt_RANLIB
10484 old_archive_cmds=$lt_old_archive_cmds
10485 old_postinstall_cmds=$lt_old_postinstall_cmds
10486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10487
10488 # Create an old-style archive from a shared archive.
10489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10490
10491 # Create a temporary old-style archive to link instead of a shared archive.
10492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10493
10494 # Commands used to build and install a shared archive.
10495 archive_cmds=$lt_archive_cmds
10496 archive_expsym_cmds=$lt_archive_expsym_cmds
10497 postinstall_cmds=$lt_postinstall_cmds
10498 postuninstall_cmds=$lt_postuninstall_cmds
10499
10500 # Commands used to build a loadable module (assumed same as above if empty)
10501 module_cmds=$lt_module_cmds
10502 module_expsym_cmds=$lt_module_expsym_cmds
10503
10504 # Commands to strip libraries.
10505 old_striplib=$lt_old_striplib
10506 striplib=$lt_striplib
10507
10508 # Dependencies to place before the objects being linked to create a
10509 # shared library.
10510 predep_objects=$lt_predep_objects
10511
10512 # Dependencies to place after the objects being linked to create a
10513 # shared library.
10514 postdep_objects=$lt_postdep_objects
10515
10516 # Dependencies to place before the objects being linked to create a
10517 # shared library.
10518 predeps=$lt_predeps
10519
10520 # Dependencies to place after the objects being linked to create a
10521 # shared library.
10522 postdeps=$lt_postdeps
10523
10524 # The library search path used internally by the compiler when linking
10525 # a shared library.
10526 compiler_lib_search_path=$lt_compiler_lib_search_path
10527
10528 # Method to check whether dependent libraries are shared objects.
10529 deplibs_check_method=$lt_deplibs_check_method
10530
10531 # Command to use when deplibs_check_method == file_magic.
10532 file_magic_cmd=$lt_file_magic_cmd
10533
10534 # Flag that allows shared libraries with undefined symbols to be built.
10535 allow_undefined_flag=$lt_allow_undefined_flag
10536
10537 # Flag that forces no undefined symbols.
10538 no_undefined_flag=$lt_no_undefined_flag
10539
10540 # Commands used to finish a libtool library installation in a directory.
10541 finish_cmds=$lt_finish_cmds
10542
10543 # Same as above, but a single script fragment to be evaled but not shown.
10544 finish_eval=$lt_finish_eval
10545
10546 # Take the output of nm and produce a listing of raw symbols and C names.
10547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10548
10549 # Transform the output of nm in a proper C declaration
10550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10551
10552 # Transform the output of nm in a C name address pair
10553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10554
10555 # This is the shared library runtime path variable.
10556 runpath_var=$runpath_var
10557
10558 # This is the shared library path variable.
10559 shlibpath_var=$shlibpath_var
10560
10561 # Is shlibpath searched before the hard-coded library search path?
10562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10563
10564 # How to hardcode a shared library path into an executable.
10565 hardcode_action=$hardcode_action
10566
10567 # Whether we should hardcode library paths into libraries.
10568 hardcode_into_libs=$hardcode_into_libs
10569
10570 # Flag to hardcode \$libdir into a binary during linking.
10571 # This must work even if \$libdir does not exist.
10572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10573
10574 # If ld is used when linking, flag to hardcode \$libdir into
10575 # a binary during linking. This must work even if \$libdir does
10576 # not exist.
10577 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10578
10579 # Whether we need a single -rpath flag with a separated argument.
10580 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10581
10582 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10583 # resulting binary.
10584 hardcode_direct=$hardcode_direct
10585
10586 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10587 # resulting binary.
10588 hardcode_minus_L=$hardcode_minus_L
10589
10590 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10591 # the resulting binary.
10592 hardcode_shlibpath_var=$hardcode_shlibpath_var
10593
10594 # Set to yes if building a shared library automatically hardcodes DIR into the library
10595 # and all subsequent libraries and executables linked against it.
10596 hardcode_automatic=$hardcode_automatic
10597
10598 # Variables whose values should be saved in libtool wrapper scripts and
10599 # restored at relink time.
10600 variables_saved_for_relink="$variables_saved_for_relink"
10601
10602 # Whether libtool must link a program against all its dependency libraries.
10603 link_all_deplibs=$link_all_deplibs
10604
10605 # Compile-time system search path for libraries
10606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10607
10608 # Run-time system search path for libraries
10609 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10610
10611 # Fix the shell variable \$srcfile for the compiler.
10612 fix_srcfile_path="$fix_srcfile_path"
10613
10614 # Set to yes if exported symbols are required.
10615 always_export_symbols=$always_export_symbols
10616
10617 # The commands to list exported symbols.
10618 export_symbols_cmds=$lt_export_symbols_cmds
10619
10620 # The commands to extract the exported symbol list from a shared archive.
10621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10622
10623 # Symbols that should not be listed in the preloaded symbols.
10624 exclude_expsyms=$lt_exclude_expsyms
10625
10626 # Symbols that must always be exported.
10627 include_expsyms=$lt_include_expsyms
10628
10629 # ### END LIBTOOL CONFIG
10630
10631 __EOF__
10632
10633
10634 case $host_os in
10635 aix3*)
10636 cat <<\EOF >> "$cfgfile"
10637
10638 # AIX sometimes has problems with the GCC collect2 program. For some
10639 # reason, if we set the COLLECT_NAMES environment variable, the problems
10640 # vanish in a puff of smoke.
10641 if test "X${COLLECT_NAMES+set}" != Xset; then
10642 COLLECT_NAMES=
10643 export COLLECT_NAMES
10644 fi
10645 EOF
10646 ;;
10647 esac
10648
10649 # We use sed instead of cat because bash on DJGPP gets confused if
10650 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10651 # text mode, it properly converts lines to CR/LF. This bash problem
10652 # is reportedly fixed, but why not run on old versions too?
10653 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10654
10655 mv -f "$cfgfile" "$ofile" || \
10656 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10657 chmod +x "$ofile"
10658
10659 else
10660 # If there is no Makefile yet, we rely on a make rule to execute
10661 # `config.status --recheck' to rerun these tests and create the
10662 # libtool script then.
10663 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10664 if test -f "$ltmain_in"; then
10665 test -f Makefile && make "$ltmain"
10666 fi
10667 fi
10668
10669
10670 ac_ext=c
10671 ac_cpp='$CPP $CPPFLAGS'
10672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10675
10676 CC="$lt_save_CC"
10677
10678
10679 # Check whether --with-tags was given.
10680 if test "${with_tags+set}" = set; then
10681 withval=$with_tags; tagnames="$withval"
10682 fi
10683
10684
10685 if test -f "$ltmain" && test -n "$tagnames"; then
10686 if test ! -f "${ofile}"; then
10687 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10688 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10689 fi
10690
10691 if test -z "$LTCC"; then
10692 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10693 if test -z "$LTCC"; then
10694 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10695 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10696 else
10697 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10698 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10699 fi
10700 fi
10701
10702 # Extract list of available tagged configurations in $ofile.
10703 # Note that this assumes the entire list is on one line.
10704 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10705
10706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10707 for tagname in $tagnames; do
10708 IFS="$lt_save_ifs"
10709 # Check whether tagname contains only valid characters
10710 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10711 "") ;;
10712 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10713 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10714 { (exit 1); exit 1; }; }
10715 ;;
10716 esac
10717
10718 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10719 then
10720 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10721 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10722 { (exit 1); exit 1; }; }
10723 fi
10724
10725 # Update the list of available tags.
10726 if test -n "$tagname"; then
10727 echo appending configuration tag \"$tagname\" to $ofile
10728
10729 case $tagname in
10730 CXX)
10731 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10732 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10733 (test "X$CXX" != "Xg++"))) ; then
10734 ac_ext=cpp
10735 ac_cpp='$CXXCPP $CPPFLAGS'
10736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10739
10740
10741
10742
10743 archive_cmds_need_lc_CXX=no
10744 allow_undefined_flag_CXX=
10745 always_export_symbols_CXX=no
10746 archive_expsym_cmds_CXX=
10747 export_dynamic_flag_spec_CXX=
10748 hardcode_direct_CXX=no
10749 hardcode_libdir_flag_spec_CXX=
10750 hardcode_libdir_flag_spec_ld_CXX=
10751 hardcode_libdir_separator_CXX=
10752 hardcode_minus_L_CXX=no
10753 hardcode_automatic_CXX=no
10754 module_cmds_CXX=
10755 module_expsym_cmds_CXX=
10756 link_all_deplibs_CXX=unknown
10757 old_archive_cmds_CXX=$old_archive_cmds
10758 no_undefined_flag_CXX=
10759 whole_archive_flag_spec_CXX=
10760 enable_shared_with_static_runtimes_CXX=no
10761
10762 # Dependencies to place before and after the object being linked:
10763 predep_objects_CXX=
10764 postdep_objects_CXX=
10765 predeps_CXX=
10766 postdeps_CXX=
10767 compiler_lib_search_path_CXX=
10768
10769 # Source file extension for C++ test sources.
10770 ac_ext=cc
10771
10772 # Object file extension for compiled C++ test sources.
10773 objext=o
10774 objext_CXX=$objext
10775
10776 # Code to be used in simple compile tests
10777 lt_simple_compile_test_code="int some_variable = 0;\n"
10778
10779 # Code to be used in simple link tests
10780 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10781
10782 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10783
10784 # If no C compiler was specified, use CC.
10785 LTCC=${LTCC-"$CC"}
10786
10787 # Allow CC to be a program name with arguments.
10788 compiler=$CC
10789
10790
10791 # Allow CC to be a program name with arguments.
10792 lt_save_CC=$CC
10793 lt_save_LD=$LD
10794 lt_save_GCC=$GCC
10795 GCC=$GXX
10796 lt_save_with_gnu_ld=$with_gnu_ld
10797 lt_save_path_LD=$lt_cv_path_LD
10798 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10799 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10800 else
10801 unset lt_cv_prog_gnu_ld
10802 fi
10803 if test -n "${lt_cv_path_LDCXX+set}"; then
10804 lt_cv_path_LD=$lt_cv_path_LDCXX
10805 else
10806 unset lt_cv_path_LD
10807 fi
10808 test -z "${LDCXX+set}" || LD=$LDCXX
10809 CC=${CXX-"c++"}
10810 compiler=$CC
10811 compiler_CXX=$CC
10812 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10813
10814 # We don't want -fno-exception wen compiling C++ code, so set the
10815 # no_builtin_flag separately
10816 if test "$GXX" = yes; then
10817 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10818 else
10819 lt_prog_compiler_no_builtin_flag_CXX=
10820 fi
10821
10822 if test "$GXX" = yes; then
10823 # Set up default GNU C++ configuration
10824
10825
10826 # Check whether --with-gnu-ld was given.
10827 if test "${with_gnu_ld+set}" = set; then
10828 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10829 else
10830 with_gnu_ld=no
10831 fi
10832
10833 ac_prog=ld
10834 if test "$GCC" = yes; then
10835 # Check if gcc -print-prog-name=ld gives a path.
10836 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10837 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10838 case $host in
10839 *-*-mingw*)
10840 # gcc leaves a trailing carriage return which upsets mingw
10841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10842 *)
10843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10844 esac
10845 case $ac_prog in
10846 # Accept absolute paths.
10847 [\\/]* | ?:[\\/]*)
10848 re_direlt='/[^/][^/]*/\.\./'
10849 # Canonicalize the pathname of ld
10850 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10851 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10852 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10853 done
10854 test -z "$LD" && LD="$ac_prog"
10855 ;;
10856 "")
10857 # If it fails, then pretend we aren't using GCC.
10858 ac_prog=ld
10859 ;;
10860 *)
10861 # If it is relative, then search for the first ld in PATH.
10862 with_gnu_ld=unknown
10863 ;;
10864 esac
10865 elif test "$with_gnu_ld" = yes; then
10866 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10867 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10868 else
10869 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10870 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10871 fi
10872 if test "${lt_cv_path_LD+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875 if test -z "$LD"; then
10876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10877 for ac_dir in $PATH; do
10878 IFS="$lt_save_ifs"
10879 test -z "$ac_dir" && ac_dir=.
10880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10881 lt_cv_path_LD="$ac_dir/$ac_prog"
10882 # Check to see if the program is GNU ld. I'd rather use --version,
10883 # but apparently some GNU ld's only accept -v.
10884 # Break only if it was the GNU/non-GNU ld that we prefer.
10885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10886 *GNU* | *'with BFD'*)
10887 test "$with_gnu_ld" != no && break
10888 ;;
10889 *)
10890 test "$with_gnu_ld" != yes && break
10891 ;;
10892 esac
10893 fi
10894 done
10895 IFS="$lt_save_ifs"
10896 else
10897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10898 fi
10899 fi
10900
10901 LD="$lt_cv_path_LD"
10902 if test -n "$LD"; then
10903 { echo "$as_me:$LINENO: result: $LD" >&5
10904 echo "${ECHO_T}$LD" >&6; }
10905 else
10906 { echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6; }
10908 fi
10909 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10910 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10911 { (exit 1); exit 1; }; }
10912 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10913 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10914 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10918 case `$LD -v 2>&1 </dev/null` in
10919 *GNU* | *'with BFD'*)
10920 lt_cv_prog_gnu_ld=yes
10921 ;;
10922 *)
10923 lt_cv_prog_gnu_ld=no
10924 ;;
10925 esac
10926 fi
10927 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10928 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10929 with_gnu_ld=$lt_cv_prog_gnu_ld
10930
10931
10932
10933 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10934 # archiving commands below assume that GNU ld is being used.
10935 if test "$with_gnu_ld" = yes; then
10936 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10937 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'
10938
10939 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10940 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10941
10942 # If archive_cmds runs LD, not CC, wlarc should be empty
10943 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10944 # investigate it a little bit more. (MM)
10945 wlarc='${wl}'
10946
10947 # ancient GNU ld didn't support --whole-archive et. al.
10948 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10949 grep 'no-whole-archive' > /dev/null; then
10950 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10951 else
10952 whole_archive_flag_spec_CXX=
10953 fi
10954 else
10955 with_gnu_ld=no
10956 wlarc=
10957
10958 # A generic and very simple default shared library creation
10959 # command for GNU C++ for the case where it uses the native
10960 # linker, instead of GNU ld. If possible, this setting should
10961 # overridden to take advantage of the native linker features on
10962 # the platform it is being used on.
10963 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10964 fi
10965
10966 # Commands to make compiler produce verbose output that lists
10967 # what "hidden" libraries, object files and flags are used when
10968 # linking a shared library.
10969 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10970
10971 else
10972 GXX=no
10973 with_gnu_ld=no
10974 wlarc=
10975 fi
10976
10977 # PORTME: fill in a description of your system's C++ link characteristics
10978 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10979 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10980 ld_shlibs_CXX=yes
10981 case $host_os in
10982 aix3*)
10983 # FIXME: insert proper C++ library support
10984 ld_shlibs_CXX=no
10985 ;;
10986 aix4* | aix5*)
10987 if test "$host_cpu" = ia64; then
10988 # On IA64, the linker does run time linking by default, so we don't
10989 # have to do anything special.
10990 aix_use_runtimelinking=no
10991 exp_sym_flag='-Bexport'
10992 no_entry_flag=""
10993 else
10994 aix_use_runtimelinking=no
10995
10996 # Test if we are trying to use run time linking or normal
10997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10998 # need to do runtime linking.
10999 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11000 for ld_flag in $LDFLAGS; do
11001 case $ld_flag in
11002 *-brtl*)
11003 aix_use_runtimelinking=yes
11004 break
11005 ;;
11006 esac
11007 done
11008 esac
11009
11010 exp_sym_flag='-bexport'
11011 no_entry_flag='-bnoentry'
11012 fi
11013
11014 # When large executables or shared objects are built, AIX ld can
11015 # have problems creating the table of contents. If linking a library
11016 # or program results in "error TOC overflow" add -mminimal-toc to
11017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11019
11020 archive_cmds_CXX=''
11021 hardcode_direct_CXX=yes
11022 hardcode_libdir_separator_CXX=':'
11023 link_all_deplibs_CXX=yes
11024
11025 if test "$GXX" = yes; then
11026 case $host_os in aix4.012|aix4.012.*)
11027 # We only want to do this on AIX 4.2 and lower, the check
11028 # below for broken collect2 doesn't work under 4.3+
11029 collect2name=`${CC} -print-prog-name=collect2`
11030 if test -f "$collect2name" && \
11031 strings "$collect2name" | grep resolve_lib_name >/dev/null
11032 then
11033 # We have reworked collect2
11034 hardcode_direct_CXX=yes
11035 else
11036 # We have old collect2
11037 hardcode_direct_CXX=unsupported
11038 # It fails to find uninstalled libraries when the uninstalled
11039 # path is not listed in the libpath. Setting hardcode_minus_L
11040 # to unsupported forces relinking
11041 hardcode_minus_L_CXX=yes
11042 hardcode_libdir_flag_spec_CXX='-L$libdir'
11043 hardcode_libdir_separator_CXX=
11044 fi
11045 esac
11046 shared_flag='-shared'
11047 else
11048 # not using gcc
11049 if test "$host_cpu" = ia64; then
11050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11051 # chokes on -Wl,-G. The following line is correct:
11052 shared_flag='-G'
11053 else
11054 if test "$aix_use_runtimelinking" = yes; then
11055 shared_flag='${wl}-G'
11056 else
11057 shared_flag='${wl}-bM:SRE'
11058 fi
11059 fi
11060 fi
11061
11062 # It seems that -bexpall does not export symbols beginning with
11063 # underscore (_), so it is better to generate a list of symbols to export.
11064 always_export_symbols_CXX=yes
11065 if test "$aix_use_runtimelinking" = yes; then
11066 # Warning - without using the other runtime loading flags (-brtl),
11067 # -berok will link without error, but may produce a broken library.
11068 allow_undefined_flag_CXX='-berok'
11069 # Determine the default libpath from the value encoded in an empty executable.
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076
11077 int
11078 main ()
11079 {
11080
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_cxx_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest$ac_exeext &&
11102 $as_test_x conftest$ac_exeext; then
11103
11104 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11105 }'`
11106 # Check for a 64-bit object if we didn't find anything.
11107 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; }
11108 }'`; fi
11109 else
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113
11114 fi
11115
11116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11117 conftest$ac_exeext conftest.$ac_ext
11118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11119
11120 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11121
11122 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11123 else
11124 if test "$host_cpu" = ia64; then
11125 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11126 allow_undefined_flag_CXX="-z nodefs"
11127 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11128 else
11129 # Determine the default libpath from the value encoded in an empty executable.
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h. */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136
11137 int
11138 main ()
11139 {
11140
11141 ;
11142 return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && {
11159 test -z "$ac_cxx_werror_flag" ||
11160 test ! -s conftest.err
11161 } && test -s conftest$ac_exeext &&
11162 $as_test_x conftest$ac_exeext; then
11163
11164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11165 }'`
11166 # Check for a 64-bit object if we didn't find anything.
11167 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; }
11168 }'`; fi
11169 else
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173
11174 fi
11175
11176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11177 conftest$ac_exeext conftest.$ac_ext
11178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11179
11180 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11181 # Warning - without using the other run time loading flags,
11182 # -berok will link without error, but may produce a broken library.
11183 no_undefined_flag_CXX=' ${wl}-bernotok'
11184 allow_undefined_flag_CXX=' ${wl}-berok'
11185 # -bexpall does not export symbols beginning with underscore (_)
11186 always_export_symbols_CXX=yes
11187 # Exported symbols can be pulled into shared objects from archives
11188 whole_archive_flag_spec_CXX=' '
11189 archive_cmds_need_lc_CXX=yes
11190 # This is similar to how AIX traditionally builds it's shared libraries.
11191 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11192 fi
11193 fi
11194 ;;
11195 chorus*)
11196 case $cc_basename in
11197 *)
11198 # FIXME: insert proper C++ library support
11199 ld_shlibs_CXX=no
11200 ;;
11201 esac
11202 ;;
11203
11204
11205 cygwin* | mingw* | pw32*)
11206 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11207 # as there is no search path for DLLs.
11208 hardcode_libdir_flag_spec_CXX='-L$libdir'
11209 allow_undefined_flag_CXX=unsupported
11210 always_export_symbols_CXX=no
11211 enable_shared_with_static_runtimes_CXX=yes
11212
11213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11214 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11215 # If the export-symbols file already is a .def file (1st line
11216 # is EXPORTS), use it as is; otherwise, prepend...
11217 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11218 cp $export_symbols $output_objdir/$soname.def;
11219 else
11220 echo EXPORTS > $output_objdir/$soname.def;
11221 cat $export_symbols >> $output_objdir/$soname.def;
11222 fi~
11223 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11224 else
11225 ld_shlibs_CXX=no
11226 fi
11227 ;;
11228 darwin* | rhapsody*)
11229 case "$host_os" in
11230 rhapsody* | darwin1.[012])
11231 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11232 ;;
11233 *) # Darwin 1.3 on
11234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11235 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11236 else
11237 case ${MACOSX_DEPLOYMENT_TARGET} in
11238 10.[012])
11239 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11240 ;;
11241 10.*)
11242 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11243 ;;
11244 esac
11245 fi
11246 ;;
11247 esac
11248 archive_cmds_need_lc_CXX=no
11249 hardcode_direct_CXX=no
11250 hardcode_automatic_CXX=yes
11251 hardcode_shlibpath_var_CXX=unsupported
11252 whole_archive_flag_spec_CXX=''
11253 link_all_deplibs_CXX=yes
11254
11255 if test "$GXX" = yes ; then
11256 lt_int_apple_cc_single_mod=no
11257 output_verbose_link_cmd='echo'
11258 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11259 lt_int_apple_cc_single_mod=yes
11260 fi
11261 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11262 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11263 else
11264 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'
11265 fi
11266 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11269 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}'
11270 else
11271 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}'
11272 fi
11273 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}'
11274 else
11275 case "$cc_basename" in
11276 xlc*)
11277 output_verbose_link_cmd='echo'
11278 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'
11279 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11281 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}'
11282 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}'
11283 ;;
11284 *)
11285 ld_shlibs_CXX=no
11286 ;;
11287 esac
11288 fi
11289 ;;
11290
11291 dgux*)
11292 case $cc_basename in
11293 ec++)
11294 # FIXME: insert proper C++ library support
11295 ld_shlibs_CXX=no
11296 ;;
11297 ghcx)
11298 # Green Hills C++ Compiler
11299 # FIXME: insert proper C++ library support
11300 ld_shlibs_CXX=no
11301 ;;
11302 *)
11303 # FIXME: insert proper C++ library support
11304 ld_shlibs_CXX=no
11305 ;;
11306 esac
11307 ;;
11308 freebsd12*)
11309 # C++ shared libraries reported to be fairly broken before switch to ELF
11310 ld_shlibs_CXX=no
11311 ;;
11312 freebsd-elf*)
11313 archive_cmds_need_lc_CXX=no
11314 ;;
11315 freebsd* | kfreebsd*-gnu)
11316 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11317 # conventions
11318 ld_shlibs_CXX=yes
11319 ;;
11320 gnu*)
11321 ;;
11322 hpux9*)
11323 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324 hardcode_libdir_separator_CXX=:
11325 export_dynamic_flag_spec_CXX='${wl}-E'
11326 hardcode_direct_CXX=yes
11327 hardcode_minus_L_CXX=yes # Not in the search PATH,
11328 # but as the default
11329 # location of the library.
11330
11331 case $cc_basename in
11332 CC)
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11335 ;;
11336 aCC)
11337 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'
11338 # Commands to make compiler produce verbose output that lists
11339 # what "hidden" libraries, object files and flags are used when
11340 # linking a shared library.
11341 #
11342 # There doesn't appear to be a way to prevent this compiler from
11343 # explicitly linking system object files so we need to strip them
11344 # from the output so that they don't get included in the library
11345 # dependencies.
11346 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'
11347 ;;
11348 *)
11349 if test "$GXX" = yes; then
11350 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'
11351 else
11352 # FIXME: insert proper C++ library support
11353 ld_shlibs_CXX=no
11354 fi
11355 ;;
11356 esac
11357 ;;
11358 hpux10*|hpux11*)
11359 if test $with_gnu_ld = no; then
11360 case "$host_cpu" in
11361 hppa*64*)
11362 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11363 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11364 hardcode_libdir_separator_CXX=:
11365 ;;
11366 ia64*)
11367 hardcode_libdir_flag_spec_CXX='-L$libdir'
11368 ;;
11369 *)
11370 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11371 hardcode_libdir_separator_CXX=:
11372 export_dynamic_flag_spec_CXX='${wl}-E'
11373 ;;
11374 esac
11375 fi
11376 case "$host_cpu" in
11377 hppa*64*)
11378 hardcode_direct_CXX=no
11379 hardcode_shlibpath_var_CXX=no
11380 ;;
11381 ia64*)
11382 hardcode_direct_CXX=no
11383 hardcode_shlibpath_var_CXX=no
11384 hardcode_minus_L_CXX=yes # Not in the search PATH,
11385 # but as the default
11386 # location of the library.
11387 ;;
11388 *)
11389 hardcode_direct_CXX=yes
11390 hardcode_minus_L_CXX=yes # Not in the search PATH,
11391 # but as the default
11392 # location of the library.
11393 ;;
11394 esac
11395
11396 case $cc_basename in
11397 CC)
11398 # FIXME: insert proper C++ library support
11399 ld_shlibs_CXX=no
11400 ;;
11401 aCC)
11402 case "$host_cpu" in
11403 hppa*64*|ia64*)
11404 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11405 ;;
11406 *)
11407 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11408 ;;
11409 esac
11410 # Commands to make compiler produce verbose output that lists
11411 # what "hidden" libraries, object files and flags are used when
11412 # linking a shared library.
11413 #
11414 # There doesn't appear to be a way to prevent this compiler from
11415 # explicitly linking system object files so we need to strip them
11416 # from the output so that they don't get included in the library
11417 # dependencies.
11418 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'
11419 ;;
11420 *)
11421 if test "$GXX" = yes; then
11422 if test $with_gnu_ld = no; then
11423 case "$host_cpu" in
11424 ia64*|hppa*64*)
11425 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11426 ;;
11427 *)
11428 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'
11429 ;;
11430 esac
11431 fi
11432 else
11433 # FIXME: insert proper C++ library support
11434 ld_shlibs_CXX=no
11435 fi
11436 ;;
11437 esac
11438 ;;
11439 irix5* | irix6*)
11440 case $cc_basename in
11441 CC)
11442 # SGI C++
11443 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 ${objdir}/so_locations -o $lib'
11444
11445 # Archives containing C++ object files must be created using
11446 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11447 # necessary to make sure instantiated templates are included
11448 # in the archive.
11449 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11450 ;;
11451 *)
11452 if test "$GXX" = yes; then
11453 if test "$with_gnu_ld" = no; then
11454 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}${objdir}/so_locations -o $lib'
11455 else
11456 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'
11457 fi
11458 fi
11459 link_all_deplibs_CXX=yes
11460 ;;
11461 esac
11462 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11463 hardcode_libdir_separator_CXX=:
11464 ;;
11465 linux*)
11466 case $cc_basename in
11467 KCC)
11468 # Kuck and Associates, Inc. (KAI) C++ Compiler
11469
11470 # KCC will only create a shared library if the output file
11471 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11472 # to its proper name (with version) after linking.
11473 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'
11474 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'
11475 # Commands to make compiler produce verbose output that lists
11476 # what "hidden" libraries, object files and flags are used when
11477 # linking a shared library.
11478 #
11479 # There doesn't appear to be a way to prevent this compiler from
11480 # explicitly linking system object files so we need to strip them
11481 # from the output so that they don't get included in the library
11482 # dependencies.
11483 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'
11484
11485 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11486 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11487
11488 # Archives containing C++ object files must be created using
11489 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11490 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11491 ;;
11492 icpc)
11493 # Intel C++
11494 with_gnu_ld=yes
11495 # version 8.0 and above of icpc choke on multiply defined symbols
11496 # if we add $predep_objects and $postdep_objects, however 7.1 and
11497 # earlier do not add the objects themselves.
11498 case `$CC -V 2>&1` in
11499 *"Version 7."*)
11500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501 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'
11502 ;;
11503 *) # Version 8.0 or newer
11504 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11505 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11506 ;;
11507 esac
11508 archive_cmds_need_lc_CXX=no
11509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11510 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11511 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11512 ;;
11513 cxx)
11514 # Compaq C++
11515 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516 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'
11517
11518 runpath_var=LD_RUN_PATH
11519 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11520 hardcode_libdir_separator_CXX=:
11521
11522 # Commands to make compiler produce verbose output that lists
11523 # what "hidden" libraries, object files and flags are used when
11524 # linking a shared library.
11525 #
11526 # There doesn't appear to be a way to prevent this compiler from
11527 # explicitly linking system object files so we need to strip them
11528 # from the output so that they don't get included in the library
11529 # dependencies.
11530 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'
11531 ;;
11532 esac
11533 ;;
11534 lynxos*)
11535 # FIXME: insert proper C++ library support
11536 ld_shlibs_CXX=no
11537 ;;
11538 m88k*)
11539 # FIXME: insert proper C++ library support
11540 ld_shlibs_CXX=no
11541 ;;
11542 mvs*)
11543 case $cc_basename in
11544 cxx)
11545 # FIXME: insert proper C++ library support
11546 ld_shlibs_CXX=no
11547 ;;
11548 *)
11549 # FIXME: insert proper C++ library support
11550 ld_shlibs_CXX=no
11551 ;;
11552 esac
11553 ;;
11554 netbsd*)
11555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11556 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11557 wlarc=
11558 hardcode_libdir_flag_spec_CXX='-R$libdir'
11559 hardcode_direct_CXX=yes
11560 hardcode_shlibpath_var_CXX=no
11561 fi
11562 # Workaround some broken pre-1.5 toolchains
11563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11564 ;;
11565 openbsd2*)
11566 # C++ shared libraries are fairly broken
11567 ld_shlibs_CXX=no
11568 ;;
11569 openbsd*)
11570 hardcode_direct_CXX=yes
11571 hardcode_shlibpath_var_CXX=no
11572 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11573 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11575 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11576 export_dynamic_flag_spec_CXX='${wl}-E'
11577 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11578 fi
11579 output_verbose_link_cmd='echo'
11580 ;;
11581 osf3*)
11582 case $cc_basename in
11583 KCC)
11584 # Kuck and Associates, Inc. (KAI) C++ Compiler
11585
11586 # KCC will only create a shared library if the output file
11587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11588 # to its proper name (with version) after linking.
11589 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'
11590
11591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11592 hardcode_libdir_separator_CXX=:
11593
11594 # Archives containing C++ object files must be created using
11595 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11596 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11597
11598 ;;
11599 RCC)
11600 # Rational C++ 2.4.1
11601 # FIXME: insert proper C++ library support
11602 ld_shlibs_CXX=no
11603 ;;
11604 cxx)
11605 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11606 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 ${objdir}/so_locations -o $lib'
11607
11608 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11609 hardcode_libdir_separator_CXX=:
11610
11611 # Commands to make compiler produce verbose output that lists
11612 # what "hidden" libraries, object files and flags are used when
11613 # linking a shared library.
11614 #
11615 # There doesn't appear to be a way to prevent this compiler from
11616 # explicitly linking system object files so we need to strip them
11617 # from the output so that they don't get included in the library
11618 # dependencies.
11619 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'
11620 ;;
11621 *)
11622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11623 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11624 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}${objdir}/so_locations -o $lib'
11625
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11627 hardcode_libdir_separator_CXX=:
11628
11629 # Commands to make compiler produce verbose output that lists
11630 # what "hidden" libraries, object files and flags are used when
11631 # linking a shared library.
11632 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11633
11634 else
11635 # FIXME: insert proper C++ library support
11636 ld_shlibs_CXX=no
11637 fi
11638 ;;
11639 esac
11640 ;;
11641 osf4* | osf5*)
11642 case $cc_basename in
11643 KCC)
11644 # Kuck and Associates, Inc. (KAI) C++ Compiler
11645
11646 # KCC will only create a shared library if the output file
11647 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11648 # to its proper name (with version) after linking.
11649 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'
11650
11651 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11652 hardcode_libdir_separator_CXX=:
11653
11654 # Archives containing C++ object files must be created using
11655 # the KAI C++ compiler.
11656 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11657 ;;
11658 RCC)
11659 # Rational C++ 2.4.1
11660 # FIXME: insert proper C++ library support
11661 ld_shlibs_CXX=no
11662 ;;
11663 cxx)
11664 allow_undefined_flag_CXX=' -expect_unresolved \*'
11665 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 ${objdir}/so_locations -o $lib'
11666 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11667 echo "-hidden">> $lib.exp~
11668 $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 $objdir/so_locations -o $lib~
11669 $rm $lib.exp'
11670
11671 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11672 hardcode_libdir_separator_CXX=:
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 #
11678 # There doesn't appear to be a way to prevent this compiler from
11679 # explicitly linking system object files so we need to strip them
11680 # from the output so that they don't get included in the library
11681 # dependencies.
11682 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'
11683 ;;
11684 *)
11685 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11686 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11687 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}${objdir}/so_locations -o $lib'
11688
11689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11690 hardcode_libdir_separator_CXX=:
11691
11692 # Commands to make compiler produce verbose output that lists
11693 # what "hidden" libraries, object files and flags are used when
11694 # linking a shared library.
11695 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11696
11697 else
11698 # FIXME: insert proper C++ library support
11699 ld_shlibs_CXX=no
11700 fi
11701 ;;
11702 esac
11703 ;;
11704 psos*)
11705 # FIXME: insert proper C++ library support
11706 ld_shlibs_CXX=no
11707 ;;
11708 sco*)
11709 archive_cmds_need_lc_CXX=no
11710 case $cc_basename in
11711 CC)
11712 # FIXME: insert proper C++ library support
11713 ld_shlibs_CXX=no
11714 ;;
11715 *)
11716 # FIXME: insert proper C++ library support
11717 ld_shlibs_CXX=no
11718 ;;
11719 esac
11720 ;;
11721 sunos4*)
11722 case $cc_basename in
11723 CC)
11724 # Sun C++ 4.x
11725 # FIXME: insert proper C++ library support
11726 ld_shlibs_CXX=no
11727 ;;
11728 lcc)
11729 # Lucid
11730 # FIXME: insert proper C++ library support
11731 ld_shlibs_CXX=no
11732 ;;
11733 *)
11734 # FIXME: insert proper C++ library support
11735 ld_shlibs_CXX=no
11736 ;;
11737 esac
11738 ;;
11739 solaris*)
11740 case $cc_basename in
11741 CC)
11742 # Sun C++ 4.2, 5.x and Centerline C++
11743 no_undefined_flag_CXX=' -zdefs'
11744 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11745 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11746 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11747
11748 hardcode_libdir_flag_spec_CXX='-R$libdir'
11749 hardcode_shlibpath_var_CXX=no
11750 case $host_os in
11751 solaris2.0-5 | solaris2.0-5.*) ;;
11752 *)
11753 # The C++ compiler is used as linker so we must use $wl
11754 # flag to pass the commands to the underlying system
11755 # linker.
11756 # Supported since Solaris 2.6 (maybe 2.5.1?)
11757 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11758 ;;
11759 esac
11760 link_all_deplibs_CXX=yes
11761
11762 # Commands to make compiler produce verbose output that lists
11763 # what "hidden" libraries, object files and flags are used when
11764 # linking a shared library.
11765 #
11766 # There doesn't appear to be a way to prevent this compiler from
11767 # explicitly linking system object files so we need to strip them
11768 # from the output so that they don't get included in the library
11769 # dependencies.
11770 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11771
11772 # Archives containing C++ object files must be created using
11773 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11774 # necessary to make sure instantiated templates are included
11775 # in the archive.
11776 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11777 ;;
11778 gcx)
11779 # Green Hills C++ Compiler
11780 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11781
11782 # The C++ compiler must be used to create the archive.
11783 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11784 ;;
11785 *)
11786 # GNU C++ compiler with Solaris linker
11787 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11788 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11789 if $CC --version | grep -v '^2\.7' > /dev/null; then
11790 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11791 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11792 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11793
11794 # Commands to make compiler produce verbose output that lists
11795 # what "hidden" libraries, object files and flags are used when
11796 # linking a shared library.
11797 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11798 else
11799 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11800 # platform.
11801 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11802 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11803 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11804
11805 # Commands to make compiler produce verbose output that lists
11806 # what "hidden" libraries, object files and flags are used when
11807 # linking a shared library.
11808 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11809 fi
11810
11811 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11812 fi
11813 ;;
11814 esac
11815 ;;
11816 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11817 archive_cmds_need_lc_CXX=no
11818 ;;
11819 tandem*)
11820 case $cc_basename in
11821 NCC)
11822 # NonStop-UX NCC 3.20
11823 # FIXME: insert proper C++ library support
11824 ld_shlibs_CXX=no
11825 ;;
11826 *)
11827 # FIXME: insert proper C++ library support
11828 ld_shlibs_CXX=no
11829 ;;
11830 esac
11831 ;;
11832 vxworks*)
11833 # FIXME: insert proper C++ library support
11834 ld_shlibs_CXX=no
11835 ;;
11836 *)
11837 # FIXME: insert proper C++ library support
11838 ld_shlibs_CXX=no
11839 ;;
11840 esac
11841 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11842 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11843 test "$ld_shlibs_CXX" = no && can_build_shared=no
11844
11845 GCC_CXX="$GXX"
11846 LD_CXX="$LD"
11847
11848
11849 cat > conftest.$ac_ext <<EOF
11850 class Foo
11851 {
11852 public:
11853 Foo (void) { a = 0; }
11854 private:
11855 int a;
11856 };
11857 EOF
11858
11859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860 (eval $ac_compile) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; then
11864 # Parse the compiler output and extract the necessary
11865 # objects, libraries and library flags.
11866
11867 # Sentinel used to keep track of whether or not we are before
11868 # the conftest object file.
11869 pre_test_object_deps_done=no
11870
11871 # The `*' in the case matches for architectures that use `case' in
11872 # $output_verbose_cmd can trigger glob expansion during the loop
11873 # eval without this substitution.
11874 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11875
11876 for p in `eval $output_verbose_link_cmd`; do
11877 case $p in
11878
11879 -L* | -R* | -l*)
11880 # Some compilers place space between "-{L,R}" and the path.
11881 # Remove the space.
11882 if test $p = "-L" \
11883 || test $p = "-R"; then
11884 prev=$p
11885 continue
11886 else
11887 prev=
11888 fi
11889
11890 if test "$pre_test_object_deps_done" = no; then
11891 case $p in
11892 -L* | -R*)
11893 # Internal compiler library paths should come after those
11894 # provided the user. The postdeps already come after the
11895 # user supplied libs so there is no need to process them.
11896 if test -z "$compiler_lib_search_path_CXX"; then
11897 compiler_lib_search_path_CXX="${prev}${p}"
11898 else
11899 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11900 fi
11901 ;;
11902 # The "-l" case would never come before the object being
11903 # linked, so don't bother handling this case.
11904 esac
11905 else
11906 if test -z "$postdeps_CXX"; then
11907 postdeps_CXX="${prev}${p}"
11908 else
11909 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11910 fi
11911 fi
11912 ;;
11913
11914 *.$objext)
11915 # This assumes that the test object file only shows up
11916 # once in the compiler output.
11917 if test "$p" = "conftest.$objext"; then
11918 pre_test_object_deps_done=yes
11919 continue
11920 fi
11921
11922 if test "$pre_test_object_deps_done" = no; then
11923 if test -z "$predep_objects_CXX"; then
11924 predep_objects_CXX="$p"
11925 else
11926 predep_objects_CXX="$predep_objects_CXX $p"
11927 fi
11928 else
11929 if test -z "$postdep_objects_CXX"; then
11930 postdep_objects_CXX="$p"
11931 else
11932 postdep_objects_CXX="$postdep_objects_CXX $p"
11933 fi
11934 fi
11935 ;;
11936
11937 *) ;; # Ignore the rest.
11938
11939 esac
11940 done
11941
11942 # Clean up.
11943 rm -f a.out a.exe
11944 else
11945 echo "libtool.m4: error: problem compiling CXX test program"
11946 fi
11947
11948 $rm -f confest.$objext
11949
11950 case " $postdeps_CXX " in
11951 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11952 esac
11953
11954 lt_prog_compiler_wl_CXX=
11955 lt_prog_compiler_pic_CXX=
11956 lt_prog_compiler_static_CXX=
11957
11958 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11959 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11960
11961 # C++ specific cases for pic, static, wl, etc.
11962 if test "$GXX" = yes; then
11963 lt_prog_compiler_wl_CXX='-Wl,'
11964 lt_prog_compiler_static_CXX='-static'
11965
11966 case $host_os in
11967 aix*)
11968 # All AIX code is PIC.
11969 if test "$host_cpu" = ia64; then
11970 # AIX 5 now supports IA64 processor
11971 lt_prog_compiler_static_CXX='-Bstatic'
11972 fi
11973 ;;
11974 amigaos*)
11975 # FIXME: we need at least 68020 code to build shared libraries, but
11976 # adding the `-m68020' flag to GCC prevents building anything better,
11977 # like `-m68040'.
11978 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11979 ;;
11980 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11981 # PIC is the default for these OSes.
11982 ;;
11983 mingw* | os2* | pw32*)
11984 # This hack is so that the source file can tell whether it is being
11985 # built for inclusion in a dll (and should export symbols for example).
11986 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11987 ;;
11988 darwin* | rhapsody*)
11989 # PIC is the default on this platform
11990 # Common symbols not allowed in MH_DYLIB files
11991 lt_prog_compiler_pic_CXX='-fno-common'
11992 ;;
11993 *djgpp*)
11994 # DJGPP does not support shared libraries at all
11995 lt_prog_compiler_pic_CXX=
11996 ;;
11997 sysv4*MP*)
11998 if test -d /usr/nec; then
11999 lt_prog_compiler_pic_CXX=-Kconform_pic
12000 fi
12001 ;;
12002 hpux*)
12003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12004 # not for PA HP-UX.
12005 case "$host_cpu" in
12006 hppa*64*|ia64*)
12007 ;;
12008 *)
12009 lt_prog_compiler_pic_CXX='-fPIC'
12010 ;;
12011 esac
12012 ;;
12013 *)
12014 lt_prog_compiler_pic_CXX='-fPIC'
12015 ;;
12016 esac
12017 else
12018 case $host_os in
12019 aix4* | aix5*)
12020 # All AIX code is PIC.
12021 if test "$host_cpu" = ia64; then
12022 # AIX 5 now supports IA64 processor
12023 lt_prog_compiler_static_CXX='-Bstatic'
12024 else
12025 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12026 fi
12027 ;;
12028 chorus*)
12029 case $cc_basename in
12030 cxch68)
12031 # Green Hills C++ Compiler
12032 # _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"
12033 ;;
12034 esac
12035 ;;
12036 darwin*)
12037 # PIC is the default on this platform
12038 # Common symbols not allowed in MH_DYLIB files
12039 case "$cc_basename" in
12040 xlc*)
12041 lt_prog_compiler_pic_CXX='-qnocommon'
12042 lt_prog_compiler_wl_CXX='-Wl,'
12043 ;;
12044 esac
12045 ;;
12046 dgux*)
12047 case $cc_basename in
12048 ec++)
12049 lt_prog_compiler_pic_CXX='-KPIC'
12050 ;;
12051 ghcx)
12052 # Green Hills C++ Compiler
12053 lt_prog_compiler_pic_CXX='-pic'
12054 ;;
12055 *)
12056 ;;
12057 esac
12058 ;;
12059 freebsd* | kfreebsd*-gnu)
12060 # FreeBSD uses GNU C++
12061 ;;
12062 hpux9* | hpux10* | hpux11*)
12063 case $cc_basename in
12064 CC)
12065 lt_prog_compiler_wl_CXX='-Wl,'
12066 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12067 if test "$host_cpu" != ia64; then
12068 lt_prog_compiler_pic_CXX='+Z'
12069 fi
12070 ;;
12071 aCC)
12072 lt_prog_compiler_wl_CXX='-Wl,'
12073 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12074 case "$host_cpu" in
12075 hppa*64*|ia64*)
12076 # +Z the default
12077 ;;
12078 *)
12079 lt_prog_compiler_pic_CXX='+Z'
12080 ;;
12081 esac
12082 ;;
12083 *)
12084 ;;
12085 esac
12086 ;;
12087 irix5* | irix6* | nonstopux*)
12088 case $cc_basename in
12089 CC)
12090 lt_prog_compiler_wl_CXX='-Wl,'
12091 lt_prog_compiler_static_CXX='-non_shared'
12092 # CC pic flag -KPIC is the default.
12093 ;;
12094 *)
12095 ;;
12096 esac
12097 ;;
12098 linux*)
12099 case $cc_basename in
12100 KCC)
12101 # KAI C++ Compiler
12102 lt_prog_compiler_wl_CXX='--backend -Wl,'
12103 lt_prog_compiler_pic_CXX='-fPIC'
12104 ;;
12105 icpc)
12106 # Intel C++
12107 lt_prog_compiler_wl_CXX='-Wl,'
12108 lt_prog_compiler_pic_CXX='-KPIC'
12109 lt_prog_compiler_static_CXX='-static'
12110 ;;
12111 cxx)
12112 # Compaq C++
12113 # Make sure the PIC flag is empty. It appears that all Alpha
12114 # Linux and Compaq Tru64 Unix objects are PIC.
12115 lt_prog_compiler_pic_CXX=
12116 lt_prog_compiler_static_CXX='-non_shared'
12117 ;;
12118 *)
12119 ;;
12120 esac
12121 ;;
12122 lynxos*)
12123 ;;
12124 m88k*)
12125 ;;
12126 mvs*)
12127 case $cc_basename in
12128 cxx)
12129 lt_prog_compiler_pic_CXX='-W c,exportall'
12130 ;;
12131 *)
12132 ;;
12133 esac
12134 ;;
12135 netbsd*)
12136 ;;
12137 osf3* | osf4* | osf5*)
12138 case $cc_basename in
12139 KCC)
12140 lt_prog_compiler_wl_CXX='--backend -Wl,'
12141 ;;
12142 RCC)
12143 # Rational C++ 2.4.1
12144 lt_prog_compiler_pic_CXX='-pic'
12145 ;;
12146 cxx)
12147 # Digital/Compaq C++
12148 lt_prog_compiler_wl_CXX='-Wl,'
12149 # Make sure the PIC flag is empty. It appears that all Alpha
12150 # Linux and Compaq Tru64 Unix objects are PIC.
12151 lt_prog_compiler_pic_CXX=
12152 lt_prog_compiler_static_CXX='-non_shared'
12153 ;;
12154 *)
12155 ;;
12156 esac
12157 ;;
12158 psos*)
12159 ;;
12160 sco*)
12161 case $cc_basename in
12162 CC)
12163 lt_prog_compiler_pic_CXX='-fPIC'
12164 ;;
12165 *)
12166 ;;
12167 esac
12168 ;;
12169 solaris*)
12170 case $cc_basename in
12171 CC)
12172 # Sun C++ 4.2, 5.x and Centerline C++
12173 lt_prog_compiler_pic_CXX='-KPIC'
12174 lt_prog_compiler_static_CXX='-Bstatic'
12175 lt_prog_compiler_wl_CXX='-Qoption ld '
12176 ;;
12177 gcx)
12178 # Green Hills C++ Compiler
12179 lt_prog_compiler_pic_CXX='-PIC'
12180 ;;
12181 *)
12182 ;;
12183 esac
12184 ;;
12185 sunos4*)
12186 case $cc_basename in
12187 CC)
12188 # Sun C++ 4.x
12189 lt_prog_compiler_pic_CXX='-pic'
12190 lt_prog_compiler_static_CXX='-Bstatic'
12191 ;;
12192 lcc)
12193 # Lucid
12194 lt_prog_compiler_pic_CXX='-pic'
12195 ;;
12196 *)
12197 ;;
12198 esac
12199 ;;
12200 tandem*)
12201 case $cc_basename in
12202 NCC)
12203 # NonStop-UX NCC 3.20
12204 lt_prog_compiler_pic_CXX='-KPIC'
12205 ;;
12206 *)
12207 ;;
12208 esac
12209 ;;
12210 unixware*)
12211 ;;
12212 vxworks*)
12213 ;;
12214 *)
12215 lt_prog_compiler_can_build_shared_CXX=no
12216 ;;
12217 esac
12218 fi
12219
12220 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12221 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12222
12223 #
12224 # Check to make sure the PIC flag actually works.
12225 #
12226 if test -n "$lt_prog_compiler_pic_CXX"; then
12227
12228 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12229 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12230 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 lt_prog_compiler_pic_works_CXX=no
12234 ac_outfile=conftest.$ac_objext
12235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12236 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12237 # Insert the option either (1) after the last *FLAGS variable, or
12238 # (2) before a word containing "conftest.", or (3) at the end.
12239 # Note that $ac_compile itself does not contain backslashes and begins
12240 # with a dollar sign (not a hyphen), so the echo should work correctly.
12241 # The option is referenced via a variable to avoid confusing sed.
12242 lt_compile=`echo "$ac_compile" | $SED \
12243 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12245 -e 's:$: $lt_compiler_flag:'`
12246 (eval echo "\"\$as_me:12246: $lt_compile\"" >&5)
12247 (eval "$lt_compile" 2>conftest.err)
12248 ac_status=$?
12249 cat conftest.err >&5
12250 echo "$as_me:12250: \$? = $ac_status" >&5
12251 if (exit $ac_status) && test -s "$ac_outfile"; then
12252 # The compiler can only warn and ignore the option if not recognized
12253 # So say no if there are warnings
12254 if test ! -s conftest.err; then
12255 lt_prog_compiler_pic_works_CXX=yes
12256 fi
12257 fi
12258 $rm conftest*
12259
12260 fi
12261 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12262 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12263
12264 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12265 case $lt_prog_compiler_pic_CXX in
12266 "" | " "*) ;;
12267 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12268 esac
12269 else
12270 lt_prog_compiler_pic_CXX=
12271 lt_prog_compiler_can_build_shared_CXX=no
12272 fi
12273
12274 fi
12275 case "$host_os" in
12276 # For platforms which do not support PIC, -DPIC is meaningless:
12277 *djgpp*)
12278 lt_prog_compiler_pic_CXX=
12279 ;;
12280 *)
12281 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12282 ;;
12283 esac
12284
12285 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12287 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 lt_cv_prog_compiler_c_o_CXX=no
12291 $rm -r conftest 2>/dev/null
12292 mkdir conftest
12293 cd conftest
12294 mkdir out
12295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12296
12297 lt_compiler_flag="-o out/conftest2.$ac_objext"
12298 # Insert the option either (1) after the last *FLAGS variable, or
12299 # (2) before a word containing "conftest.", or (3) at the end.
12300 # Note that $ac_compile itself does not contain backslashes and begins
12301 # with a dollar sign (not a hyphen), so the echo should work correctly.
12302 lt_compile=`echo "$ac_compile" | $SED \
12303 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12305 -e 's:$: $lt_compiler_flag:'`
12306 (eval echo "\"\$as_me:12306: $lt_compile\"" >&5)
12307 (eval "$lt_compile" 2>out/conftest.err)
12308 ac_status=$?
12309 cat out/conftest.err >&5
12310 echo "$as_me:12310: \$? = $ac_status" >&5
12311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12312 then
12313 # The compiler can only warn and ignore the option if not recognized
12314 # So say no if there are warnings
12315 if test ! -s out/conftest.err; then
12316 lt_cv_prog_compiler_c_o_CXX=yes
12317 fi
12318 fi
12319 chmod u+w .
12320 $rm conftest*
12321 # SGI C++ compiler will create directory out/ii_files/ for
12322 # template instantiation
12323 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12324 $rm out/* && rmdir out
12325 cd ..
12326 rmdir conftest
12327 $rm conftest*
12328
12329 fi
12330 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12331 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12332
12333
12334 hard_links="nottested"
12335 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12336 # do not overwrite the value of need_locks provided by the user
12337 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12338 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12339 hard_links=yes
12340 $rm conftest*
12341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12342 touch conftest.a
12343 ln conftest.a conftest.b 2>&5 || hard_links=no
12344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12345 { echo "$as_me:$LINENO: result: $hard_links" >&5
12346 echo "${ECHO_T}$hard_links" >&6; }
12347 if test "$hard_links" = no; then
12348 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12349 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12350 need_locks=warn
12351 fi
12352 else
12353 need_locks=no
12354 fi
12355
12356 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12357 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12358
12359 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12360 case $host_os in
12361 aix4* | aix5*)
12362 # If we're using GNU nm, then we don't want the "-C" option.
12363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12364 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12365 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'
12366 else
12367 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'
12368 fi
12369 ;;
12370 pw32*)
12371 export_symbols_cmds_CXX="$ltdll_cmds"
12372 ;;
12373 cygwin* | mingw*)
12374 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12375 ;;
12376 *)
12377 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12378 ;;
12379 esac
12380
12381 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12382 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12383 test "$ld_shlibs_CXX" = no && can_build_shared=no
12384
12385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12386 if test "$GCC" = yes; then
12387 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12388 fi
12389
12390 #
12391 # Do we need to explicitly link libc?
12392 #
12393 case "x$archive_cmds_need_lc_CXX" in
12394 x|xyes)
12395 # Assume -lc should be added
12396 archive_cmds_need_lc_CXX=yes
12397
12398 if test "$enable_shared" = yes && test "$GCC" = yes; then
12399 case $archive_cmds_CXX in
12400 *'~'*)
12401 # FIXME: we may have to deal with multi-command sequences.
12402 ;;
12403 '$CC '*)
12404 # Test whether the compiler implicitly links with -lc since on some
12405 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12406 # to ld, don't add -lc before -lgcc.
12407 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12408 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12409 $rm conftest*
12410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12411
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } 2>conftest.err; then
12417 soname=conftest
12418 lib=conftest
12419 libobjs=conftest.$ac_objext
12420 deplibs=
12421 wl=$lt_prog_compiler_wl_CXX
12422 compiler_flags=-v
12423 linker_flags=-v
12424 verstring=
12425 output_objdir=.
12426 libname=conftest
12427 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12428 allow_undefined_flag_CXX=
12429 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12430 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }
12434 then
12435 archive_cmds_need_lc_CXX=no
12436 else
12437 archive_cmds_need_lc_CXX=yes
12438 fi
12439 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12440 else
12441 cat conftest.err 1>&5
12442 fi
12443 $rm conftest*
12444 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12445 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12446 ;;
12447 esac
12448 fi
12449 ;;
12450 esac
12451
12452 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12453 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12454 library_names_spec=
12455 libname_spec='lib$name'
12456 soname_spec=
12457 shrext_cmds=".so"
12458 postinstall_cmds=
12459 postuninstall_cmds=
12460 finish_cmds=
12461 finish_eval=
12462 shlibpath_var=
12463 shlibpath_overrides_runpath=unknown
12464 version_type=none
12465 dynamic_linker="$host_os ld.so"
12466 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12467 if test "$GCC" = yes; then
12468 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12469 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12470 # if the path contains ";" then we assume it to be the separator
12471 # otherwise default to the standard path separator (i.e. ":") - it is
12472 # assumed that no part of a normal pathname contains ";" but that should
12473 # okay in the real world where ";" in dirpaths is itself problematic.
12474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12475 else
12476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12477 fi
12478 else
12479 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12480 fi
12481 need_lib_prefix=unknown
12482 hardcode_into_libs=no
12483
12484 # when you set need_version to no, make sure it does not cause -set_version
12485 # flags to be left without arguments
12486 need_version=unknown
12487
12488 case $host_os in
12489 aix3*)
12490 version_type=linux
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12492 shlibpath_var=LIBPATH
12493
12494 # AIX 3 has no versioning support, so we append a major version to the name.
12495 soname_spec='${libname}${release}${shared_ext}$major'
12496 ;;
12497
12498 aix4* | aix5*)
12499 version_type=linux
12500 need_lib_prefix=no
12501 need_version=no
12502 hardcode_into_libs=yes
12503 if test "$host_cpu" = ia64; then
12504 # AIX 5 supports IA64
12505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12506 shlibpath_var=LD_LIBRARY_PATH
12507 else
12508 # With GCC up to 2.95.x, collect2 would create an import file
12509 # for dependence libraries. The import file would start with
12510 # the line `#! .'. This would cause the generated library to
12511 # depend on `.', always an invalid library. This was fixed in
12512 # development snapshots of GCC prior to 3.0.
12513 case $host_os in
12514 aix4 | aix4.[01] | aix4.[01].*)
12515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12516 echo ' yes '
12517 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12518 :
12519 else
12520 can_build_shared=no
12521 fi
12522 ;;
12523 esac
12524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12525 # soname into executable. Probably we can add versioning support to
12526 # collect2, so additional links can be useful in future.
12527 if test "$aix_use_runtimelinking" = yes; then
12528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12529 # instead of lib<name>.a to let people know that these are not
12530 # typical AIX shared libraries.
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12532 else
12533 # We preserve .a as extension for shared libraries through AIX4.2
12534 # and later when we are not doing run time linking.
12535 library_names_spec='${libname}${release}.a $libname.a'
12536 soname_spec='${libname}${release}${shared_ext}$major'
12537 fi
12538 shlibpath_var=LIBPATH
12539 fi
12540 ;;
12541
12542 amigaos*)
12543 library_names_spec='$libname.ixlibrary $libname.a'
12544 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12545 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'
12546 ;;
12547
12548 beos*)
12549 library_names_spec='${libname}${shared_ext}'
12550 dynamic_linker="$host_os ld.so"
12551 shlibpath_var=LIBRARY_PATH
12552 ;;
12553
12554 bsdi[45]*)
12555 version_type=linux
12556 need_version=no
12557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12558 soname_spec='${libname}${release}${shared_ext}$major'
12559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12560 shlibpath_var=LD_LIBRARY_PATH
12561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12563 # the default ld.so.conf also contains /usr/contrib/lib and
12564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12565 # libtool to hard-code these into programs
12566 ;;
12567
12568 cygwin* | mingw* | pw32*)
12569 version_type=windows
12570 shrext_cmds=".dll"
12571 need_version=no
12572 need_lib_prefix=no
12573
12574 case $GCC,$host_os in
12575 yes,cygwin* | yes,mingw* | yes,pw32*)
12576 library_names_spec='$libname.dll.a'
12577 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12578 postinstall_cmds='base_file=`basename \${file}`~
12579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12580 dldir=$destdir/`dirname \$dlpath`~
12581 test -d \$dldir || mkdir -p \$dldir~
12582 $install_prog $dir/$dlname \$dldir/$dlname'
12583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12584 dlpath=$dir/\$dldll~
12585 $rm \$dlpath'
12586 shlibpath_overrides_runpath=yes
12587
12588 case $host_os in
12589 cygwin*)
12590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12591 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12592 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12593 ;;
12594 mingw*)
12595 # MinGW DLLs use traditional 'lib' prefix
12596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12597 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12598 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12599 # It is most probably a Windows format PATH printed by
12600 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12601 # path with ; separators, and with drive letters. We can handle the
12602 # drive letters (cygwin fileutils understands them), so leave them,
12603 # especially as we might pass files found there to a mingw objdump,
12604 # which wouldn't understand a cygwinified path. Ahh.
12605 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12606 else
12607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12608 fi
12609 ;;
12610 pw32*)
12611 # pw32 DLLs use 'pw' prefix rather than 'lib'
12612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12613 ;;
12614 esac
12615 ;;
12616
12617 linux*)
12618 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12620 supports_anon_versioning=no
12621 case `$LD -v 2>/dev/null` in
12622 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12625 *\ 2.11.*) ;; # other 2.11 versions
12626 *) supports_anon_versioning=yes ;;
12627 esac
12628 if test $supports_anon_versioning = yes; then
12629 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12631 $echo "local: *; };" >> $output_objdir/$libname.ver~
12632 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12633 else
12634 $archive_expsym_cmds="$archive_cmds"
12635 fi
12636 else
12637 ld_shlibs=no
12638 fi
12639 ;;
12640
12641 *)
12642 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12643 ;;
12644 esac
12645 dynamic_linker='Win32 ld.exe'
12646 # FIXME: first we should search . and the directory the executable is in
12647 shlibpath_var=PATH
12648 ;;
12649
12650 darwin* | rhapsody*)
12651 dynamic_linker="$host_os dyld"
12652 version_type=darwin
12653 need_lib_prefix=no
12654 need_version=no
12655 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12656 soname_spec='${libname}${release}${major}$shared_ext'
12657 shlibpath_overrides_runpath=yes
12658 shlibpath_var=DYLD_LIBRARY_PATH
12659 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12660 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12661 if test "$GCC" = yes; then
12662 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"`
12663 else
12664 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12665 fi
12666 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12667 ;;
12668
12669 dgux*)
12670 version_type=linux
12671 need_lib_prefix=no
12672 need_version=no
12673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12674 soname_spec='${libname}${release}${shared_ext}$major'
12675 shlibpath_var=LD_LIBRARY_PATH
12676 ;;
12677
12678 freebsd1*)
12679 dynamic_linker=no
12680 ;;
12681
12682 kfreebsd*-gnu)
12683 version_type=linux
12684 need_lib_prefix=no
12685 need_version=no
12686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12687 soname_spec='${libname}${release}${shared_ext}$major'
12688 shlibpath_var=LD_LIBRARY_PATH
12689 shlibpath_overrides_runpath=no
12690 hardcode_into_libs=yes
12691 dynamic_linker='GNU ld.so'
12692 ;;
12693
12694 freebsd*)
12695 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12696 version_type=freebsd-$objformat
12697 case $version_type in
12698 freebsd-elf*)
12699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12700 need_version=no
12701 need_lib_prefix=no
12702 ;;
12703 freebsd-*)
12704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12705 need_version=yes
12706 ;;
12707 esac
12708 shlibpath_var=LD_LIBRARY_PATH
12709 case $host_os in
12710 freebsd2*)
12711 shlibpath_overrides_runpath=yes
12712 ;;
12713 freebsd3.01* | freebsdelf3.01*)
12714 shlibpath_overrides_runpath=yes
12715 hardcode_into_libs=yes
12716 ;;
12717 *) # from 3.2 on
12718 shlibpath_overrides_runpath=no
12719 hardcode_into_libs=yes
12720 ;;
12721 esac
12722 ;;
12723
12724 gnu*)
12725 version_type=linux
12726 need_lib_prefix=no
12727 need_version=no
12728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12729 soname_spec='${libname}${release}${shared_ext}$major'
12730 shlibpath_var=LD_LIBRARY_PATH
12731 hardcode_into_libs=yes
12732 ;;
12733
12734 hpux9* | hpux10* | hpux11*)
12735 # Give a soname corresponding to the major version so that dld.sl refuses to
12736 # link against other versions.
12737 version_type=sunos
12738 need_lib_prefix=no
12739 need_version=no
12740 case "$host_cpu" in
12741 ia64*)
12742 shrext_cmds='.so'
12743 hardcode_into_libs=yes
12744 dynamic_linker="$host_os dld.so"
12745 shlibpath_var=LD_LIBRARY_PATH
12746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12748 soname_spec='${libname}${release}${shared_ext}$major'
12749 if test "X$HPUX_IA64_MODE" = X32; then
12750 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12751 else
12752 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12753 fi
12754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12755 ;;
12756 hppa*64*)
12757 shrext_cmds='.sl'
12758 hardcode_into_libs=yes
12759 dynamic_linker="$host_os dld.sl"
12760 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763 soname_spec='${libname}${release}${shared_ext}$major'
12764 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12766 ;;
12767 *)
12768 shrext_cmds='.sl'
12769 dynamic_linker="$host_os dld.sl"
12770 shlibpath_var=SHLIB_PATH
12771 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 ;;
12775 esac
12776 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12777 postinstall_cmds='chmod 555 $lib'
12778 ;;
12779
12780 irix5* | irix6* | nonstopux*)
12781 case $host_os in
12782 nonstopux*) version_type=nonstopux ;;
12783 *)
12784 if test "$lt_cv_prog_gnu_ld" = yes; then
12785 version_type=linux
12786 else
12787 version_type=irix
12788 fi ;;
12789 esac
12790 need_lib_prefix=no
12791 need_version=no
12792 soname_spec='${libname}${release}${shared_ext}$major'
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12794 case $host_os in
12795 irix5* | nonstopux*)
12796 libsuff= shlibsuff=
12797 ;;
12798 *)
12799 case $LD in # libtool.m4 will add one of these switches to LD
12800 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12801 libsuff= shlibsuff= libmagic=32-bit;;
12802 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12803 libsuff=32 shlibsuff=N32 libmagic=N32;;
12804 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12805 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12806 *) libsuff= shlibsuff= libmagic=never-match;;
12807 esac
12808 ;;
12809 esac
12810 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12811 shlibpath_overrides_runpath=no
12812 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12813 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12814 hardcode_into_libs=yes
12815 ;;
12816
12817 # No shared lib support for Linux oldld, aout, or coff.
12818 linux*oldld* | linux*aout* | linux*coff*)
12819 dynamic_linker=no
12820 ;;
12821
12822 # This must be Linux ELF.
12823 linux*)
12824 version_type=linux
12825 need_lib_prefix=no
12826 need_version=no
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=no
12832 # This implies no fast_install, which is unacceptable.
12833 # Some rework will be needed to allow for fast_install
12834 # before this can be enabled.
12835 hardcode_into_libs=yes
12836
12837 # Append ld.so.conf contents to the search path
12838 if test -f /etc/ld.so.conf; then
12839 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12840 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12841 fi
12842
12843 case $host_cpu:$lt_cv_cc_64bit_output in
12844 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
12845 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
12846 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
12847 ;;
12848 esac
12849
12850 # We used to test for /lib/ld.so.1 and disable shared libraries on
12851 # powerpc, because MkLinux only supported shared libraries with the
12852 # GNU dynamic linker. Since this was broken with cross compilers,
12853 # most powerpc-linux boxes support dynamic linking these days and
12854 # people can always --disable-shared, the test was removed, and we
12855 # assume the GNU/Linux dynamic linker is in use.
12856 dynamic_linker='GNU/Linux ld.so'
12857
12858 # Find out which ABI we are using (multilib Linux x86_64 hack).
12859 libsuff=
12860 case "$host_cpu" in
12861 x86_64*)
12862 echo '#line 12862 "configure"' > conftest.$ac_ext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; then
12868 case `/usr/bin/file conftest.$ac_objext` in
12869 *64-bit*)
12870 libsuff=64
12871 ;;
12872 esac
12873 fi
12874 rm -rf conftest*
12875 ;;
12876 *)
12877 ;;
12878 esac
12879 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12880 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12881 ;;
12882
12883 knetbsd*-gnu)
12884 version_type=linux
12885 need_lib_prefix=no
12886 need_version=no
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 shlibpath_overrides_runpath=no
12891 hardcode_into_libs=yes
12892 dynamic_linker='GNU ld.so'
12893 ;;
12894
12895 netbsd*)
12896 version_type=sunos
12897 need_lib_prefix=no
12898 need_version=no
12899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12902 dynamic_linker='NetBSD (a.out) ld.so'
12903 else
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 dynamic_linker='NetBSD ld.elf_so'
12907 fi
12908 shlibpath_var=LD_LIBRARY_PATH
12909 shlibpath_overrides_runpath=yes
12910 hardcode_into_libs=yes
12911 ;;
12912
12913 newsos6)
12914 version_type=linux
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 shlibpath_overrides_runpath=yes
12918 ;;
12919
12920 nto-qnx*)
12921 version_type=linux
12922 need_lib_prefix=no
12923 need_version=no
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 shlibpath_var=LD_LIBRARY_PATH
12927 shlibpath_overrides_runpath=yes
12928 ;;
12929
12930 openbsd*)
12931 version_type=sunos
12932 need_lib_prefix=no
12933 need_version=no
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12938 case $host_os in
12939 openbsd2.[89] | openbsd2.[89].*)
12940 shlibpath_overrides_runpath=no
12941 ;;
12942 *)
12943 shlibpath_overrides_runpath=yes
12944 ;;
12945 esac
12946 else
12947 shlibpath_overrides_runpath=yes
12948 fi
12949 ;;
12950
12951 os2*)
12952 libname_spec='$name'
12953 shrext_cmds=".dll"
12954 need_lib_prefix=no
12955 library_names_spec='$libname${shared_ext} $libname.a'
12956 dynamic_linker='OS/2 ld.exe'
12957 shlibpath_var=LIBPATH
12958 ;;
12959
12960 osf3* | osf4* | osf5*)
12961 version_type=osf
12962 need_lib_prefix=no
12963 need_version=no
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12969 ;;
12970
12971 sco3.2v5*)
12972 version_type=osf
12973 soname_spec='${libname}${release}${shared_ext}$major'
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975 shlibpath_var=LD_LIBRARY_PATH
12976 ;;
12977
12978 solaris*)
12979 version_type=linux
12980 need_lib_prefix=no
12981 need_version=no
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12983 soname_spec='${libname}${release}${shared_ext}$major'
12984 shlibpath_var=LD_LIBRARY_PATH
12985 shlibpath_overrides_runpath=yes
12986 hardcode_into_libs=yes
12987 # ldd complains unless libraries are executable
12988 postinstall_cmds='chmod +x $lib'
12989 ;;
12990
12991 sunos4*)
12992 version_type=sunos
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12994 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12995 shlibpath_var=LD_LIBRARY_PATH
12996 shlibpath_overrides_runpath=yes
12997 if test "$with_gnu_ld" = yes; then
12998 need_lib_prefix=no
12999 fi
13000 need_version=yes
13001 ;;
13002
13003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13004 version_type=linux
13005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13006 soname_spec='${libname}${release}${shared_ext}$major'
13007 shlibpath_var=LD_LIBRARY_PATH
13008 case $host_vendor in
13009 sni)
13010 shlibpath_overrides_runpath=no
13011 need_lib_prefix=no
13012 export_dynamic_flag_spec='${wl}-Blargedynsym'
13013 runpath_var=LD_RUN_PATH
13014 ;;
13015 siemens)
13016 need_lib_prefix=no
13017 ;;
13018 motorola)
13019 need_lib_prefix=no
13020 need_version=no
13021 shlibpath_overrides_runpath=no
13022 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13023 ;;
13024 esac
13025 ;;
13026
13027 sysv4*MP*)
13028 if test -d /usr/nec ;then
13029 version_type=linux
13030 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13031 soname_spec='$libname${shared_ext}.$major'
13032 shlibpath_var=LD_LIBRARY_PATH
13033 fi
13034 ;;
13035
13036 uts4*)
13037 version_type=linux
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 ;;
13042
13043 *)
13044 dynamic_linker=no
13045 ;;
13046 esac
13047 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13048 echo "${ECHO_T}$dynamic_linker" >&6; }
13049 test "$dynamic_linker" = no && can_build_shared=no
13050
13051 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13052 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13053 hardcode_action_CXX=
13054 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13055 test -n "$runpath_var_CXX" || \
13056 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13057
13058 # We can hardcode non-existant directories.
13059 if test "$hardcode_direct_CXX" != no &&
13060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13061 # have to relink, otherwise we might link with an installed library
13062 # when we should be linking with a yet-to-be-installed one
13063 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13064 test "$hardcode_minus_L_CXX" != no; then
13065 # Linking always hardcodes the temporary library directory.
13066 hardcode_action_CXX=relink
13067 else
13068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13069 hardcode_action_CXX=immediate
13070 fi
13071 else
13072 # We cannot hardcode anything, or else we can only hardcode existing
13073 # directories.
13074 hardcode_action_CXX=unsupported
13075 fi
13076 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13077 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13078
13079 if test "$hardcode_action_CXX" = relink; then
13080 # Fast installation is not supported
13081 enable_fast_install=no
13082 elif test "$shlibpath_overrides_runpath" = yes ||
13083 test "$enable_shared" = no; then
13084 # Fast installation is not necessary
13085 enable_fast_install=needless
13086 fi
13087
13088 striplib=
13089 old_striplib=
13090 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13091 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13092 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13094 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13095 { echo "$as_me:$LINENO: result: yes" >&5
13096 echo "${ECHO_T}yes" >&6; }
13097 else
13098 # FIXME - insert some real tests, host_os isn't really good enough
13099 case $host_os in
13100 darwin*)
13101 if test -n "$STRIP" ; then
13102 striplib="$STRIP -x"
13103 { echo "$as_me:$LINENO: result: yes" >&5
13104 echo "${ECHO_T}yes" >&6; }
13105 else
13106 { echo "$as_me:$LINENO: result: no" >&5
13107 echo "${ECHO_T}no" >&6; }
13108 fi
13109 ;;
13110 *)
13111 { echo "$as_me:$LINENO: result: no" >&5
13112 echo "${ECHO_T}no" >&6; }
13113 ;;
13114 esac
13115 fi
13116
13117 if test "x$enable_dlopen" != xyes; then
13118 enable_dlopen=unknown
13119 enable_dlopen_self=unknown
13120 enable_dlopen_self_static=unknown
13121 else
13122 lt_cv_dlopen=no
13123 lt_cv_dlopen_libs=
13124
13125 case $host_os in
13126 beos*)
13127 lt_cv_dlopen="load_add_on"
13128 lt_cv_dlopen_libs=
13129 lt_cv_dlopen_self=yes
13130 ;;
13131
13132 mingw* | pw32*)
13133 lt_cv_dlopen="LoadLibrary"
13134 lt_cv_dlopen_libs=
13135 ;;
13136
13137 cygwin*)
13138 lt_cv_dlopen="dlopen"
13139 lt_cv_dlopen_libs=
13140 ;;
13141
13142 darwin*)
13143 # if libdl is installed we need to link against it
13144 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149 ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-ldl $LIBS"
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char dlopen ();
13165 int
13166 main ()
13167 {
13168 return dlopen ();
13169 ;
13170 return 0;
13171 }
13172 _ACEOF
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_link") 2>conftest.er1
13181 ac_status=$?
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } && {
13187 test -z "$ac_cxx_werror_flag" ||
13188 test ! -s conftest.err
13189 } && test -s conftest$ac_exeext &&
13190 $as_test_x conftest$ac_exeext; then
13191 ac_cv_lib_dl_dlopen=yes
13192 else
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 ac_cv_lib_dl_dlopen=no
13197 fi
13198
13199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13200 conftest$ac_exeext conftest.$ac_ext
13201 LIBS=$ac_check_lib_save_LIBS
13202 fi
13203 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13205 if test $ac_cv_lib_dl_dlopen = yes; then
13206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13207 else
13208
13209 lt_cv_dlopen="dyld"
13210 lt_cv_dlopen_libs=
13211 lt_cv_dlopen_self=yes
13212
13213 fi
13214
13215 ;;
13216
13217 *)
13218 { echo "$as_me:$LINENO: checking for shl_load" >&5
13219 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13220 if test "${ac_cv_func_shl_load+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h. */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13231 #define shl_load innocuous_shl_load
13232
13233 /* System header to define __stub macros and hopefully few prototypes,
13234 which can conflict with char shl_load (); below.
13235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13236 <limits.h> exists even on freestanding compilers. */
13237
13238 #ifdef __STDC__
13239 # include <limits.h>
13240 #else
13241 # include <assert.h>
13242 #endif
13243
13244 #undef shl_load
13245
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13249 #ifdef __cplusplus
13250 extern "C"
13251 #endif
13252 char shl_load ();
13253 /* The GNU C library defines this for functions which it implements
13254 to always fail with ENOSYS. Some functions are actually named
13255 something starting with __ and the normal name is an alias. */
13256 #if defined __stub_shl_load || defined __stub___shl_load
13257 choke me
13258 #endif
13259
13260 int
13261 main ()
13262 {
13263 return shl_load ();
13264 ;
13265 return 0;
13266 }
13267 _ACEOF
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (ac_try="$ac_link"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_link") 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } && {
13282 test -z "$ac_cxx_werror_flag" ||
13283 test ! -s conftest.err
13284 } && test -s conftest$ac_exeext &&
13285 $as_test_x conftest$ac_exeext; then
13286 ac_cv_func_shl_load=yes
13287 else
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 ac_cv_func_shl_load=no
13292 fi
13293
13294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13295 conftest$ac_exeext conftest.$ac_ext
13296 fi
13297 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13298 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13299 if test $ac_cv_func_shl_load = yes; then
13300 lt_cv_dlopen="shl_load"
13301 else
13302 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13303 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13304 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307 ac_check_lib_save_LIBS=$LIBS
13308 LIBS="-ldld $LIBS"
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 char shl_load ();
13323 int
13324 main ()
13325 {
13326 return shl_load ();
13327 ;
13328 return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_link") 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_cxx_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest$ac_exeext &&
13348 $as_test_x conftest$ac_exeext; then
13349 ac_cv_lib_dld_shl_load=yes
13350 else
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354 ac_cv_lib_dld_shl_load=no
13355 fi
13356
13357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13358 conftest$ac_exeext conftest.$ac_ext
13359 LIBS=$ac_check_lib_save_LIBS
13360 fi
13361 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13362 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13363 if test $ac_cv_lib_dld_shl_load = yes; then
13364 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13365 else
13366 { echo "$as_me:$LINENO: checking for dlopen" >&5
13367 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13368 if test "${ac_cv_func_dlopen+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13379 #define dlopen innocuous_dlopen
13380
13381 /* System header to define __stub macros and hopefully few prototypes,
13382 which can conflict with char dlopen (); below.
13383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13384 <limits.h> exists even on freestanding compilers. */
13385
13386 #ifdef __STDC__
13387 # include <limits.h>
13388 #else
13389 # include <assert.h>
13390 #endif
13391
13392 #undef dlopen
13393
13394 /* Override any GCC internal prototype to avoid an error.
13395 Use char because int might match the return type of a GCC
13396 builtin and then its argument prototype would still apply. */
13397 #ifdef __cplusplus
13398 extern "C"
13399 #endif
13400 char dlopen ();
13401 /* The GNU C library defines this for functions which it implements
13402 to always fail with ENOSYS. Some functions are actually named
13403 something starting with __ and the normal name is an alias. */
13404 #if defined __stub_dlopen || defined __stub___dlopen
13405 choke me
13406 #endif
13407
13408 int
13409 main ()
13410 {
13411 return dlopen ();
13412 ;
13413 return 0;
13414 }
13415 _ACEOF
13416 rm -f conftest.$ac_objext conftest$ac_exeext
13417 if { (ac_try="$ac_link"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_link") 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && {
13430 test -z "$ac_cxx_werror_flag" ||
13431 test ! -s conftest.err
13432 } && test -s conftest$ac_exeext &&
13433 $as_test_x conftest$ac_exeext; then
13434 ac_cv_func_dlopen=yes
13435 else
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 ac_cv_func_dlopen=no
13440 fi
13441
13442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13443 conftest$ac_exeext conftest.$ac_ext
13444 fi
13445 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13446 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13447 if test $ac_cv_func_dlopen = yes; then
13448 lt_cv_dlopen="dlopen"
13449 else
13450 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13451 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13452 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455 ac_check_lib_save_LIBS=$LIBS
13456 LIBS="-ldl $LIBS"
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463
13464 /* Override any GCC internal prototype to avoid an error.
13465 Use char because int might match the return type of a GCC
13466 builtin and then its argument prototype would still apply. */
13467 #ifdef __cplusplus
13468 extern "C"
13469 #endif
13470 char dlopen ();
13471 int
13472 main ()
13473 {
13474 return dlopen ();
13475 ;
13476 return 0;
13477 }
13478 _ACEOF
13479 rm -f conftest.$ac_objext conftest$ac_exeext
13480 if { (ac_try="$ac_link"
13481 case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13484 esac
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_link") 2>conftest.er1
13487 ac_status=$?
13488 grep -v '^ *+' conftest.er1 >conftest.err
13489 rm -f conftest.er1
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && {
13493 test -z "$ac_cxx_werror_flag" ||
13494 test ! -s conftest.err
13495 } && test -s conftest$ac_exeext &&
13496 $as_test_x conftest$ac_exeext; then
13497 ac_cv_lib_dl_dlopen=yes
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 ac_cv_lib_dl_dlopen=no
13503 fi
13504
13505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13506 conftest$ac_exeext conftest.$ac_ext
13507 LIBS=$ac_check_lib_save_LIBS
13508 fi
13509 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13510 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13511 if test $ac_cv_lib_dl_dlopen = yes; then
13512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13513 else
13514 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13515 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13516 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519 ac_check_lib_save_LIBS=$LIBS
13520 LIBS="-lsvld $LIBS"
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527
13528 /* Override any GCC internal prototype to avoid an error.
13529 Use char because int might match the return type of a GCC
13530 builtin and then its argument prototype would still apply. */
13531 #ifdef __cplusplus
13532 extern "C"
13533 #endif
13534 char dlopen ();
13535 int
13536 main ()
13537 {
13538 return dlopen ();
13539 ;
13540 return 0;
13541 }
13542 _ACEOF
13543 rm -f conftest.$ac_objext conftest$ac_exeext
13544 if { (ac_try="$ac_link"
13545 case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_link") 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } && {
13557 test -z "$ac_cxx_werror_flag" ||
13558 test ! -s conftest.err
13559 } && test -s conftest$ac_exeext &&
13560 $as_test_x conftest$ac_exeext; then
13561 ac_cv_lib_svld_dlopen=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566 ac_cv_lib_svld_dlopen=no
13567 fi
13568
13569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13570 conftest$ac_exeext conftest.$ac_ext
13571 LIBS=$ac_check_lib_save_LIBS
13572 fi
13573 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13574 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13575 if test $ac_cv_lib_svld_dlopen = yes; then
13576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13577 else
13578 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13579 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13580 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 ac_check_lib_save_LIBS=$LIBS
13584 LIBS="-ldld $LIBS"
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char dld_link ();
13599 int
13600 main ()
13601 {
13602 return dld_link ();
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_cxx_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest$ac_exeext &&
13624 $as_test_x conftest$ac_exeext; then
13625 ac_cv_lib_dld_dld_link=yes
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_cv_lib_dld_dld_link=no
13631 fi
13632
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13636 fi
13637 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13638 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13639 if test $ac_cv_lib_dld_dld_link = yes; then
13640 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13641 fi
13642
13643
13644 fi
13645
13646
13647 fi
13648
13649
13650 fi
13651
13652
13653 fi
13654
13655
13656 fi
13657
13658 ;;
13659 esac
13660
13661 if test "x$lt_cv_dlopen" != xno; then
13662 enable_dlopen=yes
13663 else
13664 enable_dlopen=no
13665 fi
13666
13667 case $lt_cv_dlopen in
13668 dlopen)
13669 save_CPPFLAGS="$CPPFLAGS"
13670 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13671
13672 save_LDFLAGS="$LDFLAGS"
13673 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13674
13675 save_LIBS="$LIBS"
13676 LIBS="$lt_cv_dlopen_libs $LIBS"
13677
13678 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13679 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13680 if test "${lt_cv_dlopen_self+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683 if test "$cross_compiling" = yes; then :
13684 lt_cv_dlopen_self=cross
13685 else
13686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13687 lt_status=$lt_dlunknown
13688 cat > conftest.$ac_ext <<EOF
13689 #line 13689 "configure"
13690 #include "confdefs.h"
13691
13692 #if HAVE_DLFCN_H
13693 #include <dlfcn.h>
13694 #endif
13695
13696 #include <stdio.h>
13697
13698 #ifdef RTLD_GLOBAL
13699 # define LT_DLGLOBAL RTLD_GLOBAL
13700 #else
13701 # ifdef DL_GLOBAL
13702 # define LT_DLGLOBAL DL_GLOBAL
13703 # else
13704 # define LT_DLGLOBAL 0
13705 # endif
13706 #endif
13707
13708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13709 find out it does not work in some platform. */
13710 #ifndef LT_DLLAZY_OR_NOW
13711 # ifdef RTLD_LAZY
13712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13713 # else
13714 # ifdef DL_LAZY
13715 # define LT_DLLAZY_OR_NOW DL_LAZY
13716 # else
13717 # ifdef RTLD_NOW
13718 # define LT_DLLAZY_OR_NOW RTLD_NOW
13719 # else
13720 # ifdef DL_NOW
13721 # define LT_DLLAZY_OR_NOW DL_NOW
13722 # else
13723 # define LT_DLLAZY_OR_NOW 0
13724 # endif
13725 # endif
13726 # endif
13727 # endif
13728 #endif
13729
13730 #ifdef __cplusplus
13731 extern "C" void exit (int);
13732 #endif
13733
13734 void fnord() { int i=42;}
13735 int main ()
13736 {
13737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13738 int status = $lt_dlunknown;
13739
13740 if (self)
13741 {
13742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13744 /* dlclose (self); */
13745 }
13746
13747 exit (status);
13748 }
13749 EOF
13750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13751 (eval $ac_link) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13755 (./conftest; exit; ) 2>/dev/null
13756 lt_status=$?
13757 case x$lt_status in
13758 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13759 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13760 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13761 esac
13762 else :
13763 # compilation failed
13764 lt_cv_dlopen_self=no
13765 fi
13766 fi
13767 rm -fr conftest*
13768
13769
13770 fi
13771 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13772 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13773
13774 if test "x$lt_cv_dlopen_self" = xyes; then
13775 LDFLAGS="$LDFLAGS $link_static_flag"
13776 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13777 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13778 if test "${lt_cv_dlopen_self_static+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781 if test "$cross_compiling" = yes; then :
13782 lt_cv_dlopen_self_static=cross
13783 else
13784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13785 lt_status=$lt_dlunknown
13786 cat > conftest.$ac_ext <<EOF
13787 #line 13787 "configure"
13788 #include "confdefs.h"
13789
13790 #if HAVE_DLFCN_H
13791 #include <dlfcn.h>
13792 #endif
13793
13794 #include <stdio.h>
13795
13796 #ifdef RTLD_GLOBAL
13797 # define LT_DLGLOBAL RTLD_GLOBAL
13798 #else
13799 # ifdef DL_GLOBAL
13800 # define LT_DLGLOBAL DL_GLOBAL
13801 # else
13802 # define LT_DLGLOBAL 0
13803 # endif
13804 #endif
13805
13806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13807 find out it does not work in some platform. */
13808 #ifndef LT_DLLAZY_OR_NOW
13809 # ifdef RTLD_LAZY
13810 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13811 # else
13812 # ifdef DL_LAZY
13813 # define LT_DLLAZY_OR_NOW DL_LAZY
13814 # else
13815 # ifdef RTLD_NOW
13816 # define LT_DLLAZY_OR_NOW RTLD_NOW
13817 # else
13818 # ifdef DL_NOW
13819 # define LT_DLLAZY_OR_NOW DL_NOW
13820 # else
13821 # define LT_DLLAZY_OR_NOW 0
13822 # endif
13823 # endif
13824 # endif
13825 # endif
13826 #endif
13827
13828 #ifdef __cplusplus
13829 extern "C" void exit (int);
13830 #endif
13831
13832 void fnord() { int i=42;}
13833 int main ()
13834 {
13835 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13836 int status = $lt_dlunknown;
13837
13838 if (self)
13839 {
13840 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13841 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13842 /* dlclose (self); */
13843 }
13844
13845 exit (status);
13846 }
13847 EOF
13848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13849 (eval $ac_link) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13853 (./conftest; exit; ) 2>/dev/null
13854 lt_status=$?
13855 case x$lt_status in
13856 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13857 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13858 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13859 esac
13860 else :
13861 # compilation failed
13862 lt_cv_dlopen_self_static=no
13863 fi
13864 fi
13865 rm -fr conftest*
13866
13867
13868 fi
13869 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13870 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13871 fi
13872
13873 CPPFLAGS="$save_CPPFLAGS"
13874 LDFLAGS="$save_LDFLAGS"
13875 LIBS="$save_LIBS"
13876 ;;
13877 esac
13878
13879 case $lt_cv_dlopen_self in
13880 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13881 *) enable_dlopen_self=unknown ;;
13882 esac
13883
13884 case $lt_cv_dlopen_self_static in
13885 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13886 *) enable_dlopen_self_static=unknown ;;
13887 esac
13888 fi
13889
13890
13891 # The else clause should only fire when bootstrapping the
13892 # libtool distribution, otherwise you forgot to ship ltmain.sh
13893 # with your package, and you will get complaints that there are
13894 # no rules to generate ltmain.sh.
13895 if test -f "$ltmain"; then
13896 # See if we are running on zsh, and set the options which allow our commands through
13897 # without removal of \ escapes.
13898 if test -n "${ZSH_VERSION+set}" ; then
13899 setopt NO_GLOB_SUBST
13900 fi
13901 # Now quote all the things that may contain metacharacters while being
13902 # careful not to overquote the AC_SUBSTed values. We take copies of the
13903 # variables and quote the copies for generation of the libtool script.
13904 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13905 SED SHELL STRIP \
13906 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13907 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13908 deplibs_check_method reload_flag reload_cmds need_locks \
13909 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13910 lt_cv_sys_global_symbol_to_c_name_address \
13911 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13912 old_postinstall_cmds old_postuninstall_cmds \
13913 compiler_CXX \
13914 CC_CXX \
13915 LD_CXX \
13916 lt_prog_compiler_wl_CXX \
13917 lt_prog_compiler_pic_CXX \
13918 lt_prog_compiler_static_CXX \
13919 lt_prog_compiler_no_builtin_flag_CXX \
13920 export_dynamic_flag_spec_CXX \
13921 thread_safe_flag_spec_CXX \
13922 whole_archive_flag_spec_CXX \
13923 enable_shared_with_static_runtimes_CXX \
13924 old_archive_cmds_CXX \
13925 old_archive_from_new_cmds_CXX \
13926 predep_objects_CXX \
13927 postdep_objects_CXX \
13928 predeps_CXX \
13929 postdeps_CXX \
13930 compiler_lib_search_path_CXX \
13931 archive_cmds_CXX \
13932 archive_expsym_cmds_CXX \
13933 postinstall_cmds_CXX \
13934 postuninstall_cmds_CXX \
13935 old_archive_from_expsyms_cmds_CXX \
13936 allow_undefined_flag_CXX \
13937 no_undefined_flag_CXX \
13938 export_symbols_cmds_CXX \
13939 hardcode_libdir_flag_spec_CXX \
13940 hardcode_libdir_flag_spec_ld_CXX \
13941 hardcode_libdir_separator_CXX \
13942 hardcode_automatic_CXX \
13943 module_cmds_CXX \
13944 module_expsym_cmds_CXX \
13945 lt_cv_prog_compiler_c_o_CXX \
13946 exclude_expsyms_CXX \
13947 include_expsyms_CXX; do
13948
13949 case $var in
13950 old_archive_cmds_CXX | \
13951 old_archive_from_new_cmds_CXX | \
13952 archive_cmds_CXX | \
13953 archive_expsym_cmds_CXX | \
13954 module_cmds_CXX | \
13955 module_expsym_cmds_CXX | \
13956 old_archive_from_expsyms_cmds_CXX | \
13957 export_symbols_cmds_CXX | \
13958 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13959 postinstall_cmds | postuninstall_cmds | \
13960 old_postinstall_cmds | old_postuninstall_cmds | \
13961 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13962 # Double-quote double-evaled strings.
13963 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13964 ;;
13965 *)
13966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13967 ;;
13968 esac
13969 done
13970
13971 case $lt_echo in
13972 *'\$0 --fallback-echo"')
13973 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13974 ;;
13975 esac
13976
13977 cfgfile="$ofile"
13978
13979 cat <<__EOF__ >> "$cfgfile"
13980 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13981
13982 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13983
13984 # Shell to use when invoking shell scripts.
13985 SHELL=$lt_SHELL
13986
13987 # Whether or not to build shared libraries.
13988 build_libtool_libs=$enable_shared
13989
13990 # Whether or not to build static libraries.
13991 build_old_libs=$enable_static
13992
13993 # Whether or not to add -lc for building shared libraries.
13994 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13995
13996 # Whether or not to disallow shared libs when runtime libs are static
13997 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13998
13999 # Whether or not to optimize for fast installation.
14000 fast_install=$enable_fast_install
14001
14002 # The host system.
14003 host_alias=$host_alias
14004 host=$host
14005
14006 # An echo program that does not interpret backslashes.
14007 echo=$lt_echo
14008
14009 # The archiver.
14010 AR=$lt_AR
14011 AR_FLAGS=$lt_AR_FLAGS
14012
14013 # A C compiler.
14014 LTCC=$lt_LTCC
14015
14016 # A language-specific compiler.
14017 CC=$lt_compiler_CXX
14018
14019 # Is the compiler the GNU C compiler?
14020 with_gcc=$GCC_CXX
14021
14022 # An ERE matcher.
14023 EGREP=$lt_EGREP
14024
14025 # The linker used to build libraries.
14026 LD=$lt_LD_CXX
14027
14028 # Whether we need hard or soft links.
14029 LN_S=$lt_LN_S
14030
14031 # A BSD-compatible nm program.
14032 NM=$lt_NM
14033
14034 # A symbol stripping program
14035 STRIP=$lt_STRIP
14036
14037 # Used to examine libraries when file_magic_cmd begins "file"
14038 MAGIC_CMD=$MAGIC_CMD
14039
14040 # Used on cygwin: DLL creation program.
14041 DLLTOOL="$DLLTOOL"
14042
14043 # Used on cygwin: object dumper.
14044 OBJDUMP="$OBJDUMP"
14045
14046 # Used on cygwin: assembler.
14047 AS="$AS"
14048
14049 # The name of the directory that contains temporary libtool files.
14050 objdir=$objdir
14051
14052 # How to create reloadable object files.
14053 reload_flag=$lt_reload_flag
14054 reload_cmds=$lt_reload_cmds
14055
14056 # How to pass a linker flag through the compiler.
14057 wl=$lt_lt_prog_compiler_wl_CXX
14058
14059 # Object file suffix (normally "o").
14060 objext="$ac_objext"
14061
14062 # Old archive suffix (normally "a").
14063 libext="$libext"
14064
14065 # Shared library suffix (normally ".so").
14066 shrext_cmds='$shrext_cmds'
14067
14068 # Executable file suffix (normally "").
14069 exeext="$exeext"
14070
14071 # Additional compiler flags for building library objects.
14072 pic_flag=$lt_lt_prog_compiler_pic_CXX
14073 pic_mode=$pic_mode
14074
14075 # What is the maximum length of a command?
14076 max_cmd_len=$lt_cv_sys_max_cmd_len
14077
14078 # Does compiler simultaneously support -c and -o options?
14079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14080
14081 # Must we lock files when doing compilation ?
14082 need_locks=$lt_need_locks
14083
14084 # Do we need the lib prefix for modules?
14085 need_lib_prefix=$need_lib_prefix
14086
14087 # Do we need a version for libraries?
14088 need_version=$need_version
14089
14090 # Whether dlopen is supported.
14091 dlopen_support=$enable_dlopen
14092
14093 # Whether dlopen of programs is supported.
14094 dlopen_self=$enable_dlopen_self
14095
14096 # Whether dlopen of statically linked programs is supported.
14097 dlopen_self_static=$enable_dlopen_self_static
14098
14099 # Compiler flag to prevent dynamic linking.
14100 link_static_flag=$lt_lt_prog_compiler_static_CXX
14101
14102 # Compiler flag to turn off builtin functions.
14103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14104
14105 # Compiler flag to allow reflexive dlopens.
14106 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14107
14108 # Compiler flag to generate shared objects directly from archives.
14109 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14110
14111 # Compiler flag to generate thread-safe objects.
14112 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14113
14114 # Library versioning type.
14115 version_type=$version_type
14116
14117 # Format of library name prefix.
14118 libname_spec=$lt_libname_spec
14119
14120 # List of archive names. First name is the real one, the rest are links.
14121 # The last name is the one that the linker finds with -lNAME.
14122 library_names_spec=$lt_library_names_spec
14123
14124 # The coded name of the library, if different from the real name.
14125 soname_spec=$lt_soname_spec
14126
14127 # Commands used to build and install an old-style archive.
14128 RANLIB=$lt_RANLIB
14129 old_archive_cmds=$lt_old_archive_cmds_CXX
14130 old_postinstall_cmds=$lt_old_postinstall_cmds
14131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14132
14133 # Create an old-style archive from a shared archive.
14134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14135
14136 # Create a temporary old-style archive to link instead of a shared archive.
14137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14138
14139 # Commands used to build and install a shared archive.
14140 archive_cmds=$lt_archive_cmds_CXX
14141 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14142 postinstall_cmds=$lt_postinstall_cmds
14143 postuninstall_cmds=$lt_postuninstall_cmds
14144
14145 # Commands used to build a loadable module (assumed same as above if empty)
14146 module_cmds=$lt_module_cmds_CXX
14147 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14148
14149 # Commands to strip libraries.
14150 old_striplib=$lt_old_striplib
14151 striplib=$lt_striplib
14152
14153 # Dependencies to place before the objects being linked to create a
14154 # shared library.
14155 predep_objects=$lt_predep_objects_CXX
14156
14157 # Dependencies to place after the objects being linked to create a
14158 # shared library.
14159 postdep_objects=$lt_postdep_objects_CXX
14160
14161 # Dependencies to place before the objects being linked to create a
14162 # shared library.
14163 predeps=$lt_predeps_CXX
14164
14165 # Dependencies to place after the objects being linked to create a
14166 # shared library.
14167 postdeps=$lt_postdeps_CXX
14168
14169 # The library search path used internally by the compiler when linking
14170 # a shared library.
14171 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14172
14173 # Method to check whether dependent libraries are shared objects.
14174 deplibs_check_method=$lt_deplibs_check_method
14175
14176 # Command to use when deplibs_check_method == file_magic.
14177 file_magic_cmd=$lt_file_magic_cmd
14178
14179 # Flag that allows shared libraries with undefined symbols to be built.
14180 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14181
14182 # Flag that forces no undefined symbols.
14183 no_undefined_flag=$lt_no_undefined_flag_CXX
14184
14185 # Commands used to finish a libtool library installation in a directory.
14186 finish_cmds=$lt_finish_cmds
14187
14188 # Same as above, but a single script fragment to be evaled but not shown.
14189 finish_eval=$lt_finish_eval
14190
14191 # Take the output of nm and produce a listing of raw symbols and C names.
14192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14193
14194 # Transform the output of nm in a proper C declaration
14195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14196
14197 # Transform the output of nm in a C name address pair
14198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14199
14200 # This is the shared library runtime path variable.
14201 runpath_var=$runpath_var
14202
14203 # This is the shared library path variable.
14204 shlibpath_var=$shlibpath_var
14205
14206 # Is shlibpath searched before the hard-coded library search path?
14207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14208
14209 # How to hardcode a shared library path into an executable.
14210 hardcode_action=$hardcode_action_CXX
14211
14212 # Whether we should hardcode library paths into libraries.
14213 hardcode_into_libs=$hardcode_into_libs
14214
14215 # Flag to hardcode \$libdir into a binary during linking.
14216 # This must work even if \$libdir does not exist.
14217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14218
14219 # If ld is used when linking, flag to hardcode \$libdir into
14220 # a binary during linking. This must work even if \$libdir does
14221 # not exist.
14222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14223
14224 # Whether we need a single -rpath flag with a separated argument.
14225 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14226
14227 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14228 # resulting binary.
14229 hardcode_direct=$hardcode_direct_CXX
14230
14231 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14232 # resulting binary.
14233 hardcode_minus_L=$hardcode_minus_L_CXX
14234
14235 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14236 # the resulting binary.
14237 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14238
14239 # Set to yes if building a shared library automatically hardcodes DIR into the library
14240 # and all subsequent libraries and executables linked against it.
14241 hardcode_automatic=$hardcode_automatic_CXX
14242
14243 # Variables whose values should be saved in libtool wrapper scripts and
14244 # restored at relink time.
14245 variables_saved_for_relink="$variables_saved_for_relink"
14246
14247 # Whether libtool must link a program against all its dependency libraries.
14248 link_all_deplibs=$link_all_deplibs_CXX
14249
14250 # Compile-time system search path for libraries
14251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14252
14253 # Run-time system search path for libraries
14254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14255
14256 # Fix the shell variable \$srcfile for the compiler.
14257 fix_srcfile_path="$fix_srcfile_path_CXX"
14258
14259 # Set to yes if exported symbols are required.
14260 always_export_symbols=$always_export_symbols_CXX
14261
14262 # The commands to list exported symbols.
14263 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14264
14265 # The commands to extract the exported symbol list from a shared archive.
14266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14267
14268 # Symbols that should not be listed in the preloaded symbols.
14269 exclude_expsyms=$lt_exclude_expsyms_CXX
14270
14271 # Symbols that must always be exported.
14272 include_expsyms=$lt_include_expsyms_CXX
14273
14274 # ### END LIBTOOL TAG CONFIG: $tagname
14275
14276 __EOF__
14277
14278
14279 else
14280 # If there is no Makefile yet, we rely on a make rule to execute
14281 # `config.status --recheck' to rerun these tests and create the
14282 # libtool script then.
14283 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14284 if test -f "$ltmain_in"; then
14285 test -f Makefile && make "$ltmain"
14286 fi
14287 fi
14288
14289
14290 ac_ext=c
14291 ac_cpp='$CPP $CPPFLAGS'
14292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14295
14296 CC=$lt_save_CC
14297 LDCXX=$LD
14298 LD=$lt_save_LD
14299 GCC=$lt_save_GCC
14300 with_gnu_ldcxx=$with_gnu_ld
14301 with_gnu_ld=$lt_save_with_gnu_ld
14302 lt_cv_path_LDCXX=$lt_cv_path_LD
14303 lt_cv_path_LD=$lt_save_path_LD
14304 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14305 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14306
14307 else
14308 tagname=""
14309 fi
14310 ;;
14311
14312 F77)
14313 if test -n "$F77" && test "X$F77" != "Xno"; then
14314
14315 ac_ext=f
14316 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14317 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14318 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14319
14320
14321 archive_cmds_need_lc_F77=no
14322 allow_undefined_flag_F77=
14323 always_export_symbols_F77=no
14324 archive_expsym_cmds_F77=
14325 export_dynamic_flag_spec_F77=
14326 hardcode_direct_F77=no
14327 hardcode_libdir_flag_spec_F77=
14328 hardcode_libdir_flag_spec_ld_F77=
14329 hardcode_libdir_separator_F77=
14330 hardcode_minus_L_F77=no
14331 hardcode_automatic_F77=no
14332 module_cmds_F77=
14333 module_expsym_cmds_F77=
14334 link_all_deplibs_F77=unknown
14335 old_archive_cmds_F77=$old_archive_cmds
14336 no_undefined_flag_F77=
14337 whole_archive_flag_spec_F77=
14338 enable_shared_with_static_runtimes_F77=no
14339
14340 # Source file extension for f77 test sources.
14341 ac_ext=f
14342
14343 # Object file extension for compiled f77 test sources.
14344 objext=o
14345 objext_F77=$objext
14346
14347 # Code to be used in simple compile tests
14348 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14349
14350 # Code to be used in simple link tests
14351 lt_simple_link_test_code=" program t\n end\n"
14352
14353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14354
14355 # If no C compiler was specified, use CC.
14356 LTCC=${LTCC-"$CC"}
14357
14358 # Allow CC to be a program name with arguments.
14359 compiler=$CC
14360
14361
14362 # Allow CC to be a program name with arguments.
14363 lt_save_CC="$CC"
14364 CC=${F77-"f77"}
14365 compiler=$CC
14366 compiler_F77=$CC
14367 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14368
14369 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14370 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14371 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14372 echo "${ECHO_T}$can_build_shared" >&6; }
14373
14374 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14375 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14376 test "$can_build_shared" = "no" && enable_shared=no
14377
14378 # On AIX, shared libraries and static libraries use the same namespace, and
14379 # are all built from PIC.
14380 case "$host_os" in
14381 aix3*)
14382 test "$enable_shared" = yes && enable_static=no
14383 if test -n "$RANLIB"; then
14384 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14385 postinstall_cmds='$RANLIB $lib'
14386 fi
14387 ;;
14388 aix4* | aix5*)
14389 test "$enable_shared" = yes && enable_static=no
14390 ;;
14391 esac
14392 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14393 echo "${ECHO_T}$enable_shared" >&6; }
14394
14395 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14396 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14397 # Make sure either enable_shared or enable_static is yes.
14398 test "$enable_shared" = yes || enable_static=yes
14399 { echo "$as_me:$LINENO: result: $enable_static" >&5
14400 echo "${ECHO_T}$enable_static" >&6; }
14401
14402 test "$ld_shlibs_F77" = no && can_build_shared=no
14403
14404 GCC_F77="$G77"
14405 LD_F77="$LD"
14406
14407 lt_prog_compiler_wl_F77=
14408 lt_prog_compiler_pic_F77=
14409 lt_prog_compiler_static_F77=
14410
14411 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14412 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14413
14414 if test "$GCC" = yes; then
14415 lt_prog_compiler_wl_F77='-Wl,'
14416 lt_prog_compiler_static_F77='-static'
14417
14418 case $host_os in
14419 aix*)
14420 # All AIX code is PIC.
14421 if test "$host_cpu" = ia64; then
14422 # AIX 5 now supports IA64 processor
14423 lt_prog_compiler_static_F77='-Bstatic'
14424 fi
14425 ;;
14426
14427 amigaos*)
14428 # FIXME: we need at least 68020 code to build shared libraries, but
14429 # adding the `-m68020' flag to GCC prevents building anything better,
14430 # like `-m68040'.
14431 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14432 ;;
14433
14434 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14435 # PIC is the default for these OSes.
14436 ;;
14437
14438 mingw* | pw32* | os2*)
14439 # This hack is so that the source file can tell whether it is being
14440 # built for inclusion in a dll (and should export symbols for example).
14441 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14442 ;;
14443
14444 darwin* | rhapsody*)
14445 # PIC is the default on this platform
14446 # Common symbols not allowed in MH_DYLIB files
14447 lt_prog_compiler_pic_F77='-fno-common'
14448 ;;
14449
14450 msdosdjgpp*)
14451 # Just because we use GCC doesn't mean we suddenly get shared libraries
14452 # on systems that don't support them.
14453 lt_prog_compiler_can_build_shared_F77=no
14454 enable_shared=no
14455 ;;
14456
14457 sysv4*MP*)
14458 if test -d /usr/nec; then
14459 lt_prog_compiler_pic_F77=-Kconform_pic
14460 fi
14461 ;;
14462
14463 hpux*)
14464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14465 # not for PA HP-UX.
14466 case "$host_cpu" in
14467 hppa*64*|ia64*)
14468 # +Z the default
14469 ;;
14470 *)
14471 lt_prog_compiler_pic_F77='-fPIC'
14472 ;;
14473 esac
14474 ;;
14475
14476 *)
14477 lt_prog_compiler_pic_F77='-fPIC'
14478 ;;
14479 esac
14480 else
14481 # PORTME Check for flag to pass linker flags through the system compiler.
14482 case $host_os in
14483 aix*)
14484 lt_prog_compiler_wl_F77='-Wl,'
14485 if test "$host_cpu" = ia64; then
14486 # AIX 5 now supports IA64 processor
14487 lt_prog_compiler_static_F77='-Bstatic'
14488 else
14489 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14490 fi
14491 ;;
14492 darwin*)
14493 # PIC is the default on this platform
14494 # Common symbols not allowed in MH_DYLIB files
14495 case "$cc_basename" in
14496 xlc*)
14497 lt_prog_compiler_pic_F77='-qnocommon'
14498 lt_prog_compiler_wl_F77='-Wl,'
14499 ;;
14500 esac
14501 ;;
14502
14503 mingw* | pw32* | os2*)
14504 # This hack is so that the source file can tell whether it is being
14505 # built for inclusion in a dll (and should export symbols for example).
14506 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14507 ;;
14508
14509 hpux9* | hpux10* | hpux11*)
14510 lt_prog_compiler_wl_F77='-Wl,'
14511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14512 # not for PA HP-UX.
14513 case "$host_cpu" in
14514 hppa*64*|ia64*)
14515 # +Z the default
14516 ;;
14517 *)
14518 lt_prog_compiler_pic_F77='+Z'
14519 ;;
14520 esac
14521 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14522 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14523 ;;
14524
14525 irix5* | irix6* | nonstopux*)
14526 lt_prog_compiler_wl_F77='-Wl,'
14527 # PIC (with -KPIC) is the default.
14528 lt_prog_compiler_static_F77='-non_shared'
14529 ;;
14530
14531 newsos6)
14532 lt_prog_compiler_pic_F77='-KPIC'
14533 lt_prog_compiler_static_F77='-Bstatic'
14534 ;;
14535
14536 linux*)
14537 case $CC in
14538 icc* | ecc*)
14539 lt_prog_compiler_wl_F77='-Wl,'
14540 lt_prog_compiler_pic_F77='-KPIC'
14541 lt_prog_compiler_static_F77='-static'
14542 ;;
14543 ccc*)
14544 lt_prog_compiler_wl_F77='-Wl,'
14545 # All Alpha code is PIC.
14546 lt_prog_compiler_static_F77='-non_shared'
14547 ;;
14548 esac
14549 ;;
14550
14551 osf3* | osf4* | osf5*)
14552 lt_prog_compiler_wl_F77='-Wl,'
14553 # All OSF/1 code is PIC.
14554 lt_prog_compiler_static_F77='-non_shared'
14555 ;;
14556
14557 sco3.2v5*)
14558 lt_prog_compiler_pic_F77='-Kpic'
14559 lt_prog_compiler_static_F77='-dn'
14560 ;;
14561
14562 solaris*)
14563 lt_prog_compiler_wl_F77='-Wl,'
14564 lt_prog_compiler_pic_F77='-KPIC'
14565 lt_prog_compiler_static_F77='-Bstatic'
14566 ;;
14567
14568 sunos4*)
14569 lt_prog_compiler_wl_F77='-Qoption ld '
14570 lt_prog_compiler_pic_F77='-PIC'
14571 lt_prog_compiler_static_F77='-Bstatic'
14572 ;;
14573
14574 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14575 lt_prog_compiler_wl_F77='-Wl,'
14576 lt_prog_compiler_pic_F77='-KPIC'
14577 lt_prog_compiler_static_F77='-Bstatic'
14578 ;;
14579
14580 sysv4*MP*)
14581 if test -d /usr/nec ;then
14582 lt_prog_compiler_pic_F77='-Kconform_pic'
14583 lt_prog_compiler_static_F77='-Bstatic'
14584 fi
14585 ;;
14586
14587 uts4*)
14588 lt_prog_compiler_pic_F77='-pic'
14589 lt_prog_compiler_static_F77='-Bstatic'
14590 ;;
14591
14592 *)
14593 lt_prog_compiler_can_build_shared_F77=no
14594 ;;
14595 esac
14596 fi
14597
14598 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14599 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14600
14601 #
14602 # Check to make sure the PIC flag actually works.
14603 #
14604 if test -n "$lt_prog_compiler_pic_F77"; then
14605
14606 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14607 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14608 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611 lt_prog_compiler_pic_works_F77=no
14612 ac_outfile=conftest.$ac_objext
14613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14614 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14615 # Insert the option either (1) after the last *FLAGS variable, or
14616 # (2) before a word containing "conftest.", or (3) at the end.
14617 # Note that $ac_compile itself does not contain backslashes and begins
14618 # with a dollar sign (not a hyphen), so the echo should work correctly.
14619 # The option is referenced via a variable to avoid confusing sed.
14620 lt_compile=`echo "$ac_compile" | $SED \
14621 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14623 -e 's:$: $lt_compiler_flag:'`
14624 (eval echo "\"\$as_me:14624: $lt_compile\"" >&5)
14625 (eval "$lt_compile" 2>conftest.err)
14626 ac_status=$?
14627 cat conftest.err >&5
14628 echo "$as_me:14628: \$? = $ac_status" >&5
14629 if (exit $ac_status) && test -s "$ac_outfile"; then
14630 # The compiler can only warn and ignore the option if not recognized
14631 # So say no if there are warnings
14632 if test ! -s conftest.err; then
14633 lt_prog_compiler_pic_works_F77=yes
14634 fi
14635 fi
14636 $rm conftest*
14637
14638 fi
14639 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14640 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14641
14642 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14643 case $lt_prog_compiler_pic_F77 in
14644 "" | " "*) ;;
14645 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14646 esac
14647 else
14648 lt_prog_compiler_pic_F77=
14649 lt_prog_compiler_can_build_shared_F77=no
14650 fi
14651
14652 fi
14653 case "$host_os" in
14654 # For platforms which do not support PIC, -DPIC is meaningless:
14655 *djgpp*)
14656 lt_prog_compiler_pic_F77=
14657 ;;
14658 *)
14659 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14660 ;;
14661 esac
14662
14663 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14664 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14665 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668 lt_cv_prog_compiler_c_o_F77=no
14669 $rm -r conftest 2>/dev/null
14670 mkdir conftest
14671 cd conftest
14672 mkdir out
14673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14674
14675 lt_compiler_flag="-o out/conftest2.$ac_objext"
14676 # Insert the option either (1) after the last *FLAGS variable, or
14677 # (2) before a word containing "conftest.", or (3) at the end.
14678 # Note that $ac_compile itself does not contain backslashes and begins
14679 # with a dollar sign (not a hyphen), so the echo should work correctly.
14680 lt_compile=`echo "$ac_compile" | $SED \
14681 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14683 -e 's:$: $lt_compiler_flag:'`
14684 (eval echo "\"\$as_me:14684: $lt_compile\"" >&5)
14685 (eval "$lt_compile" 2>out/conftest.err)
14686 ac_status=$?
14687 cat out/conftest.err >&5
14688 echo "$as_me:14688: \$? = $ac_status" >&5
14689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14690 then
14691 # The compiler can only warn and ignore the option if not recognized
14692 # So say no if there are warnings
14693 if test ! -s out/conftest.err; then
14694 lt_cv_prog_compiler_c_o_F77=yes
14695 fi
14696 fi
14697 chmod u+w .
14698 $rm conftest*
14699 # SGI C++ compiler will create directory out/ii_files/ for
14700 # template instantiation
14701 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14702 $rm out/* && rmdir out
14703 cd ..
14704 rmdir conftest
14705 $rm conftest*
14706
14707 fi
14708 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14709 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14710
14711
14712 hard_links="nottested"
14713 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14714 # do not overwrite the value of need_locks provided by the user
14715 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14716 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14717 hard_links=yes
14718 $rm conftest*
14719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14720 touch conftest.a
14721 ln conftest.a conftest.b 2>&5 || hard_links=no
14722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14723 { echo "$as_me:$LINENO: result: $hard_links" >&5
14724 echo "${ECHO_T}$hard_links" >&6; }
14725 if test "$hard_links" = no; then
14726 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14727 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14728 need_locks=warn
14729 fi
14730 else
14731 need_locks=no
14732 fi
14733
14734 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14735 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14736
14737 runpath_var=
14738 allow_undefined_flag_F77=
14739 enable_shared_with_static_runtimes_F77=no
14740 archive_cmds_F77=
14741 archive_expsym_cmds_F77=
14742 old_archive_From_new_cmds_F77=
14743 old_archive_from_expsyms_cmds_F77=
14744 export_dynamic_flag_spec_F77=
14745 whole_archive_flag_spec_F77=
14746 thread_safe_flag_spec_F77=
14747 hardcode_libdir_flag_spec_F77=
14748 hardcode_libdir_flag_spec_ld_F77=
14749 hardcode_libdir_separator_F77=
14750 hardcode_direct_F77=no
14751 hardcode_minus_L_F77=no
14752 hardcode_shlibpath_var_F77=unsupported
14753 link_all_deplibs_F77=unknown
14754 hardcode_automatic_F77=no
14755 module_cmds_F77=
14756 module_expsym_cmds_F77=
14757 always_export_symbols_F77=no
14758 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14759 # include_expsyms should be a list of space-separated symbols to be *always*
14760 # included in the symbol list
14761 include_expsyms_F77=
14762 # exclude_expsyms can be an extended regexp of symbols to exclude
14763 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14764 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14765 # as well as any symbol that contains `d'.
14766 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14767 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14768 # platforms (ab)use it in PIC code, but their linkers get confused if
14769 # the symbol is explicitly referenced. Since portable code cannot
14770 # rely on this symbol name, it's probably fine to never include it in
14771 # preloaded symbol tables.
14772 extract_expsyms_cmds=
14773
14774 case $host_os in
14775 cygwin* | mingw* | pw32*)
14776 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14777 # When not using gcc, we currently assume that we are using
14778 # Microsoft Visual C++.
14779 if test "$GCC" != yes; then
14780 with_gnu_ld=no
14781 fi
14782 ;;
14783 openbsd*)
14784 with_gnu_ld=no
14785 ;;
14786 esac
14787
14788 ld_shlibs_F77=yes
14789 if test "$with_gnu_ld" = yes; then
14790 # If archive_cmds runs LD, not CC, wlarc should be empty
14791 wlarc='${wl}'
14792
14793 # See if GNU ld supports shared libraries.
14794 case $host_os in
14795 aix3* | aix4* | aix5*)
14796 # On AIX/PPC, the GNU linker is very broken
14797 if test "$host_cpu" != ia64; then
14798 ld_shlibs_F77=no
14799 cat <<EOF 1>&2
14800
14801 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14802 *** to be unable to reliably create shared libraries on AIX.
14803 *** Therefore, libtool is disabling shared libraries support. If you
14804 *** really care for shared libraries, you may want to modify your PATH
14805 *** so that a non-GNU linker is found, and then restart.
14806
14807 EOF
14808 fi
14809 ;;
14810
14811 amigaos*)
14812 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)'
14813 hardcode_libdir_flag_spec_F77='-L$libdir'
14814 hardcode_minus_L_F77=yes
14815
14816 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14817 # that the semantics of dynamic libraries on AmigaOS, at least up
14818 # to version 4, is to share data among multiple programs linked
14819 # with the same dynamic library. Since this doesn't match the
14820 # behavior of shared libraries on other platforms, we can't use
14821 # them.
14822 ld_shlibs_F77=no
14823 ;;
14824
14825 beos*)
14826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14827 allow_undefined_flag_F77=unsupported
14828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14829 # support --undefined. This deserves some investigation. FIXME
14830 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14831 else
14832 ld_shlibs_F77=no
14833 fi
14834 ;;
14835
14836 cygwin* | mingw* | pw32*)
14837 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14838 # as there is no search path for DLLs.
14839 hardcode_libdir_flag_spec_F77='-L$libdir'
14840 allow_undefined_flag_F77=unsupported
14841 always_export_symbols_F77=no
14842 enable_shared_with_static_runtimes_F77=yes
14843 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14844
14845 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14847 # If the export-symbols file already is a .def file (1st line
14848 # is EXPORTS), use it as is; otherwise, prepend...
14849 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14850 cp $export_symbols $output_objdir/$soname.def;
14851 else
14852 echo EXPORTS > $output_objdir/$soname.def;
14853 cat $export_symbols >> $output_objdir/$soname.def;
14854 fi~
14855 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14856 else
14857 ld_shlibs=no
14858 fi
14859 ;;
14860
14861 netbsd*)
14862 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14863 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14864 wlarc=
14865 else
14866 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14867 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14868 fi
14869 ;;
14870
14871 solaris* | sysv5*)
14872 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14873 ld_shlibs_F77=no
14874 cat <<EOF 1>&2
14875
14876 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14877 *** create shared libraries on Solaris systems. Therefore, libtool
14878 *** is disabling shared libraries support. We urge you to upgrade GNU
14879 *** binutils to release 2.9.1 or newer. Another option is to modify
14880 *** your PATH or compiler configuration so that the native linker is
14881 *** used, and then restart.
14882
14883 EOF
14884 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14885 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14886 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14887 else
14888 ld_shlibs_F77=no
14889 fi
14890 ;;
14891
14892 sunos4*)
14893 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14894 wlarc=
14895 hardcode_direct_F77=yes
14896 hardcode_shlibpath_var_F77=no
14897 ;;
14898
14899 linux*)
14900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14901 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14902 archive_cmds_F77="$tmp_archive_cmds"
14903 supports_anon_versioning=no
14904 case `$LD -v 2>/dev/null` in
14905 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14906 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14907 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14908 *\ 2.11.*) ;; # other 2.11 versions
14909 *) supports_anon_versioning=yes ;;
14910 esac
14911 if test $supports_anon_versioning = yes; then
14912 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14914 $echo "local: *; };" >> $output_objdir/$libname.ver~
14915 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14916 else
14917 archive_expsym_cmds_F77="$tmp_archive_cmds"
14918 fi
14919 else
14920 ld_shlibs_F77=no
14921 fi
14922 ;;
14923
14924 *)
14925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14928 else
14929 ld_shlibs_F77=no
14930 fi
14931 ;;
14932 esac
14933
14934 if test "$ld_shlibs_F77" = yes; then
14935 runpath_var=LD_RUN_PATH
14936 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14937 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14938 # ancient GNU ld didn't support --whole-archive et. al.
14939 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14940 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14941 else
14942 whole_archive_flag_spec_F77=
14943 fi
14944 fi
14945 else
14946 # PORTME fill in a description of your system's linker (not GNU ld)
14947 case $host_os in
14948 aix3*)
14949 allow_undefined_flag_F77=unsupported
14950 always_export_symbols_F77=yes
14951 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'
14952 # Note: this linker hardcodes the directories in LIBPATH if there
14953 # are no directories specified by -L.
14954 hardcode_minus_L_F77=yes
14955 if test "$GCC" = yes && test -z "$link_static_flag"; then
14956 # Neither direct hardcoding nor static linking is supported with a
14957 # broken collect2.
14958 hardcode_direct_F77=unsupported
14959 fi
14960 ;;
14961
14962 aix4* | aix5*)
14963 if test "$host_cpu" = ia64; then
14964 # On IA64, the linker does run time linking by default, so we don't
14965 # have to do anything special.
14966 aix_use_runtimelinking=no
14967 exp_sym_flag='-Bexport'
14968 no_entry_flag=""
14969 else
14970 # If we're using GNU nm, then we don't want the "-C" option.
14971 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14972 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14973 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'
14974 else
14975 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'
14976 fi
14977 aix_use_runtimelinking=no
14978
14979 # Test if we are trying to use run time linking or normal
14980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14981 # need to do runtime linking.
14982 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14983 for ld_flag in $LDFLAGS; do
14984 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14985 aix_use_runtimelinking=yes
14986 break
14987 fi
14988 done
14989 esac
14990
14991 exp_sym_flag='-bexport'
14992 no_entry_flag='-bnoentry'
14993 fi
14994
14995 # When large executables or shared objects are built, AIX ld can
14996 # have problems creating the table of contents. If linking a library
14997 # or program results in "error TOC overflow" add -mminimal-toc to
14998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15000
15001 archive_cmds_F77=''
15002 hardcode_direct_F77=yes
15003 hardcode_libdir_separator_F77=':'
15004 link_all_deplibs_F77=yes
15005
15006 if test "$GCC" = yes; then
15007 case $host_os in aix4.012|aix4.012.*)
15008 # We only want to do this on AIX 4.2 and lower, the check
15009 # below for broken collect2 doesn't work under 4.3+
15010 collect2name=`${CC} -print-prog-name=collect2`
15011 if test -f "$collect2name" && \
15012 strings "$collect2name" | grep resolve_lib_name >/dev/null
15013 then
15014 # We have reworked collect2
15015 hardcode_direct_F77=yes
15016 else
15017 # We have old collect2
15018 hardcode_direct_F77=unsupported
15019 # It fails to find uninstalled libraries when the uninstalled
15020 # path is not listed in the libpath. Setting hardcode_minus_L
15021 # to unsupported forces relinking
15022 hardcode_minus_L_F77=yes
15023 hardcode_libdir_flag_spec_F77='-L$libdir'
15024 hardcode_libdir_separator_F77=
15025 fi
15026 esac
15027 shared_flag='-shared'
15028 else
15029 # not using gcc
15030 if test "$host_cpu" = ia64; then
15031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15032 # chokes on -Wl,-G. The following line is correct:
15033 shared_flag='-G'
15034 else
15035 if test "$aix_use_runtimelinking" = yes; then
15036 shared_flag='${wl}-G'
15037 else
15038 shared_flag='${wl}-bM:SRE'
15039 fi
15040 fi
15041 fi
15042
15043 # It seems that -bexpall does not export symbols beginning with
15044 # underscore (_), so it is better to generate a list of symbols to export.
15045 always_export_symbols_F77=yes
15046 if test "$aix_use_runtimelinking" = yes; then
15047 # Warning - without using the other runtime loading flags (-brtl),
15048 # -berok will link without error, but may produce a broken library.
15049 allow_undefined_flag_F77='-berok'
15050 # Determine the default libpath from the value encoded in an empty executable.
15051 cat >conftest.$ac_ext <<_ACEOF
15052 program main
15053
15054 end
15055 _ACEOF
15056 rm -f conftest.$ac_objext conftest$ac_exeext
15057 if { (ac_try="$ac_link"
15058 case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15061 esac
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_link") 2>conftest.er1
15064 ac_status=$?
15065 grep -v '^ *+' conftest.er1 >conftest.err
15066 rm -f conftest.er1
15067 cat conftest.err >&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } && {
15070 test -z "$ac_f77_werror_flag" ||
15071 test ! -s conftest.err
15072 } && test -s conftest$ac_exeext &&
15073 $as_test_x conftest$ac_exeext; then
15074
15075 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15076 }'`
15077 # Check for a 64-bit object if we didn't find anything.
15078 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; }
15079 }'`; fi
15080 else
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15083
15084
15085 fi
15086
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15090
15091 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15092 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15093 else
15094 if test "$host_cpu" = ia64; then
15095 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15096 allow_undefined_flag_F77="-z nodefs"
15097 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15098 else
15099 # Determine the default libpath from the value encoded in an empty executable.
15100 cat >conftest.$ac_ext <<_ACEOF
15101 program main
15102
15103 end
15104 _ACEOF
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (ac_try="$ac_link"
15107 case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } && {
15119 test -z "$ac_f77_werror_flag" ||
15120 test ! -s conftest.err
15121 } && test -s conftest$ac_exeext &&
15122 $as_test_x conftest$ac_exeext; then
15123
15124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15125 }'`
15126 # Check for a 64-bit object if we didn't find anything.
15127 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; }
15128 }'`; fi
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133
15134 fi
15135
15136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15137 conftest$ac_exeext conftest.$ac_ext
15138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15139
15140 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15141 # Warning - without using the other run time loading flags,
15142 # -berok will link without error, but may produce a broken library.
15143 no_undefined_flag_F77=' ${wl}-bernotok'
15144 allow_undefined_flag_F77=' ${wl}-berok'
15145 # -bexpall does not export symbols beginning with underscore (_)
15146 always_export_symbols_F77=yes
15147 # Exported symbols can be pulled into shared objects from archives
15148 whole_archive_flag_spec_F77=' '
15149 archive_cmds_need_lc_F77=yes
15150 # This is similar to how AIX traditionally builds it's shared libraries.
15151 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15152 fi
15153 fi
15154 ;;
15155
15156 amigaos*)
15157 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)'
15158 hardcode_libdir_flag_spec_F77='-L$libdir'
15159 hardcode_minus_L_F77=yes
15160 # see comment about different semantics on the GNU ld section
15161 ld_shlibs_F77=no
15162 ;;
15163
15164 bsdi[45]*)
15165 export_dynamic_flag_spec_F77=-rdynamic
15166 ;;
15167
15168 cygwin* | mingw* | pw32*)
15169 # When not using gcc, we currently assume that we are using
15170 # Microsoft Visual C++.
15171 # hardcode_libdir_flag_spec is actually meaningless, as there is
15172 # no search path for DLLs.
15173 hardcode_libdir_flag_spec_F77=' '
15174 allow_undefined_flag_F77=unsupported
15175 # Tell ltmain to make .lib files, not .a files.
15176 libext=lib
15177 # Tell ltmain to make .dll files, not .so files.
15178 shrext_cmds=".dll"
15179 # FIXME: Setting linknames here is a bad hack.
15180 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15181 # The linker will automatically build a .lib file if we build a DLL.
15182 old_archive_From_new_cmds_F77='true'
15183 # FIXME: Should let the user specify the lib program.
15184 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15185 fix_srcfile_path='`cygpath -w "$srcfile"`'
15186 enable_shared_with_static_runtimes_F77=yes
15187 ;;
15188
15189 darwin* | rhapsody*)
15190 case "$host_os" in
15191 rhapsody* | darwin1.[012])
15192 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15193 ;;
15194 *) # Darwin 1.3 on
15195 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15196 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15197 else
15198 case ${MACOSX_DEPLOYMENT_TARGET} in
15199 10.[012])
15200 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15201 ;;
15202 10.*)
15203 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15204 ;;
15205 esac
15206 fi
15207 ;;
15208 esac
15209 archive_cmds_need_lc_F77=no
15210 hardcode_direct_F77=no
15211 hardcode_automatic_F77=yes
15212 hardcode_shlibpath_var_F77=unsupported
15213 whole_archive_flag_spec_F77=''
15214 link_all_deplibs_F77=yes
15215 if test "$GCC" = yes ; then
15216 output_verbose_link_cmd='echo'
15217 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15218 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15220 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}'
15221 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}'
15222 else
15223 case "$cc_basename" in
15224 xlc*)
15225 output_verbose_link_cmd='echo'
15226 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15227 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15229 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}'
15230 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}'
15231 ;;
15232 *)
15233 ld_shlibs_F77=no
15234 ;;
15235 esac
15236 fi
15237 ;;
15238
15239 dgux*)
15240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15241 hardcode_libdir_flag_spec_F77='-L$libdir'
15242 hardcode_shlibpath_var_F77=no
15243 ;;
15244
15245 freebsd1*)
15246 ld_shlibs_F77=no
15247 ;;
15248
15249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15250 # support. Future versions do this automatically, but an explicit c++rt0.o
15251 # does not break anything, and helps significantly (at the cost of a little
15252 # extra space).
15253 freebsd2.2*)
15254 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15255 hardcode_libdir_flag_spec_F77='-R$libdir'
15256 hardcode_direct_F77=yes
15257 hardcode_shlibpath_var_F77=no
15258 ;;
15259
15260 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15261 freebsd2*)
15262 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15263 hardcode_direct_F77=yes
15264 hardcode_minus_L_F77=yes
15265 hardcode_shlibpath_var_F77=no
15266 ;;
15267
15268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15269 freebsd* | kfreebsd*-gnu)
15270 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15271 hardcode_libdir_flag_spec_F77='-R$libdir'
15272 hardcode_direct_F77=yes
15273 hardcode_shlibpath_var_F77=no
15274 ;;
15275
15276 hpux9*)
15277 if test "$GCC" = yes; then
15278 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'
15279 else
15280 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'
15281 fi
15282 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15283 hardcode_libdir_separator_F77=:
15284 hardcode_direct_F77=yes
15285
15286 # hardcode_minus_L: Not really in the search PATH,
15287 # but as the default location of the library.
15288 hardcode_minus_L_F77=yes
15289 export_dynamic_flag_spec_F77='${wl}-E'
15290 ;;
15291
15292 hpux10* | hpux11*)
15293 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15294 case "$host_cpu" in
15295 hppa*64*|ia64*)
15296 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15297 ;;
15298 *)
15299 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15300 ;;
15301 esac
15302 else
15303 case "$host_cpu" in
15304 hppa*64*|ia64*)
15305 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15306 ;;
15307 *)
15308 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15309 ;;
15310 esac
15311 fi
15312 if test "$with_gnu_ld" = no; then
15313 case "$host_cpu" in
15314 hppa*64*)
15315 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15316 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15317 hardcode_libdir_separator_F77=:
15318 hardcode_direct_F77=no
15319 hardcode_shlibpath_var_F77=no
15320 ;;
15321 ia64*)
15322 hardcode_libdir_flag_spec_F77='-L$libdir'
15323 hardcode_direct_F77=no
15324 hardcode_shlibpath_var_F77=no
15325
15326 # hardcode_minus_L: Not really in the search PATH,
15327 # but as the default location of the library.
15328 hardcode_minus_L_F77=yes
15329 ;;
15330 *)
15331 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15332 hardcode_libdir_separator_F77=:
15333 hardcode_direct_F77=yes
15334 export_dynamic_flag_spec_F77='${wl}-E'
15335
15336 # hardcode_minus_L: Not really in the search PATH,
15337 # but as the default location of the library.
15338 hardcode_minus_L_F77=yes
15339 ;;
15340 esac
15341 fi
15342 ;;
15343
15344 irix5* | irix6* | nonstopux*)
15345 if test "$GCC" = yes; then
15346 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'
15347 else
15348 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'
15349 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15350 fi
15351 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15352 hardcode_libdir_separator_F77=:
15353 link_all_deplibs_F77=yes
15354 ;;
15355
15356 netbsd*)
15357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15358 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15359 else
15360 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15361 fi
15362 hardcode_libdir_flag_spec_F77='-R$libdir'
15363 hardcode_direct_F77=yes
15364 hardcode_shlibpath_var_F77=no
15365 ;;
15366
15367 newsos6)
15368 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15369 hardcode_direct_F77=yes
15370 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15371 hardcode_libdir_separator_F77=:
15372 hardcode_shlibpath_var_F77=no
15373 ;;
15374
15375 openbsd*)
15376 hardcode_direct_F77=yes
15377 hardcode_shlibpath_var_F77=no
15378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15379 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15380 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15381 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15382 export_dynamic_flag_spec_F77='${wl}-E'
15383 else
15384 case $host_os in
15385 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15386 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_libdir_flag_spec_F77='-R$libdir'
15388 ;;
15389 *)
15390 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15391 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15392 ;;
15393 esac
15394 fi
15395 ;;
15396
15397 os2*)
15398 hardcode_libdir_flag_spec_F77='-L$libdir'
15399 hardcode_minus_L_F77=yes
15400 allow_undefined_flag_F77=unsupported
15401 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'
15402 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15403 ;;
15404
15405 osf3*)
15406 if test "$GCC" = yes; then
15407 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15408 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'
15409 else
15410 allow_undefined_flag_F77=' -expect_unresolved \*'
15411 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'
15412 fi
15413 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15414 hardcode_libdir_separator_F77=:
15415 ;;
15416
15417 osf4* | osf5*) # as osf3* with the addition of -msym flag
15418 if test "$GCC" = yes; then
15419 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15420 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'
15421 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15422 else
15423 allow_undefined_flag_F77=' -expect_unresolved \*'
15424 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'
15425 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~
15426 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15427
15428 # Both c and cxx compiler support -rpath directly
15429 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15430 fi
15431 hardcode_libdir_separator_F77=:
15432 ;;
15433
15434 sco3.2v5*)
15435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436 hardcode_shlibpath_var_F77=no
15437 export_dynamic_flag_spec_F77='${wl}-Bexport'
15438 runpath_var=LD_RUN_PATH
15439 hardcode_runpath_var=yes
15440 ;;
15441
15442 solaris*)
15443 no_undefined_flag_F77=' -z text'
15444 if test "$GCC" = yes; then
15445 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15447 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15448 else
15449 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15451 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15452 fi
15453 hardcode_libdir_flag_spec_F77='-R$libdir'
15454 hardcode_shlibpath_var_F77=no
15455 case $host_os in
15456 solaris2.[0-5] | solaris2.[0-5].*) ;;
15457 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15458 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15459 esac
15460 link_all_deplibs_F77=yes
15461 ;;
15462
15463 sunos4*)
15464 if test "x$host_vendor" = xsequent; then
15465 # Use $CC to link under sequent, because it throws in some extra .o
15466 # files that make .init and .fini sections work.
15467 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15468 else
15469 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15470 fi
15471 hardcode_libdir_flag_spec_F77='-L$libdir'
15472 hardcode_direct_F77=yes
15473 hardcode_minus_L_F77=yes
15474 hardcode_shlibpath_var_F77=no
15475 ;;
15476
15477 sysv4)
15478 case $host_vendor in
15479 sni)
15480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15481 hardcode_direct_F77=yes # is this really true???
15482 ;;
15483 siemens)
15484 ## LD is ld it makes a PLAMLIB
15485 ## CC just makes a GrossModule.
15486 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15487 reload_cmds_F77='$CC -r -o $output$reload_objs'
15488 hardcode_direct_F77=no
15489 ;;
15490 motorola)
15491 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15492 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15493 ;;
15494 esac
15495 runpath_var='LD_RUN_PATH'
15496 hardcode_shlibpath_var_F77=no
15497 ;;
15498
15499 sysv4.3*)
15500 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15501 hardcode_shlibpath_var_F77=no
15502 export_dynamic_flag_spec_F77='-Bexport'
15503 ;;
15504
15505 sysv4*MP*)
15506 if test -d /usr/nec; then
15507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_shlibpath_var_F77=no
15509 runpath_var=LD_RUN_PATH
15510 hardcode_runpath_var=yes
15511 ld_shlibs_F77=yes
15512 fi
15513 ;;
15514
15515 sysv4.2uw2*)
15516 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15517 hardcode_direct_F77=yes
15518 hardcode_minus_L_F77=no
15519 hardcode_shlibpath_var_F77=no
15520 hardcode_runpath_var=yes
15521 runpath_var=LD_RUN_PATH
15522 ;;
15523
15524 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15525 no_undefined_flag_F77='${wl}-z ${wl}text'
15526 if test "$GCC" = yes; then
15527 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 else
15529 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530 fi
15531 runpath_var='LD_RUN_PATH'
15532 hardcode_shlibpath_var_F77=no
15533 ;;
15534
15535 sysv5*)
15536 no_undefined_flag_F77=' -z text'
15537 # $CC -shared without GNU ld will not create a library from C++
15538 # object files and a static libstdc++, better avoid it by now
15539 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15542 hardcode_libdir_flag_spec_F77=
15543 hardcode_shlibpath_var_F77=no
15544 runpath_var='LD_RUN_PATH'
15545 ;;
15546
15547 uts4*)
15548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_libdir_flag_spec_F77='-L$libdir'
15550 hardcode_shlibpath_var_F77=no
15551 ;;
15552
15553 *)
15554 ld_shlibs_F77=no
15555 ;;
15556 esac
15557 fi
15558
15559 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15560 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15561 test "$ld_shlibs_F77" = no && can_build_shared=no
15562
15563 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15564 if test "$GCC" = yes; then
15565 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15566 fi
15567
15568 #
15569 # Do we need to explicitly link libc?
15570 #
15571 case "x$archive_cmds_need_lc_F77" in
15572 x|xyes)
15573 # Assume -lc should be added
15574 archive_cmds_need_lc_F77=yes
15575
15576 if test "$enable_shared" = yes && test "$GCC" = yes; then
15577 case $archive_cmds_F77 in
15578 *'~'*)
15579 # FIXME: we may have to deal with multi-command sequences.
15580 ;;
15581 '$CC '*)
15582 # Test whether the compiler implicitly links with -lc since on some
15583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15584 # to ld, don't add -lc before -lgcc.
15585 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15586 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15587 $rm conftest*
15588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15589
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } 2>conftest.err; then
15595 soname=conftest
15596 lib=conftest
15597 libobjs=conftest.$ac_objext
15598 deplibs=
15599 wl=$lt_prog_compiler_wl_F77
15600 compiler_flags=-v
15601 linker_flags=-v
15602 verstring=
15603 output_objdir=.
15604 libname=conftest
15605 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15606 allow_undefined_flag_F77=
15607 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15608 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }
15612 then
15613 archive_cmds_need_lc_F77=no
15614 else
15615 archive_cmds_need_lc_F77=yes
15616 fi
15617 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15618 else
15619 cat conftest.err 1>&5
15620 fi
15621 $rm conftest*
15622 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15623 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15624 ;;
15625 esac
15626 fi
15627 ;;
15628 esac
15629
15630 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15631 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15632 library_names_spec=
15633 libname_spec='lib$name'
15634 soname_spec=
15635 shrext_cmds=".so"
15636 postinstall_cmds=
15637 postuninstall_cmds=
15638 finish_cmds=
15639 finish_eval=
15640 shlibpath_var=
15641 shlibpath_overrides_runpath=unknown
15642 version_type=none
15643 dynamic_linker="$host_os ld.so"
15644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15645 if test "$GCC" = yes; then
15646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15647 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15648 # if the path contains ";" then we assume it to be the separator
15649 # otherwise default to the standard path separator (i.e. ":") - it is
15650 # assumed that no part of a normal pathname contains ";" but that should
15651 # okay in the real world where ";" in dirpaths is itself problematic.
15652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15653 else
15654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15655 fi
15656 else
15657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15658 fi
15659 need_lib_prefix=unknown
15660 hardcode_into_libs=no
15661
15662 # when you set need_version to no, make sure it does not cause -set_version
15663 # flags to be left without arguments
15664 need_version=unknown
15665
15666 case $host_os in
15667 aix3*)
15668 version_type=linux
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15670 shlibpath_var=LIBPATH
15671
15672 # AIX 3 has no versioning support, so we append a major version to the name.
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 ;;
15675
15676 aix4* | aix5*)
15677 version_type=linux
15678 need_lib_prefix=no
15679 need_version=no
15680 hardcode_into_libs=yes
15681 if test "$host_cpu" = ia64; then
15682 # AIX 5 supports IA64
15683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 else
15686 # With GCC up to 2.95.x, collect2 would create an import file
15687 # for dependence libraries. The import file would start with
15688 # the line `#! .'. This would cause the generated library to
15689 # depend on `.', always an invalid library. This was fixed in
15690 # development snapshots of GCC prior to 3.0.
15691 case $host_os in
15692 aix4 | aix4.[01] | aix4.[01].*)
15693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15694 echo ' yes '
15695 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15696 :
15697 else
15698 can_build_shared=no
15699 fi
15700 ;;
15701 esac
15702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15703 # soname into executable. Probably we can add versioning support to
15704 # collect2, so additional links can be useful in future.
15705 if test "$aix_use_runtimelinking" = yes; then
15706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15707 # instead of lib<name>.a to let people know that these are not
15708 # typical AIX shared libraries.
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710 else
15711 # We preserve .a as extension for shared libraries through AIX4.2
15712 # and later when we are not doing run time linking.
15713 library_names_spec='${libname}${release}.a $libname.a'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 fi
15716 shlibpath_var=LIBPATH
15717 fi
15718 ;;
15719
15720 amigaos*)
15721 library_names_spec='$libname.ixlibrary $libname.a'
15722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15723 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'
15724 ;;
15725
15726 beos*)
15727 library_names_spec='${libname}${shared_ext}'
15728 dynamic_linker="$host_os ld.so"
15729 shlibpath_var=LIBRARY_PATH
15730 ;;
15731
15732 bsdi[45]*)
15733 version_type=linux
15734 need_version=no
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15741 # the default ld.so.conf also contains /usr/contrib/lib and
15742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15743 # libtool to hard-code these into programs
15744 ;;
15745
15746 cygwin* | mingw* | pw32*)
15747 version_type=windows
15748 shrext_cmds=".dll"
15749 need_version=no
15750 need_lib_prefix=no
15751
15752 case $GCC,$host_os in
15753 yes,cygwin* | yes,mingw* | yes,pw32*)
15754 library_names_spec='$libname.dll.a'
15755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15756 postinstall_cmds='base_file=`basename \${file}`~
15757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15758 dldir=$destdir/`dirname \$dlpath`~
15759 test -d \$dldir || mkdir -p \$dldir~
15760 $install_prog $dir/$dlname \$dldir/$dlname'
15761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15762 dlpath=$dir/\$dldll~
15763 $rm \$dlpath'
15764 shlibpath_overrides_runpath=yes
15765
15766 case $host_os in
15767 cygwin*)
15768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15771 ;;
15772 mingw*)
15773 # MinGW DLLs use traditional 'lib' prefix
15774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15777 # It is most probably a Windows format PATH printed by
15778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15779 # path with ; separators, and with drive letters. We can handle the
15780 # drive letters (cygwin fileutils understands them), so leave them,
15781 # especially as we might pass files found there to a mingw objdump,
15782 # which wouldn't understand a cygwinified path. Ahh.
15783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15784 else
15785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15786 fi
15787 ;;
15788 pw32*)
15789 # pw32 DLLs use 'pw' prefix rather than 'lib'
15790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15791 ;;
15792 esac
15793 ;;
15794
15795 linux*)
15796 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798 supports_anon_versioning=no
15799 case `$LD -v 2>/dev/null` in
15800 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15801 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15802 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15803 *\ 2.11.*) ;; # other 2.11 versions
15804 *) supports_anon_versioning=yes ;;
15805 esac
15806 if test $supports_anon_versioning = yes; then
15807 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15809 $echo "local: *; };" >> $output_objdir/$libname.ver~
15810 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15811 else
15812 $archive_expsym_cmds="$archive_cmds"
15813 fi
15814 else
15815 ld_shlibs=no
15816 fi
15817 ;;
15818
15819 *)
15820 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15821 ;;
15822 esac
15823 dynamic_linker='Win32 ld.exe'
15824 # FIXME: first we should search . and the directory the executable is in
15825 shlibpath_var=PATH
15826 ;;
15827
15828 darwin* | rhapsody*)
15829 dynamic_linker="$host_os dyld"
15830 version_type=darwin
15831 need_lib_prefix=no
15832 need_version=no
15833 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15834 soname_spec='${libname}${release}${major}$shared_ext'
15835 shlibpath_overrides_runpath=yes
15836 shlibpath_var=DYLD_LIBRARY_PATH
15837 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15838 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15839 if test "$GCC" = yes; then
15840 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"`
15841 else
15842 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15843 fi
15844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15845 ;;
15846
15847 dgux*)
15848 version_type=linux
15849 need_lib_prefix=no
15850 need_version=no
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 ;;
15855
15856 freebsd1*)
15857 dynamic_linker=no
15858 ;;
15859
15860 kfreebsd*-gnu)
15861 version_type=linux
15862 need_lib_prefix=no
15863 need_version=no
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15865 soname_spec='${libname}${release}${shared_ext}$major'
15866 shlibpath_var=LD_LIBRARY_PATH
15867 shlibpath_overrides_runpath=no
15868 hardcode_into_libs=yes
15869 dynamic_linker='GNU ld.so'
15870 ;;
15871
15872 freebsd*)
15873 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15874 version_type=freebsd-$objformat
15875 case $version_type in
15876 freebsd-elf*)
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15878 need_version=no
15879 need_lib_prefix=no
15880 ;;
15881 freebsd-*)
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15883 need_version=yes
15884 ;;
15885 esac
15886 shlibpath_var=LD_LIBRARY_PATH
15887 case $host_os in
15888 freebsd2*)
15889 shlibpath_overrides_runpath=yes
15890 ;;
15891 freebsd3.01* | freebsdelf3.01*)
15892 shlibpath_overrides_runpath=yes
15893 hardcode_into_libs=yes
15894 ;;
15895 *) # from 3.2 on
15896 shlibpath_overrides_runpath=no
15897 hardcode_into_libs=yes
15898 ;;
15899 esac
15900 ;;
15901
15902 gnu*)
15903 version_type=linux
15904 need_lib_prefix=no
15905 need_version=no
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15907 soname_spec='${libname}${release}${shared_ext}$major'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 hardcode_into_libs=yes
15910 ;;
15911
15912 hpux9* | hpux10* | hpux11*)
15913 # Give a soname corresponding to the major version so that dld.sl refuses to
15914 # link against other versions.
15915 version_type=sunos
15916 need_lib_prefix=no
15917 need_version=no
15918 case "$host_cpu" in
15919 ia64*)
15920 shrext_cmds='.so'
15921 hardcode_into_libs=yes
15922 dynamic_linker="$host_os dld.so"
15923 shlibpath_var=LD_LIBRARY_PATH
15924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926 soname_spec='${libname}${release}${shared_ext}$major'
15927 if test "X$HPUX_IA64_MODE" = X32; then
15928 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15929 else
15930 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15931 fi
15932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15933 ;;
15934 hppa*64*)
15935 shrext_cmds='.sl'
15936 hardcode_into_libs=yes
15937 dynamic_linker="$host_os dld.sl"
15938 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941 soname_spec='${libname}${release}${shared_ext}$major'
15942 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15944 ;;
15945 *)
15946 shrext_cmds='.sl'
15947 dynamic_linker="$host_os dld.sl"
15948 shlibpath_var=SHLIB_PATH
15949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 ;;
15953 esac
15954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15955 postinstall_cmds='chmod 555 $lib'
15956 ;;
15957
15958 irix5* | irix6* | nonstopux*)
15959 case $host_os in
15960 nonstopux*) version_type=nonstopux ;;
15961 *)
15962 if test "$lt_cv_prog_gnu_ld" = yes; then
15963 version_type=linux
15964 else
15965 version_type=irix
15966 fi ;;
15967 esac
15968 need_lib_prefix=no
15969 need_version=no
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15972 case $host_os in
15973 irix5* | nonstopux*)
15974 libsuff= shlibsuff=
15975 ;;
15976 *)
15977 case $LD in # libtool.m4 will add one of these switches to LD
15978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15979 libsuff= shlibsuff= libmagic=32-bit;;
15980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15981 libsuff=32 shlibsuff=N32 libmagic=N32;;
15982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15984 *) libsuff= shlibsuff= libmagic=never-match;;
15985 esac
15986 ;;
15987 esac
15988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15989 shlibpath_overrides_runpath=no
15990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15992 hardcode_into_libs=yes
15993 ;;
15994
15995 # No shared lib support for Linux oldld, aout, or coff.
15996 linux*oldld* | linux*aout* | linux*coff*)
15997 dynamic_linker=no
15998 ;;
15999
16000 # This must be Linux ELF.
16001 linux*)
16002 version_type=linux
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16010 # This implies no fast_install, which is unacceptable.
16011 # Some rework will be needed to allow for fast_install
16012 # before this can be enabled.
16013 hardcode_into_libs=yes
16014
16015 # Append ld.so.conf contents to the search path
16016 if test -f /etc/ld.so.conf; then
16017 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16019 fi
16020
16021 case $host_cpu:$lt_cv_cc_64bit_output in
16022 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
16023 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
16024 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
16025 ;;
16026 esac
16027
16028 # We used to test for /lib/ld.so.1 and disable shared libraries on
16029 # powerpc, because MkLinux only supported shared libraries with the
16030 # GNU dynamic linker. Since this was broken with cross compilers,
16031 # most powerpc-linux boxes support dynamic linking these days and
16032 # people can always --disable-shared, the test was removed, and we
16033 # assume the GNU/Linux dynamic linker is in use.
16034 dynamic_linker='GNU/Linux ld.so'
16035
16036 # Find out which ABI we are using (multilib Linux x86_64 hack).
16037 libsuff=
16038 case "$host_cpu" in
16039 x86_64*)
16040 echo '#line 16040 "configure"' > conftest.$ac_ext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16042 (eval $ac_compile) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; then
16046 case `/usr/bin/file conftest.$ac_objext` in
16047 *64-bit*)
16048 libsuff=64
16049 ;;
16050 esac
16051 fi
16052 rm -rf conftest*
16053 ;;
16054 *)
16055 ;;
16056 esac
16057 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16058 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16059 ;;
16060
16061 knetbsd*-gnu)
16062 version_type=linux
16063 need_lib_prefix=no
16064 need_version=no
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 shlibpath_overrides_runpath=no
16069 hardcode_into_libs=yes
16070 dynamic_linker='GNU ld.so'
16071 ;;
16072
16073 netbsd*)
16074 version_type=sunos
16075 need_lib_prefix=no
16076 need_version=no
16077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16080 dynamic_linker='NetBSD (a.out) ld.so'
16081 else
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16083 soname_spec='${libname}${release}${shared_ext}$major'
16084 dynamic_linker='NetBSD ld.elf_so'
16085 fi
16086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16088 hardcode_into_libs=yes
16089 ;;
16090
16091 newsos6)
16092 version_type=linux
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 shlibpath_overrides_runpath=yes
16096 ;;
16097
16098 nto-qnx*)
16099 version_type=linux
16100 need_lib_prefix=no
16101 need_version=no
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103 soname_spec='${libname}${release}${shared_ext}$major'
16104 shlibpath_var=LD_LIBRARY_PATH
16105 shlibpath_overrides_runpath=yes
16106 ;;
16107
16108 openbsd*)
16109 version_type=sunos
16110 need_lib_prefix=no
16111 need_version=no
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16116 case $host_os in
16117 openbsd2.[89] | openbsd2.[89].*)
16118 shlibpath_overrides_runpath=no
16119 ;;
16120 *)
16121 shlibpath_overrides_runpath=yes
16122 ;;
16123 esac
16124 else
16125 shlibpath_overrides_runpath=yes
16126 fi
16127 ;;
16128
16129 os2*)
16130 libname_spec='$name'
16131 shrext_cmds=".dll"
16132 need_lib_prefix=no
16133 library_names_spec='$libname${shared_ext} $libname.a'
16134 dynamic_linker='OS/2 ld.exe'
16135 shlibpath_var=LIBPATH
16136 ;;
16137
16138 osf3* | osf4* | osf5*)
16139 version_type=osf
16140 need_lib_prefix=no
16141 need_version=no
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16147 ;;
16148
16149 sco3.2v5*)
16150 version_type=osf
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 ;;
16155
16156 solaris*)
16157 version_type=linux
16158 need_lib_prefix=no
16159 need_version=no
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 soname_spec='${libname}${release}${shared_ext}$major'
16162 shlibpath_var=LD_LIBRARY_PATH
16163 shlibpath_overrides_runpath=yes
16164 hardcode_into_libs=yes
16165 # ldd complains unless libraries are executable
16166 postinstall_cmds='chmod +x $lib'
16167 ;;
16168
16169 sunos4*)
16170 version_type=sunos
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 shlibpath_overrides_runpath=yes
16175 if test "$with_gnu_ld" = yes; then
16176 need_lib_prefix=no
16177 fi
16178 need_version=yes
16179 ;;
16180
16181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16182 version_type=linux
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 case $host_vendor in
16187 sni)
16188 shlibpath_overrides_runpath=no
16189 need_lib_prefix=no
16190 export_dynamic_flag_spec='${wl}-Blargedynsym'
16191 runpath_var=LD_RUN_PATH
16192 ;;
16193 siemens)
16194 need_lib_prefix=no
16195 ;;
16196 motorola)
16197 need_lib_prefix=no
16198 need_version=no
16199 shlibpath_overrides_runpath=no
16200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16201 ;;
16202 esac
16203 ;;
16204
16205 sysv4*MP*)
16206 if test -d /usr/nec ;then
16207 version_type=linux
16208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16209 soname_spec='$libname${shared_ext}.$major'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 fi
16212 ;;
16213
16214 uts4*)
16215 version_type=linux
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 shlibpath_var=LD_LIBRARY_PATH
16219 ;;
16220
16221 *)
16222 dynamic_linker=no
16223 ;;
16224 esac
16225 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16226 echo "${ECHO_T}$dynamic_linker" >&6; }
16227 test "$dynamic_linker" = no && can_build_shared=no
16228
16229 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16230 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16231 hardcode_action_F77=
16232 if test -n "$hardcode_libdir_flag_spec_F77" || \
16233 test -n "$runpath_var_F77" || \
16234 test "X$hardcode_automatic_F77" = "Xyes" ; then
16235
16236 # We can hardcode non-existant directories.
16237 if test "$hardcode_direct_F77" != no &&
16238 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16239 # have to relink, otherwise we might link with an installed library
16240 # when we should be linking with a yet-to-be-installed one
16241 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16242 test "$hardcode_minus_L_F77" != no; then
16243 # Linking always hardcodes the temporary library directory.
16244 hardcode_action_F77=relink
16245 else
16246 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16247 hardcode_action_F77=immediate
16248 fi
16249 else
16250 # We cannot hardcode anything, or else we can only hardcode existing
16251 # directories.
16252 hardcode_action_F77=unsupported
16253 fi
16254 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16255 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16256
16257 if test "$hardcode_action_F77" = relink; then
16258 # Fast installation is not supported
16259 enable_fast_install=no
16260 elif test "$shlibpath_overrides_runpath" = yes ||
16261 test "$enable_shared" = no; then
16262 # Fast installation is not necessary
16263 enable_fast_install=needless
16264 fi
16265
16266 striplib=
16267 old_striplib=
16268 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16269 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16270 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16271 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16272 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16273 { echo "$as_me:$LINENO: result: yes" >&5
16274 echo "${ECHO_T}yes" >&6; }
16275 else
16276 # FIXME - insert some real tests, host_os isn't really good enough
16277 case $host_os in
16278 darwin*)
16279 if test -n "$STRIP" ; then
16280 striplib="$STRIP -x"
16281 { echo "$as_me:$LINENO: result: yes" >&5
16282 echo "${ECHO_T}yes" >&6; }
16283 else
16284 { echo "$as_me:$LINENO: result: no" >&5
16285 echo "${ECHO_T}no" >&6; }
16286 fi
16287 ;;
16288 *)
16289 { echo "$as_me:$LINENO: result: no" >&5
16290 echo "${ECHO_T}no" >&6; }
16291 ;;
16292 esac
16293 fi
16294
16295
16296
16297 # The else clause should only fire when bootstrapping the
16298 # libtool distribution, otherwise you forgot to ship ltmain.sh
16299 # with your package, and you will get complaints that there are
16300 # no rules to generate ltmain.sh.
16301 if test -f "$ltmain"; then
16302 # See if we are running on zsh, and set the options which allow our commands through
16303 # without removal of \ escapes.
16304 if test -n "${ZSH_VERSION+set}" ; then
16305 setopt NO_GLOB_SUBST
16306 fi
16307 # Now quote all the things that may contain metacharacters while being
16308 # careful not to overquote the AC_SUBSTed values. We take copies of the
16309 # variables and quote the copies for generation of the libtool script.
16310 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16311 SED SHELL STRIP \
16312 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16313 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16314 deplibs_check_method reload_flag reload_cmds need_locks \
16315 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16316 lt_cv_sys_global_symbol_to_c_name_address \
16317 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16318 old_postinstall_cmds old_postuninstall_cmds \
16319 compiler_F77 \
16320 CC_F77 \
16321 LD_F77 \
16322 lt_prog_compiler_wl_F77 \
16323 lt_prog_compiler_pic_F77 \
16324 lt_prog_compiler_static_F77 \
16325 lt_prog_compiler_no_builtin_flag_F77 \
16326 export_dynamic_flag_spec_F77 \
16327 thread_safe_flag_spec_F77 \
16328 whole_archive_flag_spec_F77 \
16329 enable_shared_with_static_runtimes_F77 \
16330 old_archive_cmds_F77 \
16331 old_archive_from_new_cmds_F77 \
16332 predep_objects_F77 \
16333 postdep_objects_F77 \
16334 predeps_F77 \
16335 postdeps_F77 \
16336 compiler_lib_search_path_F77 \
16337 archive_cmds_F77 \
16338 archive_expsym_cmds_F77 \
16339 postinstall_cmds_F77 \
16340 postuninstall_cmds_F77 \
16341 old_archive_from_expsyms_cmds_F77 \
16342 allow_undefined_flag_F77 \
16343 no_undefined_flag_F77 \
16344 export_symbols_cmds_F77 \
16345 hardcode_libdir_flag_spec_F77 \
16346 hardcode_libdir_flag_spec_ld_F77 \
16347 hardcode_libdir_separator_F77 \
16348 hardcode_automatic_F77 \
16349 module_cmds_F77 \
16350 module_expsym_cmds_F77 \
16351 lt_cv_prog_compiler_c_o_F77 \
16352 exclude_expsyms_F77 \
16353 include_expsyms_F77; do
16354
16355 case $var in
16356 old_archive_cmds_F77 | \
16357 old_archive_from_new_cmds_F77 | \
16358 archive_cmds_F77 | \
16359 archive_expsym_cmds_F77 | \
16360 module_cmds_F77 | \
16361 module_expsym_cmds_F77 | \
16362 old_archive_from_expsyms_cmds_F77 | \
16363 export_symbols_cmds_F77 | \
16364 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16365 postinstall_cmds | postuninstall_cmds | \
16366 old_postinstall_cmds | old_postuninstall_cmds | \
16367 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16368 # Double-quote double-evaled strings.
16369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16370 ;;
16371 *)
16372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16373 ;;
16374 esac
16375 done
16376
16377 case $lt_echo in
16378 *'\$0 --fallback-echo"')
16379 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16380 ;;
16381 esac
16382
16383 cfgfile="$ofile"
16384
16385 cat <<__EOF__ >> "$cfgfile"
16386 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16387
16388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16389
16390 # Shell to use when invoking shell scripts.
16391 SHELL=$lt_SHELL
16392
16393 # Whether or not to build shared libraries.
16394 build_libtool_libs=$enable_shared
16395
16396 # Whether or not to build static libraries.
16397 build_old_libs=$enable_static
16398
16399 # Whether or not to add -lc for building shared libraries.
16400 build_libtool_need_lc=$archive_cmds_need_lc_F77
16401
16402 # Whether or not to disallow shared libs when runtime libs are static
16403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16404
16405 # Whether or not to optimize for fast installation.
16406 fast_install=$enable_fast_install
16407
16408 # The host system.
16409 host_alias=$host_alias
16410 host=$host
16411
16412 # An echo program that does not interpret backslashes.
16413 echo=$lt_echo
16414
16415 # The archiver.
16416 AR=$lt_AR
16417 AR_FLAGS=$lt_AR_FLAGS
16418
16419 # A C compiler.
16420 LTCC=$lt_LTCC
16421
16422 # A language-specific compiler.
16423 CC=$lt_compiler_F77
16424
16425 # Is the compiler the GNU C compiler?
16426 with_gcc=$GCC_F77
16427
16428 # An ERE matcher.
16429 EGREP=$lt_EGREP
16430
16431 # The linker used to build libraries.
16432 LD=$lt_LD_F77
16433
16434 # Whether we need hard or soft links.
16435 LN_S=$lt_LN_S
16436
16437 # A BSD-compatible nm program.
16438 NM=$lt_NM
16439
16440 # A symbol stripping program
16441 STRIP=$lt_STRIP
16442
16443 # Used to examine libraries when file_magic_cmd begins "file"
16444 MAGIC_CMD=$MAGIC_CMD
16445
16446 # Used on cygwin: DLL creation program.
16447 DLLTOOL="$DLLTOOL"
16448
16449 # Used on cygwin: object dumper.
16450 OBJDUMP="$OBJDUMP"
16451
16452 # Used on cygwin: assembler.
16453 AS="$AS"
16454
16455 # The name of the directory that contains temporary libtool files.
16456 objdir=$objdir
16457
16458 # How to create reloadable object files.
16459 reload_flag=$lt_reload_flag
16460 reload_cmds=$lt_reload_cmds
16461
16462 # How to pass a linker flag through the compiler.
16463 wl=$lt_lt_prog_compiler_wl_F77
16464
16465 # Object file suffix (normally "o").
16466 objext="$ac_objext"
16467
16468 # Old archive suffix (normally "a").
16469 libext="$libext"
16470
16471 # Shared library suffix (normally ".so").
16472 shrext_cmds='$shrext_cmds'
16473
16474 # Executable file suffix (normally "").
16475 exeext="$exeext"
16476
16477 # Additional compiler flags for building library objects.
16478 pic_flag=$lt_lt_prog_compiler_pic_F77
16479 pic_mode=$pic_mode
16480
16481 # What is the maximum length of a command?
16482 max_cmd_len=$lt_cv_sys_max_cmd_len
16483
16484 # Does compiler simultaneously support -c and -o options?
16485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16486
16487 # Must we lock files when doing compilation ?
16488 need_locks=$lt_need_locks
16489
16490 # Do we need the lib prefix for modules?
16491 need_lib_prefix=$need_lib_prefix
16492
16493 # Do we need a version for libraries?
16494 need_version=$need_version
16495
16496 # Whether dlopen is supported.
16497 dlopen_support=$enable_dlopen
16498
16499 # Whether dlopen of programs is supported.
16500 dlopen_self=$enable_dlopen_self
16501
16502 # Whether dlopen of statically linked programs is supported.
16503 dlopen_self_static=$enable_dlopen_self_static
16504
16505 # Compiler flag to prevent dynamic linking.
16506 link_static_flag=$lt_lt_prog_compiler_static_F77
16507
16508 # Compiler flag to turn off builtin functions.
16509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16510
16511 # Compiler flag to allow reflexive dlopens.
16512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16513
16514 # Compiler flag to generate shared objects directly from archives.
16515 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16516
16517 # Compiler flag to generate thread-safe objects.
16518 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16519
16520 # Library versioning type.
16521 version_type=$version_type
16522
16523 # Format of library name prefix.
16524 libname_spec=$lt_libname_spec
16525
16526 # List of archive names. First name is the real one, the rest are links.
16527 # The last name is the one that the linker finds with -lNAME.
16528 library_names_spec=$lt_library_names_spec
16529
16530 # The coded name of the library, if different from the real name.
16531 soname_spec=$lt_soname_spec
16532
16533 # Commands used to build and install an old-style archive.
16534 RANLIB=$lt_RANLIB
16535 old_archive_cmds=$lt_old_archive_cmds_F77
16536 old_postinstall_cmds=$lt_old_postinstall_cmds
16537 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16538
16539 # Create an old-style archive from a shared archive.
16540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16541
16542 # Create a temporary old-style archive to link instead of a shared archive.
16543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16544
16545 # Commands used to build and install a shared archive.
16546 archive_cmds=$lt_archive_cmds_F77
16547 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16548 postinstall_cmds=$lt_postinstall_cmds
16549 postuninstall_cmds=$lt_postuninstall_cmds
16550
16551 # Commands used to build a loadable module (assumed same as above if empty)
16552 module_cmds=$lt_module_cmds_F77
16553 module_expsym_cmds=$lt_module_expsym_cmds_F77
16554
16555 # Commands to strip libraries.
16556 old_striplib=$lt_old_striplib
16557 striplib=$lt_striplib
16558
16559 # Dependencies to place before the objects being linked to create a
16560 # shared library.
16561 predep_objects=$lt_predep_objects_F77
16562
16563 # Dependencies to place after the objects being linked to create a
16564 # shared library.
16565 postdep_objects=$lt_postdep_objects_F77
16566
16567 # Dependencies to place before the objects being linked to create a
16568 # shared library.
16569 predeps=$lt_predeps_F77
16570
16571 # Dependencies to place after the objects being linked to create a
16572 # shared library.
16573 postdeps=$lt_postdeps_F77
16574
16575 # The library search path used internally by the compiler when linking
16576 # a shared library.
16577 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16578
16579 # Method to check whether dependent libraries are shared objects.
16580 deplibs_check_method=$lt_deplibs_check_method
16581
16582 # Command to use when deplibs_check_method == file_magic.
16583 file_magic_cmd=$lt_file_magic_cmd
16584
16585 # Flag that allows shared libraries with undefined symbols to be built.
16586 allow_undefined_flag=$lt_allow_undefined_flag_F77
16587
16588 # Flag that forces no undefined symbols.
16589 no_undefined_flag=$lt_no_undefined_flag_F77
16590
16591 # Commands used to finish a libtool library installation in a directory.
16592 finish_cmds=$lt_finish_cmds
16593
16594 # Same as above, but a single script fragment to be evaled but not shown.
16595 finish_eval=$lt_finish_eval
16596
16597 # Take the output of nm and produce a listing of raw symbols and C names.
16598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16599
16600 # Transform the output of nm in a proper C declaration
16601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16602
16603 # Transform the output of nm in a C name address pair
16604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16605
16606 # This is the shared library runtime path variable.
16607 runpath_var=$runpath_var
16608
16609 # This is the shared library path variable.
16610 shlibpath_var=$shlibpath_var
16611
16612 # Is shlibpath searched before the hard-coded library search path?
16613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16614
16615 # How to hardcode a shared library path into an executable.
16616 hardcode_action=$hardcode_action_F77
16617
16618 # Whether we should hardcode library paths into libraries.
16619 hardcode_into_libs=$hardcode_into_libs
16620
16621 # Flag to hardcode \$libdir into a binary during linking.
16622 # This must work even if \$libdir does not exist.
16623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16624
16625 # If ld is used when linking, flag to hardcode \$libdir into
16626 # a binary during linking. This must work even if \$libdir does
16627 # not exist.
16628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16629
16630 # Whether we need a single -rpath flag with a separated argument.
16631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16632
16633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16634 # resulting binary.
16635 hardcode_direct=$hardcode_direct_F77
16636
16637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16638 # resulting binary.
16639 hardcode_minus_L=$hardcode_minus_L_F77
16640
16641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16642 # the resulting binary.
16643 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16644
16645 # Set to yes if building a shared library automatically hardcodes DIR into the library
16646 # and all subsequent libraries and executables linked against it.
16647 hardcode_automatic=$hardcode_automatic_F77
16648
16649 # Variables whose values should be saved in libtool wrapper scripts and
16650 # restored at relink time.
16651 variables_saved_for_relink="$variables_saved_for_relink"
16652
16653 # Whether libtool must link a program against all its dependency libraries.
16654 link_all_deplibs=$link_all_deplibs_F77
16655
16656 # Compile-time system search path for libraries
16657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16658
16659 # Run-time system search path for libraries
16660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16661
16662 # Fix the shell variable \$srcfile for the compiler.
16663 fix_srcfile_path="$fix_srcfile_path_F77"
16664
16665 # Set to yes if exported symbols are required.
16666 always_export_symbols=$always_export_symbols_F77
16667
16668 # The commands to list exported symbols.
16669 export_symbols_cmds=$lt_export_symbols_cmds_F77
16670
16671 # The commands to extract the exported symbol list from a shared archive.
16672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16673
16674 # Symbols that should not be listed in the preloaded symbols.
16675 exclude_expsyms=$lt_exclude_expsyms_F77
16676
16677 # Symbols that must always be exported.
16678 include_expsyms=$lt_include_expsyms_F77
16679
16680 # ### END LIBTOOL TAG CONFIG: $tagname
16681
16682 __EOF__
16683
16684
16685 else
16686 # If there is no Makefile yet, we rely on a make rule to execute
16687 # `config.status --recheck' to rerun these tests and create the
16688 # libtool script then.
16689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16690 if test -f "$ltmain_in"; then
16691 test -f Makefile && make "$ltmain"
16692 fi
16693 fi
16694
16695
16696 ac_ext=c
16697 ac_cpp='$CPP $CPPFLAGS'
16698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16701
16702 CC="$lt_save_CC"
16703
16704 else
16705 tagname=""
16706 fi
16707 ;;
16708
16709 GCJ)
16710 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16711
16712
16713 # Source file extension for Java test sources.
16714 ac_ext=java
16715
16716 # Object file extension for compiled Java test sources.
16717 objext=o
16718 objext_GCJ=$objext
16719
16720 # Code to be used in simple compile tests
16721 lt_simple_compile_test_code="class foo {}\n"
16722
16723 # Code to be used in simple link tests
16724 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16725
16726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16727
16728 # If no C compiler was specified, use CC.
16729 LTCC=${LTCC-"$CC"}
16730
16731 # Allow CC to be a program name with arguments.
16732 compiler=$CC
16733
16734
16735 # Allow CC to be a program name with arguments.
16736 lt_save_CC="$CC"
16737 CC=${GCJ-"gcj"}
16738 compiler=$CC
16739 compiler_GCJ=$CC
16740
16741 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16742 archive_cmds_need_lc_GCJ=no
16743
16744
16745 lt_prog_compiler_no_builtin_flag_GCJ=
16746
16747 if test "$GCC" = yes; then
16748 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16749
16750
16751 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16752 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16753 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756 lt_cv_prog_compiler_rtti_exceptions=no
16757 ac_outfile=conftest.$ac_objext
16758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16759 lt_compiler_flag="-fno-rtti -fno-exceptions"
16760 # Insert the option either (1) after the last *FLAGS variable, or
16761 # (2) before a word containing "conftest.", or (3) at the end.
16762 # Note that $ac_compile itself does not contain backslashes and begins
16763 # with a dollar sign (not a hyphen), so the echo should work correctly.
16764 # The option is referenced via a variable to avoid confusing sed.
16765 lt_compile=`echo "$ac_compile" | $SED \
16766 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16768 -e 's:$: $lt_compiler_flag:'`
16769 (eval echo "\"\$as_me:16769: $lt_compile\"" >&5)
16770 (eval "$lt_compile" 2>conftest.err)
16771 ac_status=$?
16772 cat conftest.err >&5
16773 echo "$as_me:16773: \$? = $ac_status" >&5
16774 if (exit $ac_status) && test -s "$ac_outfile"; then
16775 # The compiler can only warn and ignore the option if not recognized
16776 # So say no if there are warnings
16777 if test ! -s conftest.err; then
16778 lt_cv_prog_compiler_rtti_exceptions=yes
16779 fi
16780 fi
16781 $rm conftest*
16782
16783 fi
16784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16785 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16786
16787 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16788 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16789 else
16790 :
16791 fi
16792
16793 fi
16794
16795 lt_prog_compiler_wl_GCJ=
16796 lt_prog_compiler_pic_GCJ=
16797 lt_prog_compiler_static_GCJ=
16798
16799 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16800 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16801
16802 if test "$GCC" = yes; then
16803 lt_prog_compiler_wl_GCJ='-Wl,'
16804 lt_prog_compiler_static_GCJ='-static'
16805
16806 case $host_os in
16807 aix*)
16808 # All AIX code is PIC.
16809 if test "$host_cpu" = ia64; then
16810 # AIX 5 now supports IA64 processor
16811 lt_prog_compiler_static_GCJ='-Bstatic'
16812 fi
16813 ;;
16814
16815 amigaos*)
16816 # FIXME: we need at least 68020 code to build shared libraries, but
16817 # adding the `-m68020' flag to GCC prevents building anything better,
16818 # like `-m68040'.
16819 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16820 ;;
16821
16822 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16823 # PIC is the default for these OSes.
16824 ;;
16825
16826 mingw* | pw32* | os2*)
16827 # This hack is so that the source file can tell whether it is being
16828 # built for inclusion in a dll (and should export symbols for example).
16829 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16830 ;;
16831
16832 darwin* | rhapsody*)
16833 # PIC is the default on this platform
16834 # Common symbols not allowed in MH_DYLIB files
16835 lt_prog_compiler_pic_GCJ='-fno-common'
16836 ;;
16837
16838 msdosdjgpp*)
16839 # Just because we use GCC doesn't mean we suddenly get shared libraries
16840 # on systems that don't support them.
16841 lt_prog_compiler_can_build_shared_GCJ=no
16842 enable_shared=no
16843 ;;
16844
16845 sysv4*MP*)
16846 if test -d /usr/nec; then
16847 lt_prog_compiler_pic_GCJ=-Kconform_pic
16848 fi
16849 ;;
16850
16851 hpux*)
16852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16853 # not for PA HP-UX.
16854 case "$host_cpu" in
16855 hppa*64*|ia64*)
16856 # +Z the default
16857 ;;
16858 *)
16859 lt_prog_compiler_pic_GCJ='-fPIC'
16860 ;;
16861 esac
16862 ;;
16863
16864 *)
16865 lt_prog_compiler_pic_GCJ='-fPIC'
16866 ;;
16867 esac
16868 else
16869 # PORTME Check for flag to pass linker flags through the system compiler.
16870 case $host_os in
16871 aix*)
16872 lt_prog_compiler_wl_GCJ='-Wl,'
16873 if test "$host_cpu" = ia64; then
16874 # AIX 5 now supports IA64 processor
16875 lt_prog_compiler_static_GCJ='-Bstatic'
16876 else
16877 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16878 fi
16879 ;;
16880 darwin*)
16881 # PIC is the default on this platform
16882 # Common symbols not allowed in MH_DYLIB files
16883 case "$cc_basename" in
16884 xlc*)
16885 lt_prog_compiler_pic_GCJ='-qnocommon'
16886 lt_prog_compiler_wl_GCJ='-Wl,'
16887 ;;
16888 esac
16889 ;;
16890
16891 mingw* | pw32* | os2*)
16892 # This hack is so that the source file can tell whether it is being
16893 # built for inclusion in a dll (and should export symbols for example).
16894 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16895 ;;
16896
16897 hpux9* | hpux10* | hpux11*)
16898 lt_prog_compiler_wl_GCJ='-Wl,'
16899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16900 # not for PA HP-UX.
16901 case "$host_cpu" in
16902 hppa*64*|ia64*)
16903 # +Z the default
16904 ;;
16905 *)
16906 lt_prog_compiler_pic_GCJ='+Z'
16907 ;;
16908 esac
16909 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16910 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16911 ;;
16912
16913 irix5* | irix6* | nonstopux*)
16914 lt_prog_compiler_wl_GCJ='-Wl,'
16915 # PIC (with -KPIC) is the default.
16916 lt_prog_compiler_static_GCJ='-non_shared'
16917 ;;
16918
16919 newsos6)
16920 lt_prog_compiler_pic_GCJ='-KPIC'
16921 lt_prog_compiler_static_GCJ='-Bstatic'
16922 ;;
16923
16924 linux*)
16925 case $CC in
16926 icc* | ecc*)
16927 lt_prog_compiler_wl_GCJ='-Wl,'
16928 lt_prog_compiler_pic_GCJ='-KPIC'
16929 lt_prog_compiler_static_GCJ='-static'
16930 ;;
16931 ccc*)
16932 lt_prog_compiler_wl_GCJ='-Wl,'
16933 # All Alpha code is PIC.
16934 lt_prog_compiler_static_GCJ='-non_shared'
16935 ;;
16936 esac
16937 ;;
16938
16939 osf3* | osf4* | osf5*)
16940 lt_prog_compiler_wl_GCJ='-Wl,'
16941 # All OSF/1 code is PIC.
16942 lt_prog_compiler_static_GCJ='-non_shared'
16943 ;;
16944
16945 sco3.2v5*)
16946 lt_prog_compiler_pic_GCJ='-Kpic'
16947 lt_prog_compiler_static_GCJ='-dn'
16948 ;;
16949
16950 solaris*)
16951 lt_prog_compiler_wl_GCJ='-Wl,'
16952 lt_prog_compiler_pic_GCJ='-KPIC'
16953 lt_prog_compiler_static_GCJ='-Bstatic'
16954 ;;
16955
16956 sunos4*)
16957 lt_prog_compiler_wl_GCJ='-Qoption ld '
16958 lt_prog_compiler_pic_GCJ='-PIC'
16959 lt_prog_compiler_static_GCJ='-Bstatic'
16960 ;;
16961
16962 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16963 lt_prog_compiler_wl_GCJ='-Wl,'
16964 lt_prog_compiler_pic_GCJ='-KPIC'
16965 lt_prog_compiler_static_GCJ='-Bstatic'
16966 ;;
16967
16968 sysv4*MP*)
16969 if test -d /usr/nec ;then
16970 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16971 lt_prog_compiler_static_GCJ='-Bstatic'
16972 fi
16973 ;;
16974
16975 uts4*)
16976 lt_prog_compiler_pic_GCJ='-pic'
16977 lt_prog_compiler_static_GCJ='-Bstatic'
16978 ;;
16979
16980 *)
16981 lt_prog_compiler_can_build_shared_GCJ=no
16982 ;;
16983 esac
16984 fi
16985
16986 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16987 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16988
16989 #
16990 # Check to make sure the PIC flag actually works.
16991 #
16992 if test -n "$lt_prog_compiler_pic_GCJ"; then
16993
16994 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16995 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16996 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 else
16999 lt_prog_compiler_pic_works_GCJ=no
17000 ac_outfile=conftest.$ac_objext
17001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17002 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17003 # Insert the option either (1) after the last *FLAGS variable, or
17004 # (2) before a word containing "conftest.", or (3) at the end.
17005 # Note that $ac_compile itself does not contain backslashes and begins
17006 # with a dollar sign (not a hyphen), so the echo should work correctly.
17007 # The option is referenced via a variable to avoid confusing sed.
17008 lt_compile=`echo "$ac_compile" | $SED \
17009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17011 -e 's:$: $lt_compiler_flag:'`
17012 (eval echo "\"\$as_me:17012: $lt_compile\"" >&5)
17013 (eval "$lt_compile" 2>conftest.err)
17014 ac_status=$?
17015 cat conftest.err >&5
17016 echo "$as_me:17016: \$? = $ac_status" >&5
17017 if (exit $ac_status) && test -s "$ac_outfile"; then
17018 # The compiler can only warn and ignore the option if not recognized
17019 # So say no if there are warnings
17020 if test ! -s conftest.err; then
17021 lt_prog_compiler_pic_works_GCJ=yes
17022 fi
17023 fi
17024 $rm conftest*
17025
17026 fi
17027 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17028 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17029
17030 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17031 case $lt_prog_compiler_pic_GCJ in
17032 "" | " "*) ;;
17033 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17034 esac
17035 else
17036 lt_prog_compiler_pic_GCJ=
17037 lt_prog_compiler_can_build_shared_GCJ=no
17038 fi
17039
17040 fi
17041 case "$host_os" in
17042 # For platforms which do not support PIC, -DPIC is meaningless:
17043 *djgpp*)
17044 lt_prog_compiler_pic_GCJ=
17045 ;;
17046 *)
17047 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17048 ;;
17049 esac
17050
17051 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17052 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17053 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056 lt_cv_prog_compiler_c_o_GCJ=no
17057 $rm -r conftest 2>/dev/null
17058 mkdir conftest
17059 cd conftest
17060 mkdir out
17061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17062
17063 lt_compiler_flag="-o out/conftest2.$ac_objext"
17064 # Insert the option either (1) after the last *FLAGS variable, or
17065 # (2) before a word containing "conftest.", or (3) at the end.
17066 # Note that $ac_compile itself does not contain backslashes and begins
17067 # with a dollar sign (not a hyphen), so the echo should work correctly.
17068 lt_compile=`echo "$ac_compile" | $SED \
17069 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17071 -e 's:$: $lt_compiler_flag:'`
17072 (eval echo "\"\$as_me:17072: $lt_compile\"" >&5)
17073 (eval "$lt_compile" 2>out/conftest.err)
17074 ac_status=$?
17075 cat out/conftest.err >&5
17076 echo "$as_me:17076: \$? = $ac_status" >&5
17077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17078 then
17079 # The compiler can only warn and ignore the option if not recognized
17080 # So say no if there are warnings
17081 if test ! -s out/conftest.err; then
17082 lt_cv_prog_compiler_c_o_GCJ=yes
17083 fi
17084 fi
17085 chmod u+w .
17086 $rm conftest*
17087 # SGI C++ compiler will create directory out/ii_files/ for
17088 # template instantiation
17089 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17090 $rm out/* && rmdir out
17091 cd ..
17092 rmdir conftest
17093 $rm conftest*
17094
17095 fi
17096 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17098
17099
17100 hard_links="nottested"
17101 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17102 # do not overwrite the value of need_locks provided by the user
17103 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17105 hard_links=yes
17106 $rm conftest*
17107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17108 touch conftest.a
17109 ln conftest.a conftest.b 2>&5 || hard_links=no
17110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17111 { echo "$as_me:$LINENO: result: $hard_links" >&5
17112 echo "${ECHO_T}$hard_links" >&6; }
17113 if test "$hard_links" = no; then
17114 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17116 need_locks=warn
17117 fi
17118 else
17119 need_locks=no
17120 fi
17121
17122 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17124
17125 runpath_var=
17126 allow_undefined_flag_GCJ=
17127 enable_shared_with_static_runtimes_GCJ=no
17128 archive_cmds_GCJ=
17129 archive_expsym_cmds_GCJ=
17130 old_archive_From_new_cmds_GCJ=
17131 old_archive_from_expsyms_cmds_GCJ=
17132 export_dynamic_flag_spec_GCJ=
17133 whole_archive_flag_spec_GCJ=
17134 thread_safe_flag_spec_GCJ=
17135 hardcode_libdir_flag_spec_GCJ=
17136 hardcode_libdir_flag_spec_ld_GCJ=
17137 hardcode_libdir_separator_GCJ=
17138 hardcode_direct_GCJ=no
17139 hardcode_minus_L_GCJ=no
17140 hardcode_shlibpath_var_GCJ=unsupported
17141 link_all_deplibs_GCJ=unknown
17142 hardcode_automatic_GCJ=no
17143 module_cmds_GCJ=
17144 module_expsym_cmds_GCJ=
17145 always_export_symbols_GCJ=no
17146 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17147 # include_expsyms should be a list of space-separated symbols to be *always*
17148 # included in the symbol list
17149 include_expsyms_GCJ=
17150 # exclude_expsyms can be an extended regexp of symbols to exclude
17151 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17152 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17153 # as well as any symbol that contains `d'.
17154 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17155 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17156 # platforms (ab)use it in PIC code, but their linkers get confused if
17157 # the symbol is explicitly referenced. Since portable code cannot
17158 # rely on this symbol name, it's probably fine to never include it in
17159 # preloaded symbol tables.
17160 extract_expsyms_cmds=
17161
17162 case $host_os in
17163 cygwin* | mingw* | pw32*)
17164 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17165 # When not using gcc, we currently assume that we are using
17166 # Microsoft Visual C++.
17167 if test "$GCC" != yes; then
17168 with_gnu_ld=no
17169 fi
17170 ;;
17171 openbsd*)
17172 with_gnu_ld=no
17173 ;;
17174 esac
17175
17176 ld_shlibs_GCJ=yes
17177 if test "$with_gnu_ld" = yes; then
17178 # If archive_cmds runs LD, not CC, wlarc should be empty
17179 wlarc='${wl}'
17180
17181 # See if GNU ld supports shared libraries.
17182 case $host_os in
17183 aix3* | aix4* | aix5*)
17184 # On AIX/PPC, the GNU linker is very broken
17185 if test "$host_cpu" != ia64; then
17186 ld_shlibs_GCJ=no
17187 cat <<EOF 1>&2
17188
17189 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17190 *** to be unable to reliably create shared libraries on AIX.
17191 *** Therefore, libtool is disabling shared libraries support. If you
17192 *** really care for shared libraries, you may want to modify your PATH
17193 *** so that a non-GNU linker is found, and then restart.
17194
17195 EOF
17196 fi
17197 ;;
17198
17199 amigaos*)
17200 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)'
17201 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17202 hardcode_minus_L_GCJ=yes
17203
17204 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17205 # that the semantics of dynamic libraries on AmigaOS, at least up
17206 # to version 4, is to share data among multiple programs linked
17207 # with the same dynamic library. Since this doesn't match the
17208 # behavior of shared libraries on other platforms, we can't use
17209 # them.
17210 ld_shlibs_GCJ=no
17211 ;;
17212
17213 beos*)
17214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17215 allow_undefined_flag_GCJ=unsupported
17216 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17217 # support --undefined. This deserves some investigation. FIXME
17218 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17219 else
17220 ld_shlibs_GCJ=no
17221 fi
17222 ;;
17223
17224 cygwin* | mingw* | pw32*)
17225 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17226 # as there is no search path for DLLs.
17227 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17228 allow_undefined_flag_GCJ=unsupported
17229 always_export_symbols_GCJ=no
17230 enable_shared_with_static_runtimes_GCJ=yes
17231 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17232
17233 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17234 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17235 # If the export-symbols file already is a .def file (1st line
17236 # is EXPORTS), use it as is; otherwise, prepend...
17237 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17238 cp $export_symbols $output_objdir/$soname.def;
17239 else
17240 echo EXPORTS > $output_objdir/$soname.def;
17241 cat $export_symbols >> $output_objdir/$soname.def;
17242 fi~
17243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17244 else
17245 ld_shlibs=no
17246 fi
17247 ;;
17248
17249 netbsd*)
17250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17251 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17252 wlarc=
17253 else
17254 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17255 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17256 fi
17257 ;;
17258
17259 solaris* | sysv5*)
17260 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17261 ld_shlibs_GCJ=no
17262 cat <<EOF 1>&2
17263
17264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17265 *** create shared libraries on Solaris systems. Therefore, libtool
17266 *** is disabling shared libraries support. We urge you to upgrade GNU
17267 *** binutils to release 2.9.1 or newer. Another option is to modify
17268 *** your PATH or compiler configuration so that the native linker is
17269 *** used, and then restart.
17270
17271 EOF
17272 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17273 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17274 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17275 else
17276 ld_shlibs_GCJ=no
17277 fi
17278 ;;
17279
17280 sunos4*)
17281 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17282 wlarc=
17283 hardcode_direct_GCJ=yes
17284 hardcode_shlibpath_var_GCJ=no
17285 ;;
17286
17287 linux*)
17288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17289 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17290 archive_cmds_GCJ="$tmp_archive_cmds"
17291 supports_anon_versioning=no
17292 case `$LD -v 2>/dev/null` in
17293 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17294 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17295 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17296 *\ 2.11.*) ;; # other 2.11 versions
17297 *) supports_anon_versioning=yes ;;
17298 esac
17299 if test $supports_anon_versioning = yes; then
17300 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17301 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17302 $echo "local: *; };" >> $output_objdir/$libname.ver~
17303 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17304 else
17305 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17306 fi
17307 else
17308 ld_shlibs_GCJ=no
17309 fi
17310 ;;
17311
17312 *)
17313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17314 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17316 else
17317 ld_shlibs_GCJ=no
17318 fi
17319 ;;
17320 esac
17321
17322 if test "$ld_shlibs_GCJ" = yes; then
17323 runpath_var=LD_RUN_PATH
17324 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17325 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17326 # ancient GNU ld didn't support --whole-archive et. al.
17327 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17328 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17329 else
17330 whole_archive_flag_spec_GCJ=
17331 fi
17332 fi
17333 else
17334 # PORTME fill in a description of your system's linker (not GNU ld)
17335 case $host_os in
17336 aix3*)
17337 allow_undefined_flag_GCJ=unsupported
17338 always_export_symbols_GCJ=yes
17339 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'
17340 # Note: this linker hardcodes the directories in LIBPATH if there
17341 # are no directories specified by -L.
17342 hardcode_minus_L_GCJ=yes
17343 if test "$GCC" = yes && test -z "$link_static_flag"; then
17344 # Neither direct hardcoding nor static linking is supported with a
17345 # broken collect2.
17346 hardcode_direct_GCJ=unsupported
17347 fi
17348 ;;
17349
17350 aix4* | aix5*)
17351 if test "$host_cpu" = ia64; then
17352 # On IA64, the linker does run time linking by default, so we don't
17353 # have to do anything special.
17354 aix_use_runtimelinking=no
17355 exp_sym_flag='-Bexport'
17356 no_entry_flag=""
17357 else
17358 # If we're using GNU nm, then we don't want the "-C" option.
17359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17360 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17361 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'
17362 else
17363 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'
17364 fi
17365 aix_use_runtimelinking=no
17366
17367 # Test if we are trying to use run time linking or normal
17368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17369 # need to do runtime linking.
17370 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17371 for ld_flag in $LDFLAGS; do
17372 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17373 aix_use_runtimelinking=yes
17374 break
17375 fi
17376 done
17377 esac
17378
17379 exp_sym_flag='-bexport'
17380 no_entry_flag='-bnoentry'
17381 fi
17382
17383 # When large executables or shared objects are built, AIX ld can
17384 # have problems creating the table of contents. If linking a library
17385 # or program results in "error TOC overflow" add -mminimal-toc to
17386 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17387 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17388
17389 archive_cmds_GCJ=''
17390 hardcode_direct_GCJ=yes
17391 hardcode_libdir_separator_GCJ=':'
17392 link_all_deplibs_GCJ=yes
17393
17394 if test "$GCC" = yes; then
17395 case $host_os in aix4.012|aix4.012.*)
17396 # We only want to do this on AIX 4.2 and lower, the check
17397 # below for broken collect2 doesn't work under 4.3+
17398 collect2name=`${CC} -print-prog-name=collect2`
17399 if test -f "$collect2name" && \
17400 strings "$collect2name" | grep resolve_lib_name >/dev/null
17401 then
17402 # We have reworked collect2
17403 hardcode_direct_GCJ=yes
17404 else
17405 # We have old collect2
17406 hardcode_direct_GCJ=unsupported
17407 # It fails to find uninstalled libraries when the uninstalled
17408 # path is not listed in the libpath. Setting hardcode_minus_L
17409 # to unsupported forces relinking
17410 hardcode_minus_L_GCJ=yes
17411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17412 hardcode_libdir_separator_GCJ=
17413 fi
17414 esac
17415 shared_flag='-shared'
17416 else
17417 # not using gcc
17418 if test "$host_cpu" = ia64; then
17419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17420 # chokes on -Wl,-G. The following line is correct:
17421 shared_flag='-G'
17422 else
17423 if test "$aix_use_runtimelinking" = yes; then
17424 shared_flag='${wl}-G'
17425 else
17426 shared_flag='${wl}-bM:SRE'
17427 fi
17428 fi
17429 fi
17430
17431 # It seems that -bexpall does not export symbols beginning with
17432 # underscore (_), so it is better to generate a list of symbols to export.
17433 always_export_symbols_GCJ=yes
17434 if test "$aix_use_runtimelinking" = yes; then
17435 # Warning - without using the other runtime loading flags (-brtl),
17436 # -berok will link without error, but may produce a broken library.
17437 allow_undefined_flag_GCJ='-berok'
17438 # Determine the default libpath from the value encoded in an empty executable.
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445
17446 int
17447 main ()
17448 {
17449
17450 ;
17451 return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext conftest$ac_exeext
17455 if { (ac_try="$ac_link"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_link") 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } && {
17468 test -z "$ac_c_werror_flag" ||
17469 test ! -s conftest.err
17470 } && test -s conftest$ac_exeext &&
17471 $as_test_x conftest$ac_exeext; then
17472
17473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17474 }'`
17475 # Check for a 64-bit object if we didn't find anything.
17476 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; }
17477 }'`; fi
17478 else
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17481
17482
17483 fi
17484
17485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17486 conftest$ac_exeext conftest.$ac_ext
17487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17488
17489 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17490 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17491 else
17492 if test "$host_cpu" = ia64; then
17493 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17494 allow_undefined_flag_GCJ="-z nodefs"
17495 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17496 else
17497 # Determine the default libpath from the value encoded in an empty executable.
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504
17505 int
17506 main ()
17507 {
17508
17509 ;
17510 return 0;
17511 }
17512 _ACEOF
17513 rm -f conftest.$ac_objext conftest$ac_exeext
17514 if { (ac_try="$ac_link"
17515 case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17518 esac
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_link") 2>conftest.er1
17521 ac_status=$?
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } && {
17527 test -z "$ac_c_werror_flag" ||
17528 test ! -s conftest.err
17529 } && test -s conftest$ac_exeext &&
17530 $as_test_x conftest$ac_exeext; then
17531
17532 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17533 }'`
17534 # Check for a 64-bit object if we didn't find anything.
17535 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; }
17536 }'`; fi
17537 else
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541
17542 fi
17543
17544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17545 conftest$ac_exeext conftest.$ac_ext
17546 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17547
17548 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17549 # Warning - without using the other run time loading flags,
17550 # -berok will link without error, but may produce a broken library.
17551 no_undefined_flag_GCJ=' ${wl}-bernotok'
17552 allow_undefined_flag_GCJ=' ${wl}-berok'
17553 # -bexpall does not export symbols beginning with underscore (_)
17554 always_export_symbols_GCJ=yes
17555 # Exported symbols can be pulled into shared objects from archives
17556 whole_archive_flag_spec_GCJ=' '
17557 archive_cmds_need_lc_GCJ=yes
17558 # This is similar to how AIX traditionally builds it's shared libraries.
17559 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17560 fi
17561 fi
17562 ;;
17563
17564 amigaos*)
17565 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)'
17566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567 hardcode_minus_L_GCJ=yes
17568 # see comment about different semantics on the GNU ld section
17569 ld_shlibs_GCJ=no
17570 ;;
17571
17572 bsdi[45]*)
17573 export_dynamic_flag_spec_GCJ=-rdynamic
17574 ;;
17575
17576 cygwin* | mingw* | pw32*)
17577 # When not using gcc, we currently assume that we are using
17578 # Microsoft Visual C++.
17579 # hardcode_libdir_flag_spec is actually meaningless, as there is
17580 # no search path for DLLs.
17581 hardcode_libdir_flag_spec_GCJ=' '
17582 allow_undefined_flag_GCJ=unsupported
17583 # Tell ltmain to make .lib files, not .a files.
17584 libext=lib
17585 # Tell ltmain to make .dll files, not .so files.
17586 shrext_cmds=".dll"
17587 # FIXME: Setting linknames here is a bad hack.
17588 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17589 # The linker will automatically build a .lib file if we build a DLL.
17590 old_archive_From_new_cmds_GCJ='true'
17591 # FIXME: Should let the user specify the lib program.
17592 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17593 fix_srcfile_path='`cygpath -w "$srcfile"`'
17594 enable_shared_with_static_runtimes_GCJ=yes
17595 ;;
17596
17597 darwin* | rhapsody*)
17598 case "$host_os" in
17599 rhapsody* | darwin1.[012])
17600 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17601 ;;
17602 *) # Darwin 1.3 on
17603 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17604 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17605 else
17606 case ${MACOSX_DEPLOYMENT_TARGET} in
17607 10.[012])
17608 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17609 ;;
17610 10.*)
17611 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17612 ;;
17613 esac
17614 fi
17615 ;;
17616 esac
17617 archive_cmds_need_lc_GCJ=no
17618 hardcode_direct_GCJ=no
17619 hardcode_automatic_GCJ=yes
17620 hardcode_shlibpath_var_GCJ=unsupported
17621 whole_archive_flag_spec_GCJ=''
17622 link_all_deplibs_GCJ=yes
17623 if test "$GCC" = yes ; then
17624 output_verbose_link_cmd='echo'
17625 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17626 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17627 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17628 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}'
17629 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}'
17630 else
17631 case "$cc_basename" in
17632 xlc*)
17633 output_verbose_link_cmd='echo'
17634 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17635 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17636 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17637 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}'
17638 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}'
17639 ;;
17640 *)
17641 ld_shlibs_GCJ=no
17642 ;;
17643 esac
17644 fi
17645 ;;
17646
17647 dgux*)
17648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17650 hardcode_shlibpath_var_GCJ=no
17651 ;;
17652
17653 freebsd1*)
17654 ld_shlibs_GCJ=no
17655 ;;
17656
17657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17658 # support. Future versions do this automatically, but an explicit c++rt0.o
17659 # does not break anything, and helps significantly (at the cost of a little
17660 # extra space).
17661 freebsd2.2*)
17662 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17663 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17664 hardcode_direct_GCJ=yes
17665 hardcode_shlibpath_var_GCJ=no
17666 ;;
17667
17668 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17669 freebsd2*)
17670 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17671 hardcode_direct_GCJ=yes
17672 hardcode_minus_L_GCJ=yes
17673 hardcode_shlibpath_var_GCJ=no
17674 ;;
17675
17676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17677 freebsd* | kfreebsd*-gnu)
17678 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17679 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17680 hardcode_direct_GCJ=yes
17681 hardcode_shlibpath_var_GCJ=no
17682 ;;
17683
17684 hpux9*)
17685 if test "$GCC" = yes; then
17686 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'
17687 else
17688 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'
17689 fi
17690 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17691 hardcode_libdir_separator_GCJ=:
17692 hardcode_direct_GCJ=yes
17693
17694 # hardcode_minus_L: Not really in the search PATH,
17695 # but as the default location of the library.
17696 hardcode_minus_L_GCJ=yes
17697 export_dynamic_flag_spec_GCJ='${wl}-E'
17698 ;;
17699
17700 hpux10* | hpux11*)
17701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17702 case "$host_cpu" in
17703 hppa*64*|ia64*)
17704 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17705 ;;
17706 *)
17707 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17708 ;;
17709 esac
17710 else
17711 case "$host_cpu" in
17712 hppa*64*|ia64*)
17713 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17714 ;;
17715 *)
17716 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17717 ;;
17718 esac
17719 fi
17720 if test "$with_gnu_ld" = no; then
17721 case "$host_cpu" in
17722 hppa*64*)
17723 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17724 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17725 hardcode_libdir_separator_GCJ=:
17726 hardcode_direct_GCJ=no
17727 hardcode_shlibpath_var_GCJ=no
17728 ;;
17729 ia64*)
17730 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17731 hardcode_direct_GCJ=no
17732 hardcode_shlibpath_var_GCJ=no
17733
17734 # hardcode_minus_L: Not really in the search PATH,
17735 # but as the default location of the library.
17736 hardcode_minus_L_GCJ=yes
17737 ;;
17738 *)
17739 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17740 hardcode_libdir_separator_GCJ=:
17741 hardcode_direct_GCJ=yes
17742 export_dynamic_flag_spec_GCJ='${wl}-E'
17743
17744 # hardcode_minus_L: Not really in the search PATH,
17745 # but as the default location of the library.
17746 hardcode_minus_L_GCJ=yes
17747 ;;
17748 esac
17749 fi
17750 ;;
17751
17752 irix5* | irix6* | nonstopux*)
17753 if test "$GCC" = yes; then
17754 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'
17755 else
17756 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'
17757 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17758 fi
17759 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17760 hardcode_libdir_separator_GCJ=:
17761 link_all_deplibs_GCJ=yes
17762 ;;
17763
17764 netbsd*)
17765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17766 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17767 else
17768 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17769 fi
17770 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17771 hardcode_direct_GCJ=yes
17772 hardcode_shlibpath_var_GCJ=no
17773 ;;
17774
17775 newsos6)
17776 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17777 hardcode_direct_GCJ=yes
17778 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17779 hardcode_libdir_separator_GCJ=:
17780 hardcode_shlibpath_var_GCJ=no
17781 ;;
17782
17783 openbsd*)
17784 hardcode_direct_GCJ=yes
17785 hardcode_shlibpath_var_GCJ=no
17786 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17787 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17788 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17789 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17790 export_dynamic_flag_spec_GCJ='${wl}-E'
17791 else
17792 case $host_os in
17793 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17794 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17795 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17796 ;;
17797 *)
17798 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17799 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17800 ;;
17801 esac
17802 fi
17803 ;;
17804
17805 os2*)
17806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17807 hardcode_minus_L_GCJ=yes
17808 allow_undefined_flag_GCJ=unsupported
17809 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'
17810 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17811 ;;
17812
17813 osf3*)
17814 if test "$GCC" = yes; then
17815 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17816 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'
17817 else
17818 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17819 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'
17820 fi
17821 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17822 hardcode_libdir_separator_GCJ=:
17823 ;;
17824
17825 osf4* | osf5*) # as osf3* with the addition of -msym flag
17826 if test "$GCC" = yes; then
17827 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17828 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'
17829 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17830 else
17831 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17832 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'
17833 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~
17834 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17835
17836 # Both c and cxx compiler support -rpath directly
17837 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17838 fi
17839 hardcode_libdir_separator_GCJ=:
17840 ;;
17841
17842 sco3.2v5*)
17843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17844 hardcode_shlibpath_var_GCJ=no
17845 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17846 runpath_var=LD_RUN_PATH
17847 hardcode_runpath_var=yes
17848 ;;
17849
17850 solaris*)
17851 no_undefined_flag_GCJ=' -z text'
17852 if test "$GCC" = yes; then
17853 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17854 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17855 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17856 else
17857 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17858 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17859 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17860 fi
17861 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17862 hardcode_shlibpath_var_GCJ=no
17863 case $host_os in
17864 solaris2.[0-5] | solaris2.[0-5].*) ;;
17865 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17866 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17867 esac
17868 link_all_deplibs_GCJ=yes
17869 ;;
17870
17871 sunos4*)
17872 if test "x$host_vendor" = xsequent; then
17873 # Use $CC to link under sequent, because it throws in some extra .o
17874 # files that make .init and .fini sections work.
17875 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17876 else
17877 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17878 fi
17879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17880 hardcode_direct_GCJ=yes
17881 hardcode_minus_L_GCJ=yes
17882 hardcode_shlibpath_var_GCJ=no
17883 ;;
17884
17885 sysv4)
17886 case $host_vendor in
17887 sni)
17888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17889 hardcode_direct_GCJ=yes # is this really true???
17890 ;;
17891 siemens)
17892 ## LD is ld it makes a PLAMLIB
17893 ## CC just makes a GrossModule.
17894 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17895 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17896 hardcode_direct_GCJ=no
17897 ;;
17898 motorola)
17899 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17901 ;;
17902 esac
17903 runpath_var='LD_RUN_PATH'
17904 hardcode_shlibpath_var_GCJ=no
17905 ;;
17906
17907 sysv4.3*)
17908 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909 hardcode_shlibpath_var_GCJ=no
17910 export_dynamic_flag_spec_GCJ='-Bexport'
17911 ;;
17912
17913 sysv4*MP*)
17914 if test -d /usr/nec; then
17915 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916 hardcode_shlibpath_var_GCJ=no
17917 runpath_var=LD_RUN_PATH
17918 hardcode_runpath_var=yes
17919 ld_shlibs_GCJ=yes
17920 fi
17921 ;;
17922
17923 sysv4.2uw2*)
17924 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17925 hardcode_direct_GCJ=yes
17926 hardcode_minus_L_GCJ=no
17927 hardcode_shlibpath_var_GCJ=no
17928 hardcode_runpath_var=yes
17929 runpath_var=LD_RUN_PATH
17930 ;;
17931
17932 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17933 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17934 if test "$GCC" = yes; then
17935 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17936 else
17937 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17938 fi
17939 runpath_var='LD_RUN_PATH'
17940 hardcode_shlibpath_var_GCJ=no
17941 ;;
17942
17943 sysv5*)
17944 no_undefined_flag_GCJ=' -z text'
17945 # $CC -shared without GNU ld will not create a library from C++
17946 # object files and a static libstdc++, better avoid it by now
17947 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17948 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17949 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17950 hardcode_libdir_flag_spec_GCJ=
17951 hardcode_shlibpath_var_GCJ=no
17952 runpath_var='LD_RUN_PATH'
17953 ;;
17954
17955 uts4*)
17956 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17957 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17958 hardcode_shlibpath_var_GCJ=no
17959 ;;
17960
17961 *)
17962 ld_shlibs_GCJ=no
17963 ;;
17964 esac
17965 fi
17966
17967 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17968 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17969 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17970
17971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17972 if test "$GCC" = yes; then
17973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17974 fi
17975
17976 #
17977 # Do we need to explicitly link libc?
17978 #
17979 case "x$archive_cmds_need_lc_GCJ" in
17980 x|xyes)
17981 # Assume -lc should be added
17982 archive_cmds_need_lc_GCJ=yes
17983
17984 if test "$enable_shared" = yes && test "$GCC" = yes; then
17985 case $archive_cmds_GCJ in
17986 *'~'*)
17987 # FIXME: we may have to deal with multi-command sequences.
17988 ;;
17989 '$CC '*)
17990 # Test whether the compiler implicitly links with -lc since on some
17991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17992 # to ld, don't add -lc before -lgcc.
17993 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17995 $rm conftest*
17996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17997
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999 (eval $ac_compile) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } 2>conftest.err; then
18003 soname=conftest
18004 lib=conftest
18005 libobjs=conftest.$ac_objext
18006 deplibs=
18007 wl=$lt_prog_compiler_wl_GCJ
18008 compiler_flags=-v
18009 linker_flags=-v
18010 verstring=
18011 output_objdir=.
18012 libname=conftest
18013 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18014 allow_undefined_flag_GCJ=
18015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18016 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }
18020 then
18021 archive_cmds_need_lc_GCJ=no
18022 else
18023 archive_cmds_need_lc_GCJ=yes
18024 fi
18025 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18026 else
18027 cat conftest.err 1>&5
18028 fi
18029 $rm conftest*
18030 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18031 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18032 ;;
18033 esac
18034 fi
18035 ;;
18036 esac
18037
18038 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18040 library_names_spec=
18041 libname_spec='lib$name'
18042 soname_spec=
18043 shrext_cmds=".so"
18044 postinstall_cmds=
18045 postuninstall_cmds=
18046 finish_cmds=
18047 finish_eval=
18048 shlibpath_var=
18049 shlibpath_overrides_runpath=unknown
18050 version_type=none
18051 dynamic_linker="$host_os ld.so"
18052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18053 if test "$GCC" = yes; then
18054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18056 # if the path contains ";" then we assume it to be the separator
18057 # otherwise default to the standard path separator (i.e. ":") - it is
18058 # assumed that no part of a normal pathname contains ";" but that should
18059 # okay in the real world where ";" in dirpaths is itself problematic.
18060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18061 else
18062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18063 fi
18064 else
18065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18066 fi
18067 need_lib_prefix=unknown
18068 hardcode_into_libs=no
18069
18070 # when you set need_version to no, make sure it does not cause -set_version
18071 # flags to be left without arguments
18072 need_version=unknown
18073
18074 case $host_os in
18075 aix3*)
18076 version_type=linux
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18078 shlibpath_var=LIBPATH
18079
18080 # AIX 3 has no versioning support, so we append a major version to the name.
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 ;;
18083
18084 aix4* | aix5*)
18085 version_type=linux
18086 need_lib_prefix=no
18087 need_version=no
18088 hardcode_into_libs=yes
18089 if test "$host_cpu" = ia64; then
18090 # AIX 5 supports IA64
18091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18092 shlibpath_var=LD_LIBRARY_PATH
18093 else
18094 # With GCC up to 2.95.x, collect2 would create an import file
18095 # for dependence libraries. The import file would start with
18096 # the line `#! .'. This would cause the generated library to
18097 # depend on `.', always an invalid library. This was fixed in
18098 # development snapshots of GCC prior to 3.0.
18099 case $host_os in
18100 aix4 | aix4.[01] | aix4.[01].*)
18101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18102 echo ' yes '
18103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18104 :
18105 else
18106 can_build_shared=no
18107 fi
18108 ;;
18109 esac
18110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18111 # soname into executable. Probably we can add versioning support to
18112 # collect2, so additional links can be useful in future.
18113 if test "$aix_use_runtimelinking" = yes; then
18114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18115 # instead of lib<name>.a to let people know that these are not
18116 # typical AIX shared libraries.
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118 else
18119 # We preserve .a as extension for shared libraries through AIX4.2
18120 # and later when we are not doing run time linking.
18121 library_names_spec='${libname}${release}.a $libname.a'
18122 soname_spec='${libname}${release}${shared_ext}$major'
18123 fi
18124 shlibpath_var=LIBPATH
18125 fi
18126 ;;
18127
18128 amigaos*)
18129 library_names_spec='$libname.ixlibrary $libname.a'
18130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18131 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'
18132 ;;
18133
18134 beos*)
18135 library_names_spec='${libname}${shared_ext}'
18136 dynamic_linker="$host_os ld.so"
18137 shlibpath_var=LIBRARY_PATH
18138 ;;
18139
18140 bsdi[45]*)
18141 version_type=linux
18142 need_version=no
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18149 # the default ld.so.conf also contains /usr/contrib/lib and
18150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18151 # libtool to hard-code these into programs
18152 ;;
18153
18154 cygwin* | mingw* | pw32*)
18155 version_type=windows
18156 shrext_cmds=".dll"
18157 need_version=no
18158 need_lib_prefix=no
18159
18160 case $GCC,$host_os in
18161 yes,cygwin* | yes,mingw* | yes,pw32*)
18162 library_names_spec='$libname.dll.a'
18163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18164 postinstall_cmds='base_file=`basename \${file}`~
18165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18166 dldir=$destdir/`dirname \$dlpath`~
18167 test -d \$dldir || mkdir -p \$dldir~
18168 $install_prog $dir/$dlname \$dldir/$dlname'
18169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18170 dlpath=$dir/\$dldll~
18171 $rm \$dlpath'
18172 shlibpath_overrides_runpath=yes
18173
18174 case $host_os in
18175 cygwin*)
18176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18179 ;;
18180 mingw*)
18181 # MinGW DLLs use traditional 'lib' prefix
18182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18185 # It is most probably a Windows format PATH printed by
18186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18187 # path with ; separators, and with drive letters. We can handle the
18188 # drive letters (cygwin fileutils understands them), so leave them,
18189 # especially as we might pass files found there to a mingw objdump,
18190 # which wouldn't understand a cygwinified path. Ahh.
18191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18192 else
18193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18194 fi
18195 ;;
18196 pw32*)
18197 # pw32 DLLs use 'pw' prefix rather than 'lib'
18198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18199 ;;
18200 esac
18201 ;;
18202
18203 linux*)
18204 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
18205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18206 supports_anon_versioning=no
18207 case `$LD -v 2>/dev/null` in
18208 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18211 *\ 2.11.*) ;; # other 2.11 versions
18212 *) supports_anon_versioning=yes ;;
18213 esac
18214 if test $supports_anon_versioning = yes; then
18215 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
18216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18217 $echo "local: *; };" >> $output_objdir/$libname.ver~
18218 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18219 else
18220 $archive_expsym_cmds="$archive_cmds"
18221 fi
18222 else
18223 ld_shlibs=no
18224 fi
18225 ;;
18226
18227 *)
18228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18229 ;;
18230 esac
18231 dynamic_linker='Win32 ld.exe'
18232 # FIXME: first we should search . and the directory the executable is in
18233 shlibpath_var=PATH
18234 ;;
18235
18236 darwin* | rhapsody*)
18237 dynamic_linker="$host_os dyld"
18238 version_type=darwin
18239 need_lib_prefix=no
18240 need_version=no
18241 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18242 soname_spec='${libname}${release}${major}$shared_ext'
18243 shlibpath_overrides_runpath=yes
18244 shlibpath_var=DYLD_LIBRARY_PATH
18245 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18246 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18247 if test "$GCC" = yes; then
18248 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"`
18249 else
18250 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18251 fi
18252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18253 ;;
18254
18255 dgux*)
18256 version_type=linux
18257 need_lib_prefix=no
18258 need_version=no
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18260 soname_spec='${libname}${release}${shared_ext}$major'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 ;;
18263
18264 freebsd1*)
18265 dynamic_linker=no
18266 ;;
18267
18268 kfreebsd*-gnu)
18269 version_type=linux
18270 need_lib_prefix=no
18271 need_version=no
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 shlibpath_var=LD_LIBRARY_PATH
18275 shlibpath_overrides_runpath=no
18276 hardcode_into_libs=yes
18277 dynamic_linker='GNU ld.so'
18278 ;;
18279
18280 freebsd*)
18281 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18282 version_type=freebsd-$objformat
18283 case $version_type in
18284 freebsd-elf*)
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18286 need_version=no
18287 need_lib_prefix=no
18288 ;;
18289 freebsd-*)
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18291 need_version=yes
18292 ;;
18293 esac
18294 shlibpath_var=LD_LIBRARY_PATH
18295 case $host_os in
18296 freebsd2*)
18297 shlibpath_overrides_runpath=yes
18298 ;;
18299 freebsd3.01* | freebsdelf3.01*)
18300 shlibpath_overrides_runpath=yes
18301 hardcode_into_libs=yes
18302 ;;
18303 *) # from 3.2 on
18304 shlibpath_overrides_runpath=no
18305 hardcode_into_libs=yes
18306 ;;
18307 esac
18308 ;;
18309
18310 gnu*)
18311 version_type=linux
18312 need_lib_prefix=no
18313 need_version=no
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 hardcode_into_libs=yes
18318 ;;
18319
18320 hpux9* | hpux10* | hpux11*)
18321 # Give a soname corresponding to the major version so that dld.sl refuses to
18322 # link against other versions.
18323 version_type=sunos
18324 need_lib_prefix=no
18325 need_version=no
18326 case "$host_cpu" in
18327 ia64*)
18328 shrext_cmds='.so'
18329 hardcode_into_libs=yes
18330 dynamic_linker="$host_os dld.so"
18331 shlibpath_var=LD_LIBRARY_PATH
18332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18334 soname_spec='${libname}${release}${shared_ext}$major'
18335 if test "X$HPUX_IA64_MODE" = X32; then
18336 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18337 else
18338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18339 fi
18340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18341 ;;
18342 hppa*64*)
18343 shrext_cmds='.sl'
18344 hardcode_into_libs=yes
18345 dynamic_linker="$host_os dld.sl"
18346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349 soname_spec='${libname}${release}${shared_ext}$major'
18350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18352 ;;
18353 *)
18354 shrext_cmds='.sl'
18355 dynamic_linker="$host_os dld.sl"
18356 shlibpath_var=SHLIB_PATH
18357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 ;;
18361 esac
18362 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18363 postinstall_cmds='chmod 555 $lib'
18364 ;;
18365
18366 irix5* | irix6* | nonstopux*)
18367 case $host_os in
18368 nonstopux*) version_type=nonstopux ;;
18369 *)
18370 if test "$lt_cv_prog_gnu_ld" = yes; then
18371 version_type=linux
18372 else
18373 version_type=irix
18374 fi ;;
18375 esac
18376 need_lib_prefix=no
18377 need_version=no
18378 soname_spec='${libname}${release}${shared_ext}$major'
18379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18380 case $host_os in
18381 irix5* | nonstopux*)
18382 libsuff= shlibsuff=
18383 ;;
18384 *)
18385 case $LD in # libtool.m4 will add one of these switches to LD
18386 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18387 libsuff= shlibsuff= libmagic=32-bit;;
18388 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18389 libsuff=32 shlibsuff=N32 libmagic=N32;;
18390 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18391 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18392 *) libsuff= shlibsuff= libmagic=never-match;;
18393 esac
18394 ;;
18395 esac
18396 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18397 shlibpath_overrides_runpath=no
18398 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18399 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18400 hardcode_into_libs=yes
18401 ;;
18402
18403 # No shared lib support for Linux oldld, aout, or coff.
18404 linux*oldld* | linux*aout* | linux*coff*)
18405 dynamic_linker=no
18406 ;;
18407
18408 # This must be Linux ELF.
18409 linux*)
18410 version_type=linux
18411 need_lib_prefix=no
18412 need_version=no
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414 soname_spec='${libname}${release}${shared_ext}$major'
18415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18416 shlibpath_var=LD_LIBRARY_PATH
18417 shlibpath_overrides_runpath=no
18418 # This implies no fast_install, which is unacceptable.
18419 # Some rework will be needed to allow for fast_install
18420 # before this can be enabled.
18421 hardcode_into_libs=yes
18422
18423 # Append ld.so.conf contents to the search path
18424 if test -f /etc/ld.so.conf; then
18425 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18426 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18427 fi
18428
18429 case $host_cpu:$lt_cv_cc_64bit_output in
18430 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
18431 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
18432 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
18433 ;;
18434 esac
18435
18436 # We used to test for /lib/ld.so.1 and disable shared libraries on
18437 # powerpc, because MkLinux only supported shared libraries with the
18438 # GNU dynamic linker. Since this was broken with cross compilers,
18439 # most powerpc-linux boxes support dynamic linking these days and
18440 # people can always --disable-shared, the test was removed, and we
18441 # assume the GNU/Linux dynamic linker is in use.
18442 dynamic_linker='GNU/Linux ld.so'
18443
18444 # Find out which ABI we are using (multilib Linux x86_64 hack).
18445 libsuff=
18446 case "$host_cpu" in
18447 x86_64*)
18448 echo '#line 18448 "configure"' > conftest.$ac_ext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450 (eval $ac_compile) 2>&5
18451 ac_status=$?
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; then
18454 case `/usr/bin/file conftest.$ac_objext` in
18455 *64-bit*)
18456 libsuff=64
18457 ;;
18458 esac
18459 fi
18460 rm -rf conftest*
18461 ;;
18462 *)
18463 ;;
18464 esac
18465 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18466 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18467 ;;
18468
18469 knetbsd*-gnu)
18470 version_type=linux
18471 need_lib_prefix=no
18472 need_version=no
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18474 soname_spec='${libname}${release}${shared_ext}$major'
18475 shlibpath_var=LD_LIBRARY_PATH
18476 shlibpath_overrides_runpath=no
18477 hardcode_into_libs=yes
18478 dynamic_linker='GNU ld.so'
18479 ;;
18480
18481 netbsd*)
18482 version_type=sunos
18483 need_lib_prefix=no
18484 need_version=no
18485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18488 dynamic_linker='NetBSD (a.out) ld.so'
18489 else
18490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18491 soname_spec='${libname}${release}${shared_ext}$major'
18492 dynamic_linker='NetBSD ld.elf_so'
18493 fi
18494 shlibpath_var=LD_LIBRARY_PATH
18495 shlibpath_overrides_runpath=yes
18496 hardcode_into_libs=yes
18497 ;;
18498
18499 newsos6)
18500 version_type=linux
18501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath=yes
18504 ;;
18505
18506 nto-qnx*)
18507 version_type=linux
18508 need_lib_prefix=no
18509 need_version=no
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511 soname_spec='${libname}${release}${shared_ext}$major'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath=yes
18514 ;;
18515
18516 openbsd*)
18517 version_type=sunos
18518 need_lib_prefix=no
18519 need_version=no
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18522 shlibpath_var=LD_LIBRARY_PATH
18523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18524 case $host_os in
18525 openbsd2.[89] | openbsd2.[89].*)
18526 shlibpath_overrides_runpath=no
18527 ;;
18528 *)
18529 shlibpath_overrides_runpath=yes
18530 ;;
18531 esac
18532 else
18533 shlibpath_overrides_runpath=yes
18534 fi
18535 ;;
18536
18537 os2*)
18538 libname_spec='$name'
18539 shrext_cmds=".dll"
18540 need_lib_prefix=no
18541 library_names_spec='$libname${shared_ext} $libname.a'
18542 dynamic_linker='OS/2 ld.exe'
18543 shlibpath_var=LIBPATH
18544 ;;
18545
18546 osf3* | osf4* | osf5*)
18547 version_type=osf
18548 need_lib_prefix=no
18549 need_version=no
18550 soname_spec='${libname}${release}${shared_ext}$major'
18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552 shlibpath_var=LD_LIBRARY_PATH
18553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18555 ;;
18556
18557 sco3.2v5*)
18558 version_type=osf
18559 soname_spec='${libname}${release}${shared_ext}$major'
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561 shlibpath_var=LD_LIBRARY_PATH
18562 ;;
18563
18564 solaris*)
18565 version_type=linux
18566 need_lib_prefix=no
18567 need_version=no
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 shlibpath_var=LD_LIBRARY_PATH
18571 shlibpath_overrides_runpath=yes
18572 hardcode_into_libs=yes
18573 # ldd complains unless libraries are executable
18574 postinstall_cmds='chmod +x $lib'
18575 ;;
18576
18577 sunos4*)
18578 version_type=sunos
18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18580 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18581 shlibpath_var=LD_LIBRARY_PATH
18582 shlibpath_overrides_runpath=yes
18583 if test "$with_gnu_ld" = yes; then
18584 need_lib_prefix=no
18585 fi
18586 need_version=yes
18587 ;;
18588
18589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18590 version_type=linux
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 case $host_vendor in
18595 sni)
18596 shlibpath_overrides_runpath=no
18597 need_lib_prefix=no
18598 export_dynamic_flag_spec='${wl}-Blargedynsym'
18599 runpath_var=LD_RUN_PATH
18600 ;;
18601 siemens)
18602 need_lib_prefix=no
18603 ;;
18604 motorola)
18605 need_lib_prefix=no
18606 need_version=no
18607 shlibpath_overrides_runpath=no
18608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18609 ;;
18610 esac
18611 ;;
18612
18613 sysv4*MP*)
18614 if test -d /usr/nec ;then
18615 version_type=linux
18616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18617 soname_spec='$libname${shared_ext}.$major'
18618 shlibpath_var=LD_LIBRARY_PATH
18619 fi
18620 ;;
18621
18622 uts4*)
18623 version_type=linux
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 shlibpath_var=LD_LIBRARY_PATH
18627 ;;
18628
18629 *)
18630 dynamic_linker=no
18631 ;;
18632 esac
18633 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18634 echo "${ECHO_T}$dynamic_linker" >&6; }
18635 test "$dynamic_linker" = no && can_build_shared=no
18636
18637 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18638 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18639 hardcode_action_GCJ=
18640 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18641 test -n "$runpath_var_GCJ" || \
18642 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18643
18644 # We can hardcode non-existant directories.
18645 if test "$hardcode_direct_GCJ" != no &&
18646 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18647 # have to relink, otherwise we might link with an installed library
18648 # when we should be linking with a yet-to-be-installed one
18649 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18650 test "$hardcode_minus_L_GCJ" != no; then
18651 # Linking always hardcodes the temporary library directory.
18652 hardcode_action_GCJ=relink
18653 else
18654 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18655 hardcode_action_GCJ=immediate
18656 fi
18657 else
18658 # We cannot hardcode anything, or else we can only hardcode existing
18659 # directories.
18660 hardcode_action_GCJ=unsupported
18661 fi
18662 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18663 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18664
18665 if test "$hardcode_action_GCJ" = relink; then
18666 # Fast installation is not supported
18667 enable_fast_install=no
18668 elif test "$shlibpath_overrides_runpath" = yes ||
18669 test "$enable_shared" = no; then
18670 # Fast installation is not necessary
18671 enable_fast_install=needless
18672 fi
18673
18674 striplib=
18675 old_striplib=
18676 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18677 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18678 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18679 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18680 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18681 { echo "$as_me:$LINENO: result: yes" >&5
18682 echo "${ECHO_T}yes" >&6; }
18683 else
18684 # FIXME - insert some real tests, host_os isn't really good enough
18685 case $host_os in
18686 darwin*)
18687 if test -n "$STRIP" ; then
18688 striplib="$STRIP -x"
18689 { echo "$as_me:$LINENO: result: yes" >&5
18690 echo "${ECHO_T}yes" >&6; }
18691 else
18692 { echo "$as_me:$LINENO: result: no" >&5
18693 echo "${ECHO_T}no" >&6; }
18694 fi
18695 ;;
18696 *)
18697 { echo "$as_me:$LINENO: result: no" >&5
18698 echo "${ECHO_T}no" >&6; }
18699 ;;
18700 esac
18701 fi
18702
18703 if test "x$enable_dlopen" != xyes; then
18704 enable_dlopen=unknown
18705 enable_dlopen_self=unknown
18706 enable_dlopen_self_static=unknown
18707 else
18708 lt_cv_dlopen=no
18709 lt_cv_dlopen_libs=
18710
18711 case $host_os in
18712 beos*)
18713 lt_cv_dlopen="load_add_on"
18714 lt_cv_dlopen_libs=
18715 lt_cv_dlopen_self=yes
18716 ;;
18717
18718 mingw* | pw32*)
18719 lt_cv_dlopen="LoadLibrary"
18720 lt_cv_dlopen_libs=
18721 ;;
18722
18723 cygwin*)
18724 lt_cv_dlopen="dlopen"
18725 lt_cv_dlopen_libs=
18726 ;;
18727
18728 darwin*)
18729 # if libdl is installed we need to link against it
18730 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18731 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18732 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735 ac_check_lib_save_LIBS=$LIBS
18736 LIBS="-ldl $LIBS"
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 char dlopen ();
18751 int
18752 main ()
18753 {
18754 return dlopen ();
18755 ;
18756 return 0;
18757 }
18758 _ACEOF
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext &&
18776 $as_test_x conftest$ac_exeext; then
18777 ac_cv_lib_dl_dlopen=yes
18778 else
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 ac_cv_lib_dl_dlopen=no
18783 fi
18784
18785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18786 conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18788 fi
18789 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18791 if test $ac_cv_lib_dl_dlopen = yes; then
18792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18793 else
18794
18795 lt_cv_dlopen="dyld"
18796 lt_cv_dlopen_libs=
18797 lt_cv_dlopen_self=yes
18798
18799 fi
18800
18801 ;;
18802
18803 *)
18804 { echo "$as_me:$LINENO: checking for shl_load" >&5
18805 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18806 if test "${ac_cv_func_shl_load+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18817 #define shl_load innocuous_shl_load
18818
18819 /* System header to define __stub macros and hopefully few prototypes,
18820 which can conflict with char shl_load (); below.
18821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18822 <limits.h> exists even on freestanding compilers. */
18823
18824 #ifdef __STDC__
18825 # include <limits.h>
18826 #else
18827 # include <assert.h>
18828 #endif
18829
18830 #undef shl_load
18831
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18835 #ifdef __cplusplus
18836 extern "C"
18837 #endif
18838 char shl_load ();
18839 /* The GNU C library defines this for functions which it implements
18840 to always fail with ENOSYS. Some functions are actually named
18841 something starting with __ and the normal name is an alias. */
18842 #if defined __stub_shl_load || defined __stub___shl_load
18843 choke me
18844 #endif
18845
18846 int
18847 main ()
18848 {
18849 return shl_load ();
18850 ;
18851 return 0;
18852 }
18853 _ACEOF
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (ac_try="$ac_link"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_link") 2>conftest.er1
18862 ac_status=$?
18863 grep -v '^ *+' conftest.er1 >conftest.err
18864 rm -f conftest.er1
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } && {
18868 test -z "$ac_c_werror_flag" ||
18869 test ! -s conftest.err
18870 } && test -s conftest$ac_exeext &&
18871 $as_test_x conftest$ac_exeext; then
18872 ac_cv_func_shl_load=yes
18873 else
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877 ac_cv_func_shl_load=no
18878 fi
18879
18880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18881 conftest$ac_exeext conftest.$ac_ext
18882 fi
18883 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18884 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18885 if test $ac_cv_func_shl_load = yes; then
18886 lt_cv_dlopen="shl_load"
18887 else
18888 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18889 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18890 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893 ac_check_lib_save_LIBS=$LIBS
18894 LIBS="-ldld $LIBS"
18895 cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h. */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901
18902 /* Override any GCC internal prototype to avoid an error.
18903 Use char because int might match the return type of a GCC
18904 builtin and then its argument prototype would still apply. */
18905 #ifdef __cplusplus
18906 extern "C"
18907 #endif
18908 char shl_load ();
18909 int
18910 main ()
18911 {
18912 return shl_load ();
18913 ;
18914 return 0;
18915 }
18916 _ACEOF
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (ac_try="$ac_link"
18919 case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18922 esac
18923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_link") 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } && {
18931 test -z "$ac_c_werror_flag" ||
18932 test ! -s conftest.err
18933 } && test -s conftest$ac_exeext &&
18934 $as_test_x conftest$ac_exeext; then
18935 ac_cv_lib_dld_shl_load=yes
18936 else
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18939
18940 ac_cv_lib_dld_shl_load=no
18941 fi
18942
18943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18944 conftest$ac_exeext conftest.$ac_ext
18945 LIBS=$ac_check_lib_save_LIBS
18946 fi
18947 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18948 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18949 if test $ac_cv_lib_dld_shl_load = yes; then
18950 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18951 else
18952 { echo "$as_me:$LINENO: checking for dlopen" >&5
18953 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18954 if test "${ac_cv_func_dlopen+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18965 #define dlopen innocuous_dlopen
18966
18967 /* System header to define __stub macros and hopefully few prototypes,
18968 which can conflict with char dlopen (); below.
18969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18970 <limits.h> exists even on freestanding compilers. */
18971
18972 #ifdef __STDC__
18973 # include <limits.h>
18974 #else
18975 # include <assert.h>
18976 #endif
18977
18978 #undef dlopen
18979
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18983 #ifdef __cplusplus
18984 extern "C"
18985 #endif
18986 char dlopen ();
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined __stub_dlopen || defined __stub___dlopen
18991 choke me
18992 #endif
18993
18994 int
18995 main ()
18996 {
18997 return dlopen ();
18998 ;
18999 return 0;
19000 }
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && {
19016 test -z "$ac_c_werror_flag" ||
19017 test ! -s conftest.err
19018 } && test -s conftest$ac_exeext &&
19019 $as_test_x conftest$ac_exeext; then
19020 ac_cv_func_dlopen=yes
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025 ac_cv_func_dlopen=no
19026 fi
19027
19028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19029 conftest$ac_exeext conftest.$ac_ext
19030 fi
19031 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19033 if test $ac_cv_func_dlopen = yes; then
19034 lt_cv_dlopen="dlopen"
19035 else
19036 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 ac_check_lib_save_LIBS=$LIBS
19042 LIBS="-ldl $LIBS"
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19049
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 char dlopen ();
19057 int
19058 main ()
19059 {
19060 return dlopen ();
19061 ;
19062 return 0;
19063 }
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest$ac_exeext &&
19082 $as_test_x conftest$ac_exeext; then
19083 ac_cv_lib_dl_dlopen=yes
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 ac_cv_lib_dl_dlopen=no
19089 fi
19090
19091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19092 conftest$ac_exeext conftest.$ac_ext
19093 LIBS=$ac_check_lib_save_LIBS
19094 fi
19095 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19096 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19097 if test $ac_cv_lib_dl_dlopen = yes; then
19098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19099 else
19100 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19101 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19102 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105 ac_check_lib_save_LIBS=$LIBS
19106 LIBS="-lsvld $LIBS"
19107 cat >conftest.$ac_ext <<_ACEOF
19108 /* confdefs.h. */
19109 _ACEOF
19110 cat confdefs.h >>conftest.$ac_ext
19111 cat >>conftest.$ac_ext <<_ACEOF
19112 /* end confdefs.h. */
19113
19114 /* Override any GCC internal prototype to avoid an error.
19115 Use char because int might match the return type of a GCC
19116 builtin and then its argument prototype would still apply. */
19117 #ifdef __cplusplus
19118 extern "C"
19119 #endif
19120 char dlopen ();
19121 int
19122 main ()
19123 {
19124 return dlopen ();
19125 ;
19126 return 0;
19127 }
19128 _ACEOF
19129 rm -f conftest.$ac_objext conftest$ac_exeext
19130 if { (ac_try="$ac_link"
19131 case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_link") 2>conftest.er1
19137 ac_status=$?
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } && {
19143 test -z "$ac_c_werror_flag" ||
19144 test ! -s conftest.err
19145 } && test -s conftest$ac_exeext &&
19146 $as_test_x conftest$ac_exeext; then
19147 ac_cv_lib_svld_dlopen=yes
19148 else
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152 ac_cv_lib_svld_dlopen=no
19153 fi
19154
19155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19156 conftest$ac_exeext conftest.$ac_ext
19157 LIBS=$ac_check_lib_save_LIBS
19158 fi
19159 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19160 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19161 if test $ac_cv_lib_svld_dlopen = yes; then
19162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19163 else
19164 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19165 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169 ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-ldld $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h. */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char dld_link ();
19185 int
19186 main ()
19187 {
19188 return dld_link ();
19189 ;
19190 return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && {
19207 test -z "$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 } && test -s conftest$ac_exeext &&
19210 $as_test_x conftest$ac_exeext; then
19211 ac_cv_lib_dld_dld_link=yes
19212 else
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 ac_cv_lib_dld_dld_link=no
19217 fi
19218
19219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19220 conftest$ac_exeext conftest.$ac_ext
19221 LIBS=$ac_check_lib_save_LIBS
19222 fi
19223 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19224 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19225 if test $ac_cv_lib_dld_dld_link = yes; then
19226 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19227 fi
19228
19229
19230 fi
19231
19232
19233 fi
19234
19235
19236 fi
19237
19238
19239 fi
19240
19241
19242 fi
19243
19244 ;;
19245 esac
19246
19247 if test "x$lt_cv_dlopen" != xno; then
19248 enable_dlopen=yes
19249 else
19250 enable_dlopen=no
19251 fi
19252
19253 case $lt_cv_dlopen in
19254 dlopen)
19255 save_CPPFLAGS="$CPPFLAGS"
19256 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19257
19258 save_LDFLAGS="$LDFLAGS"
19259 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19260
19261 save_LIBS="$LIBS"
19262 LIBS="$lt_cv_dlopen_libs $LIBS"
19263
19264 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19265 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19266 if test "${lt_cv_dlopen_self+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269 if test "$cross_compiling" = yes; then :
19270 lt_cv_dlopen_self=cross
19271 else
19272 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19273 lt_status=$lt_dlunknown
19274 cat > conftest.$ac_ext <<EOF
19275 #line 19275 "configure"
19276 #include "confdefs.h"
19277
19278 #if HAVE_DLFCN_H
19279 #include <dlfcn.h>
19280 #endif
19281
19282 #include <stdio.h>
19283
19284 #ifdef RTLD_GLOBAL
19285 # define LT_DLGLOBAL RTLD_GLOBAL
19286 #else
19287 # ifdef DL_GLOBAL
19288 # define LT_DLGLOBAL DL_GLOBAL
19289 # else
19290 # define LT_DLGLOBAL 0
19291 # endif
19292 #endif
19293
19294 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19295 find out it does not work in some platform. */
19296 #ifndef LT_DLLAZY_OR_NOW
19297 # ifdef RTLD_LAZY
19298 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19299 # else
19300 # ifdef DL_LAZY
19301 # define LT_DLLAZY_OR_NOW DL_LAZY
19302 # else
19303 # ifdef RTLD_NOW
19304 # define LT_DLLAZY_OR_NOW RTLD_NOW
19305 # else
19306 # ifdef DL_NOW
19307 # define LT_DLLAZY_OR_NOW DL_NOW
19308 # else
19309 # define LT_DLLAZY_OR_NOW 0
19310 # endif
19311 # endif
19312 # endif
19313 # endif
19314 #endif
19315
19316 #ifdef __cplusplus
19317 extern "C" void exit (int);
19318 #endif
19319
19320 void fnord() { int i=42;}
19321 int main ()
19322 {
19323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19324 int status = $lt_dlunknown;
19325
19326 if (self)
19327 {
19328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19329 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19330 /* dlclose (self); */
19331 }
19332
19333 exit (status);
19334 }
19335 EOF
19336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19337 (eval $ac_link) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19341 (./conftest; exit; ) 2>/dev/null
19342 lt_status=$?
19343 case x$lt_status in
19344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19346 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19347 esac
19348 else :
19349 # compilation failed
19350 lt_cv_dlopen_self=no
19351 fi
19352 fi
19353 rm -fr conftest*
19354
19355
19356 fi
19357 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19358 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19359
19360 if test "x$lt_cv_dlopen_self" = xyes; then
19361 LDFLAGS="$LDFLAGS $link_static_flag"
19362 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19363 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19364 if test "${lt_cv_dlopen_self_static+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367 if test "$cross_compiling" = yes; then :
19368 lt_cv_dlopen_self_static=cross
19369 else
19370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19371 lt_status=$lt_dlunknown
19372 cat > conftest.$ac_ext <<EOF
19373 #line 19373 "configure"
19374 #include "confdefs.h"
19375
19376 #if HAVE_DLFCN_H
19377 #include <dlfcn.h>
19378 #endif
19379
19380 #include <stdio.h>
19381
19382 #ifdef RTLD_GLOBAL
19383 # define LT_DLGLOBAL RTLD_GLOBAL
19384 #else
19385 # ifdef DL_GLOBAL
19386 # define LT_DLGLOBAL DL_GLOBAL
19387 # else
19388 # define LT_DLGLOBAL 0
19389 # endif
19390 #endif
19391
19392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19393 find out it does not work in some platform. */
19394 #ifndef LT_DLLAZY_OR_NOW
19395 # ifdef RTLD_LAZY
19396 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19397 # else
19398 # ifdef DL_LAZY
19399 # define LT_DLLAZY_OR_NOW DL_LAZY
19400 # else
19401 # ifdef RTLD_NOW
19402 # define LT_DLLAZY_OR_NOW RTLD_NOW
19403 # else
19404 # ifdef DL_NOW
19405 # define LT_DLLAZY_OR_NOW DL_NOW
19406 # else
19407 # define LT_DLLAZY_OR_NOW 0
19408 # endif
19409 # endif
19410 # endif
19411 # endif
19412 #endif
19413
19414 #ifdef __cplusplus
19415 extern "C" void exit (int);
19416 #endif
19417
19418 void fnord() { int i=42;}
19419 int main ()
19420 {
19421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19422 int status = $lt_dlunknown;
19423
19424 if (self)
19425 {
19426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19428 /* dlclose (self); */
19429 }
19430
19431 exit (status);
19432 }
19433 EOF
19434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19439 (./conftest; exit; ) 2>/dev/null
19440 lt_status=$?
19441 case x$lt_status in
19442 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19443 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19444 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19445 esac
19446 else :
19447 # compilation failed
19448 lt_cv_dlopen_self_static=no
19449 fi
19450 fi
19451 rm -fr conftest*
19452
19453
19454 fi
19455 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19456 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19457 fi
19458
19459 CPPFLAGS="$save_CPPFLAGS"
19460 LDFLAGS="$save_LDFLAGS"
19461 LIBS="$save_LIBS"
19462 ;;
19463 esac
19464
19465 case $lt_cv_dlopen_self in
19466 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19467 *) enable_dlopen_self=unknown ;;
19468 esac
19469
19470 case $lt_cv_dlopen_self_static in
19471 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19472 *) enable_dlopen_self_static=unknown ;;
19473 esac
19474 fi
19475
19476
19477 # The else clause should only fire when bootstrapping the
19478 # libtool distribution, otherwise you forgot to ship ltmain.sh
19479 # with your package, and you will get complaints that there are
19480 # no rules to generate ltmain.sh.
19481 if test -f "$ltmain"; then
19482 # See if we are running on zsh, and set the options which allow our commands through
19483 # without removal of \ escapes.
19484 if test -n "${ZSH_VERSION+set}" ; then
19485 setopt NO_GLOB_SUBST
19486 fi
19487 # Now quote all the things that may contain metacharacters while being
19488 # careful not to overquote the AC_SUBSTed values. We take copies of the
19489 # variables and quote the copies for generation of the libtool script.
19490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19491 SED SHELL STRIP \
19492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19494 deplibs_check_method reload_flag reload_cmds need_locks \
19495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19496 lt_cv_sys_global_symbol_to_c_name_address \
19497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19498 old_postinstall_cmds old_postuninstall_cmds \
19499 compiler_GCJ \
19500 CC_GCJ \
19501 LD_GCJ \
19502 lt_prog_compiler_wl_GCJ \
19503 lt_prog_compiler_pic_GCJ \
19504 lt_prog_compiler_static_GCJ \
19505 lt_prog_compiler_no_builtin_flag_GCJ \
19506 export_dynamic_flag_spec_GCJ \
19507 thread_safe_flag_spec_GCJ \
19508 whole_archive_flag_spec_GCJ \
19509 enable_shared_with_static_runtimes_GCJ \
19510 old_archive_cmds_GCJ \
19511 old_archive_from_new_cmds_GCJ \
19512 predep_objects_GCJ \
19513 postdep_objects_GCJ \
19514 predeps_GCJ \
19515 postdeps_GCJ \
19516 compiler_lib_search_path_GCJ \
19517 archive_cmds_GCJ \
19518 archive_expsym_cmds_GCJ \
19519 postinstall_cmds_GCJ \
19520 postuninstall_cmds_GCJ \
19521 old_archive_from_expsyms_cmds_GCJ \
19522 allow_undefined_flag_GCJ \
19523 no_undefined_flag_GCJ \
19524 export_symbols_cmds_GCJ \
19525 hardcode_libdir_flag_spec_GCJ \
19526 hardcode_libdir_flag_spec_ld_GCJ \
19527 hardcode_libdir_separator_GCJ \
19528 hardcode_automatic_GCJ \
19529 module_cmds_GCJ \
19530 module_expsym_cmds_GCJ \
19531 lt_cv_prog_compiler_c_o_GCJ \
19532 exclude_expsyms_GCJ \
19533 include_expsyms_GCJ; do
19534
19535 case $var in
19536 old_archive_cmds_GCJ | \
19537 old_archive_from_new_cmds_GCJ | \
19538 archive_cmds_GCJ | \
19539 archive_expsym_cmds_GCJ | \
19540 module_cmds_GCJ | \
19541 module_expsym_cmds_GCJ | \
19542 old_archive_from_expsyms_cmds_GCJ | \
19543 export_symbols_cmds_GCJ | \
19544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19545 postinstall_cmds | postuninstall_cmds | \
19546 old_postinstall_cmds | old_postuninstall_cmds | \
19547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19548 # Double-quote double-evaled strings.
19549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19550 ;;
19551 *)
19552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19553 ;;
19554 esac
19555 done
19556
19557 case $lt_echo in
19558 *'\$0 --fallback-echo"')
19559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19560 ;;
19561 esac
19562
19563 cfgfile="$ofile"
19564
19565 cat <<__EOF__ >> "$cfgfile"
19566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19567
19568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19569
19570 # Shell to use when invoking shell scripts.
19571 SHELL=$lt_SHELL
19572
19573 # Whether or not to build shared libraries.
19574 build_libtool_libs=$enable_shared
19575
19576 # Whether or not to build static libraries.
19577 build_old_libs=$enable_static
19578
19579 # Whether or not to add -lc for building shared libraries.
19580 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19581
19582 # Whether or not to disallow shared libs when runtime libs are static
19583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19584
19585 # Whether or not to optimize for fast installation.
19586 fast_install=$enable_fast_install
19587
19588 # The host system.
19589 host_alias=$host_alias
19590 host=$host
19591
19592 # An echo program that does not interpret backslashes.
19593 echo=$lt_echo
19594
19595 # The archiver.
19596 AR=$lt_AR
19597 AR_FLAGS=$lt_AR_FLAGS
19598
19599 # A C compiler.
19600 LTCC=$lt_LTCC
19601
19602 # A language-specific compiler.
19603 CC=$lt_compiler_GCJ
19604
19605 # Is the compiler the GNU C compiler?
19606 with_gcc=$GCC_GCJ
19607
19608 # An ERE matcher.
19609 EGREP=$lt_EGREP
19610
19611 # The linker used to build libraries.
19612 LD=$lt_LD_GCJ
19613
19614 # Whether we need hard or soft links.
19615 LN_S=$lt_LN_S
19616
19617 # A BSD-compatible nm program.
19618 NM=$lt_NM
19619
19620 # A symbol stripping program
19621 STRIP=$lt_STRIP
19622
19623 # Used to examine libraries when file_magic_cmd begins "file"
19624 MAGIC_CMD=$MAGIC_CMD
19625
19626 # Used on cygwin: DLL creation program.
19627 DLLTOOL="$DLLTOOL"
19628
19629 # Used on cygwin: object dumper.
19630 OBJDUMP="$OBJDUMP"
19631
19632 # Used on cygwin: assembler.
19633 AS="$AS"
19634
19635 # The name of the directory that contains temporary libtool files.
19636 objdir=$objdir
19637
19638 # How to create reloadable object files.
19639 reload_flag=$lt_reload_flag
19640 reload_cmds=$lt_reload_cmds
19641
19642 # How to pass a linker flag through the compiler.
19643 wl=$lt_lt_prog_compiler_wl_GCJ
19644
19645 # Object file suffix (normally "o").
19646 objext="$ac_objext"
19647
19648 # Old archive suffix (normally "a").
19649 libext="$libext"
19650
19651 # Shared library suffix (normally ".so").
19652 shrext_cmds='$shrext_cmds'
19653
19654 # Executable file suffix (normally "").
19655 exeext="$exeext"
19656
19657 # Additional compiler flags for building library objects.
19658 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19659 pic_mode=$pic_mode
19660
19661 # What is the maximum length of a command?
19662 max_cmd_len=$lt_cv_sys_max_cmd_len
19663
19664 # Does compiler simultaneously support -c and -o options?
19665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19666
19667 # Must we lock files when doing compilation ?
19668 need_locks=$lt_need_locks
19669
19670 # Do we need the lib prefix for modules?
19671 need_lib_prefix=$need_lib_prefix
19672
19673 # Do we need a version for libraries?
19674 need_version=$need_version
19675
19676 # Whether dlopen is supported.
19677 dlopen_support=$enable_dlopen
19678
19679 # Whether dlopen of programs is supported.
19680 dlopen_self=$enable_dlopen_self
19681
19682 # Whether dlopen of statically linked programs is supported.
19683 dlopen_self_static=$enable_dlopen_self_static
19684
19685 # Compiler flag to prevent dynamic linking.
19686 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19687
19688 # Compiler flag to turn off builtin functions.
19689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19690
19691 # Compiler flag to allow reflexive dlopens.
19692 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19693
19694 # Compiler flag to generate shared objects directly from archives.
19695 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19696
19697 # Compiler flag to generate thread-safe objects.
19698 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19699
19700 # Library versioning type.
19701 version_type=$version_type
19702
19703 # Format of library name prefix.
19704 libname_spec=$lt_libname_spec
19705
19706 # List of archive names. First name is the real one, the rest are links.
19707 # The last name is the one that the linker finds with -lNAME.
19708 library_names_spec=$lt_library_names_spec
19709
19710 # The coded name of the library, if different from the real name.
19711 soname_spec=$lt_soname_spec
19712
19713 # Commands used to build and install an old-style archive.
19714 RANLIB=$lt_RANLIB
19715 old_archive_cmds=$lt_old_archive_cmds_GCJ
19716 old_postinstall_cmds=$lt_old_postinstall_cmds
19717 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19718
19719 # Create an old-style archive from a shared archive.
19720 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19721
19722 # Create a temporary old-style archive to link instead of a shared archive.
19723 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19724
19725 # Commands used to build and install a shared archive.
19726 archive_cmds=$lt_archive_cmds_GCJ
19727 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19728 postinstall_cmds=$lt_postinstall_cmds
19729 postuninstall_cmds=$lt_postuninstall_cmds
19730
19731 # Commands used to build a loadable module (assumed same as above if empty)
19732 module_cmds=$lt_module_cmds_GCJ
19733 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19734
19735 # Commands to strip libraries.
19736 old_striplib=$lt_old_striplib
19737 striplib=$lt_striplib
19738
19739 # Dependencies to place before the objects being linked to create a
19740 # shared library.
19741 predep_objects=$lt_predep_objects_GCJ
19742
19743 # Dependencies to place after the objects being linked to create a
19744 # shared library.
19745 postdep_objects=$lt_postdep_objects_GCJ
19746
19747 # Dependencies to place before the objects being linked to create a
19748 # shared library.
19749 predeps=$lt_predeps_GCJ
19750
19751 # Dependencies to place after the objects being linked to create a
19752 # shared library.
19753 postdeps=$lt_postdeps_GCJ
19754
19755 # The library search path used internally by the compiler when linking
19756 # a shared library.
19757 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19758
19759 # Method to check whether dependent libraries are shared objects.
19760 deplibs_check_method=$lt_deplibs_check_method
19761
19762 # Command to use when deplibs_check_method == file_magic.
19763 file_magic_cmd=$lt_file_magic_cmd
19764
19765 # Flag that allows shared libraries with undefined symbols to be built.
19766 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19767
19768 # Flag that forces no undefined symbols.
19769 no_undefined_flag=$lt_no_undefined_flag_GCJ
19770
19771 # Commands used to finish a libtool library installation in a directory.
19772 finish_cmds=$lt_finish_cmds
19773
19774 # Same as above, but a single script fragment to be evaled but not shown.
19775 finish_eval=$lt_finish_eval
19776
19777 # Take the output of nm and produce a listing of raw symbols and C names.
19778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19779
19780 # Transform the output of nm in a proper C declaration
19781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19782
19783 # Transform the output of nm in a C name address pair
19784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19785
19786 # This is the shared library runtime path variable.
19787 runpath_var=$runpath_var
19788
19789 # This is the shared library path variable.
19790 shlibpath_var=$shlibpath_var
19791
19792 # Is shlibpath searched before the hard-coded library search path?
19793 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19794
19795 # How to hardcode a shared library path into an executable.
19796 hardcode_action=$hardcode_action_GCJ
19797
19798 # Whether we should hardcode library paths into libraries.
19799 hardcode_into_libs=$hardcode_into_libs
19800
19801 # Flag to hardcode \$libdir into a binary during linking.
19802 # This must work even if \$libdir does not exist.
19803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19804
19805 # If ld is used when linking, flag to hardcode \$libdir into
19806 # a binary during linking. This must work even if \$libdir does
19807 # not exist.
19808 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19809
19810 # Whether we need a single -rpath flag with a separated argument.
19811 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19812
19813 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19814 # resulting binary.
19815 hardcode_direct=$hardcode_direct_GCJ
19816
19817 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19818 # resulting binary.
19819 hardcode_minus_L=$hardcode_minus_L_GCJ
19820
19821 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19822 # the resulting binary.
19823 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19824
19825 # Set to yes if building a shared library automatically hardcodes DIR into the library
19826 # and all subsequent libraries and executables linked against it.
19827 hardcode_automatic=$hardcode_automatic_GCJ
19828
19829 # Variables whose values should be saved in libtool wrapper scripts and
19830 # restored at relink time.
19831 variables_saved_for_relink="$variables_saved_for_relink"
19832
19833 # Whether libtool must link a program against all its dependency libraries.
19834 link_all_deplibs=$link_all_deplibs_GCJ
19835
19836 # Compile-time system search path for libraries
19837 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19838
19839 # Run-time system search path for libraries
19840 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19841
19842 # Fix the shell variable \$srcfile for the compiler.
19843 fix_srcfile_path="$fix_srcfile_path_GCJ"
19844
19845 # Set to yes if exported symbols are required.
19846 always_export_symbols=$always_export_symbols_GCJ
19847
19848 # The commands to list exported symbols.
19849 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19850
19851 # The commands to extract the exported symbol list from a shared archive.
19852 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19853
19854 # Symbols that should not be listed in the preloaded symbols.
19855 exclude_expsyms=$lt_exclude_expsyms_GCJ
19856
19857 # Symbols that must always be exported.
19858 include_expsyms=$lt_include_expsyms_GCJ
19859
19860 # ### END LIBTOOL TAG CONFIG: $tagname
19861
19862 __EOF__
19863
19864
19865 else
19866 # If there is no Makefile yet, we rely on a make rule to execute
19867 # `config.status --recheck' to rerun these tests and create the
19868 # libtool script then.
19869 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19870 if test -f "$ltmain_in"; then
19871 test -f Makefile && make "$ltmain"
19872 fi
19873 fi
19874
19875
19876 ac_ext=c
19877 ac_cpp='$CPP $CPPFLAGS'
19878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19881
19882 CC="$lt_save_CC"
19883
19884 else
19885 tagname=""
19886 fi
19887 ;;
19888
19889 RC)
19890
19891
19892 # Source file extension for RC test sources.
19893 ac_ext=rc
19894
19895 # Object file extension for compiled RC test sources.
19896 objext=o
19897 objext_RC=$objext
19898
19899 # Code to be used in simple compile tests
19900 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19901
19902 # Code to be used in simple link tests
19903 lt_simple_link_test_code="$lt_simple_compile_test_code"
19904
19905 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19906
19907 # If no C compiler was specified, use CC.
19908 LTCC=${LTCC-"$CC"}
19909
19910 # Allow CC to be a program name with arguments.
19911 compiler=$CC
19912
19913
19914 # Allow CC to be a program name with arguments.
19915 lt_save_CC="$CC"
19916 CC=${RC-"windres"}
19917 compiler=$CC
19918 compiler_RC=$CC
19919 lt_cv_prog_compiler_c_o_RC=yes
19920
19921 # The else clause should only fire when bootstrapping the
19922 # libtool distribution, otherwise you forgot to ship ltmain.sh
19923 # with your package, and you will get complaints that there are
19924 # no rules to generate ltmain.sh.
19925 if test -f "$ltmain"; then
19926 # See if we are running on zsh, and set the options which allow our commands through
19927 # without removal of \ escapes.
19928 if test -n "${ZSH_VERSION+set}" ; then
19929 setopt NO_GLOB_SUBST
19930 fi
19931 # Now quote all the things that may contain metacharacters while being
19932 # careful not to overquote the AC_SUBSTed values. We take copies of the
19933 # variables and quote the copies for generation of the libtool script.
19934 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19935 SED SHELL STRIP \
19936 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19937 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19938 deplibs_check_method reload_flag reload_cmds need_locks \
19939 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19940 lt_cv_sys_global_symbol_to_c_name_address \
19941 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19942 old_postinstall_cmds old_postuninstall_cmds \
19943 compiler_RC \
19944 CC_RC \
19945 LD_RC \
19946 lt_prog_compiler_wl_RC \
19947 lt_prog_compiler_pic_RC \
19948 lt_prog_compiler_static_RC \
19949 lt_prog_compiler_no_builtin_flag_RC \
19950 export_dynamic_flag_spec_RC \
19951 thread_safe_flag_spec_RC \
19952 whole_archive_flag_spec_RC \
19953 enable_shared_with_static_runtimes_RC \
19954 old_archive_cmds_RC \
19955 old_archive_from_new_cmds_RC \
19956 predep_objects_RC \
19957 postdep_objects_RC \
19958 predeps_RC \
19959 postdeps_RC \
19960 compiler_lib_search_path_RC \
19961 archive_cmds_RC \
19962 archive_expsym_cmds_RC \
19963 postinstall_cmds_RC \
19964 postuninstall_cmds_RC \
19965 old_archive_from_expsyms_cmds_RC \
19966 allow_undefined_flag_RC \
19967 no_undefined_flag_RC \
19968 export_symbols_cmds_RC \
19969 hardcode_libdir_flag_spec_RC \
19970 hardcode_libdir_flag_spec_ld_RC \
19971 hardcode_libdir_separator_RC \
19972 hardcode_automatic_RC \
19973 module_cmds_RC \
19974 module_expsym_cmds_RC \
19975 lt_cv_prog_compiler_c_o_RC \
19976 exclude_expsyms_RC \
19977 include_expsyms_RC; do
19978
19979 case $var in
19980 old_archive_cmds_RC | \
19981 old_archive_from_new_cmds_RC | \
19982 archive_cmds_RC | \
19983 archive_expsym_cmds_RC | \
19984 module_cmds_RC | \
19985 module_expsym_cmds_RC | \
19986 old_archive_from_expsyms_cmds_RC | \
19987 export_symbols_cmds_RC | \
19988 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19989 postinstall_cmds | postuninstall_cmds | \
19990 old_postinstall_cmds | old_postuninstall_cmds | \
19991 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19992 # Double-quote double-evaled strings.
19993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19994 ;;
19995 *)
19996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19997 ;;
19998 esac
19999 done
20000
20001 case $lt_echo in
20002 *'\$0 --fallback-echo"')
20003 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20004 ;;
20005 esac
20006
20007 cfgfile="$ofile"
20008
20009 cat <<__EOF__ >> "$cfgfile"
20010 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20011
20012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20013
20014 # Shell to use when invoking shell scripts.
20015 SHELL=$lt_SHELL
20016
20017 # Whether or not to build shared libraries.
20018 build_libtool_libs=$enable_shared
20019
20020 # Whether or not to build static libraries.
20021 build_old_libs=$enable_static
20022
20023 # Whether or not to add -lc for building shared libraries.
20024 build_libtool_need_lc=$archive_cmds_need_lc_RC
20025
20026 # Whether or not to disallow shared libs when runtime libs are static
20027 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20028
20029 # Whether or not to optimize for fast installation.
20030 fast_install=$enable_fast_install
20031
20032 # The host system.
20033 host_alias=$host_alias
20034 host=$host
20035
20036 # An echo program that does not interpret backslashes.
20037 echo=$lt_echo
20038
20039 # The archiver.
20040 AR=$lt_AR
20041 AR_FLAGS=$lt_AR_FLAGS
20042
20043 # A C compiler.
20044 LTCC=$lt_LTCC
20045
20046 # A language-specific compiler.
20047 CC=$lt_compiler_RC
20048
20049 # Is the compiler the GNU C compiler?
20050 with_gcc=$GCC_RC
20051
20052 # An ERE matcher.
20053 EGREP=$lt_EGREP
20054
20055 # The linker used to build libraries.
20056 LD=$lt_LD_RC
20057
20058 # Whether we need hard or soft links.
20059 LN_S=$lt_LN_S
20060
20061 # A BSD-compatible nm program.
20062 NM=$lt_NM
20063
20064 # A symbol stripping program
20065 STRIP=$lt_STRIP
20066
20067 # Used to examine libraries when file_magic_cmd begins "file"
20068 MAGIC_CMD=$MAGIC_CMD
20069
20070 # Used on cygwin: DLL creation program.
20071 DLLTOOL="$DLLTOOL"
20072
20073 # Used on cygwin: object dumper.
20074 OBJDUMP="$OBJDUMP"
20075
20076 # Used on cygwin: assembler.
20077 AS="$AS"
20078
20079 # The name of the directory that contains temporary libtool files.
20080 objdir=$objdir
20081
20082 # How to create reloadable object files.
20083 reload_flag=$lt_reload_flag
20084 reload_cmds=$lt_reload_cmds
20085
20086 # How to pass a linker flag through the compiler.
20087 wl=$lt_lt_prog_compiler_wl_RC
20088
20089 # Object file suffix (normally "o").
20090 objext="$ac_objext"
20091
20092 # Old archive suffix (normally "a").
20093 libext="$libext"
20094
20095 # Shared library suffix (normally ".so").
20096 shrext_cmds='$shrext_cmds'
20097
20098 # Executable file suffix (normally "").
20099 exeext="$exeext"
20100
20101 # Additional compiler flags for building library objects.
20102 pic_flag=$lt_lt_prog_compiler_pic_RC
20103 pic_mode=$pic_mode
20104
20105 # What is the maximum length of a command?
20106 max_cmd_len=$lt_cv_sys_max_cmd_len
20107
20108 # Does compiler simultaneously support -c and -o options?
20109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20110
20111 # Must we lock files when doing compilation ?
20112 need_locks=$lt_need_locks
20113
20114 # Do we need the lib prefix for modules?
20115 need_lib_prefix=$need_lib_prefix
20116
20117 # Do we need a version for libraries?
20118 need_version=$need_version
20119
20120 # Whether dlopen is supported.
20121 dlopen_support=$enable_dlopen
20122
20123 # Whether dlopen of programs is supported.
20124 dlopen_self=$enable_dlopen_self
20125
20126 # Whether dlopen of statically linked programs is supported.
20127 dlopen_self_static=$enable_dlopen_self_static
20128
20129 # Compiler flag to prevent dynamic linking.
20130 link_static_flag=$lt_lt_prog_compiler_static_RC
20131
20132 # Compiler flag to turn off builtin functions.
20133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20134
20135 # Compiler flag to allow reflexive dlopens.
20136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20137
20138 # Compiler flag to generate shared objects directly from archives.
20139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20140
20141 # Compiler flag to generate thread-safe objects.
20142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20143
20144 # Library versioning type.
20145 version_type=$version_type
20146
20147 # Format of library name prefix.
20148 libname_spec=$lt_libname_spec
20149
20150 # List of archive names. First name is the real one, the rest are links.
20151 # The last name is the one that the linker finds with -lNAME.
20152 library_names_spec=$lt_library_names_spec
20153
20154 # The coded name of the library, if different from the real name.
20155 soname_spec=$lt_soname_spec
20156
20157 # Commands used to build and install an old-style archive.
20158 RANLIB=$lt_RANLIB
20159 old_archive_cmds=$lt_old_archive_cmds_RC
20160 old_postinstall_cmds=$lt_old_postinstall_cmds
20161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20162
20163 # Create an old-style archive from a shared archive.
20164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20165
20166 # Create a temporary old-style archive to link instead of a shared archive.
20167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20168
20169 # Commands used to build and install a shared archive.
20170 archive_cmds=$lt_archive_cmds_RC
20171 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20172 postinstall_cmds=$lt_postinstall_cmds
20173 postuninstall_cmds=$lt_postuninstall_cmds
20174
20175 # Commands used to build a loadable module (assumed same as above if empty)
20176 module_cmds=$lt_module_cmds_RC
20177 module_expsym_cmds=$lt_module_expsym_cmds_RC
20178
20179 # Commands to strip libraries.
20180 old_striplib=$lt_old_striplib
20181 striplib=$lt_striplib
20182
20183 # Dependencies to place before the objects being linked to create a
20184 # shared library.
20185 predep_objects=$lt_predep_objects_RC
20186
20187 # Dependencies to place after the objects being linked to create a
20188 # shared library.
20189 postdep_objects=$lt_postdep_objects_RC
20190
20191 # Dependencies to place before the objects being linked to create a
20192 # shared library.
20193 predeps=$lt_predeps_RC
20194
20195 # Dependencies to place after the objects being linked to create a
20196 # shared library.
20197 postdeps=$lt_postdeps_RC
20198
20199 # The library search path used internally by the compiler when linking
20200 # a shared library.
20201 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20202
20203 # Method to check whether dependent libraries are shared objects.
20204 deplibs_check_method=$lt_deplibs_check_method
20205
20206 # Command to use when deplibs_check_method == file_magic.
20207 file_magic_cmd=$lt_file_magic_cmd
20208
20209 # Flag that allows shared libraries with undefined symbols to be built.
20210 allow_undefined_flag=$lt_allow_undefined_flag_RC
20211
20212 # Flag that forces no undefined symbols.
20213 no_undefined_flag=$lt_no_undefined_flag_RC
20214
20215 # Commands used to finish a libtool library installation in a directory.
20216 finish_cmds=$lt_finish_cmds
20217
20218 # Same as above, but a single script fragment to be evaled but not shown.
20219 finish_eval=$lt_finish_eval
20220
20221 # Take the output of nm and produce a listing of raw symbols and C names.
20222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20223
20224 # Transform the output of nm in a proper C declaration
20225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20226
20227 # Transform the output of nm in a C name address pair
20228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20229
20230 # This is the shared library runtime path variable.
20231 runpath_var=$runpath_var
20232
20233 # This is the shared library path variable.
20234 shlibpath_var=$shlibpath_var
20235
20236 # Is shlibpath searched before the hard-coded library search path?
20237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20238
20239 # How to hardcode a shared library path into an executable.
20240 hardcode_action=$hardcode_action_RC
20241
20242 # Whether we should hardcode library paths into libraries.
20243 hardcode_into_libs=$hardcode_into_libs
20244
20245 # Flag to hardcode \$libdir into a binary during linking.
20246 # This must work even if \$libdir does not exist.
20247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20248
20249 # If ld is used when linking, flag to hardcode \$libdir into
20250 # a binary during linking. This must work even if \$libdir does
20251 # not exist.
20252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20253
20254 # Whether we need a single -rpath flag with a separated argument.
20255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20256
20257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20258 # resulting binary.
20259 hardcode_direct=$hardcode_direct_RC
20260
20261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20262 # resulting binary.
20263 hardcode_minus_L=$hardcode_minus_L_RC
20264
20265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20266 # the resulting binary.
20267 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20268
20269 # Set to yes if building a shared library automatically hardcodes DIR into the library
20270 # and all subsequent libraries and executables linked against it.
20271 hardcode_automatic=$hardcode_automatic_RC
20272
20273 # Variables whose values should be saved in libtool wrapper scripts and
20274 # restored at relink time.
20275 variables_saved_for_relink="$variables_saved_for_relink"
20276
20277 # Whether libtool must link a program against all its dependency libraries.
20278 link_all_deplibs=$link_all_deplibs_RC
20279
20280 # Compile-time system search path for libraries
20281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20282
20283 # Run-time system search path for libraries
20284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20285
20286 # Fix the shell variable \$srcfile for the compiler.
20287 fix_srcfile_path="$fix_srcfile_path_RC"
20288
20289 # Set to yes if exported symbols are required.
20290 always_export_symbols=$always_export_symbols_RC
20291
20292 # The commands to list exported symbols.
20293 export_symbols_cmds=$lt_export_symbols_cmds_RC
20294
20295 # The commands to extract the exported symbol list from a shared archive.
20296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20297
20298 # Symbols that should not be listed in the preloaded symbols.
20299 exclude_expsyms=$lt_exclude_expsyms_RC
20300
20301 # Symbols that must always be exported.
20302 include_expsyms=$lt_include_expsyms_RC
20303
20304 # ### END LIBTOOL TAG CONFIG: $tagname
20305
20306 __EOF__
20307
20308
20309 else
20310 # If there is no Makefile yet, we rely on a make rule to execute
20311 # `config.status --recheck' to rerun these tests and create the
20312 # libtool script then.
20313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20314 if test -f "$ltmain_in"; then
20315 test -f Makefile && make "$ltmain"
20316 fi
20317 fi
20318
20319
20320 ac_ext=c
20321 ac_cpp='$CPP $CPPFLAGS'
20322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20325
20326 CC="$lt_save_CC"
20327
20328 ;;
20329
20330 *)
20331 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20332 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20333 { (exit 1); exit 1; }; }
20334 ;;
20335 esac
20336
20337 # Append the new tag name to the list of available tags.
20338 if test -n "$tagname" ; then
20339 available_tags="$available_tags $tagname"
20340 fi
20341 fi
20342 done
20343 IFS="$lt_save_ifs"
20344
20345 # Now substitute the updated list of available tags.
20346 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20347 mv "${ofile}T" "$ofile"
20348 chmod +x "$ofile"
20349 else
20350 rm -f "${ofile}T"
20351 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20352 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20353 { (exit 1); exit 1; }; }
20354 fi
20355 fi
20356
20357
20358
20359 # This can be used to rebuild libtool when needed
20360 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20361
20362 # Always use our own libtool.
20363 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20364
20365 # Prevent multiple expansion
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20387 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20388 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20389 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392 cat >conftest.make <<\_ACEOF
20393 SHELL = /bin/sh
20394 all:
20395 @echo '@@@%%%=$(MAKE)=@@@%%%'
20396 _ACEOF
20397 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20398 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20399 *@@@%%%=?*=@@@%%%*)
20400 eval ac_cv_prog_make_${ac_make}_set=yes;;
20401 *)
20402 eval ac_cv_prog_make_${ac_make}_set=no;;
20403 esac
20404 rm -f conftest.make
20405 fi
20406 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20407 { echo "$as_me:$LINENO: result: yes" >&5
20408 echo "${ECHO_T}yes" >&6; }
20409 SET_MAKE=
20410 else
20411 { echo "$as_me:$LINENO: result: no" >&5
20412 echo "${ECHO_T}no" >&6; }
20413 SET_MAKE="MAKE=${MAKE-make}"
20414 fi
20415
20416 ac_ext=cpp
20417 ac_cpp='$CXXCPP $CPPFLAGS'
20418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20421
20422 # Find a good install program. We prefer a C program (faster),
20423 # so one script is as good as another. But avoid the broken or
20424 # incompatible versions:
20425 # SysV /etc/install, /usr/sbin/install
20426 # SunOS /usr/etc/install
20427 # IRIX /sbin/install
20428 # AIX /bin/install
20429 # AmigaOS /C/install, which installs bootblocks on floppy discs
20430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20433 # OS/2's system install, which has a completely different semantic
20434 # ./install, which can be erroneously created by make from ./install.sh.
20435 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20436 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20437 if test -z "$INSTALL"; then
20438 if test "${ac_cv_path_install+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20442 for as_dir in $PATH
20443 do
20444 IFS=$as_save_IFS
20445 test -z "$as_dir" && as_dir=.
20446 # Account for people who put trailing slashes in PATH elements.
20447 case $as_dir/ in
20448 ./ | .// | /cC/* | \
20449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20450 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20451 /usr/ucb/* ) ;;
20452 *)
20453 # OSF1 and SCO ODT 3.0 have their own names for install.
20454 # Don't use installbsd from OSF since it installs stuff as root
20455 # by default.
20456 for ac_prog in ginstall scoinst install; do
20457 for ac_exec_ext in '' $ac_executable_extensions; do
20458 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20459 if test $ac_prog = install &&
20460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20461 # AIX install. It has an incompatible calling convention.
20462 :
20463 elif test $ac_prog = install &&
20464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20465 # program-specific install script used by HP pwplus--don't use.
20466 :
20467 else
20468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20469 break 3
20470 fi
20471 fi
20472 done
20473 done
20474 ;;
20475 esac
20476 done
20477 IFS=$as_save_IFS
20478
20479
20480 fi
20481 if test "${ac_cv_path_install+set}" = set; then
20482 INSTALL=$ac_cv_path_install
20483 else
20484 # As a last resort, use the slow shell script. Don't cache a
20485 # value for INSTALL within a source directory, because that will
20486 # break other packages using the cache if that directory is
20487 # removed, or if the value is a relative name.
20488 INSTALL=$ac_install_sh
20489 fi
20490 fi
20491 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20492 echo "${ECHO_T}$INSTALL" >&6; }
20493
20494 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20495 # It thinks the first close brace ends the variable substitution.
20496 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20497
20498 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20499
20500 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20501
20502
20503 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20504 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20505 if test "${ac_cv_header_stdc+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 #include <stdlib.h>
20515 #include <stdarg.h>
20516 #include <string.h>
20517 #include <float.h>
20518
20519 int
20520 main ()
20521 {
20522
20523 ;
20524 return 0;
20525 }
20526 _ACEOF
20527 rm -f conftest.$ac_objext
20528 if { (ac_try="$ac_compile"
20529 case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_cxx_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest.$ac_objext; then
20544 ac_cv_header_stdc=yes
20545 else
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 ac_cv_header_stdc=no
20550 fi
20551
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553
20554 if test $ac_cv_header_stdc = yes; then
20555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <string.h>
20563
20564 _ACEOF
20565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20566 $EGREP "memchr" >/dev/null 2>&1; then
20567 :
20568 else
20569 ac_cv_header_stdc=no
20570 fi
20571 rm -f conftest*
20572
20573 fi
20574
20575 if test $ac_cv_header_stdc = yes; then
20576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 #include <stdlib.h>
20584
20585 _ACEOF
20586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20587 $EGREP "free" >/dev/null 2>&1; then
20588 :
20589 else
20590 ac_cv_header_stdc=no
20591 fi
20592 rm -f conftest*
20593
20594 fi
20595
20596 if test $ac_cv_header_stdc = yes; then
20597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20598 if test "$cross_compiling" = yes; then
20599 :
20600 else
20601 cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h. */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20607 #include <ctype.h>
20608 #include <stdlib.h>
20609 #if ((' ' & 0x0FF) == 0x020)
20610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20612 #else
20613 # define ISLOWER(c) \
20614 (('a' <= (c) && (c) <= 'i') \
20615 || ('j' <= (c) && (c) <= 'r') \
20616 || ('s' <= (c) && (c) <= 'z'))
20617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20618 #endif
20619
20620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20621 int
20622 main ()
20623 {
20624 int i;
20625 for (i = 0; i < 256; i++)
20626 if (XOR (islower (i), ISLOWER (i))
20627 || toupper (i) != TOUPPER (i))
20628 return 2;
20629 return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest$ac_exeext
20633 if { (ac_try="$ac_link"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_link") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20643 { (case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_try") 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
20652 :
20653 else
20654 echo "$as_me: program exited with status $ac_status" >&5
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 ( exit $ac_status )
20659 ac_cv_header_stdc=no
20660 fi
20661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20662 fi
20663
20664
20665 fi
20666 fi
20667 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20668 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20669 if test $ac_cv_header_stdc = yes; then
20670
20671 cat >>confdefs.h <<\_ACEOF
20672 #define STDC_HEADERS 1
20673 _ACEOF
20674
20675 fi
20676
20677
20678 CXXFLAGS="$CXXFLAGS -Wall -Wno-unused -DGUICHAN_BUILD"
20679
20680
20681
20682 NoOpenGL()
20683 {
20684 { echo "$as_me:$LINENO: WARNING: OpenGL support skipped when OpenGL not found." >&5
20685 echo "$as_me: WARNING: OpenGL support skipped when OpenGL not found." >&2;}
20686 OPENGL="no"
20687 }
20688
20689 HaveOpenGL()
20690 {
20691 OPENGL="yes"
20692 GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS opengl"
20693 }
20694
20695 ForceOpenGL()
20696 {
20697 { echo "$as_me:$LINENO: WARNING: OpenGL support forced." >&5
20698 echo "$as_me: WARNING: OpenGL support forced." >&2;}
20699 OPENGL="forced"
20700 GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS opengl"
20701 }
20702
20703
20704
20705
20706 NoSDLImage()
20707 {
20708 { echo "$as_me:$LINENO: WARNING: SDL_image support skipped when SDL_image not found." >&5
20709 echo "$as_me: WARNING: SDL_image support skipped when SDL_image not found." >&2;}
20710 SDLIMAGE="no"
20711 }
20712
20713 HaveSDLImage()
20714 {
20715 SDLIMAGE="yes"
20716 SDL_LIBS="$SDL_LIBS -lSDL_image"
20717 CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
20718 }
20719
20720 ForceSDLImage()
20721 {
20722 { echo "$as_me:$LINENO: WARNING: SDL Image support forced." >&5
20723 echo "$as_me: WARNING: SDL Image support forced." >&2;}
20724 SDLIMAGE="forced"
20725 }
20726
20727 HaveSDL()
20728 {
20729 GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS sdl"
20730 }
20731
20732 ForceSDL()
20733 {
20734 { echo "$as_me:$LINENO: WARNING: SDL support forced." >&5
20735 echo "$as_me: WARNING: SDL support forced." >&2;}
20736 GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS sdl"
20737 }
20738
20739 NoAllegro()
20740 {
20741 { echo "$as_me:$LINENO: WARNING: Allegro support skipped when Allegro not found." >&5
20742 echo "$as_me: WARNING: Allegro support skipped when Allegro not found." >&2;}
20743 }
20744
20745 HaveAllegro()
20746 {
20747 ALLEGRO="yes"
20748 GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS allegro"
20749 }
20750
20751 ForceAllegro()
20752 {
20753 { echo "$as_me:$LINENO: WARNING: Allegro support forced." >&5
20754 echo "$as_me: WARNING: Allegro support forced." >&2;}
20755 ALLEGRO="forced"
20756 GUICHAN_EXTRADIRS="$GUICHAN_EXTRADIRS allegro"
20757 }
20758
20759
20760 # Check whether --enable-opengl was given.
20761 if test "${enable_opengl+set}" = set; then
20762 enableval=$enable_opengl;
20763 else
20764 enable_opengl=yes
20765 fi
20766
20767 # Check whether --enable-force_opengl was given.
20768 if test "${enable_force_opengl+set}" = set; then
20769 enableval=$enable_force_opengl;
20770 else
20771 enable_force_opengl=no
20772 fi
20773
20774 if test x$enable_opengl = xyes; then
20775 if test x$enable_force_opengl = xno; then
20776
20777 for ac_header in GL/gl.h
20778 do
20779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 fi
20786 ac_res=`eval echo '${'$as_ac_Header'}'`
20787 { echo "$as_me:$LINENO: result: $ac_res" >&5
20788 echo "${ECHO_T}$ac_res" >&6; }
20789 else
20790 # Is the header compilable?
20791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20793 cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h. */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 $ac_includes_default
20800 #include <$ac_header>
20801 _ACEOF
20802 rm -f conftest.$ac_objext
20803 if { (ac_try="$ac_compile"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_compile") 2>conftest.er1
20810 ac_status=$?
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_cxx_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest.$ac_objext; then
20819 ac_header_compiler=yes
20820 else
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20823
20824 ac_header_compiler=no
20825 fi
20826
20827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20829 echo "${ECHO_T}$ac_header_compiler" >&6; }
20830
20831 # Is the header present?
20832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20834 cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h. */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 #include <$ac_header>
20841 _ACEOF
20842 if { (ac_try="$ac_cpp conftest.$ac_ext"
20843 case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20849 ac_status=$?
20850 grep -v '^ *+' conftest.er1 >conftest.err
20851 rm -f conftest.er1
20852 cat conftest.err >&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } >/dev/null && {
20855 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20856 test ! -s conftest.err
20857 }; then
20858 ac_header_preproc=yes
20859 else
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 ac_header_preproc=no
20864 fi
20865
20866 rm -f conftest.err conftest.$ac_ext
20867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20868 echo "${ECHO_T}$ac_header_preproc" >&6; }
20869
20870 # So? What about this header?
20871 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20872 yes:no: )
20873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20877 ac_header_preproc=yes
20878 ;;
20879 no:yes:* )
20880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20892 ( cat <<\_ASBOX
20893 ## ------------------------------------- ##
20894 ## Report this to olof.naessen@gmail.com ##
20895 ## ------------------------------------- ##
20896 _ASBOX
20897 ) | sed "s/^/$as_me: WARNING: /" >&2
20898 ;;
20899 esac
20900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905 eval "$as_ac_Header=\$ac_header_preproc"
20906 fi
20907 ac_res=`eval echo '${'$as_ac_Header'}'`
20908 { echo "$as_me:$LINENO: result: $ac_res" >&5
20909 echo "${ECHO_T}$ac_res" >&6; }
20910
20911 fi
20912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20913 cat >>confdefs.h <<_ACEOF
20914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20915 _ACEOF
20916
20917 fi
20918
20919 done
20920
20921 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
20922 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
20923 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926 ac_check_lib_save_LIBS=$LIBS
20927 LIBS="-lGL $LIBS"
20928 cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h. */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20934
20935 /* Override any GCC internal prototype to avoid an error.
20936 Use char because int might match the return type of a GCC
20937 builtin and then its argument prototype would still apply. */
20938 #ifdef __cplusplus
20939 extern "C"
20940 #endif
20941 char glBegin ();
20942 int
20943 main ()
20944 {
20945 return glBegin ();
20946 ;
20947 return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext conftest$ac_exeext
20951 if { (ac_try="$ac_link"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_link") 2>conftest.er1
20958 ac_status=$?
20959 grep -v '^ *+' conftest.er1 >conftest.err
20960 rm -f conftest.er1
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_cxx_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest$ac_exeext &&
20967 $as_test_x conftest$ac_exeext; then
20968 ac_cv_lib_GL_glBegin=yes
20969 else
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973 ac_cv_lib_GL_glBegin=no
20974 fi
20975
20976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20977 conftest$ac_exeext conftest.$ac_ext
20978 LIBS=$ac_check_lib_save_LIBS
20979 fi
20980 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
20981 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
20982 if test $ac_cv_lib_GL_glBegin = yes; then
20983 HaveOpenGL
20984 else
20985 NoOpenGL
20986 fi
20987
20988 else
20989 ForceOpenGL
20990 fi
20991 fi
20992
20993
20994 # Check whether --enable-sdlimage was given.
20995 if test "${enable_sdlimage+set}" = set; then
20996 enableval=$enable_sdlimage;
20997 else
20998 enable_sdlimage=yes
20999 fi
21000
21001 # Check whether --enable-force_sdlimage was given.
21002 if test "${enable_force_sdlimage+set}" = set; then
21003 enableval=$enable_force_sdlimage;
21004 else
21005 enable_force_sdlimage=no
21006 fi
21007
21008 if test x$enable_sdlimage = xyes; then
21009 if test x$enable_force_sdlimage = xno; then
21010
21011 for ac_header in SDL/SDL_image.h
21012 do
21013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 fi
21020 ac_res=`eval echo '${'$as_ac_Header'}'`
21021 { echo "$as_me:$LINENO: result: $ac_res" >&5
21022 echo "${ECHO_T}$ac_res" >&6; }
21023 else
21024 # Is the header compilable?
21025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 $ac_includes_default
21034 #include <$ac_header>
21035 _ACEOF
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_compile") 2>conftest.er1
21044 ac_status=$?
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_cxx_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest.$ac_objext; then
21053 ac_header_compiler=yes
21054 else
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058 ac_header_compiler=no
21059 fi
21060
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21063 echo "${ECHO_T}$ac_header_compiler" >&6; }
21064
21065 # Is the header present?
21066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 #include <$ac_header>
21075 _ACEOF
21076 if { (ac_try="$ac_cpp conftest.$ac_ext"
21077 case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } >/dev/null && {
21089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21090 test ! -s conftest.err
21091 }; then
21092 ac_header_preproc=yes
21093 else
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21096
21097 ac_header_preproc=no
21098 fi
21099
21100 rm -f conftest.err conftest.$ac_ext
21101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21102 echo "${ECHO_T}$ac_header_preproc" >&6; }
21103
21104 # So? What about this header?
21105 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21106 yes:no: )
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21111 ac_header_preproc=yes
21112 ;;
21113 no:yes:* )
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21126 ( cat <<\_ASBOX
21127 ## ------------------------------------- ##
21128 ## Report this to olof.naessen@gmail.com ##
21129 ## ------------------------------------- ##
21130 _ASBOX
21131 ) | sed "s/^/$as_me: WARNING: /" >&2
21132 ;;
21133 esac
21134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139 eval "$as_ac_Header=\$ac_header_preproc"
21140 fi
21141 ac_res=`eval echo '${'$as_ac_Header'}'`
21142 { echo "$as_me:$LINENO: result: $ac_res" >&5
21143 echo "${ECHO_T}$ac_res" >&6; }
21144
21145 fi
21146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21147 cat >>confdefs.h <<_ACEOF
21148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21149 _ACEOF
21150
21151 fi
21152
21153 done
21154
21155 { echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
21156 echo $ECHO_N "checking for IMG_Load in -lSDL_image... $ECHO_C" >&6; }
21157 if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 else
21160 ac_check_lib_save_LIBS=$LIBS
21161 LIBS="-lSDL_image $LIBS"
21162 cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168
21169 /* Override any GCC internal prototype to avoid an error.
21170 Use char because int might match the return type of a GCC
21171 builtin and then its argument prototype would still apply. */
21172 #ifdef __cplusplus
21173 extern "C"
21174 #endif
21175 char IMG_Load ();
21176 int
21177 main ()
21178 {
21179 return IMG_Load ();
21180 ;
21181 return 0;
21182 }
21183 _ACEOF
21184 rm -f conftest.$ac_objext conftest$ac_exeext
21185 if { (ac_try="$ac_link"
21186 case "(($ac_try" in
21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21189 esac
21190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21191 (eval "$ac_link") 2>conftest.er1
21192 ac_status=$?
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } && {
21198 test -z "$ac_cxx_werror_flag" ||
21199 test ! -s conftest.err
21200 } && test -s conftest$ac_exeext &&
21201 $as_test_x conftest$ac_exeext; then
21202 ac_cv_lib_SDL_image_IMG_Load=yes
21203 else
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207 ac_cv_lib_SDL_image_IMG_Load=no
21208 fi
21209
21210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21211 conftest$ac_exeext conftest.$ac_ext
21212 LIBS=$ac_check_lib_save_LIBS
21213 fi
21214 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
21215 echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load" >&6; }
21216 if test $ac_cv_lib_SDL_image_IMG_Load = yes; then
21217 HaveSDLImage
21218 else
21219 NoSDLImage
21220 fi
21221
21222 else
21223 ForceSDLImage
21224 fi
21225 fi
21226
21227 # Check whether --enable-allegro was given.
21228 if test "${enable_allegro+set}" = set; then
21229 enableval=$enable_allegro;
21230 else
21231 enable_allegro=yes
21232 fi
21233
21234 # Check whether --enable-force_allegro was given.
21235 if test "${enable_force_allegro+set}" = set; then
21236 enableval=$enable_force_allegro;
21237 else
21238 enable_force_allegro=no
21239 fi
21240
21241 if test x$enable_allegro = xyes; then
21242 if test x$enable_force_allegro = xno; then
21243
21244 for ac_header in allegro.h
21245 do
21246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 fi
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254 { echo "$as_me:$LINENO: result: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21256 else
21257 # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 $ac_includes_default
21267 #include <$ac_header>
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_cxx_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 ac_header_compiler=yes
21287 else
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21290
21291 ac_header_compiler=no
21292 fi
21293
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21297
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <$ac_header>
21308 _ACEOF
21309 if { (ac_try="$ac_cpp conftest.$ac_ext"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } >/dev/null && {
21322 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21323 test ! -s conftest.err
21324 }; then
21325 ac_header_preproc=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ac_header_preproc=no
21331 fi
21332
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21336
21337 # So? What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21339 yes:no: )
21340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21344 ac_header_preproc=yes
21345 ;;
21346 no:yes:* )
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21359 ( cat <<\_ASBOX
21360 ## ------------------------------------- ##
21361 ## Report this to olof.naessen@gmail.com ##
21362 ## ------------------------------------- ##
21363 _ASBOX
21364 ) | sed "s/^/$as_me: WARNING: /" >&2
21365 ;;
21366 esac
21367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 else
21372 eval "$as_ac_Header=\$ac_header_preproc"
21373 fi
21374 ac_res=`eval echo '${'$as_ac_Header'}'`
21375 { echo "$as_me:$LINENO: result: $ac_res" >&5
21376 echo "${ECHO_T}$ac_res" >&6; }
21377
21378 fi
21379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21380 cat >>confdefs.h <<_ACEOF
21381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21382 _ACEOF
21383
21384 fi
21385
21386 done
21387
21388 # Extract the first word of "allegro-config", so it can be a program name with args.
21389 set dummy allegro-config; ac_word=$2
21390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21392 if test "${ac_cv_prog_HAVE_ALLEGRO+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395 if test -n "$HAVE_ALLEGRO"; then
21396 ac_cv_prog_HAVE_ALLEGRO="$HAVE_ALLEGRO" # Let the user override the test.
21397 else
21398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21399 for as_dir in $PATH
21400 do
21401 IFS=$as_save_IFS
21402 test -z "$as_dir" && as_dir=.
21403 for ac_exec_ext in '' $ac_executable_extensions; do
21404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21405 ac_cv_prog_HAVE_ALLEGRO="yes"
21406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21407 break 2
21408 fi
21409 done
21410 done
21411 IFS=$as_save_IFS
21412
21413 fi
21414 fi
21415 HAVE_ALLEGRO=$ac_cv_prog_HAVE_ALLEGRO
21416 if test -n "$HAVE_ALLEGRO"; then
21417 { echo "$as_me:$LINENO: result: $HAVE_ALLEGRO" >&5
21418 echo "${ECHO_T}$HAVE_ALLEGRO" >&6; }
21419 else
21420 { echo "$as_me:$LINENO: result: no" >&5
21421 echo "${ECHO_T}no" >&6; }
21422 fi
21423
21424
21425 if test "x$HAVE_ALLEGRO" != "xyes"; then
21426 NoAllegro
21427 else
21428 HaveAllegro
21429 fi
21430 else
21431 ForceAllegro
21432 fi
21433 fi
21434
21435 # Check whether --enable-sdl was given.
21436 if test "${enable_sdl+set}" = set; then
21437 enableval=$enable_sdl;
21438 else
21439 enable_sdl=yes
21440 fi
21441
21442 # Check whether --enable-force_sdl was given.
21443 if test "${enable_force_sdl+set}" = set; then
21444 enableval=$enable_force_sdl;
21445 else
21446 enable_force_sdl=no
21447 fi
21448
21449 if test x$enable_sdl = xyes; then
21450 if test x$enable_force_sdl = xno; then
21451
21452 for ac_header in SDL/SDL.h
21453 do
21454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 fi
21461 ac_res=`eval echo '${'$as_ac_Header'}'`
21462 { echo "$as_me:$LINENO: result: $ac_res" >&5
21463 echo "${ECHO_T}$ac_res" >&6; }
21464 else
21465 # Is the header compilable?
21466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21468 cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h. */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474 $ac_includes_default
21475 #include <$ac_header>
21476 _ACEOF
21477 rm -f conftest.$ac_objext
21478 if { (ac_try="$ac_compile"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_cxx_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21494 ac_header_compiler=yes
21495 else
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 ac_header_compiler=no
21500 fi
21501
21502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21504 echo "${ECHO_T}$ac_header_compiler" >&6; }
21505
21506 # Is the header present?
21507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21509 cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h. */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21515 #include <$ac_header>
21516 _ACEOF
21517 if { (ac_try="$ac_cpp conftest.$ac_ext"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21524 ac_status=$?
21525 grep -v '^ *+' conftest.er1 >conftest.err
21526 rm -f conftest.er1
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } >/dev/null && {
21530 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21531 test ! -s conftest.err
21532 }; then
21533 ac_header_preproc=yes
21534 else
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 ac_header_preproc=no
21539 fi
21540
21541 rm -f conftest.err conftest.$ac_ext
21542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21543 echo "${ECHO_T}$ac_header_preproc" >&6; }
21544
21545 # So? What about this header?
21546 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21547 yes:no: )
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21552 ac_header_preproc=yes
21553 ;;
21554 no:yes:* )
21555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21567 ( cat <<\_ASBOX
21568 ## ------------------------------------- ##
21569 ## Report this to olof.naessen@gmail.com ##
21570 ## ------------------------------------- ##
21571 _ASBOX
21572 ) | sed "s/^/$as_me: WARNING: /" >&2
21573 ;;
21574 esac
21575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21578 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580 eval "$as_ac_Header=\$ac_header_preproc"
21581 fi
21582 ac_res=`eval echo '${'$as_ac_Header'}'`
21583 { echo "$as_me:$LINENO: result: $ac_res" >&5
21584 echo "${ECHO_T}$ac_res" >&6; }
21585
21586 fi
21587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21588 cat >>confdefs.h <<_ACEOF
21589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21590 _ACEOF
21591
21592 fi
21593
21594 done
21595
21596 # Extract the first word of "sdl-config", so it can be a program name with args.
21597 set dummy sdl-config; ac_word=$2
21598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21600 if test "${ac_cv_prog_HAVE_SDL+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 else
21603 if test -n "$HAVE_SDL"; then
21604 ac_cv_prog_HAVE_SDL="$HAVE_SDL" # Let the user override the test.
21605 else
21606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21607 for as_dir in $PATH
21608 do
21609 IFS=$as_save_IFS
21610 test -z "$as_dir" && as_dir=.
21611 for ac_exec_ext in '' $ac_executable_extensions; do
21612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21613 ac_cv_prog_HAVE_SDL="yes"
21614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21615 break 2
21616 fi
21617 done
21618 done
21619 IFS=$as_save_IFS
21620
21621 fi
21622 fi
21623 HAVE_SDL=$ac_cv_prog_HAVE_SDL
21624 if test -n "$HAVE_SDL"; then
21625 { echo "$as_me:$LINENO: result: $HAVE_SDL" >&5
21626 echo "${ECHO_T}$HAVE_SDL" >&6; }
21627 else
21628 { echo "$as_me:$LINENO: result: no" >&5
21629 echo "${ECHO_T}no" >&6; }
21630 fi
21631
21632
21633 if test "x$HAVE_SDL" != "xyes"; then
21634 SDL="no"
21635 else
21636 SDL="yes"
21637 fi
21638 else
21639 SDL="forced"
21640 ForceSDL
21641 fi
21642 fi
21643
21644 if test $SDL = "yes"; then
21645 if test $SDLIMAGE = "no"; then
21646 SDL="no"
21647 { echo "$as_me:$LINENO: WARNING: SDL support skipped when SDL_image not found." >&5
21648 echo "$as_me: WARNING: SDL support skipped when SDL_image not found." >&2;}
21649 else
21650 HaveSDL
21651 fi
21652 else
21653 SDL="no"
21654 { echo "$as_me:$LINENO: WARNING: SDL support skipped when SDL not found." >&5
21655 echo "$as_me: WARNING: SDL support skipped when SDL not found." >&2;}
21656 fi
21657
21658
21659
21660 ac_config_files="$ac_config_files Makefile examples/Makefile include/Makefile include/guichan/Makefile include/guichan/allegro/Makefile include/guichan/contrib/Makefile include/guichan/contrib/allegro/Makefile include/guichan/contrib/opengl/Makefile include/guichan/contrib/sdl/Makefile include/guichan/contrib/widgets/Makefile include/guichan/hge/Makefile include/guichan/opengl/Makefile include/guichan/openlayer/Makefile include/guichan/sdl/Makefile include/guichan/widgets/Makefile src/Makefile src/allegro/Makefile src/contrib/Makefile src/contrib/allegro/Makefile src/contrib/opengl/Makefile src/contrib/sdl/Makefile src/contrib/widgets/Makefile src/hge/Makefile src/opengl/Makefile src/openlayer/Makefile src/sdl/Makefile src/widgets/Makefile"
21661
21662 cat >confcache <<\_ACEOF
21663 # This file is a shell script that caches the results of configure
21664 # tests run on this system so they can be shared between configure
21665 # scripts and configure runs, see configure's option --config-cache.
21666 # It is not useful on other systems. If it contains results you don't
21667 # want to keep, you may remove or edit it.
21668 #
21669 # config.status only pays attention to the cache file if you give it
21670 # the --recheck option to rerun configure.
21671 #
21672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21674 # following values.
21675
21676 _ACEOF
21677
21678 # The following way of writing the cache mishandles newlines in values,
21679 # but we know of no workaround that is simple, portable, and efficient.
21680 # So, we kill variables containing newlines.
21681 # Ultrix sh set writes to stderr and can't be redirected directly,
21682 # and sets the high bit in the cache file unless we assign to the vars.
21683 (
21684 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21685 eval ac_val=\$$ac_var
21686 case $ac_val in #(
21687 *${as_nl}*)
21688 case $ac_var in #(
21689 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21690 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21691 esac
21692 case $ac_var in #(
21693 _ | IFS | as_nl) ;; #(
21694 *) $as_unset $ac_var ;;
21695 esac ;;
21696 esac
21697 done
21698
21699 (set) 2>&1 |
21700 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21701 *${as_nl}ac_space=\ *)
21702 # `set' does not quote correctly, so add quotes (double-quote
21703 # substitution turns \\\\ into \\, and sed turns \\ into \).
21704 sed -n \
21705 "s/'/'\\\\''/g;
21706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21707 ;; #(
21708 *)
21709 # `set' quotes correctly as required by POSIX, so do not add quotes.
21710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21711 ;;
21712 esac |
21713 sort
21714 ) |
21715 sed '
21716 /^ac_cv_env_/b end
21717 t clear
21718 :clear
21719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21720 t end
21721 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21722 :end' >>confcache
21723 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21724 if test -w "$cache_file"; then
21725 test "x$cache_file" != "x/dev/null" &&
21726 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21727 echo "$as_me: updating cache $cache_file" >&6;}
21728 cat confcache >$cache_file
21729 else
21730 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21731 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21732 fi
21733 fi
21734 rm -f confcache
21735
21736 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21737 # Let make expand exec_prefix.
21738 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21739
21740 DEFS=-DHAVE_CONFIG_H
21741
21742 ac_libobjs=
21743 ac_ltlibobjs=
21744 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21745 # 1. Remove the extension, and $U if already installed.
21746 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21747 ac_i=`echo "$ac_i" | sed "$ac_script"`
21748 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21749 # will be set to the directory where LIBOBJS objects are built.
21750 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21751 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21752 done
21753 LIBOBJS=$ac_libobjs
21754
21755 LTLIBOBJS=$ac_ltlibobjs
21756
21757
21758 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21759 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21760 Usually this means the macro was only invoked conditionally." >&5
21761 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21762 Usually this means the macro was only invoked conditionally." >&2;}
21763 { (exit 1); exit 1; }; }
21764 fi
21765 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21766 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21767 Usually this means the macro was only invoked conditionally." >&5
21768 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21769 Usually this means the macro was only invoked conditionally." >&2;}
21770 { (exit 1); exit 1; }; }
21771 fi
21772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21773 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21774 Usually this means the macro was only invoked conditionally." >&5
21775 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21776 Usually this means the macro was only invoked conditionally." >&2;}
21777 { (exit 1); exit 1; }; }
21778 fi
21779
21780 : ${CONFIG_STATUS=./config.status}
21781 ac_clean_files_save=$ac_clean_files
21782 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21783 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21784 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21785 cat >$CONFIG_STATUS <<_ACEOF
21786 #! $SHELL
21787 # Generated by $as_me.
21788 # Run this file to recreate the current configuration.
21789 # Compiler output produced by configure, useful for debugging
21790 # configure, is in config.log if it exists.
21791
21792 debug=false
21793 ac_cs_recheck=false
21794 ac_cs_silent=false
21795 SHELL=\${CONFIG_SHELL-$SHELL}
21796 _ACEOF
21797
21798 cat >>$CONFIG_STATUS <<\_ACEOF
21799 ## --------------------- ##
21800 ## M4sh Initialization. ##
21801 ## --------------------- ##
21802
21803 # Be more Bourne compatible
21804 DUALCASE=1; export DUALCASE # for MKS sh
21805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21806 emulate sh
21807 NULLCMD=:
21808 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21809 # is contrary to our usage. Disable this feature.
21810 alias -g '${1+"$@"}'='"$@"'
21811 setopt NO_GLOB_SUBST
21812 else
21813 case `(set -o) 2>/dev/null` in
21814 *posix*) set -o posix ;;
21815 esac
21816
21817 fi
21818
21819
21820
21821
21822 # PATH needs CR
21823 # Avoid depending upon Character Ranges.
21824 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21825 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21826 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21827 as_cr_digits='0123456789'
21828 as_cr_alnum=$as_cr_Letters$as_cr_digits
21829
21830 # The user is always right.
21831 if test "${PATH_SEPARATOR+set}" != set; then
21832 echo "#! /bin/sh" >conf$$.sh
21833 echo "exit 0" >>conf$$.sh
21834 chmod +x conf$$.sh
21835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21836 PATH_SEPARATOR=';'
21837 else
21838 PATH_SEPARATOR=:
21839 fi
21840 rm -f conf$$.sh
21841 fi
21842
21843 # Support unset when possible.
21844 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21845 as_unset=unset
21846 else
21847 as_unset=false
21848 fi
21849
21850
21851 # IFS
21852 # We need space, tab and new line, in precisely that order. Quoting is
21853 # there to prevent editors from complaining about space-tab.
21854 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21855 # splitting by setting IFS to empty value.)
21856 as_nl='
21857 '
21858 IFS=" "" $as_nl"
21859
21860 # Find who we are. Look in the path if we contain no directory separator.
21861 case $0 in
21862 *[\\/]* ) as_myself=$0 ;;
21863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21864 for as_dir in $PATH
21865 do
21866 IFS=$as_save_IFS
21867 test -z "$as_dir" && as_dir=.
21868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21869 done
21870 IFS=$as_save_IFS
21871
21872 ;;
21873 esac
21874 # We did not find ourselves, most probably we were run as `sh COMMAND'
21875 # in which case we are not to be found in the path.
21876 if test "x$as_myself" = x; then
21877 as_myself=$0
21878 fi
21879 if test ! -f "$as_myself"; then
21880 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21881 { (exit 1); exit 1; }
21882 fi
21883
21884 # Work around bugs in pre-3.0 UWIN ksh.
21885 for as_var in ENV MAIL MAILPATH
21886 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21887 done
21888 PS1='$ '
21889 PS2='> '
21890 PS4='+ '
21891
21892 # NLS nuisances.
21893 for as_var in \
21894 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21895 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21896 LC_TELEPHONE LC_TIME
21897 do
21898 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21899 eval $as_var=C; export $as_var
21900 else
21901 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21902 fi
21903 done
21904
21905 # Required to use basename.
21906 if expr a : '\(a\)' >/dev/null 2>&1 &&
21907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21908 as_expr=expr
21909 else
21910 as_expr=false
21911 fi
21912
21913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21914 as_basename=basename
21915 else
21916 as_basename=false
21917 fi
21918
21919
21920 # Name of the executable.
21921 as_me=`$as_basename -- "$0" ||
21922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21923 X"$0" : 'X\(//\)$' \| \
21924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21925 echo X/"$0" |
21926 sed '/^.*\/\([^/][^/]*\)\/*$/{
21927 s//\1/
21928 q
21929 }
21930 /^X\/\(\/\/\)$/{
21931 s//\1/
21932 q
21933 }
21934 /^X\/\(\/\).*/{
21935 s//\1/
21936 q
21937 }
21938 s/.*/./; q'`
21939
21940 # CDPATH.
21941 $as_unset CDPATH
21942
21943
21944
21945 as_lineno_1=$LINENO
21946 as_lineno_2=$LINENO
21947 test "x$as_lineno_1" != "x$as_lineno_2" &&
21948 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21949
21950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21951 # uniformly replaced by the line number. The first 'sed' inserts a
21952 # line-number line after each line using $LINENO; the second 'sed'
21953 # does the real work. The second script uses 'N' to pair each
21954 # line-number line with the line containing $LINENO, and appends
21955 # trailing '-' during substitution so that $LINENO is not a special
21956 # case at line end.
21957 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21958 # scripts with optimization help from Paolo Bonzini. Blame Lee
21959 # E. McMahon (1931-1989) for sed's syntax. :-)
21960 sed -n '
21961 p
21962 /[$]LINENO/=
21963 ' <$as_myself |
21964 sed '
21965 s/[$]LINENO.*/&-/
21966 t lineno
21967 b
21968 :lineno
21969 N
21970 :loop
21971 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21972 t loop
21973 s/-\n.*//
21974 ' >$as_me.lineno &&
21975 chmod +x "$as_me.lineno" ||
21976 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21977 { (exit 1); exit 1; }; }
21978
21979 # Don't try to exec as it changes $[0], causing all sort of problems
21980 # (the dirname of $[0] is not the place where we might find the
21981 # original and so on. Autoconf is especially sensitive to this).
21982 . "./$as_me.lineno"
21983 # Exit status is that of the last command.
21984 exit
21985 }
21986
21987
21988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21989 as_dirname=dirname
21990 else
21991 as_dirname=false
21992 fi
21993
21994 ECHO_C= ECHO_N= ECHO_T=
21995 case `echo -n x` in
21996 -n*)
21997 case `echo 'x\c'` in
21998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21999 *) ECHO_C='\c';;
22000 esac;;
22001 *)
22002 ECHO_N='-n';;
22003 esac
22004
22005 if expr a : '\(a\)' >/dev/null 2>&1 &&
22006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22007 as_expr=expr
22008 else
22009 as_expr=false
22010 fi
22011
22012 rm -f conf$$ conf$$.exe conf$$.file
22013 if test -d conf$$.dir; then
22014 rm -f conf$$.dir/conf$$.file
22015 else
22016 rm -f conf$$.dir
22017 mkdir conf$$.dir
22018 fi
22019 echo >conf$$.file
22020 if ln -s conf$$.file conf$$ 2>/dev/null; then
22021 as_ln_s='ln -s'
22022 # ... but there are two gotchas:
22023 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22024 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22025 # In both cases, we have to default to `cp -p'.
22026 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22027 as_ln_s='cp -p'
22028 elif ln conf$$.file conf$$ 2>/dev/null; then
22029 as_ln_s=ln
22030 else
22031 as_ln_s='cp -p'
22032 fi
22033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22034 rmdir conf$$.dir 2>/dev/null
22035
22036 if mkdir -p . 2>/dev/null; then
22037 as_mkdir_p=:
22038 else
22039 test -d ./-p && rmdir ./-p
22040 as_mkdir_p=false
22041 fi
22042
22043 if test -x / >/dev/null 2>&1; then
22044 as_test_x='test -x'
22045 else
22046 if ls -dL / >/dev/null 2>&1; then
22047 as_ls_L_option=L
22048 else
22049 as_ls_L_option=
22050 fi
22051 as_test_x='
22052 eval sh -c '\''
22053 if test -d "$1"; then
22054 test -d "$1/.";
22055 else
22056 case $1 in
22057 -*)set "./$1";;
22058 esac;
22059 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22060 ???[sx]*):;;*)false;;esac;fi
22061 '\'' sh
22062 '
22063 fi
22064 as_executable_p=$as_test_x
22065
22066 # Sed expression to map a string onto a valid CPP name.
22067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22068
22069 # Sed expression to map a string onto a valid variable name.
22070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22071
22072
22073 exec 6>&1
22074
22075 # Save the log message, to keep $[0] and so on meaningful, and to
22076 # report actual input values of CONFIG_FILES etc. instead of their
22077 # values after options handling.
22078 ac_log="
22079 This file was extended by guichan $as_me 0.8.1, which was
22080 generated by GNU Autoconf 2.61. Invocation command line was
22081
22082 CONFIG_FILES = $CONFIG_FILES
22083 CONFIG_HEADERS = $CONFIG_HEADERS
22084 CONFIG_LINKS = $CONFIG_LINKS
22085 CONFIG_COMMANDS = $CONFIG_COMMANDS
22086 $ $0 $@
22087
22088 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22089 "
22090
22091 _ACEOF
22092
22093 cat >>$CONFIG_STATUS <<_ACEOF
22094 # Files that config.status was made for.
22095 config_files="$ac_config_files"
22096 config_headers="$ac_config_headers"
22097 config_commands="$ac_config_commands"
22098
22099 _ACEOF
22100
22101 cat >>$CONFIG_STATUS <<\_ACEOF
22102 ac_cs_usage="\
22103 \`$as_me' instantiates files from templates according to the
22104 current configuration.
22105
22106 Usage: $0 [OPTIONS] [FILE]...
22107
22108 -h, --help print this help, then exit
22109 -V, --version print version number and configuration settings, then exit
22110 -q, --quiet do not print progress messages
22111 -d, --debug don't remove temporary files
22112 --recheck update $as_me by reconfiguring in the same conditions
22113 --file=FILE[:TEMPLATE]
22114 instantiate the configuration file FILE
22115 --header=FILE[:TEMPLATE]
22116 instantiate the configuration header FILE
22117
22118 Configuration files:
22119 $config_files
22120
22121 Configuration headers:
22122 $config_headers
22123
22124 Configuration commands:
22125 $config_commands
22126
22127 Report bugs to <bug-autoconf@gnu.org>."
22128
22129 _ACEOF
22130 cat >>$CONFIG_STATUS <<_ACEOF
22131 ac_cs_version="\\
22132 guichan config.status 0.8.1
22133 configured by $0, generated by GNU Autoconf 2.61,
22134 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22135
22136 Copyright (C) 2006 Free Software Foundation, Inc.
22137 This config.status script is free software; the Free Software Foundation
22138 gives unlimited permission to copy, distribute and modify it."
22139
22140 ac_pwd='$ac_pwd'
22141 srcdir='$srcdir'
22142 INSTALL='$INSTALL'
22143 MKDIR_P='$MKDIR_P'
22144 _ACEOF
22145
22146 cat >>$CONFIG_STATUS <<\_ACEOF
22147 # If no file are specified by the user, then we need to provide default
22148 # value. By we need to know if files were specified by the user.
22149 ac_need_defaults=:
22150 while test $# != 0
22151 do
22152 case $1 in
22153 --*=*)
22154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22155 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22156 ac_shift=:
22157 ;;
22158 *)
22159 ac_option=$1
22160 ac_optarg=$2
22161 ac_shift=shift
22162 ;;
22163 esac
22164
22165 case $ac_option in
22166 # Handling of the options.
22167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22168 ac_cs_recheck=: ;;
22169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22170 echo "$ac_cs_version"; exit ;;
22171 --debug | --debu | --deb | --de | --d | -d )
22172 debug=: ;;
22173 --file | --fil | --fi | --f )
22174 $ac_shift
22175 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22176 ac_need_defaults=false;;
22177 --header | --heade | --head | --hea )
22178 $ac_shift
22179 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22180 ac_need_defaults=false;;
22181 --he | --h)
22182 # Conflict between --help and --header
22183 { echo "$as_me: error: ambiguous option: $1
22184 Try \`$0 --help' for more information." >&2
22185 { (exit 1); exit 1; }; };;
22186 --help | --hel | -h )
22187 echo "$ac_cs_usage"; exit ;;
22188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22189 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22190 ac_cs_silent=: ;;
22191
22192 # This is an error.
22193 -*) { echo "$as_me: error: unrecognized option: $1
22194 Try \`$0 --help' for more information." >&2
22195 { (exit 1); exit 1; }; } ;;
22196
22197 *) ac_config_targets="$ac_config_targets $1"
22198 ac_need_defaults=false ;;
22199
22200 esac
22201 shift
22202 done
22203
22204 ac_configure_extra_args=
22205
22206 if $ac_cs_silent; then
22207 exec 6>/dev/null
22208 ac_configure_extra_args="$ac_configure_extra_args --silent"
22209 fi
22210
22211 _ACEOF
22212 cat >>$CONFIG_STATUS <<_ACEOF
22213 if \$ac_cs_recheck; then
22214 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22215 CONFIG_SHELL=$SHELL
22216 export CONFIG_SHELL
22217 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22218 fi
22219
22220 _ACEOF
22221 cat >>$CONFIG_STATUS <<\_ACEOF
22222 exec 5>>config.log
22223 {
22224 echo
22225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22226 ## Running $as_me. ##
22227 _ASBOX
22228 echo "$ac_log"
22229 } >&5
22230
22231 _ACEOF
22232 cat >>$CONFIG_STATUS <<_ACEOF
22233 #
22234 # INIT-COMMANDS
22235 #
22236 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22237
22238 _ACEOF
22239
22240 cat >>$CONFIG_STATUS <<\_ACEOF
22241
22242 # Handling of arguments.
22243 for ac_config_target in $ac_config_targets
22244 do
22245 case $ac_config_target in
22246 "include/config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS include/config.hpp" ;;
22247 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22248 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22249 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22250 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22251 "include/guichan/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/Makefile" ;;
22252 "include/guichan/allegro/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/allegro/Makefile" ;;
22253 "include/guichan/contrib/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/Makefile" ;;
22254 "include/guichan/contrib/allegro/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/allegro/Makefile" ;;
22255 "include/guichan/contrib/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/opengl/Makefile" ;;
22256 "include/guichan/contrib/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/sdl/Makefile" ;;
22257 "include/guichan/contrib/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/contrib/widgets/Makefile" ;;
22258 "include/guichan/hge/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/hge/Makefile" ;;
22259 "include/guichan/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/opengl/Makefile" ;;
22260 "include/guichan/openlayer/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/openlayer/Makefile" ;;
22261 "include/guichan/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/sdl/Makefile" ;;
22262 "include/guichan/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES include/guichan/widgets/Makefile" ;;
22263 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22264 "src/allegro/Makefile") CONFIG_FILES="$CONFIG_FILES src/allegro/Makefile" ;;
22265 "src/contrib/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/Makefile" ;;
22266 "src/contrib/allegro/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/allegro/Makefile" ;;
22267 "src/contrib/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/opengl/Makefile" ;;
22268 "src/contrib/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/sdl/Makefile" ;;
22269 "src/contrib/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES src/contrib/widgets/Makefile" ;;
22270 "src/hge/Makefile") CONFIG_FILES="$CONFIG_FILES src/hge/Makefile" ;;
22271 "src/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES src/opengl/Makefile" ;;
22272 "src/openlayer/Makefile") CONFIG_FILES="$CONFIG_FILES src/openlayer/Makefile" ;;
22273 "src/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/sdl/Makefile" ;;
22274 "src/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES src/widgets/Makefile" ;;
22275
22276 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22278 { (exit 1); exit 1; }; };;
22279 esac
22280 done
22281
22282
22283 # If the user did not use the arguments to specify the items to instantiate,
22284 # then the envvar interface is used. Set only those that are not.
22285 # We use the long form for the default assignment because of an extremely
22286 # bizarre bug on SunOS 4.1.3.
22287 if $ac_need_defaults; then
22288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22290 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22291 fi
22292
22293 # Have a temporary directory for convenience. Make it in the build tree
22294 # simply because there is no reason against having it here, and in addition,
22295 # creating and moving files from /tmp can sometimes cause problems.
22296 # Hook for its removal unless debugging.
22297 # Note that there is a small window in which the directory will not be cleaned:
22298 # after its creation but before its name has been assigned to `$tmp'.
22299 $debug ||
22300 {
22301 tmp=
22302 trap 'exit_status=$?
22303 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22304 ' 0
22305 trap '{ (exit 1); exit 1; }' 1 2 13 15
22306 }
22307 # Create a (secure) tmp directory for tmp files.
22308
22309 {
22310 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22311 test -n "$tmp" && test -d "$tmp"
22312 } ||
22313 {
22314 tmp=./conf$$-$RANDOM
22315 (umask 077 && mkdir "$tmp")
22316 } ||
22317 {
22318 echo "$me: cannot create a temporary directory in ." >&2
22319 { (exit 1); exit 1; }
22320 }
22321
22322 #
22323 # Set up the sed scripts for CONFIG_FILES section.
22324 #
22325
22326 # No need to generate the scripts if there are no CONFIG_FILES.
22327 # This happens for instance when ./config.status config.h
22328 if test -n "$CONFIG_FILES"; then
22329
22330 _ACEOF
22331
22332
22333
22334 ac_delim='%!_!# '
22335 for ac_last_try in false false false false false :; do
22336 cat >conf$$subs.sed <<_ACEOF
22337 SHELL!$SHELL$ac_delim
22338 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22339 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22340 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22341 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22342 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22343 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22344 exec_prefix!$exec_prefix$ac_delim
22345 prefix!$prefix$ac_delim
22346 program_transform_name!$program_transform_name$ac_delim
22347 bindir!$bindir$ac_delim
22348 sbindir!$sbindir$ac_delim
22349 libexecdir!$libexecdir$ac_delim
22350 datarootdir!$datarootdir$ac_delim
22351 datadir!$datadir$ac_delim
22352 sysconfdir!$sysconfdir$ac_delim
22353 sharedstatedir!$sharedstatedir$ac_delim
22354 localstatedir!$localstatedir$ac_delim
22355 includedir!$includedir$ac_delim
22356 oldincludedir!$oldincludedir$ac_delim
22357 docdir!$docdir$ac_delim
22358 infodir!$infodir$ac_delim
22359 htmldir!$htmldir$ac_delim
22360 dvidir!$dvidir$ac_delim
22361 pdfdir!$pdfdir$ac_delim
22362 psdir!$psdir$ac_delim
22363 libdir!$libdir$ac_delim
22364 localedir!$localedir$ac_delim
22365 mandir!$mandir$ac_delim
22366 DEFS!$DEFS$ac_delim
22367 ECHO_C!$ECHO_C$ac_delim
22368 ECHO_N!$ECHO_N$ac_delim
22369 ECHO_T!$ECHO_T$ac_delim
22370 LIBS!$LIBS$ac_delim
22371 build_alias!$build_alias$ac_delim
22372 host_alias!$host_alias$ac_delim
22373 target_alias!$target_alias$ac_delim
22374 build!$build$ac_delim
22375 build_cpu!$build_cpu$ac_delim
22376 build_vendor!$build_vendor$ac_delim
22377 build_os!$build_os$ac_delim
22378 host!$host$ac_delim
22379 host_cpu!$host_cpu$ac_delim
22380 host_vendor!$host_vendor$ac_delim
22381 host_os!$host_os$ac_delim
22382 target!$target$ac_delim
22383 target_cpu!$target_cpu$ac_delim
22384 target_vendor!$target_vendor$ac_delim
22385 target_os!$target_os$ac_delim
22386 GUICHAN_MAJOR_VERSION!$GUICHAN_MAJOR_VERSION$ac_delim
22387 GUICHAN_MINOR_VERSION!$GUICHAN_MINOR_VERSION$ac_delim
22388 GUICHAN_MICRO_VERSION!$GUICHAN_MICRO_VERSION$ac_delim
22389 GUICHAN_VERSION!$GUICHAN_VERSION$ac_delim
22390 GUICHAN_INTERFACE_AGE!$GUICHAN_INTERFACE_AGE$ac_delim
22391 GUICHAN_BINARY_AGE!$GUICHAN_BINARY_AGE$ac_delim
22392 LT_RELEASE!$LT_RELEASE$ac_delim
22393 LT_CURRENT!$LT_CURRENT$ac_delim
22394 LT_REVISION!$LT_REVISION$ac_delim
22395 LT_AGE!$LT_AGE$ac_delim
22396 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22397 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22398 INSTALL_DATA!$INSTALL_DATA$ac_delim
22399 am__isrc!$am__isrc$ac_delim
22400 CYGPATH_W!$CYGPATH_W$ac_delim
22401 PACKAGE!$PACKAGE$ac_delim
22402 VERSION!$VERSION$ac_delim
22403 ACLOCAL!$ACLOCAL$ac_delim
22404 AUTOCONF!$AUTOCONF$ac_delim
22405 AUTOMAKE!$AUTOMAKE$ac_delim
22406 AUTOHEADER!$AUTOHEADER$ac_delim
22407 MAKEINFO!$MAKEINFO$ac_delim
22408 install_sh!$install_sh$ac_delim
22409 STRIP!$STRIP$ac_delim
22410 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22411 mkdir_p!$mkdir_p$ac_delim
22412 AWK!$AWK$ac_delim
22413 SET_MAKE!$SET_MAKE$ac_delim
22414 am__leading_dot!$am__leading_dot$ac_delim
22415 AMTAR!$AMTAR$ac_delim
22416 am__tar!$am__tar$ac_delim
22417 am__untar!$am__untar$ac_delim
22418 CXX!$CXX$ac_delim
22419 CXXFLAGS!$CXXFLAGS$ac_delim
22420 LDFLAGS!$LDFLAGS$ac_delim
22421 CPPFLAGS!$CPPFLAGS$ac_delim
22422 ac_ct_CXX!$ac_ct_CXX$ac_delim
22423 EXEEXT!$EXEEXT$ac_delim
22424 OBJEXT!$OBJEXT$ac_delim
22425 DEPDIR!$DEPDIR$ac_delim
22426 am__include!$am__include$ac_delim
22427 am__quote!$am__quote$ac_delim
22428 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22429 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22430 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22431 CXXDEPMODE!$CXXDEPMODE$ac_delim
22432 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22433 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22434 _ACEOF
22435
22436 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22437 break
22438 elif $ac_last_try; then
22439 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22440 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22441 { (exit 1); exit 1; }; }
22442 else
22443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22444 fi
22445 done
22446
22447 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22448 if test -n "$ac_eof"; then
22449 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22450 ac_eof=`expr $ac_eof + 1`
22451 fi
22452
22453 cat >>$CONFIG_STATUS <<_ACEOF
22454 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22456 _ACEOF
22457 sed '
22458 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22459 s/^/s,@/; s/!/@,|#_!!_#|/
22460 :n
22461 t n
22462 s/'"$ac_delim"'$/,g/; t
22463 s/$/\\/; p
22464 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22465 ' >>$CONFIG_STATUS <conf$$subs.sed
22466 rm -f conf$$subs.sed
22467 cat >>$CONFIG_STATUS <<_ACEOF
22468 CEOF$ac_eof
22469 _ACEOF
22470
22471
22472 ac_delim='%!_!# '
22473 for ac_last_try in false false false false false :; do
22474 cat >conf$$subs.sed <<_ACEOF
22475 CC!$CC$ac_delim
22476 CFLAGS!$CFLAGS$ac_delim
22477 ac_ct_CC!$ac_ct_CC$ac_delim
22478 CCDEPMODE!$CCDEPMODE$ac_delim
22479 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22480 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22481 GREP!$GREP$ac_delim
22482 EGREP!$EGREP$ac_delim
22483 LN_S!$LN_S$ac_delim
22484 ECHO!$ECHO$ac_delim
22485 AR!$AR$ac_delim
22486 RANLIB!$RANLIB$ac_delim
22487 DLLTOOL!$DLLTOOL$ac_delim
22488 AS!$AS$ac_delim
22489 OBJDUMP!$OBJDUMP$ac_delim
22490 CPP!$CPP$ac_delim
22491 CXXCPP!$CXXCPP$ac_delim
22492 F77!$F77$ac_delim
22493 FFLAGS!$FFLAGS$ac_delim
22494 ac_ct_F77!$ac_ct_F77$ac_delim
22495 LIBTOOL!$LIBTOOL$ac_delim
22496 HAVE_ALLEGRO!$HAVE_ALLEGRO$ac_delim
22497 HAVE_SDL!$HAVE_SDL$ac_delim
22498 GUICHAN_EXTRADIRS!$GUICHAN_EXTRADIRS$ac_delim
22499 LIBOBJS!$LIBOBJS$ac_delim
22500 LTLIBOBJS!$LTLIBOBJS$ac_delim
22501 _ACEOF
22502
22503 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
22504 break
22505 elif $ac_last_try; then
22506 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22507 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22508 { (exit 1); exit 1; }; }
22509 else
22510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22511 fi
22512 done
22513
22514 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22515 if test -n "$ac_eof"; then
22516 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22517 ac_eof=`expr $ac_eof + 1`
22518 fi
22519
22520 cat >>$CONFIG_STATUS <<_ACEOF
22521 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22523 _ACEOF
22524 sed '
22525 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22526 s/^/s,@/; s/!/@,|#_!!_#|/
22527 :n
22528 t n
22529 s/'"$ac_delim"'$/,g/; t
22530 s/$/\\/; p
22531 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22532 ' >>$CONFIG_STATUS <conf$$subs.sed
22533 rm -f conf$$subs.sed
22534 cat >>$CONFIG_STATUS <<_ACEOF
22535 :end
22536 s/|#_!!_#|//g
22537 CEOF$ac_eof
22538 _ACEOF
22539
22540
22541 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22542 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22543 # trailing colons and then remove the whole line if VPATH becomes empty
22544 # (actually we leave an empty line to preserve line numbers).
22545 if test "x$srcdir" = x.; then
22546 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22547 s/:*\$(srcdir):*/:/
22548 s/:*\${srcdir}:*/:/
22549 s/:*@srcdir@:*/:/
22550 s/^\([^=]*=[ ]*\):*/\1/
22551 s/:*$//
22552 s/^[^=]*=[ ]*$//
22553 }'
22554 fi
22555
22556 cat >>$CONFIG_STATUS <<\_ACEOF
22557 fi # test -n "$CONFIG_FILES"
22558
22559
22560 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22561 do
22562 case $ac_tag in
22563 :[FHLC]) ac_mode=$ac_tag; continue;;
22564 esac
22565 case $ac_mode$ac_tag in
22566 :[FHL]*:*);;
22567 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22568 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22569 { (exit 1); exit 1; }; };;
22570 :[FH]-) ac_tag=-:-;;
22571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22572 esac
22573 ac_save_IFS=$IFS
22574 IFS=:
22575 set x $ac_tag
22576 IFS=$ac_save_IFS
22577 shift
22578 ac_file=$1
22579 shift
22580
22581 case $ac_mode in
22582 :L) ac_source=$1;;
22583 :[FH])
22584 ac_file_inputs=
22585 for ac_f
22586 do
22587 case $ac_f in
22588 -) ac_f="$tmp/stdin";;
22589 *) # Look for the file first in the build tree, then in the source tree
22590 # (if the path is not absolute). The absolute path cannot be DOS-style,
22591 # because $ac_f cannot contain `:'.
22592 test -f "$ac_f" ||
22593 case $ac_f in
22594 [\\/$]*) false;;
22595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22596 esac ||
22597 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22598 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22599 { (exit 1); exit 1; }; };;
22600 esac
22601 ac_file_inputs="$ac_file_inputs $ac_f"
22602 done
22603
22604 # Let's still pretend it is `configure' which instantiates (i.e., don't
22605 # use $as_me), people would be surprised to read:
22606 # /* config.h. Generated by config.status. */
22607 configure_input="Generated from "`IFS=:
22608 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22609 if test x"$ac_file" != x-; then
22610 configure_input="$ac_file. $configure_input"
22611 { echo "$as_me:$LINENO: creating $ac_file" >&5
22612 echo "$as_me: creating $ac_file" >&6;}
22613 fi
22614
22615 case $ac_tag in
22616 *:-:* | *:-) cat >"$tmp/stdin";;
22617 esac
22618 ;;
22619 esac
22620
22621 ac_dir=`$as_dirname -- "$ac_file" ||
22622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22623 X"$ac_file" : 'X\(//\)[^/]' \| \
22624 X"$ac_file" : 'X\(//\)$' \| \
22625 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22626 echo X"$ac_file" |
22627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22628 s//\1/
22629 q
22630 }
22631 /^X\(\/\/\)[^/].*/{
22632 s//\1/
22633 q
22634 }
22635 /^X\(\/\/\)$/{
22636 s//\1/
22637 q
22638 }
22639 /^X\(\/\).*/{
22640 s//\1/
22641 q
22642 }
22643 s/.*/./; q'`
22644 { as_dir="$ac_dir"
22645 case $as_dir in #(
22646 -*) as_dir=./$as_dir;;
22647 esac
22648 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22649 as_dirs=
22650 while :; do
22651 case $as_dir in #(
22652 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22653 *) as_qdir=$as_dir;;
22654 esac
22655 as_dirs="'$as_qdir' $as_dirs"
22656 as_dir=`$as_dirname -- "$as_dir" ||
22657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22658 X"$as_dir" : 'X\(//\)[^/]' \| \
22659 X"$as_dir" : 'X\(//\)$' \| \
22660 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22661 echo X"$as_dir" |
22662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22663 s//\1/
22664 q
22665 }
22666 /^X\(\/\/\)[^/].*/{
22667 s//\1/
22668 q
22669 }
22670 /^X\(\/\/\)$/{
22671 s//\1/
22672 q
22673 }
22674 /^X\(\/\).*/{
22675 s//\1/
22676 q
22677 }
22678 s/.*/./; q'`
22679 test -d "$as_dir" && break
22680 done
22681 test -z "$as_dirs" || eval "mkdir $as_dirs"
22682 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22683 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22684 { (exit 1); exit 1; }; }; }
22685 ac_builddir=.
22686
22687 case "$ac_dir" in
22688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22689 *)
22690 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22691 # A ".." for each directory in $ac_dir_suffix.
22692 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22693 case $ac_top_builddir_sub in
22694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22696 esac ;;
22697 esac
22698 ac_abs_top_builddir=$ac_pwd
22699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22700 # for backward compatibility:
22701 ac_top_builddir=$ac_top_build_prefix
22702
22703 case $srcdir in
22704 .) # We are building in place.
22705 ac_srcdir=.
22706 ac_top_srcdir=$ac_top_builddir_sub
22707 ac_abs_top_srcdir=$ac_pwd ;;
22708 [\\/]* | ?:[\\/]* ) # Absolute name.
22709 ac_srcdir=$srcdir$ac_dir_suffix;
22710 ac_top_srcdir=$srcdir
22711 ac_abs_top_srcdir=$srcdir ;;
22712 *) # Relative name.
22713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22714 ac_top_srcdir=$ac_top_build_prefix$srcdir
22715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22716 esac
22717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22718
22719
22720 case $ac_mode in
22721 :F)
22722 #
22723 # CONFIG_FILE
22724 #
22725
22726 case $INSTALL in
22727 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22728 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22729 esac
22730 ac_MKDIR_P=$MKDIR_P
22731 case $MKDIR_P in
22732 [\\/$]* | ?:[\\/]* ) ;;
22733 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22734 esac
22735 _ACEOF
22736
22737 cat >>$CONFIG_STATUS <<\_ACEOF
22738 # If the template does not know about datarootdir, expand it.
22739 # FIXME: This hack should be removed a few years after 2.60.
22740 ac_datarootdir_hack=; ac_datarootdir_seen=
22741
22742 case `sed -n '/datarootdir/ {
22743 p
22744 q
22745 }
22746 /@datadir@/p
22747 /@docdir@/p
22748 /@infodir@/p
22749 /@localedir@/p
22750 /@mandir@/p
22751 ' $ac_file_inputs` in
22752 *datarootdir*) ac_datarootdir_seen=yes;;
22753 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22754 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22755 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22756 _ACEOF
22757 cat >>$CONFIG_STATUS <<_ACEOF
22758 ac_datarootdir_hack='
22759 s&@datadir@&$datadir&g
22760 s&@docdir@&$docdir&g
22761 s&@infodir@&$infodir&g
22762 s&@localedir@&$localedir&g
22763 s&@mandir@&$mandir&g
22764 s&\\\${datarootdir}&$datarootdir&g' ;;
22765 esac
22766 _ACEOF
22767
22768 # Neutralize VPATH when `$srcdir' = `.'.
22769 # Shell code in configure.ac might set extrasub.
22770 # FIXME: do we really want to maintain this feature?
22771 cat >>$CONFIG_STATUS <<_ACEOF
22772 sed "$ac_vpsub
22773 $extrasub
22774 _ACEOF
22775 cat >>$CONFIG_STATUS <<\_ACEOF
22776 :t
22777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22778 s&@configure_input@&$configure_input&;t t
22779 s&@top_builddir@&$ac_top_builddir_sub&;t t
22780 s&@srcdir@&$ac_srcdir&;t t
22781 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22782 s&@top_srcdir@&$ac_top_srcdir&;t t
22783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22784 s&@builddir@&$ac_builddir&;t t
22785 s&@abs_builddir@&$ac_abs_builddir&;t t
22786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22787 s&@INSTALL@&$ac_INSTALL&;t t
22788 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22789 $ac_datarootdir_hack
22790 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22791
22792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22793 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22795 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22796 which seems to be undefined. Please make sure it is defined." >&5
22797 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22798 which seems to be undefined. Please make sure it is defined." >&2;}
22799
22800 rm -f "$tmp/stdin"
22801 case $ac_file in
22802 -) cat "$tmp/out"; rm -f "$tmp/out";;
22803 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22804 esac
22805 ;;
22806 :H)
22807 #
22808 # CONFIG_HEADER
22809 #
22810 _ACEOF
22811
22812 # Transform confdefs.h into a sed script `conftest.defines', that
22813 # substitutes the proper values into config.h.in to produce config.h.
22814 rm -f conftest.defines conftest.tail
22815 # First, append a space to every undef/define line, to ease matching.
22816 echo 's/$/ /' >conftest.defines
22817 # Then, protect against being on the right side of a sed subst, or in
22818 # an unquoted here document, in config.status. If some macros were
22819 # called several times there might be several #defines for the same
22820 # symbol, which is useless. But do not sort them, since the last
22821 # AC_DEFINE must be honored.
22822 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22823 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22824 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22825 # PARAMS is the parameter list in the macro definition--in most cases, it's
22826 # just an empty string.
22827 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22828 ac_dB='\\)[ (].*,\\1define\\2'
22829 ac_dC=' '
22830 ac_dD=' ,'
22831
22832 uniq confdefs.h |
22833 sed -n '
22834 t rset
22835 :rset
22836 s/^[ ]*#[ ]*define[ ][ ]*//
22837 t ok
22838 d
22839 :ok
22840 s/[\\&,]/\\&/g
22841 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22842 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22843 ' >>conftest.defines
22844
22845 # Remove the space that was appended to ease matching.
22846 # Then replace #undef with comments. This is necessary, for
22847 # example, in the case of _POSIX_SOURCE, which is predefined and required
22848 # on some systems where configure will not decide to define it.
22849 # (The regexp can be short, since the line contains either #define or #undef.)
22850 echo 's/ $//
22851 s,^[ #]*u.*,/* & */,' >>conftest.defines
22852
22853 # Break up conftest.defines:
22854 ac_max_sed_lines=50
22855
22856 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22857 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22858 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22859 # et cetera.
22860 ac_in='$ac_file_inputs'
22861 ac_out='"$tmp/out1"'
22862 ac_nxt='"$tmp/out2"'
22863
22864 while :
22865 do
22866 # Write a here document:
22867 cat >>$CONFIG_STATUS <<_ACEOF
22868 # First, check the format of the line:
22869 cat >"\$tmp/defines.sed" <<\\CEOF
22870 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22871 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22872 b
22873 :def
22874 _ACEOF
22875 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22876 echo 'CEOF
22877 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22878 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22879 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22880 grep . conftest.tail >/dev/null || break
22881 rm -f conftest.defines
22882 mv conftest.tail conftest.defines
22883 done
22884 rm -f conftest.defines conftest.tail
22885
22886 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22887 cat >>$CONFIG_STATUS <<\_ACEOF
22888 if test x"$ac_file" != x-; then
22889 echo "/* $configure_input */" >"$tmp/config.h"
22890 cat "$ac_result" >>"$tmp/config.h"
22891 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22892 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22893 echo "$as_me: $ac_file is unchanged" >&6;}
22894 else
22895 rm -f $ac_file
22896 mv "$tmp/config.h" $ac_file
22897 fi
22898 else
22899 echo "/* $configure_input */"
22900 cat "$ac_result"
22901 fi
22902 rm -f "$tmp/out12"
22903 # Compute $ac_file's index in $config_headers.
22904 _am_stamp_count=1
22905 for _am_header in $config_headers :; do
22906 case $_am_header in
22907 $ac_file | $ac_file:* )
22908 break ;;
22909 * )
22910 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22911 esac
22912 done
22913 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22914 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22915 X$ac_file : 'X\(//\)[^/]' \| \
22916 X$ac_file : 'X\(//\)$' \| \
22917 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22918 echo X$ac_file |
22919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22920 s//\1/
22921 q
22922 }
22923 /^X\(\/\/\)[^/].*/{
22924 s//\1/
22925 q
22926 }
22927 /^X\(\/\/\)$/{
22928 s//\1/
22929 q
22930 }
22931 /^X\(\/\).*/{
22932 s//\1/
22933 q
22934 }
22935 s/.*/./; q'`/stamp-h$_am_stamp_count
22936 ;;
22937
22938 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22939 echo "$as_me: executing $ac_file commands" >&6;}
22940 ;;
22941 esac
22942
22943
22944 case $ac_file$ac_mode in
22945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22946 # Strip MF so we end up with the name of the file.
22947 mf=`echo "$mf" | sed -e 's/:.*$//'`
22948 # Check whether this is an Automake generated Makefile or not.
22949 # We used to match only the files named `Makefile.in', but
22950 # some people rename them; so instead we look at the file content.
22951 # Grep'ing the first line is not enough: some people post-process
22952 # each Makefile.in and add a new line on top of each file to say so.
22953 # Grep'ing the whole file is not good either: AIX grep has a line
22954 # limit of 2048, but all sed's we know have understand at least 4000.
22955 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22956 dirpart=`$as_dirname -- "$mf" ||
22957 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22958 X"$mf" : 'X\(//\)[^/]' \| \
22959 X"$mf" : 'X\(//\)$' \| \
22960 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22961 echo X"$mf" |
22962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22963 s//\1/
22964 q
22965 }
22966 /^X\(\/\/\)[^/].*/{
22967 s//\1/
22968 q
22969 }
22970 /^X\(\/\/\)$/{
22971 s//\1/
22972 q
22973 }
22974 /^X\(\/\).*/{
22975 s//\1/
22976 q
22977 }
22978 s/.*/./; q'`
22979 else
22980 continue
22981 fi
22982 # Extract the definition of DEPDIR, am__include, and am__quote
22983 # from the Makefile without running `make'.
22984 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22985 test -z "$DEPDIR" && continue
22986 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22987 test -z "am__include" && continue
22988 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22989 # When using ansi2knr, U may be empty or an underscore; expand it
22990 U=`sed -n 's/^U = //p' < "$mf"`
22991 # Find all dependency output files, they are included files with
22992 # $(DEPDIR) in their names. We invoke sed twice because it is the
22993 # simplest approach to changing $(DEPDIR) to its actual value in the
22994 # expansion.
22995 for file in `sed -n "
22996 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22997 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22998 # Make sure the directory exists.
22999 test -f "$dirpart/$file" && continue
23000 fdir=`$as_dirname -- "$file" ||
23001 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23002 X"$file" : 'X\(//\)[^/]' \| \
23003 X"$file" : 'X\(//\)$' \| \
23004 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23005 echo X"$file" |
23006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23007 s//\1/
23008 q
23009 }
23010 /^X\(\/\/\)[^/].*/{
23011 s//\1/
23012 q
23013 }
23014 /^X\(\/\/\)$/{
23015 s//\1/
23016 q
23017 }
23018 /^X\(\/\).*/{
23019 s//\1/
23020 q
23021 }
23022 s/.*/./; q'`
23023 { as_dir=$dirpart/$fdir
23024 case $as_dir in #(
23025 -*) as_dir=./$as_dir;;
23026 esac
23027 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23028 as_dirs=
23029 while :; do
23030 case $as_dir in #(
23031 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23032 *) as_qdir=$as_dir;;
23033 esac
23034 as_dirs="'$as_qdir' $as_dirs"
23035 as_dir=`$as_dirname -- "$as_dir" ||
23036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23037 X"$as_dir" : 'X\(//\)[^/]' \| \
23038 X"$as_dir" : 'X\(//\)$' \| \
23039 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23040 echo X"$as_dir" |
23041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23042 s//\1/
23043 q
23044 }
23045 /^X\(\/\/\)[^/].*/{
23046 s//\1/
23047 q
23048 }
23049 /^X\(\/\/\)$/{
23050 s//\1/
23051 q
23052 }
23053 /^X\(\/\).*/{
23054 s//\1/
23055 q
23056 }
23057 s/.*/./; q'`
23058 test -d "$as_dir" && break
23059 done
23060 test -z "$as_dirs" || eval "mkdir $as_dirs"
23061 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23062 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23063 { (exit 1); exit 1; }; }; }
23064 # echo "creating $dirpart/$file"
23065 echo '# dummy' > "$dirpart/$file"
23066 done
23067 done
23068 ;;
23069
23070 esac
23071 done # for ac_tag
23072
23073
23074 { (exit 0); exit 0; }
23075 _ACEOF
23076 chmod +x $CONFIG_STATUS
23077 ac_clean_files=$ac_clean_files_save
23078
23079
23080 # configure is writing to config.log, and then calls config.status.
23081 # config.status does its own redirection, appending to config.log.
23082 # Unfortunately, on DOS this fails, as config.log is still kept open
23083 # by configure, so config.status won't be able to write to it; its
23084 # output is simply discarded. So we exec the FD to /dev/null,
23085 # effectively closing config.log, so it can be properly (re)opened and
23086 # appended to by config.status. When coming back to configure, we
23087 # need to make the FD available again.
23088 if test "$no_create" != yes; then
23089 ac_cs_success=:
23090 ac_config_status_args=
23091 test "$silent" = yes &&
23092 ac_config_status_args="$ac_config_status_args --quiet"
23093 exec 5>/dev/null
23094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23095 exec 5>>config.log
23096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23097 # would make configure fail if this is the last instruction.
23098 $ac_cs_success || { (exit 1); exit 1; }
23099 fi
23100
23101 echo ""
23102 echo "IMPORTANT! You are about install a BETA version of Guichan"
23103 echo "which most likely will lose binary compatibility with the"
23104 echo "future stable release. This release should only be used"
23105 echo "for testing."
23106 echo ""
23107 echo "-------------------------------"
23108 echo "Guichan ready for compilation!"
23109 echo "-------------------------------"
23110 echo "* Allegro = "$ALLEGRO
23111 echo "* HGE = no (Windows specific and cannot be built)"
23112 echo "* OpenGL = "$OPENGL
23113 echo "* OpenLayer = no (Requires static build and cannot be built)"
23114 echo "* SDL = "$SDL
23115 echo "* SDL Image = "$SDLIMAGE
23116 echo "--------------------------------"