Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for MHASH 0.9.9.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 [email protected] 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='MHASH'
730 PACKAGE_TARNAME='mhash'
731 PACKAGE_VERSION='0.9.9'
732 PACKAGE_STRING='MHASH 0.9.9'
733 PACKAGE_BUGREPORT='[email protected]'
734
735 ac_unique_file="lib/mhash.c"
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 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 DEPDIR
850 am__include
851 am__quote
852 AMDEP_TRUE
853 AMDEP_FALSE
854 AMDEPBACKSLASH
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 CPP
859 GREP
860 EGREP
861 CCAS
862 CCASFLAGS
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DLLTOOL
874 AS
875 OBJDUMP
876 CXXCPP
877 F77
878 FFLAGS
879 ac_ct_F77
880 LIBTOOL
881 LIBOBJS
882 MAINTAINER_MODE_TRUE
883 MAINTAINER_MODE_FALSE
884 MAINT
885 LTLIBOBJS'
886 ac_subst_files=''
887 ac_precious_vars='build_alias
888 host_alias
889 target_alias
890 CC
891 CFLAGS
892 LDFLAGS
893 LIBS
894 CPPFLAGS
895 CPP
896 CCAS
897 CCASFLAGS
898 CXX
899 CXXFLAGS
900 CCC
901 CXXCPP
902 F77
903 FFLAGS'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
925
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
951
952 ac_prev=
953 ac_dashdash=
954 for ac_option
955 do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *) ac_optarg=yes ;;
966 esac
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
998
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
1006 -disable-* | --disable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013 eval enable_$ac_feature=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032 eval enable_$ac_feature=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) { echo "$as_me: error: unrecognized option: $ac_option
1259 Try \`$0 --help' for more information." >&2
1260 { (exit 1); exit 1; }; }
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1268 { (exit 1); exit 1; }; }
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 ;;
1279
1280 esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 { echo "$as_me: error: missing argument to $ac_option" >&2
1286 { (exit 1); exit 1; }; }
1287 fi
1288
1289 # Be sure to have absolute directory names.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1294 do
1295 eval ac_val=\$$ac_var
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1302 done
1303
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$0" ||
1343 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$0" : 'X\(//\)[^/]' \| \
1345 X"$0" : 'X\(//\)$' \| \
1346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347 echo X"$0" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures MHASH 0.9.9 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/mhash]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1460
1461 cat <<\_ACEOF
1462
1463 Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468 System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 --target=TARGET configure for building compilers for TARGET [HOST]
1472 _ACEOF
1473 fi
1474
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive ) echo "Configuration of MHASH 0.9.9:";;
1478 esac
1479 cat <<\_ACEOF
1480
1481 Optional Features:
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --disable-dependency-tracking speeds up one-time build
1485 --enable-dependency-tracking do not reject slow dependency extractors
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-maintainer-mode enable make rules and dependencies not useful
1492 (and sometimes confusing) to the casual installer
1493 --disable-md5 disable the MD5 algorithm
1494 --disable-sha1 disable the SHA1 algorithm
1495 --disable-md4 disable the MD4 algorithm
1496 --disable-md2 disable the MD2 algorithm
1497 --disable-tiger disable the TIGER algorithm
1498 --disable-haval disable the HAVAL algorithm
1499 --disable-crc32 disable the CRC32 algorithm
1500 --disable-adler32 disable the ADLER32 algorithm
1501 --disable-ripemd disable the RIPEMD128/160/256/320 algorithms
1502 --disable-gost disable the GOST algorithm
1503 --disable-sha256-sha224 disable the SHA256 and SHA224 algorithms
1504 --disable-sha512-sha384 disable the SHA512 and SHA384 algorithms
1505 --disable-snefru disable the SNEFRU algorithm
1506 --disable-whirlpool disable the WHIRLPOOL algorithm
1507
1508 Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-pic try to use only PIC/non-PIC objects [default=use
1513 both]
1514 --with-tags[=TAGS] include additional configurations [automatic]
1515 --with-dmalloc use dmalloc, as in
1516 http://www.dmalloc.com/dmalloc.tar.gz
1517 --with-CC choose compiler
1518 --with-CFLAGS set C compiler flags
1519 --with-CPPFLAGS set C preprocessor flags
1520 --with-LDFLAGS set linker flags
1521
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 CPP C preprocessor
1531 CCAS assembler compiler command (defaults to CC)
1532 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 CXXCPP C++ preprocessor
1536 F77 Fortran 77 compiler command
1537 FFLAGS Fortran 77 compiler flags
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <[email protected]>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" || continue
1551 ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570 .) # We are building in place.
1571 ac_srcdir=.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1597 done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602 cat <<\_ACEOF
1603 MHASH configure 0.9.9
1604 generated by GNU Autoconf 2.61
1605
1606 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611 exit
1612 fi
1613 cat >config.log <<_ACEOF
1614 This file contains any messages produced by compilers while
1615 running configure, to aid debugging if configure makes a mistake.
1616
1617 It was created by MHASH $as_me 0.9.9, which was
1618 generated by GNU Autoconf 2.61. Invocation command line was
1619
1620 $ $0 $@
1621
1622 _ACEOF
1623 exec 5>>config.log
1624 {
1625 cat <<_ASUNAME
1626 ## --------- ##
1627 ## Platform. ##
1628 ## --------- ##
1629
1630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635
1636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1638
1639 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1640 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1643 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1644 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1645 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1646
1647 _ASUNAME
1648
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 echo "PATH: $as_dir"
1655 done
1656 IFS=$as_save_IFS
1657
1658 } >&5
1659
1660 cat >&5 <<_ACEOF
1661
1662
1663 ## ----------- ##
1664 ## Core tests. ##
1665 ## ----------- ##
1666
1667 _ACEOF
1668
1669
1670 # Keep a trace of the command line.
1671 # Strip out --no-create and --no-recursion so they do not pile up.
1672 # Strip out --silent because we don't want to record it for future runs.
1673 # Also quote any args containing shell meta-characters.
1674 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_configure_args=
1676 ac_configure_args0=
1677 ac_configure_args1=
1678 ac_must_keep_next=false
1679 for ac_pass in 1 2
1680 do
1681 for ac_arg
1682 do
1683 case $ac_arg in
1684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686 | -silent | --silent | --silen | --sile | --sil)
1687 continue ;;
1688 *\'*)
1689 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1690 esac
1691 case $ac_pass in
1692 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693 2)
1694 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695 if test $ac_must_keep_next = true; then
1696 ac_must_keep_next=false # Got value, back to normal.
1697 else
1698 case $ac_arg in
1699 *=* | --config-cache | -C | -disable-* | --disable-* \
1700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702 | -with-* | --with-* | -without-* | --without-* | --x)
1703 case "$ac_configure_args0 " in
1704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1705 esac
1706 ;;
1707 -* ) ac_must_keep_next=true ;;
1708 esac
1709 fi
1710 ac_configure_args="$ac_configure_args '$ac_arg'"
1711 ;;
1712 esac
1713 done
1714 done
1715 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717
1718 # When interrupted or exit'd, cleanup temporary files, and complete
1719 # config.log. We remove comments because anyway the quotes in there
1720 # would cause problems or look ugly.
1721 # WARNING: Use '\'' to represent an apostrophe within the trap.
1722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723 trap 'exit_status=$?
1724 # Save into config.log some information that might help in debugging.
1725 {
1726 echo
1727
1728 cat <<\_ASBOX
1729 ## ---------------- ##
1730 ## Cache variables. ##
1731 ## ---------------- ##
1732 _ASBOX
1733 echo
1734 # The following way of writing the cache mishandles newlines in values,
1735 (
1736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737 eval ac_val=\$$ac_var
1738 case $ac_val in #(
1739 *${as_nl}*)
1740 case $ac_var in #(
1741 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1743 esac
1744 case $ac_var in #(
1745 _ | IFS | as_nl) ;; #(
1746 *) $as_unset $ac_var ;;
1747 esac ;;
1748 esac
1749 done
1750 (set) 2>&1 |
1751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752 *${as_nl}ac_space=\ *)
1753 sed -n \
1754 "s/'\''/'\''\\\\'\'''\''/g;
1755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756 ;; #(
1757 *)
1758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759 ;;
1760 esac |
1761 sort
1762 )
1763 echo
1764
1765 cat <<\_ASBOX
1766 ## ----------------- ##
1767 ## Output variables. ##
1768 ## ----------------- ##
1769 _ASBOX
1770 echo
1771 for ac_var in $ac_subst_vars
1772 do
1773 eval ac_val=\$$ac_var
1774 case $ac_val in
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 esac
1777 echo "$ac_var='\''$ac_val'\''"
1778 done | sort
1779 echo
1780
1781 if test -n "$ac_subst_files"; then
1782 cat <<\_ASBOX
1783 ## ------------------- ##
1784 ## File substitutions. ##
1785 ## ------------------- ##
1786 _ASBOX
1787 echo
1788 for ac_var in $ac_subst_files
1789 do
1790 eval ac_val=\$$ac_var
1791 case $ac_val in
1792 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793 esac
1794 echo "$ac_var='\''$ac_val'\''"
1795 done | sort
1796 echo
1797 fi
1798
1799 if test -s confdefs.h; then
1800 cat <<\_ASBOX
1801 ## ----------- ##
1802 ## confdefs.h. ##
1803 ## ----------- ##
1804 _ASBOX
1805 echo
1806 cat confdefs.h
1807 echo
1808 fi
1809 test "$ac_signal" != 0 &&
1810 echo "$as_me: caught signal $ac_signal"
1811 echo "$as_me: exit $exit_status"
1812 } >&5
1813 rm -f core *.core core.conftest.* &&
1814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815 exit $exit_status
1816 ' 0
1817 for ac_signal in 1 2 13 15; do
1818 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 done
1820 ac_signal=0
1821
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1824
1825 # Predefined preprocessor variables.
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_NAME "$PACKAGE_NAME"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_STRING "$PACKAGE_STRING"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 _ACEOF
1850
1851
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855 set x "$CONFIG_SITE"
1856 elif test "x$prefix" != xNONE; then
1857 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 else
1859 set x "$ac_default_prefix/share/config.site" \
1860 "$ac_default_prefix/etc/config.site"
1861 fi
1862 shift
1863 for ac_site_file
1864 do
1865 if test -r "$ac_site_file"; then
1866 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 echo "$as_me: loading site script $ac_site_file" >&6;}
1868 sed 's/^/| /' "$ac_site_file" >&5
1869 . "$ac_site_file"
1870 fi
1871 done
1872
1873 if test -r "$cache_file"; then
1874 # Some versions of bash will fail to source /dev/null (special
1875 # files actually), so we avoid doing that.
1876 if test -f "$cache_file"; then
1877 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 echo "$as_me: loading cache $cache_file" >&6;}
1879 case $cache_file in
1880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881 *) . "./$cache_file";;
1882 esac
1883 fi
1884 else
1885 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 echo "$as_me: creating cache $cache_file" >&6;}
1887 >$cache_file
1888 fi
1889
1890 # Check that the precious variables saved in the cache have kept the same
1891 # value.
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895 eval ac_new_set=\$ac_env_${ac_var}_set
1896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897 eval ac_new_val=\$ac_env_${ac_var}_value
1898 case $ac_old_set,$ac_new_set in
1899 set,)
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1903 ,set)
1904 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906 ac_cache_corrupted=: ;;
1907 ,);;
1908 *)
1909 if test "x$ac_old_val" != "x$ac_new_val"; then
1910 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1913 echo "$as_me: former value: $ac_old_val" >&2;}
1914 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1915 echo "$as_me: current value: $ac_new_val" >&2;}
1916 ac_cache_corrupted=:
1917 fi;;
1918 esac
1919 # Pass precious variables to config.status.
1920 if test "$ac_new_set" = set; then
1921 case $ac_new_val in
1922 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 *) ac_arg=$ac_var=$ac_new_val ;;
1924 esac
1925 case " $ac_configure_args " in
1926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1927 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928 esac
1929 fi
1930 done
1931 if $ac_cache_corrupted; then
1932 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936 { (exit 1); exit 1; }; }
1937 fi
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970 ac_aux_dir=
1971 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1972 if test -f "$ac_dir/install-sh"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install-sh -c"
1975 break
1976 elif test -f "$ac_dir/install.sh"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install.sh -c"
1979 break
1980 elif test -f "$ac_dir/shtool"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/shtool install -c"
1983 break
1984 fi
1985 done
1986 if test -z "$ac_aux_dir"; then
1987 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1988 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1989 { (exit 1); exit 1; }; }
1990 fi
1991
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999
2000
2001 # Make sure we can run config.sub.
2002 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2003 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2004 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2005 { (exit 1); exit 1; }; }
2006
2007 { echo "$as_me:$LINENO: checking build system type" >&5
2008 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2009 if test "${ac_cv_build+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 ac_build_alias=$build_alias
2013 test "x$ac_build_alias" = x &&
2014 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2015 test "x$ac_build_alias" = x &&
2016 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2017 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2018 { (exit 1); exit 1; }; }
2019 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2020 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2021 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2022 { (exit 1); exit 1; }; }
2023
2024 fi
2025 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2026 echo "${ECHO_T}$ac_cv_build" >&6; }
2027 case $ac_cv_build in
2028 *-*-*) ;;
2029 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2030 echo "$as_me: error: invalid value of canonical build" >&2;}
2031 { (exit 1); exit 1; }; };;
2032 esac
2033 build=$ac_cv_build
2034 ac_save_IFS=$IFS; IFS='-'
2035 set x $ac_cv_build
2036 shift
2037 build_cpu=$1
2038 build_vendor=$2
2039 shift; shift
2040 # Remember, the first character of IFS is used to create $*,
2041 # except with old shells:
2042 build_os=$*
2043 IFS=$ac_save_IFS
2044 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2045
2046
2047 { echo "$as_me:$LINENO: checking host system type" >&5
2048 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2049 if test "${ac_cv_host+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 if test "x$host_alias" = x; then
2053 ac_cv_host=$ac_cv_build
2054 else
2055 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2056 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2057 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2058 { (exit 1); exit 1; }; }
2059 fi
2060
2061 fi
2062 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2063 echo "${ECHO_T}$ac_cv_host" >&6; }
2064 case $ac_cv_host in
2065 *-*-*) ;;
2066 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2067 echo "$as_me: error: invalid value of canonical host" >&2;}
2068 { (exit 1); exit 1; }; };;
2069 esac
2070 host=$ac_cv_host
2071 ac_save_IFS=$IFS; IFS='-'
2072 set x $ac_cv_host
2073 shift
2074 host_cpu=$1
2075 host_vendor=$2
2076 shift; shift
2077 # Remember, the first character of IFS is used to create $*,
2078 # except with old shells:
2079 host_os=$*
2080 IFS=$ac_save_IFS
2081 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2082
2083
2084 { echo "$as_me:$LINENO: checking target system type" >&5
2085 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2086 if test "${ac_cv_target+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089 if test "x$target_alias" = x; then
2090 ac_cv_target=$ac_cv_host
2091 else
2092 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2093 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2094 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 fi
2099 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2100 echo "${ECHO_T}$ac_cv_target" >&6; }
2101 case $ac_cv_target in
2102 *-*-*) ;;
2103 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2104 echo "$as_me: error: invalid value of canonical target" >&2;}
2105 { (exit 1); exit 1; }; };;
2106 esac
2107 target=$ac_cv_target
2108 ac_save_IFS=$IFS; IFS='-'
2109 set x $ac_cv_target
2110 shift
2111 target_cpu=$1
2112 target_vendor=$2
2113 shift; shift
2114 # Remember, the first character of IFS is used to create $*,
2115 # except with old shells:
2116 target_os=$*
2117 IFS=$ac_save_IFS
2118 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2119
2120
2121 # The aliases save the names the user supplied, while $host etc.
2122 # will get canonicalized.
2123 test -n "$target_alias" &&
2124 test "$program_prefix$program_suffix$program_transform_name" = \
2125 NONENONEs,x,x, &&
2126 program_prefix=${target_alias}-
2127
2128 am__api_version="1.9"
2129 # Find a good install program. We prefer a C program (faster),
2130 # so one script is as good as another. But avoid the broken or
2131 # incompatible versions:
2132 # SysV /etc/install, /usr/sbin/install
2133 # SunOS /usr/etc/install
2134 # IRIX /sbin/install
2135 # AIX /bin/install
2136 # AmigaOS /C/install, which installs bootblocks on floppy discs
2137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2140 # OS/2's system install, which has a completely different semantic
2141 # ./install, which can be erroneously created by make from ./install.sh.
2142 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2143 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2144 if test -z "$INSTALL"; then
2145 if test "${ac_cv_path_install+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 # Account for people who put trailing slashes in PATH elements.
2154 case $as_dir/ in
2155 ./ | .// | /cC/* | \
2156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2157 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2158 /usr/ucb/* ) ;;
2159 *)
2160 # OSF1 and SCO ODT 3.0 have their own names for install.
2161 # Don't use installbsd from OSF since it installs stuff as root
2162 # by default.
2163 for ac_prog in ginstall scoinst install; do
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2166 if test $ac_prog = install &&
2167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # AIX install. It has an incompatible calling convention.
2169 :
2170 elif test $ac_prog = install &&
2171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172 # program-specific install script used by HP pwplus--don't use.
2173 :
2174 else
2175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2176 break 3
2177 fi
2178 fi
2179 done
2180 done
2181 ;;
2182 esac
2183 done
2184 IFS=$as_save_IFS
2185
2186
2187 fi
2188 if test "${ac_cv_path_install+set}" = set; then
2189 INSTALL=$ac_cv_path_install
2190 else
2191 # As a last resort, use the slow shell script. Don't cache a
2192 # value for INSTALL within a source directory, because that will
2193 # break other packages using the cache if that directory is
2194 # removed, or if the value is a relative name.
2195 INSTALL=$ac_install_sh
2196 fi
2197 fi
2198 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2199 echo "${ECHO_T}$INSTALL" >&6; }
2200
2201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2202 # It thinks the first close brace ends the variable substitution.
2203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2204
2205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2206
2207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2208
2209 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2210 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2211 # Just in case
2212 sleep 1
2213 echo timestamp > conftest.file
2214 # Do `set' in a subshell so we don't clobber the current shell's
2215 # arguments. Must try -L first in case configure is actually a
2216 # symlink; some systems play weird games with the mod time of symlinks
2217 # (eg FreeBSD returns the mod time of the symlink's containing
2218 # directory).
2219 if (
2220 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2221 if test "$*" = "X"; then
2222 # -L didn't work.
2223 set X `ls -t $srcdir/configure conftest.file`
2224 fi
2225 rm -f conftest.file
2226 if test "$*" != "X $srcdir/configure conftest.file" \
2227 && test "$*" != "X conftest.file $srcdir/configure"; then
2228
2229 # If neither matched, then we have a broken ls. This can happen
2230 # if, for instance, CONFIG_SHELL is bash and it inherits a
2231 # broken ls alias from the environment. This has actually
2232 # happened. Such a system could not be considered "sane".
2233 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2234 alias in your environment" >&5
2235 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2236 alias in your environment" >&2;}
2237 { (exit 1); exit 1; }; }
2238 fi
2239
2240 test "$2" = conftest.file
2241 )
2242 then
2243 # Ok.
2244 :
2245 else
2246 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2247 Check your system clock" >&5
2248 echo "$as_me: error: newly created file is older than distributed files!
2249 Check your system clock" >&2;}
2250 { (exit 1); exit 1; }; }
2251 fi
2252 { echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6; }
2254 test "$program_prefix" != NONE &&
2255 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2256 # Use a double $ so make ignores it.
2257 test "$program_suffix" != NONE &&
2258 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2259 # Double any \ or $. echo might interpret backslashes.
2260 # By default was `s,x,x', remove it if useless.
2261 cat <<\_ACEOF >conftest.sed
2262 s/[\\$]/&&/g;s/;s,x,x,$//
2263 _ACEOF
2264 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2265 rm -f conftest.sed
2266
2267 # expand $ac_aux_dir to an absolute path
2268 am_aux_dir=`cd $ac_aux_dir && pwd`
2269
2270 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2271 # Use eval to expand $SHELL
2272 if eval "$MISSING --run true"; then
2273 am_missing_run="$MISSING --run "
2274 else
2275 am_missing_run=
2276 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2277 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2278 fi
2279
2280 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2281 # We used to keeping the `.' as first argument, in order to
2282 # allow $(mkdir_p) to be used without argument. As in
2283 # $(mkdir_p) $(somedir)
2284 # where $(somedir) is conditionally defined. However this is wrong
2285 # for two reasons:
2286 # 1. if the package is installed by a user who cannot write `.'
2287 # make install will fail,
2288 # 2. the above comment should most certainly read
2289 # $(mkdir_p) $(DESTDIR)$(somedir)
2290 # so it does not work when $(somedir) is undefined and
2291 # $(DESTDIR) is not.
2292 # To support the latter case, we have to write
2293 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2294 # so the `.' trick is pointless.
2295 mkdir_p='mkdir -p --'
2296 else
2297 # On NextStep and OpenStep, the `mkdir' command does not
2298 # recognize any option. It will interpret all options as
2299 # directories to create, and then abort because `.' already
2300 # exists.
2301 for d in ./-p ./--version;
2302 do
2303 test -d $d && rmdir $d
2304 done
2305 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2306 if test -f "$ac_aux_dir/mkinstalldirs"; then
2307 mkdir_p='$(mkinstalldirs)'
2308 else
2309 mkdir_p='$(install_sh) -d'
2310 fi
2311 fi
2312
2313 for ac_prog in gawk mawk nawk awk
2314 do
2315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_AWK+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$AWK"; then
2323 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_AWK="$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336 done
2337 done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 AWK=$ac_cv_prog_AWK
2343 if test -n "$AWK"; then
2344 { echo "$as_me:$LINENO: result: $AWK" >&5
2345 echo "${ECHO_T}$AWK" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2349 fi
2350
2351
2352 test -n "$AWK" && break
2353 done
2354
2355 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2356 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2357 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2358 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 cat >conftest.make <<\_ACEOF
2362 SHELL = /bin/sh
2363 all:
2364 @echo '@@@%%%=$(MAKE)=@@@%%%'
2365 _ACEOF
2366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2368 *@@@%%%=?*=@@@%%%*)
2369 eval ac_cv_prog_make_${ac_make}_set=yes;;
2370 *)
2371 eval ac_cv_prog_make_${ac_make}_set=no;;
2372 esac
2373 rm -f conftest.make
2374 fi
2375 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2376 { echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6; }
2378 SET_MAKE=
2379 else
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382 SET_MAKE="MAKE=${MAKE-make}"
2383 fi
2384
2385 rm -rf .tst 2>/dev/null
2386 mkdir .tst 2>/dev/null
2387 if test -d .tst; then
2388 am__leading_dot=.
2389 else
2390 am__leading_dot=_
2391 fi
2392 rmdir .tst 2>/dev/null
2393
2394 # test to see if srcdir already configured
2395 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2396 test -f $srcdir/config.status; then
2397 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2398 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2399 { (exit 1); exit 1; }; }
2400 fi
2401
2402 # test whether we have cygpath
2403 if test -z "$CYGPATH_W"; then
2404 if (cygpath --version) >/dev/null 2>/dev/null; then
2405 CYGPATH_W='cygpath -w'
2406 else
2407 CYGPATH_W=echo
2408 fi
2409 fi
2410
2411
2412 # Define the identity of the package.
2413 PACKAGE='mhash'
2414 VERSION='0.9.9'
2415
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE "$PACKAGE"
2419 _ACEOF
2420
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define VERSION "$VERSION"
2424 _ACEOF
2425
2426 # Some tools Automake needs.
2427
2428 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2429
2430
2431 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2432
2433
2434 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2435
2436
2437 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2438
2439
2440 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2441
2442 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2443
2444 # Installed binaries are usually stripped using `strip' when the user
2445 # run `make install-strip'. However `strip' might not be the right
2446 # tool to use in cross-compilation environments, therefore Automake
2447 # will honor the `STRIP' environment variable to overrule this program.
2448 if test "$cross_compiling" != no; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}strip; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_STRIP+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457 if test -n "$STRIP"; then
2458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 STRIP=$ac_cv_prog_STRIP
2478 if test -n "$STRIP"; then
2479 { echo "$as_me:$LINENO: result: $STRIP" >&5
2480 echo "${ECHO_T}$STRIP" >&6; }
2481 else
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2484 fi
2485
2486
2487 fi
2488 if test -z "$ac_cv_prog_STRIP"; then
2489 ac_ct_STRIP=$STRIP
2490 # Extract the first word of "strip", so it can be a program name with args.
2491 set dummy strip; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 if test -n "$ac_ct_STRIP"; then
2498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_ac_ct_STRIP="strip"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2518 if test -n "$ac_ct_STRIP"; then
2519 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2520 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2521 else
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 fi
2525
2526 if test "x$ac_ct_STRIP" = x; then
2527 STRIP=":"
2528 else
2529 case $cross_compiling:$ac_tool_warned in
2530 yes:)
2531 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2532 whose name does not start with the host triplet. If you think this
2533 configuration is useful to you, please write to [email protected]." >&5
2534 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2535 whose name does not start with the host triplet. If you think this
2536 configuration is useful to you, please write to [email protected]." >&2;}
2537 ac_tool_warned=yes ;;
2538 esac
2539 STRIP=$ac_ct_STRIP
2540 fi
2541 else
2542 STRIP="$ac_cv_prog_STRIP"
2543 fi
2544
2545 fi
2546 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2547
2548 # We need awk for the "check" target. The system "awk" is bad on
2549 # some platforms.
2550 # Always define AMTAR for backward compatibility.
2551
2552 AMTAR=${AMTAR-"${am_missing_run}tar"}
2553
2554 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2555
2556
2557
2558
2559
2560
2561
2562 cat >>confdefs.h <<\_ACEOF
2563 #define MHASH_VERSION PROGRAM_VERSION
2564 _ACEOF
2565
2566 ac_config_headers="$ac_config_headers include/mutils/mhash_config.h"
2567
2568
2569
2570
2571
2572 cat >>confdefs.h <<\_ACEOF
2573 #define _GNU_SOURCE 1
2574 _ACEOF
2575
2576
2577
2578 DEPDIR="${am__leading_dot}deps"
2579
2580 ac_config_commands="$ac_config_commands depfiles"
2581
2582
2583 am_make=${MAKE-make}
2584 cat > confinc << 'END'
2585 am__doit:
2586 @echo done
2587 .PHONY: am__doit
2588 END
2589 # If we don't find an include directive, just comment out the code.
2590 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2591 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2592 am__include="#"
2593 am__quote=
2594 _am_result=none
2595 # First try GNU make style include.
2596 echo "include confinc" > confmf
2597 # We grep out `Entering directory' and `Leaving directory'
2598 # messages which can occur if `w' ends up in MAKEFLAGS.
2599 # In particular we don't look at `^make:' because GNU make might
2600 # be invoked under some other name (usually "gmake"), in which
2601 # case it prints its new name instead of `make'.
2602 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2603 am__include=include
2604 am__quote=
2605 _am_result=GNU
2606 fi
2607 # Now try BSD make style include.
2608 if test "$am__include" = "#"; then
2609 echo '.include "confinc"' > confmf
2610 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2611 am__include=.include
2612 am__quote="\""
2613 _am_result=BSD
2614 fi
2615 fi
2616
2617
2618 { echo "$as_me:$LINENO: result: $_am_result" >&5
2619 echo "${ECHO_T}$_am_result" >&6; }
2620 rm -f confinc confmf
2621
2622 # Check whether --enable-dependency-tracking was given.
2623 if test "${enable_dependency_tracking+set}" = set; then
2624 enableval=$enable_dependency_tracking;
2625 fi
2626
2627 if test "x$enable_dependency_tracking" != xno; then
2628 am_depcomp="$ac_aux_dir/depcomp"
2629 AMDEPBACKSLASH='\'
2630 fi
2631
2632
2633 if test "x$enable_dependency_tracking" != xno; then
2634 AMDEP_TRUE=
2635 AMDEP_FALSE='#'
2636 else
2637 AMDEP_TRUE='#'
2638 AMDEP_FALSE=
2639 fi
2640
2641
2642
2643 ac_ext=c
2644 ac_cpp='$CPP $CPPFLAGS'
2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648 if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 CC=$ac_cv_prog_CC
2677 if test -n "$CC"; then
2678 { echo "$as_me:$LINENO: result: $CC" >&5
2679 echo "${ECHO_T}$CC" >&6; }
2680 else
2681 { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2683 fi
2684
2685
2686 fi
2687 if test -z "$ac_cv_prog_CC"; then
2688 ac_ct_CC=$CC
2689 # Extract the first word of "gcc", so it can be a program name with args.
2690 set dummy gcc; ac_word=$2
2691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696 if test -n "$ac_ct_CC"; then
2697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_ac_ct_CC="gcc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717 if test -n "$ac_ct_CC"; then
2718 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2719 echo "${ECHO_T}$ac_ct_CC" >&6; }
2720 else
2721 { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2723 fi
2724
2725 if test "x$ac_ct_CC" = x; then
2726 CC=""
2727 else
2728 case $cross_compiling:$ac_tool_warned in
2729 yes:)
2730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet. If you think this
2732 configuration is useful to you, please write to [email protected]." >&5
2733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2734 whose name does not start with the host triplet. If you think this
2735 configuration is useful to you, please write to [email protected]." >&2;}
2736 ac_tool_warned=yes ;;
2737 esac
2738 CC=$ac_ct_CC
2739 fi
2740 else
2741 CC="$ac_cv_prog_CC"
2742 fi
2743
2744 if test -z "$CC"; then
2745 if test -n "$ac_tool_prefix"; then
2746 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2747 set dummy ${ac_tool_prefix}cc; ac_word=$2
2748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_CC="${ac_tool_prefix}cc"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 { echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6; }
2777 else
2778 { echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6; }
2780 fi
2781
2782
2783 fi
2784 fi
2785 if test -z "$CC"; then
2786 # Extract the first word of "cc", so it can be a program name with args.
2787 set dummy cc; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CC+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 ac_prog_rejected=no
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2805 ac_prog_rejected=yes
2806 continue
2807 fi
2808 ac_cv_prog_CC="cc"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 if test $ac_prog_rejected = yes; then
2817 # We found a bogon in the path, so make sure we never use it.
2818 set dummy $ac_cv_prog_CC
2819 shift
2820 if test $# != 0; then
2821 # We chose a different compiler from the bogus one.
2822 # However, it has the same basename, so the bogon will be chosen
2823 # first if we set CC to just the basename; use the full file name.
2824 shift
2825 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2826 fi
2827 fi
2828 fi
2829 fi
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832 { echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6; }
2834 else
2835 { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2837 fi
2838
2839
2840 fi
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 for ac_prog in cl.exe
2844 do
2845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { echo "$as_me:$LINENO: result: $CC" >&5
2875 echo "${ECHO_T}$CC" >&6; }
2876 else
2877 { echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6; }
2879 fi
2880
2881
2882 test -n "$CC" && break
2883 done
2884 fi
2885 if test -z "$CC"; then
2886 ac_ct_CC=$CC
2887 for ac_prog in cl.exe
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_ac_ct_CC="$ac_prog"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2919 echo "${ECHO_T}$ac_ct_CC" >&6; }
2920 else
2921 { echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6; }
2923 fi
2924
2925
2926 test -n "$ac_ct_CC" && break
2927 done
2928
2929 if test "x$ac_ct_CC" = x; then
2930 CC=""
2931 else
2932 case $cross_compiling:$ac_tool_warned in
2933 yes:)
2934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2935 whose name does not start with the host triplet. If you think this
2936 configuration is useful to you, please write to [email protected]." >&5
2937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2938 whose name does not start with the host triplet. If you think this
2939 configuration is useful to you, please write to [email protected]." >&2;}
2940 ac_tool_warned=yes ;;
2941 esac
2942 CC=$ac_ct_CC
2943 fi
2944 fi
2945
2946 fi
2947
2948
2949 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: no acceptable C compiler found in \$PATH
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2954
2955 # Provide some information about the compiler.
2956 echo "$as_me:$LINENO: checking for C compiler version" >&5
2957 ac_compiler=`set X $ac_compile; echo $2`
2958 { (ac_try="$ac_compiler --version >&5"
2959 case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962 esac
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compiler --version >&5") 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968 { (ac_try="$ac_compiler -v >&5"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compiler -v >&5") 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }
2978 { (ac_try="$ac_compiler -V >&5"
2979 case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compiler -V >&5") 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }
2988
2989 cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h. */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2995
2996 int
2997 main ()
2998 {
2999
3000 ;
3001 return 0;
3002 }
3003 _ACEOF
3004 ac_clean_files_save=$ac_clean_files
3005 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3006 # Try to create an executable without -o first, disregard a.out.
3007 # It will help us diagnose broken compilers, and finding out an intuition
3008 # of exeext.
3009 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3010 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3011 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012 #
3013 # List of possible output files, starting from the most likely.
3014 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3015 # only as a last resort. b.out is created by i960 compilers.
3016 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3017 #
3018 # The IRIX 6 linker writes into existing files which may not be
3019 # executable, retaining their permissions. Remove them first so a
3020 # subsequent execution test works.
3021 ac_rmfiles=
3022 for ac_file in $ac_files
3023 do
3024 case $ac_file in
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3026 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3027 esac
3028 done
3029 rm -f $ac_rmfiles
3030
3031 if { (ac_try="$ac_link_default"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_link_default") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; then
3041 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3042 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3043 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3044 # so that the user can short-circuit this test for compilers unknown to
3045 # Autoconf.
3046 for ac_file in $ac_files ''
3047 do
3048 test -f "$ac_file" || continue
3049 case $ac_file in
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3051 ;;
3052 [ab].out )
3053 # We found the default executable, but exeext='' is most
3054 # certainly right.
3055 break;;
3056 *.* )
3057 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3058 then :; else
3059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060 fi
3061 # We set ac_cv_exeext here because the later test for it is not
3062 # safe: cross compilers may not add the suffix if given an `-o'
3063 # argument, so we may need to know it at that point already.
3064 # Even if this section looks crufty: it has the advantage of
3065 # actually working.
3066 break;;
3067 * )
3068 break;;
3069 esac
3070 done
3071 test "$ac_cv_exeext" = no && ac_cv_exeext=
3072
3073 else
3074 ac_file=''
3075 fi
3076
3077 { echo "$as_me:$LINENO: result: $ac_file" >&5
3078 echo "${ECHO_T}$ac_file" >&6; }
3079 if test -z "$ac_file"; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: C compiler cannot create executables
3086 See \`config.log' for more details." >&2;}
3087 { (exit 77); exit 77; }; }
3088 fi
3089
3090 ac_exeext=$ac_cv_exeext
3091
3092 # Check that the compiler produces executables we can run. If not, either
3093 # the compiler is broken, or we cross compile.
3094 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3095 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3096 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3097 # If not cross compiling, check that we can run a simple program.
3098 if test "$cross_compiling" != yes; then
3099 if { ac_try='./$ac_file'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 cross_compiling=no
3110 else
3111 if test "$cross_compiling" = maybe; then
3112 cross_compiling=yes
3113 else
3114 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3115 If you meant to cross compile, use \`--host'.
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: cannot run C compiled programs.
3118 If you meant to cross compile, use \`--host'.
3119 See \`config.log' for more details." >&2;}
3120 { (exit 1); exit 1; }; }
3121 fi
3122 fi
3123 fi
3124 { echo "$as_me:$LINENO: result: yes" >&5
3125 echo "${ECHO_T}yes" >&6; }
3126
3127 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3128 ac_clean_files=$ac_clean_files_save
3129 # Check that the compiler produces executables we can run. If not, either
3130 # the compiler is broken, or we cross compile.
3131 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3132 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3133 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3134 echo "${ECHO_T}$cross_compiling" >&6; }
3135
3136 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3137 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3138 if { (ac_try="$ac_link"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_link") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; then
3148 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3149 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3150 # work properly (i.e., refer to `conftest.exe'), while it won't with
3151 # `rm'.
3152 for ac_file in conftest.exe conftest conftest.*; do
3153 test -f "$ac_file" || continue
3154 case $ac_file in
3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3156 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 break;;
3158 * ) break;;
3159 esac
3160 done
3161 else
3162 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3167 fi
3168
3169 rm -f conftest$ac_cv_exeext
3170 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3171 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3172
3173 rm -f conftest.$ac_ext
3174 EXEEXT=$ac_cv_exeext
3175 ac_exeext=$EXEEXT
3176 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3177 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3178 if test "${ac_cv_objext+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187
3188 int
3189 main ()
3190 {
3191
3192 ;
3193 return 0;
3194 }
3195 _ACEOF
3196 rm -f conftest.o conftest.obj
3197 if { (ac_try="$ac_compile"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_compile") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; then
3207 for ac_file in conftest.o conftest.obj conftest.*; do
3208 test -f "$ac_file" || continue;
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3212 break;;
3213 esac
3214 done
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3224 fi
3225
3226 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3227 fi
3228 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3229 echo "${ECHO_T}$ac_cv_objext" >&6; }
3230 OBJEXT=$ac_cv_objext
3231 ac_objext=$OBJEXT
3232 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3233 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3234 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243
3244 int
3245 main ()
3246 {
3247 #ifndef __GNUC__
3248 choke me
3249 #endif
3250
3251 ;
3252 return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compile") 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } && {
3269 test -z "$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 } && test -s conftest.$ac_objext; then
3272 ac_compiler_gnu=yes
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 ac_compiler_gnu=no
3278 fi
3279
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3282
3283 fi
3284 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3285 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3286 GCC=`test $ac_compiler_gnu = yes && echo yes`
3287 ac_test_CFLAGS=${CFLAGS+set}
3288 ac_save_CFLAGS=$CFLAGS
3289 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3290 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3291 if test "${ac_cv_prog_cc_g+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294 ac_save_c_werror_flag=$ac_c_werror_flag
3295 ac_c_werror_flag=yes
3296 ac_cv_prog_cc_g=no
3297 CFLAGS="-g"
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304
3305 int
3306 main ()
3307 {
3308
3309 ;
3310 return 0;
3311 }
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } && {
3327 test -z "$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 } && test -s conftest.$ac_objext; then
3330 ac_cv_prog_cc_g=yes
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 CFLAGS=""
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342
3343 int
3344 main ()
3345 {
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (ac_try="$ac_compile"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compile") 2>conftest.er1
3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.$ac_objext; then
3368 :
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 ac_c_werror_flag=$ac_save_c_werror_flag
3374 CFLAGS="-g"
3375 cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h. */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3381
3382 int
3383 main ()
3384 {
3385
3386 ;
3387 return 0;
3388 }
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (ac_try="$ac_compile"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_compile") 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } && {
3404 test -z "$ac_c_werror_flag" ||
3405 test ! -s conftest.err
3406 } && test -s conftest.$ac_objext; then
3407 ac_cv_prog_cc_g=yes
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411
3412
3413 fi
3414
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 fi
3417
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 fi
3420
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_c_werror_flag=$ac_save_c_werror_flag
3423 fi
3424 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3425 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3426 if test "$ac_test_CFLAGS" = set; then
3427 CFLAGS=$ac_save_CFLAGS
3428 elif test $ac_cv_prog_cc_g = yes; then
3429 if test "$GCC" = yes; then
3430 CFLAGS="-g -O2"
3431 else
3432 CFLAGS="-g"
3433 fi
3434 else
3435 if test "$GCC" = yes; then
3436 CFLAGS="-O2"
3437 else
3438 CFLAGS=
3439 fi
3440 fi
3441 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3442 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_cc_c89+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 ac_cv_prog_cc_c89=no
3447 ac_save_CC=$CC
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include <stdarg.h>
3455 #include <stdio.h>
3456 #include <sys/types.h>
3457 #include <sys/stat.h>
3458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459 struct buf { int x; };
3460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461 static char *e (p, i)
3462 char **p;
3463 int i;
3464 {
3465 return p[i];
3466 }
3467 static char *f (char * (*g) (char **, int), char **p, ...)
3468 {
3469 char *s;
3470 va_list v;
3471 va_start (v,p);
3472 s = g (p, va_arg (v,int));
3473 va_end (v);
3474 return s;
3475 }
3476
3477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std. */
3484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485
3486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487 inside strings and character constants. */
3488 #define FOO(x) 'x'
3489 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490
3491 int test (int i, double x);
3492 struct s1 {int (*f) (int a);};
3493 struct s2 {int (*f) (double a);};
3494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495 int argc;
3496 char **argv;
3497 int
3498 main ()
3499 {
3500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507 do
3508 CC="$ac_save_CC $ac_arg"
3509 rm -f conftest.$ac_objext
3510 if { (ac_try="$ac_compile"
3511 case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_compile") 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } && {
3523 test -z "$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3525 } && test -s conftest.$ac_objext; then
3526 ac_cv_prog_cc_c89=$ac_arg
3527 else
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531
3532 fi
3533
3534 rm -f core conftest.err conftest.$ac_objext
3535 test "x$ac_cv_prog_cc_c89" != "xno" && break
3536 done
3537 rm -f conftest.$ac_ext
3538 CC=$ac_save_CC
3539
3540 fi
3541 # AC_CACHE_VAL
3542 case "x$ac_cv_prog_cc_c89" in
3543 x)
3544 { echo "$as_me:$LINENO: result: none needed" >&5
3545 echo "${ECHO_T}none needed" >&6; } ;;
3546 xno)
3547 { echo "$as_me:$LINENO: result: unsupported" >&5
3548 echo "${ECHO_T}unsupported" >&6; } ;;
3549 *)
3550 CC="$CC $ac_cv_prog_cc_c89"
3551 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3552 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3553 esac
3554
3555
3556 ac_ext=c
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3562 depcc="$CC" am_compiler_list=
3563
3564 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3565 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3566 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570 # We make a subdir and do the tests there. Otherwise we can end up
3571 # making bogus files that we don't know about and never remove. For
3572 # instance it was reported that on HP-UX the gcc test will end up
3573 # making a dummy file named `D' -- because `-MD' means `put the output
3574 # in D'.
3575 mkdir conftest.dir
3576 # Copy depcomp to subdir because otherwise we won't find it if we're
3577 # using a relative directory.
3578 cp "$am_depcomp" conftest.dir
3579 cd conftest.dir
3580 # We will build objects and dependencies in a subdirectory because
3581 # it helps to detect inapplicable dependency modes. For instance
3582 # both Tru64's cc and ICC support -MD to output dependencies as a
3583 # side effect of compilation, but ICC will put the dependencies in
3584 # the current directory while Tru64 will put them in the object
3585 # directory.
3586 mkdir sub
3587
3588 am_cv_CC_dependencies_compiler_type=none
3589 if test "$am_compiler_list" = ""; then
3590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591 fi
3592 for depmode in $am_compiler_list; do
3593 # Setup a source with many dependencies, because some compilers
3594 # like to wrap large dependency lists on column 80 (with \), and
3595 # we should not choose a depcomp mode which is confused by this.
3596 #
3597 # We need to recreate these files for each test, as the compiler may
3598 # overwrite some of them when testing with obscure command lines.
3599 # This happens at least with the AIX C compiler.
3600 : > sub/conftest.c
3601 for i in 1 2 3 4 5 6; do
3602 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3603 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3604 # Solaris 8's {/usr,}/bin/sh.
3605 touch sub/conftst$i.h
3606 done
3607 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3608
3609 case $depmode in
3610 nosideeffect)
3611 # after this tag, mechanisms are not by side-effect, so they'll
3612 # only be used when explicitly requested
3613 if test "x$enable_dependency_tracking" = xyes; then
3614 continue
3615 else
3616 break
3617 fi
3618 ;;
3619 none) break ;;
3620 esac
3621 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3622 # mode. It turns out that the SunPro C++ compiler does not properly
3623 # handle `-M -o', and we need to detect this.
3624 if depmode=$depmode \
3625 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3626 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3627 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3628 >/dev/null 2>conftest.err &&
3629 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3630 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3631 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3632 # icc doesn't choke on unknown options, it will just issue warnings
3633 # or remarks (even with -Werror). So we grep stderr for any message
3634 # that says an option was ignored or not supported.
3635 # When given -MP, icc 7.0 and 7.1 complain thusly:
3636 # icc: Command line warning: ignoring option '-M'; no argument required
3637 # The diagnosis changed in icc 8.0:
3638 # icc: Command line remark: option '-MP' not supported
3639 if (grep 'ignoring option' conftest.err ||
3640 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3641 am_cv_CC_dependencies_compiler_type=$depmode
3642 break
3643 fi
3644 fi
3645 done
3646
3647 cd ..
3648 rm -rf conftest.dir
3649 else
3650 am_cv_CC_dependencies_compiler_type=none
3651 fi
3652
3653 fi
3654 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3655 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3656 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3657
3658
3659
3660 if
3661 test "x$enable_dependency_tracking" != xno \
3662 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3663 am__fastdepCC_TRUE=
3664 am__fastdepCC_FALSE='#'
3665 else
3666 am__fastdepCC_TRUE='#'
3667 am__fastdepCC_FALSE=
3668 fi
3669
3670
3671
3672 ac_ext=c
3673 ac_cpp='$CPP $CPPFLAGS'
3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3678 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3679 # On Suns, sometimes $CPP names a directory.
3680 if test -n "$CPP" && test -d "$CPP"; then
3681 CPP=
3682 fi
3683 if test -z "$CPP"; then
3684 if test "${ac_cv_prog_CPP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 # Double quotes because CPP needs to be expanded
3688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3689 do
3690 ac_preproc_ok=false
3691 for ac_c_preproc_warn_flag in '' yes
3692 do
3693 # Use a header file that comes with gcc, so configuring glibc
3694 # with a fresh cross-compiler works.
3695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 # <limits.h> exists even on freestanding compilers.
3697 # On the NeXT, cc -E runs the code through the compiler's parser,
3698 # not just through cpp. "Syntax error" is here to catch this case.
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #ifdef __STDC__
3706 # include <limits.h>
3707 #else
3708 # include <assert.h>
3709 #endif
3710 Syntax error
3711 _ACEOF
3712 if { (ac_try="$ac_cpp conftest.$ac_ext"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev/null && {
3725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3726 test ! -s conftest.err
3727 }; then
3728 :
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 # Broken: fails on valid input.
3734 continue
3735 fi
3736
3737 rm -f conftest.err conftest.$ac_ext
3738
3739 # OK, works on sane cases. Now check whether nonexistent headers
3740 # can be detected and how.
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747 #include <ac_nonexistent.h>
3748 _ACEOF
3749 if { (ac_try="$ac_cpp conftest.$ac_ext"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev/null && {
3762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 }; then
3765 # Broken: success on invalid input.
3766 continue
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 # Passes both tests.
3772 ac_preproc_ok=:
3773 break
3774 fi
3775
3776 rm -f conftest.err conftest.$ac_ext
3777
3778 done
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.$ac_ext
3781 if $ac_preproc_ok; then
3782 break
3783 fi
3784
3785 done
3786 ac_cv_prog_CPP=$CPP
3787
3788 fi
3789 CPP=$ac_cv_prog_CPP
3790 else
3791 ac_cv_prog_CPP=$CPP
3792 fi
3793 { echo "$as_me:$LINENO: result: $CPP" >&5
3794 echo "${ECHO_T}$CPP" >&6; }
3795 ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3797 do
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #ifdef __STDC__
3811 # include <limits.h>
3812 #else
3813 # include <assert.h>
3814 #endif
3815 Syntax error
3816 _ACEOF
3817 if { (ac_try="$ac_cpp conftest.$ac_ext"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null && {
3830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3831 test ! -s conftest.err
3832 }; then
3833 :
3834 else
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838 # Broken: fails on valid input.
3839 continue
3840 fi
3841
3842 rm -f conftest.err conftest.$ac_ext
3843
3844 # OK, works on sane cases. Now check whether nonexistent headers
3845 # can be detected and how.
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #include <ac_nonexistent.h>
3853 _ACEOF
3854 if { (ac_try="$ac_cpp conftest.$ac_ext"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev/null && {
3867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 }; then
3870 # Broken: success on invalid input.
3871 continue
3872 else
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 # Passes both tests.
3877 ac_preproc_ok=:
3878 break
3879 fi
3880
3881 rm -f conftest.err conftest.$ac_ext
3882
3883 done
3884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3885 rm -f conftest.err conftest.$ac_ext
3886 if $ac_preproc_ok; then
3887 :
3888 else
3889 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3890 See \`config.log' for more details." >&5
3891 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details." >&2;}
3893 { (exit 1); exit 1; }; }
3894 fi
3895
3896 ac_ext=c
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902
3903 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3904 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3905 if test "${ac_cv_path_GREP+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 # Extract the first word of "grep ggrep" to use in msg output
3909 if test -z "$GREP"; then
3910 set dummy grep ggrep; ac_prog_name=$2
3911 if test "${ac_cv_path_GREP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 ac_path_GREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in grep ggrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3925 # Check for GNU ac_path_GREP and select it if it is found.
3926 # Check for GNU $ac_path_GREP
3927 case `"$ac_path_GREP" --version 2>&1` in
3928 *GNU*)
3929 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3930 *)
3931 ac_count=0
3932 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 echo 'GREP' >> "conftest.nl"
3939 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_GREP="$ac_path_GREP"
3945 ac_path_GREP_max=$ac_count
3946 fi
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 esac
3952
3953
3954 $ac_path_GREP_found && break 3
3955 done
3956 done
3957
3958 done
3959 IFS=$as_save_IFS
3960
3961
3962 fi
3963
3964 GREP="$ac_cv_path_GREP"
3965 if test -z "$GREP"; then
3966 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968 { (exit 1); exit 1; }; }
3969 fi
3970
3971 else
3972 ac_cv_path_GREP=$GREP
3973 fi
3974
3975
3976 fi
3977 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3978 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3979 GREP="$ac_cv_path_GREP"
3980
3981
3982 { echo "$as_me:$LINENO: checking for egrep" >&5
3983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3984 if test "${ac_cv_path_EGREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3988 then ac_cv_path_EGREP="$GREP -E"
3989 else
3990 # Extract the first word of "egrep" to use in msg output
3991 if test -z "$EGREP"; then
3992 set dummy egrep; ac_prog_name=$2
3993 if test "${ac_cv_path_EGREP+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 ac_path_EGREP_found=false
3997 # Loop through the user's path and test for each of PROGNAME-LIST
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_prog in egrep; do
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4007 # Check for GNU ac_path_EGREP and select it if it is found.
4008 # Check for GNU $ac_path_EGREP
4009 case `"$ac_path_EGREP" --version 2>&1` in
4010 *GNU*)
4011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4012 *)
4013 ac_count=0
4014 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4015 while :
4016 do
4017 cat "conftest.in" "conftest.in" >"conftest.tmp"
4018 mv "conftest.tmp" "conftest.in"
4019 cp "conftest.in" "conftest.nl"
4020 echo 'EGREP' >> "conftest.nl"
4021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023 ac_count=`expr $ac_count + 1`
4024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4025 # Best one so far, save it but keep looking for a better one
4026 ac_cv_path_EGREP="$ac_path_EGREP"
4027 ac_path_EGREP_max=$ac_count
4028 fi
4029 # 10*(2^10) chars as input seems more than enough
4030 test $ac_count -gt 10 && break
4031 done
4032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033 esac
4034
4035
4036 $ac_path_EGREP_found && break 3
4037 done
4038 done
4039
4040 done
4041 IFS=$as_save_IFS
4042
4043
4044 fi
4045
4046 EGREP="$ac_cv_path_EGREP"
4047 if test -z "$EGREP"; then
4048 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4049 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4050 { (exit 1); exit 1; }; }
4051 fi
4052
4053 else
4054 ac_cv_path_EGREP=$EGREP
4055 fi
4056
4057
4058 fi
4059 fi
4060 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4061 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4062 EGREP="$ac_cv_path_EGREP"
4063
4064
4065
4066 { echo "$as_me:$LINENO: checking for AIX" >&5
4067 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #ifdef _AIX
4075 yes
4076 #endif
4077
4078 _ACEOF
4079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4080 $EGREP "yes" >/dev/null 2>&1; then
4081 { echo "$as_me:$LINENO: result: yes" >&5
4082 echo "${ECHO_T}yes" >&6; }
4083 cat >>confdefs.h <<\_ACEOF
4084 #define _ALL_SOURCE 1
4085 _ACEOF
4086
4087 else
4088 { echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6; }
4090 fi
4091 rm -f conftest*
4092
4093
4094
4095 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4096 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4097 if test "${ac_cv_search_strerror+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100 ac_func_search_save_LIBS=$LIBS
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107
4108 /* Override any GCC internal prototype to avoid an error.
4109 Use char because int might match the return type of a GCC
4110 builtin and then its argument prototype would still apply. */
4111 #ifdef __cplusplus
4112 extern "C"
4113 #endif
4114 char strerror ();
4115 int
4116 main ()
4117 {
4118 return strerror ();
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 for ac_lib in '' cposix; do
4124 if test -z "$ac_lib"; then
4125 ac_res="none required"
4126 else
4127 ac_res=-l$ac_lib
4128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4129 fi
4130 rm -f conftest.$ac_objext conftest$ac_exeext
4131 if { (ac_try="$ac_link"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_link") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest$ac_exeext &&
4147 $as_test_x conftest$ac_exeext; then
4148 ac_cv_search_strerror=$ac_res
4149 else
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153
4154 fi
4155
4156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4157 conftest$ac_exeext
4158 if test "${ac_cv_search_strerror+set}" = set; then
4159 break
4160 fi
4161 done
4162 if test "${ac_cv_search_strerror+set}" = set; then
4163 :
4164 else
4165 ac_cv_search_strerror=no
4166 fi
4167 rm conftest.$ac_ext
4168 LIBS=$ac_func_search_save_LIBS
4169 fi
4170 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4171 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4172 ac_res=$ac_cv_search_strerror
4173 if test "$ac_res" != no; then
4174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4175
4176 fi
4177
4178
4179 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4181 if test "${ac_cv_header_stdc+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <stdlib.h>
4191 #include <stdarg.h>
4192 #include <string.h>
4193 #include <float.h>
4194
4195 int
4196 main ()
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4205 case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest.$ac_objext; then
4220 ac_cv_header_stdc=yes
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 ac_cv_header_stdc=no
4226 fi
4227
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229
4230 if test $ac_cv_header_stdc = yes; then
4231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #include <string.h>
4239
4240 _ACEOF
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "memchr" >/dev/null 2>&1; then
4243 :
4244 else
4245 ac_cv_header_stdc=no
4246 fi
4247 rm -f conftest*
4248
4249 fi
4250
4251 if test $ac_cv_header_stdc = yes; then
4252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #include <stdlib.h>
4260
4261 _ACEOF
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263 $EGREP "free" >/dev/null 2>&1; then
4264 :
4265 else
4266 ac_cv_header_stdc=no
4267 fi
4268 rm -f conftest*
4269
4270 fi
4271
4272 if test $ac_cv_header_stdc = yes; then
4273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4274 if test "$cross_compiling" = yes; then
4275 :
4276 else
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <ctype.h>
4284 #include <stdlib.h>
4285 #if ((' ' & 0x0FF) == 0x020)
4286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288 #else
4289 # define ISLOWER(c) \
4290 (('a' <= (c) && (c) <= 'i') \
4291 || ('j' <= (c) && (c) <= 'r') \
4292 || ('s' <= (c) && (c) <= 'z'))
4293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 #endif
4295
4296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297 int
4298 main ()
4299 {
4300 int i;
4301 for (i = 0; i < 256; i++)
4302 if (XOR (islower (i), ISLOWER (i))
4303 || toupper (i) != TOUPPER (i))
4304 return 2;
4305 return 0;
4306 }
4307 _ACEOF
4308 rm -f conftest$ac_exeext
4309 if { (ac_try="$ac_link"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_link") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 :
4329 else
4330 echo "$as_me: program exited with status $ac_status" >&5
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334 ( exit $ac_status )
4335 ac_cv_header_stdc=no
4336 fi
4337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 fi
4339
4340
4341 fi
4342 fi
4343 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4344 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4345 if test $ac_cv_header_stdc = yes; then
4346
4347 cat >>confdefs.h <<\_ACEOF
4348 #define STDC_HEADERS 1
4349 _ACEOF
4350
4351 fi
4352
4353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4364 inttypes.h stdint.h unistd.h
4365 do
4366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4379
4380 #include <$ac_header>
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (ac_try="$ac_compile"
4384 case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && {
4396 test -z "$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 } && test -s conftest.$ac_objext; then
4399 eval "$as_ac_Header=yes"
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 eval "$as_ac_Header=no"
4405 fi
4406
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 ac_res=`eval echo '${'$as_ac_Header'}'`
4410 { echo "$as_me:$LINENO: result: $ac_res" >&5
4411 echo "${ECHO_T}$ac_res" >&6; }
4412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4413 cat >>confdefs.h <<_ACEOF
4414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4415 _ACEOF
4416
4417 fi
4418
4419 done
4420
4421
4422 if test "${ac_cv_header_minix_config_h+set}" = set; then
4423 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4424 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4425 if test "${ac_cv_header_minix_config_h+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 fi
4428 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4429 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4430 else
4431 # Is the header compilable?
4432 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4433 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 $ac_includes_default
4441 #include <minix/config.h>
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && {
4457 test -z "$ac_c_werror_flag" ||
4458 test ! -s conftest.err
4459 } && test -s conftest.$ac_objext; then
4460 ac_header_compiler=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_header_compiler=no
4466 fi
4467
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4470 echo "${ECHO_T}$ac_header_compiler" >&6; }
4471
4472 # Is the header present?
4473 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4474 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <minix/config.h>
4482 _ACEOF
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null && {
4496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4498 }; then
4499 ac_header_preproc=yes
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 ac_header_preproc=no
4505 fi
4506
4507 rm -f conftest.err conftest.$ac_ext
4508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4509 echo "${ECHO_T}$ac_header_preproc" >&6; }
4510
4511 # So? What about this header?
4512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4513 yes:no: )
4514 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4515 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4517 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4518 ac_header_preproc=yes
4519 ;;
4520 no:yes:* )
4521 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4522 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4524 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4526 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4528 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4530 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4532 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4533 ( cat <<\_ASBOX
4534 ## ------------------------------------------ ##
4535 ## Report this to [email protected] ##
4536 ## ------------------------------------------ ##
4537 _ASBOX
4538 ) | sed "s/^/$as_me: WARNING: /" >&2
4539 ;;
4540 esac
4541 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4542 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4543 if test "${ac_cv_header_minix_config_h+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 ac_cv_header_minix_config_h=$ac_header_preproc
4547 fi
4548 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4549 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4550
4551 fi
4552 if test $ac_cv_header_minix_config_h = yes; then
4553 MINIX=yes
4554 else
4555 MINIX=
4556 fi
4557
4558
4559 if test "$MINIX" = yes; then
4560
4561 cat >>confdefs.h <<\_ACEOF
4562 #define _POSIX_SOURCE 1
4563 _ACEOF
4564
4565
4566 cat >>confdefs.h <<\_ACEOF
4567 #define _POSIX_1_SOURCE 2
4568 _ACEOF
4569
4570
4571 cat >>confdefs.h <<\_ACEOF
4572 #define _MINIX 1
4573 _ACEOF
4574
4575 fi
4576
4577
4578
4579 # By default we simply use the C compiler to build assembly code.
4580
4581 test "${CCAS+set}" = set || CCAS=$CC
4582 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4583
4584
4585
4586 ac_ext=c
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_prog_CC+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613 done
4614 done
4615 IFS=$as_save_IFS
4616
4617 fi
4618 fi
4619 CC=$ac_cv_prog_CC
4620 if test -n "$CC"; then
4621 { echo "$as_me:$LINENO: result: $CC" >&5
4622 echo "${ECHO_T}$CC" >&6; }
4623 else
4624 { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4626 fi
4627
4628
4629 fi
4630 if test -z "$ac_cv_prog_CC"; then
4631 ac_ct_CC=$CC
4632 # Extract the first word of "gcc", so it can be a program name with args.
4633 set dummy gcc; ac_word=$2
4634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 if test -n "$ac_ct_CC"; then
4640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_ac_ct_CC="gcc"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4660 if test -n "$ac_ct_CC"; then
4661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4662 echo "${ECHO_T}$ac_ct_CC" >&6; }
4663 else
4664 { echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6; }
4666 fi
4667
4668 if test "x$ac_ct_CC" = x; then
4669 CC=""
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4674 whose name does not start with the host triplet. If you think this
4675 configuration is useful to you, please write to [email protected]." >&5
4676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4677 whose name does not start with the host triplet. If you think this
4678 configuration is useful to you, please write to [email protected]." >&2;}
4679 ac_tool_warned=yes ;;
4680 esac
4681 CC=$ac_ct_CC
4682 fi
4683 else
4684 CC="$ac_cv_prog_CC"
4685 fi
4686
4687 if test -z "$CC"; then
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}cc; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_prog_CC+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 if test -n "$CC"; then
4697 ac_cv_prog_CC="$CC" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_CC="${ac_tool_prefix}cc"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710 done
4711 done
4712 IFS=$as_save_IFS
4713
4714 fi
4715 fi
4716 CC=$ac_cv_prog_CC
4717 if test -n "$CC"; then
4718 { echo "$as_me:$LINENO: result: $CC" >&5
4719 echo "${ECHO_T}$CC" >&6; }
4720 else
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4723 fi
4724
4725
4726 fi
4727 fi
4728 if test -z "$CC"; then
4729 # Extract the first word of "cc", so it can be a program name with args.
4730 set dummy cc; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_CC+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 if test -n "$CC"; then
4737 ac_cv_prog_CC="$CC" # Let the user override the test.
4738 else
4739 ac_prog_rejected=no
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4748 ac_prog_rejected=yes
4749 continue
4750 fi
4751 ac_cv_prog_CC="cc"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 if test $ac_prog_rejected = yes; then
4760 # We found a bogon in the path, so make sure we never use it.
4761 set dummy $ac_cv_prog_CC
4762 shift
4763 if test $# != 0; then
4764 # We chose a different compiler from the bogus one.
4765 # However, it has the same basename, so the bogon will be chosen
4766 # first if we set CC to just the basename; use the full file name.
4767 shift
4768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4769 fi
4770 fi
4771 fi
4772 fi
4773 CC=$ac_cv_prog_CC
4774 if test -n "$CC"; then
4775 { echo "$as_me:$LINENO: result: $CC" >&5
4776 echo "${ECHO_T}$CC" >&6; }
4777 else
4778 { echo "$as_me:$LINENO: result: no" >&5
4779 echo "${ECHO_T}no" >&6; }
4780 fi
4781
4782
4783 fi
4784 if test -z "$CC"; then
4785 if test -n "$ac_tool_prefix"; then
4786 for ac_prog in cl.exe
4787 do
4788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_prog_CC+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795 if test -n "$CC"; then
4796 ac_cv_prog_CC="$CC" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 break 2
4808 fi
4809 done
4810 done
4811 IFS=$as_save_IFS
4812
4813 fi
4814 fi
4815 CC=$ac_cv_prog_CC
4816 if test -n "$CC"; then
4817 { echo "$as_me:$LINENO: result: $CC" >&5
4818 echo "${ECHO_T}$CC" >&6; }
4819 else
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 fi
4823
4824
4825 test -n "$CC" && break
4826 done
4827 fi
4828 if test -z "$CC"; then
4829 ac_ct_CC=$CC
4830 for ac_prog in cl.exe
4831 do
4832 # Extract the first word of "$ac_prog", so it can be a program name with args.
4833 set dummy $ac_prog; ac_word=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 if test -n "$ac_ct_CC"; then
4840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_ac_ct_CC="$ac_prog"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853 done
4854 done
4855 IFS=$as_save_IFS
4856
4857 fi
4858 fi
4859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4860 if test -n "$ac_ct_CC"; then
4861 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4862 echo "${ECHO_T}$ac_ct_CC" >&6; }
4863 else
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4866 fi
4867
4868
4869 test -n "$ac_ct_CC" && break
4870 done
4871
4872 if test "x$ac_ct_CC" = x; then
4873 CC=""
4874 else
4875 case $cross_compiling:$ac_tool_warned in
4876 yes:)
4877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4878 whose name does not start with the host triplet. If you think this
4879 configuration is useful to you, please write to [email protected]." >&5
4880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4881 whose name does not start with the host triplet. If you think this
4882 configuration is useful to you, please write to [email protected]." >&2;}
4883 ac_tool_warned=yes ;;
4884 esac
4885 CC=$ac_ct_CC
4886 fi
4887 fi
4888
4889 fi
4890
4891
4892 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4893 See \`config.log' for more details." >&5
4894 echo "$as_me: error: no acceptable C compiler found in \$PATH
4895 See \`config.log' for more details." >&2;}
4896 { (exit 1); exit 1; }; }
4897
4898 # Provide some information about the compiler.
4899 echo "$as_me:$LINENO: checking for C compiler version" >&5
4900 ac_compiler=`set X $ac_compile; echo $2`
4901 { (ac_try="$ac_compiler --version >&5"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compiler --version >&5") 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }
4911 { (ac_try="$ac_compiler -v >&5"
4912 case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_compiler -v >&5") 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }
4921 { (ac_try="$ac_compiler -V >&5"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_compiler -V >&5") 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }
4931
4932 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4933 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4934 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947 #ifndef __GNUC__
4948 choke me
4949 #endif
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 rm -f conftest.$ac_objext
4956 if { (ac_try="$ac_compile"
4957 case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_compile") 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest.$ac_objext; then
4972 ac_compiler_gnu=yes
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 ac_compiler_gnu=no
4978 fi
4979
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4982
4983 fi
4984 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4985 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4986 GCC=`test $ac_compiler_gnu = yes && echo yes`
4987 ac_test_CFLAGS=${CFLAGS+set}
4988 ac_save_CFLAGS=$CFLAGS
4989 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4990 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4991 if test "${ac_cv_prog_cc_g+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 ac_save_c_werror_flag=$ac_c_werror_flag
4995 ac_c_werror_flag=yes
4996 ac_cv_prog_cc_g=no
4997 CFLAGS="-g"
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004
5005 int
5006 main ()
5007 {
5008
5009 ;
5010 return 0;
5011 }
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (ac_try="$ac_compile"
5015 case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018 esac
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_compile") 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } && {
5027 test -z "$ac_c_werror_flag" ||
5028 test ! -s conftest.err
5029 } && test -s conftest.$ac_objext; then
5030 ac_cv_prog_cc_g=yes
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 CFLAGS=""
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042
5043 int
5044 main ()
5045 {
5046
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (ac_try="$ac_compile"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_compile") 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest.$ac_objext; then
5068 :
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 ac_c_werror_flag=$ac_save_c_werror_flag
5074 CFLAGS="-g"
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081
5082 int
5083 main ()
5084 {
5085
5086 ;
5087 return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5092 case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_compile") 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && {
5104 test -z "$ac_c_werror_flag" ||
5105 test ! -s conftest.err
5106 } && test -s conftest.$ac_objext; then
5107 ac_cv_prog_cc_g=yes
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112
5113 fi
5114
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 fi
5117
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 fi
5120
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 ac_c_werror_flag=$ac_save_c_werror_flag
5123 fi
5124 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5125 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5126 if test "$ac_test_CFLAGS" = set; then
5127 CFLAGS=$ac_save_CFLAGS
5128 elif test $ac_cv_prog_cc_g = yes; then
5129 if test "$GCC" = yes; then
5130 CFLAGS="-g -O2"
5131 else
5132 CFLAGS="-g"
5133 fi
5134 else
5135 if test "$GCC" = yes; then
5136 CFLAGS="-O2"
5137 else
5138 CFLAGS=
5139 fi
5140 fi
5141 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5142 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5143 if test "${ac_cv_prog_cc_c89+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 ac_cv_prog_cc_c89=no
5147 ac_save_CC=$CC
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 #include <stdarg.h>
5155 #include <stdio.h>
5156 #include <sys/types.h>
5157 #include <sys/stat.h>
5158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5159 struct buf { int x; };
5160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5161 static char *e (p, i)
5162 char **p;
5163 int i;
5164 {
5165 return p[i];
5166 }
5167 static char *f (char * (*g) (char **, int), char **p, ...)
5168 {
5169 char *s;
5170 va_list v;
5171 va_start (v,p);
5172 s = g (p, va_arg (v,int));
5173 va_end (v);
5174 return s;
5175 }
5176
5177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5178 function prototypes and stuff, but not '\xHH' hex character constants.
5179 These don't provoke an error unfortunately, instead are silently treated
5180 as 'x'. The following induces an error, until -std is added to get
5181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5182 array size at least. It's necessary to write '\x00'==0 to get something
5183 that's true only with -std. */
5184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5185
5186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5187 inside strings and character constants. */
5188 #define FOO(x) 'x'
5189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5190
5191 int test (int i, double x);
5192 struct s1 {int (*f) (int a);};
5193 struct s2 {int (*f) (double a);};
5194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5195 int argc;
5196 char **argv;
5197 int
5198 main ()
5199 {
5200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5201 ;
5202 return 0;
5203 }
5204 _ACEOF
5205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5207 do
5208 CC="$ac_save_CC $ac_arg"
5209 rm -f conftest.$ac_objext
5210 if { (ac_try="$ac_compile"
5211 case "(($ac_try" in
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_compile") 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && {
5223 test -z "$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 } && test -s conftest.$ac_objext; then
5226 ac_cv_prog_cc_c89=$ac_arg
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231
5232 fi
5233
5234 rm -f core conftest.err conftest.$ac_objext
5235 test "x$ac_cv_prog_cc_c89" != "xno" && break
5236 done
5237 rm -f conftest.$ac_ext
5238 CC=$ac_save_CC
5239
5240 fi
5241 # AC_CACHE_VAL
5242 case "x$ac_cv_prog_cc_c89" in
5243 x)
5244 { echo "$as_me:$LINENO: result: none needed" >&5
5245 echo "${ECHO_T}none needed" >&6; } ;;
5246 xno)
5247 { echo "$as_me:$LINENO: result: unsupported" >&5
5248 echo "${ECHO_T}unsupported" >&6; } ;;
5249 *)
5250 CC="$CC $ac_cv_prog_cc_c89"
5251 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5252 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5253 esac
5254
5255
5256 ac_ext=c
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262 depcc="$CC" am_compiler_list=
5263
5264 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5265 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5266 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5274 # in D'.
5275 mkdir conftest.dir
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5279 cd conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5285 # directory.
5286 mkdir sub
5287
5288 am_cv_CC_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5291 fi
5292 for depmode in $am_compiler_list; do
5293 # Setup a source with many dependencies, because some compilers
5294 # like to wrap large dependency lists on column 80 (with \), and
5295 # we should not choose a depcomp mode which is confused by this.
5296 #
5297 # We need to recreate these files for each test, as the compiler may
5298 # overwrite some of them when testing with obscure command lines.
5299 # This happens at least with the AIX C compiler.
5300 : > sub/conftest.c
5301 for i in 1 2 3 4 5 6; do
5302 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5303 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5304 # Solaris 8's {/usr,}/bin/sh.
5305 touch sub/conftst$i.h
5306 done
5307 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5308
5309 case $depmode in
5310 nosideeffect)
5311 # after this tag, mechanisms are not by side-effect, so they'll
5312 # only be used when explicitly requested
5313 if test "x$enable_dependency_tracking" = xyes; then
5314 continue
5315 else
5316 break
5317 fi
5318 ;;
5319 none) break ;;
5320 esac
5321 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5322 # mode. It turns out that the SunPro C++ compiler does not properly
5323 # handle `-M -o', and we need to detect this.
5324 if depmode=$depmode \
5325 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5326 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5327 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5328 >/dev/null 2>conftest.err &&
5329 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5330 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5331 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5332 # icc doesn't choke on unknown options, it will just issue warnings
5333 # or remarks (even with -Werror). So we grep stderr for any message
5334 # that says an option was ignored or not supported.
5335 # When given -MP, icc 7.0 and 7.1 complain thusly:
5336 # icc: Command line warning: ignoring option '-M'; no argument required
5337 # The diagnosis changed in icc 8.0:
5338 # icc: Command line remark: option '-MP' not supported
5339 if (grep 'ignoring option' conftest.err ||
5340 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5341 am_cv_CC_dependencies_compiler_type=$depmode
5342 break
5343 fi
5344 fi
5345 done
5346
5347 cd ..
5348 rm -rf conftest.dir
5349 else
5350 am_cv_CC_dependencies_compiler_type=none
5351 fi
5352
5353 fi
5354 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5355 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5356 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5357
5358
5359
5360 if
5361 test "x$enable_dependency_tracking" != xno \
5362 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5363 am__fastdepCC_TRUE=
5364 am__fastdepCC_FALSE='#'
5365 else
5366 am__fastdepCC_TRUE='#'
5367 am__fastdepCC_FALSE=
5368 fi
5369
5370
5371 if test "x$CC" != xcc; then
5372 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5373 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
5374 else
5375 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5376 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
5377 fi
5378 set dummy $CC; ac_cc=`echo $2 |
5379 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5380 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389
5390 int
5391 main ()
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 # Make sure it works both with $CC and with simple cc.
5399 # We do the test twice because some compilers refuse to overwrite an
5400 # existing .o file with -o, though they will create one.
5401 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5402 rm -f conftest2.*
5403 if { (case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_try") 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_try") 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); };
5421 then
5422 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5423 if test "x$CC" != xcc; then
5424 # Test first that cc exists at all.
5425 if { ac_try='cc -c conftest.$ac_ext >&5'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5435 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5436 rm -f conftest2.*
5437 if { (case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_try") 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_try") 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); };
5455 then
5456 # cc works too.
5457 :
5458 else
5459 # cc exists but doesn't like -o.
5460 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5461 fi
5462 fi
5463 fi
5464 else
5465 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5466 fi
5467 rm -f core conftest*
5468
5469 fi
5470 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5471 { echo "$as_me:$LINENO: result: yes" >&5
5472 echo "${ECHO_T}yes" >&6; }
5473 else
5474 { echo "$as_me:$LINENO: result: no" >&5
5475 echo "${ECHO_T}no" >&6; }
5476
5477 cat >>confdefs.h <<\_ACEOF
5478 #define NO_MINUS_C_MINUS_O 1
5479 _ACEOF
5480
5481 fi
5482
5483 ac_ext=cpp
5484 ac_cpp='$CXXCPP $CPPFLAGS'
5485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5488 if test -z "$CXX"; then
5489 if test -n "$CCC"; then
5490 CXX=$CCC
5491 else
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5494 do
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_CXX+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 if test -n "$CXX"; then
5503 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 CXX=$ac_cv_prog_CXX
5523 if test -n "$CXX"; then
5524 { echo "$as_me:$LINENO: result: $CXX" >&5
5525 echo "${ECHO_T}$CXX" >&6; }
5526 else
5527 { echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6; }
5529 fi
5530
5531
5532 test -n "$CXX" && break
5533 done
5534 fi
5535 if test -z "$CXX"; then
5536 ac_ct_CXX=$CXX
5537 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5538 do
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5543 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546 if test -n "$ac_ct_CXX"; then
5547 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_CXX="$ac_prog"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5567 if test -n "$ac_ct_CXX"; then
5568 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5569 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5570 else
5571 { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5573 fi
5574
5575
5576 test -n "$ac_ct_CXX" && break
5577 done
5578
5579 if test "x$ac_ct_CXX" = x; then
5580 CXX="g++"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583 yes:)
5584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5585 whose name does not start with the host triplet. If you think this
5586 configuration is useful to you, please write to [email protected]." >&5
5587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5588 whose name does not start with the host triplet. If you think this
5589 configuration is useful to you, please write to [email protected]." >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592 CXX=$ac_ct_CXX
5593 fi
5594 fi
5595
5596 fi
5597 fi
5598 # Provide some information about the compiler.
5599 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5600 ac_compiler=`set X $ac_compile; echo $2`
5601 { (ac_try="$ac_compiler --version >&5"
5602 case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compiler --version >&5") 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }
5611 { (ac_try="$ac_compiler -v >&5"
5612 case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compiler -v >&5") 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }
5621 { (ac_try="$ac_compiler -V >&5"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compiler -V >&5") 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }
5631
5632 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5633 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5634 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643
5644 int
5645 main ()
5646 {
5647 #ifndef __GNUC__
5648 choke me
5649 #endif
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_cxx_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_compiler_gnu=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 ac_compiler_gnu=no
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5682
5683 fi
5684 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5685 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5686 GXX=`test $ac_compiler_gnu = yes && echo yes`
5687 ac_test_CXXFLAGS=${CXXFLAGS+set}
5688 ac_save_CXXFLAGS=$CXXFLAGS
5689 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5690 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5691 if test "${ac_cv_prog_cxx_g+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5695 ac_cxx_werror_flag=yes
5696 ac_cv_prog_cxx_g=no
5697 CXXFLAGS="-g"
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704
5705 int
5706 main ()
5707 {
5708
5709 ;
5710 return 0;
5711 }
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5715 case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_cxx_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.$ac_objext; then
5730 ac_cv_prog_cxx_g=yes
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 CXXFLAGS=""
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742
5743 int
5744 main ()
5745 {
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 :
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5774 CXXFLAGS="-g"
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781
5782 int
5783 main ()
5784 {
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_cxx_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest.$ac_objext; then
5807 ac_cv_prog_cxx_g=yes
5808 else
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5811
5812
5813 fi
5814
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 fi
5817
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 fi
5820
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5823 fi
5824 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5825 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5826 if test "$ac_test_CXXFLAGS" = set; then
5827 CXXFLAGS=$ac_save_CXXFLAGS
5828 elif test $ac_cv_prog_cxx_g = yes; then
5829 if test "$GXX" = yes; then
5830 CXXFLAGS="-g -O2"
5831 else
5832 CXXFLAGS="-g"
5833 fi
5834 else
5835 if test "$GXX" = yes; then
5836 CXXFLAGS="-O2"
5837 else
5838 CXXFLAGS=
5839 fi
5840 fi
5841 ac_ext=c
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846
5847 depcc="$CXX" am_compiler_list=
5848
5849 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5850 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5851 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5855 # We make a subdir and do the tests there. Otherwise we can end up
5856 # making bogus files that we don't know about and never remove. For
5857 # instance it was reported that on HP-UX the gcc test will end up
5858 # making a dummy file named `D' -- because `-MD' means `put the output
5859 # in D'.
5860 mkdir conftest.dir
5861 # Copy depcomp to subdir because otherwise we won't find it if we're
5862 # using a relative directory.
5863 cp "$am_depcomp" conftest.dir
5864 cd conftest.dir
5865 # We will build objects and dependencies in a subdirectory because
5866 # it helps to detect inapplicable dependency modes. For instance
5867 # both Tru64's cc and ICC support -MD to output dependencies as a
5868 # side effect of compilation, but ICC will put the dependencies in
5869 # the current directory while Tru64 will put them in the object
5870 # directory.
5871 mkdir sub
5872
5873 am_cv_CXX_dependencies_compiler_type=none
5874 if test "$am_compiler_list" = ""; then
5875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5876 fi
5877 for depmode in $am_compiler_list; do
5878 # Setup a source with many dependencies, because some compilers
5879 # like to wrap large dependency lists on column 80 (with \), and
5880 # we should not choose a depcomp mode which is confused by this.
5881 #
5882 # We need to recreate these files for each test, as the compiler may
5883 # overwrite some of them when testing with obscure command lines.
5884 # This happens at least with the AIX C compiler.
5885 : > sub/conftest.c
5886 for i in 1 2 3 4 5 6; do
5887 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5888 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5889 # Solaris 8's {/usr,}/bin/sh.
5890 touch sub/conftst$i.h
5891 done
5892 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5893
5894 case $depmode in
5895 nosideeffect)
5896 # after this tag, mechanisms are not by side-effect, so they'll
5897 # only be used when explicitly requested
5898 if test "x$enable_dependency_tracking" = xyes; then
5899 continue
5900 else
5901 break
5902 fi
5903 ;;
5904 none) break ;;
5905 esac
5906 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5907 # mode. It turns out that the SunPro C++ compiler does not properly
5908 # handle `-M -o', and we need to detect this.
5909 if depmode=$depmode \
5910 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5912 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5913 >/dev/null 2>conftest.err &&
5914 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5915 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5916 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5917 # icc doesn't choke on unknown options, it will just issue warnings
5918 # or remarks (even with -Werror). So we grep stderr for any message
5919 # that says an option was ignored or not supported.
5920 # When given -MP, icc 7.0 and 7.1 complain thusly:
5921 # icc: Command line warning: ignoring option '-M'; no argument required
5922 # The diagnosis changed in icc 8.0:
5923 # icc: Command line remark: option '-MP' not supported
5924 if (grep 'ignoring option' conftest.err ||
5925 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5926 am_cv_CXX_dependencies_compiler_type=$depmode
5927 break
5928 fi
5929 fi
5930 done
5931
5932 cd ..
5933 rm -rf conftest.dir
5934 else
5935 am_cv_CXX_dependencies_compiler_type=none
5936 fi
5937
5938 fi
5939 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5940 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5941 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5942
5943
5944
5945 if
5946 test "x$enable_dependency_tracking" != xno \
5947 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5948 am__fastdepCXX_TRUE=
5949 am__fastdepCXX_FALSE='#'
5950 else
5951 am__fastdepCXX_TRUE='#'
5952 am__fastdepCXX_FALSE=
5953 fi
5954
5955
5956 if test $ac_cv_c_compiler_gnu = yes; then
5957 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5958 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5959 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 ac_pattern="Autoconf.*'x'"
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <sgtty.h>
5970 Autoconf TIOCGETP
5971 _ACEOF
5972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5974 ac_cv_prog_gcc_traditional=yes
5975 else
5976 ac_cv_prog_gcc_traditional=no
5977 fi
5978 rm -f conftest*
5979
5980
5981 if test $ac_cv_prog_gcc_traditional = no; then
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <termio.h>
5989 Autoconf TCGETA
5990 _ACEOF
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5993 ac_cv_prog_gcc_traditional=yes
5994 fi
5995 rm -f conftest*
5996
5997 fi
5998 fi
5999 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6000 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6001 if test $ac_cv_prog_gcc_traditional = yes; then
6002 CC="$CC -traditional"
6003 fi
6004 fi
6005
6006 # Find a good install program. We prefer a C program (faster),
6007 # so one script is as good as another. But avoid the broken or
6008 # incompatible versions:
6009 # SysV /etc/install, /usr/sbin/install
6010 # SunOS /usr/etc/install
6011 # IRIX /sbin/install
6012 # AIX /bin/install
6013 # AmigaOS /C/install, which installs bootblocks on floppy discs
6014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6017 # OS/2's system install, which has a completely different semantic
6018 # ./install, which can be erroneously created by make from ./install.sh.
6019 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6020 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6021 if test -z "$INSTALL"; then
6022 if test "${ac_cv_path_install+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 # Account for people who put trailing slashes in PATH elements.
6031 case $as_dir/ in
6032 ./ | .// | /cC/* | \
6033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6034 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6035 /usr/ucb/* ) ;;
6036 *)
6037 # OSF1 and SCO ODT 3.0 have their own names for install.
6038 # Don't use installbsd from OSF since it installs stuff as root
6039 # by default.
6040 for ac_prog in ginstall scoinst install; do
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6043 if test $ac_prog = install &&
6044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6045 # AIX install. It has an incompatible calling convention.
6046 :
6047 elif test $ac_prog = install &&
6048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6049 # program-specific install script used by HP pwplus--don't use.
6050 :
6051 else
6052 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6053 break 3
6054 fi
6055 fi
6056 done
6057 done
6058 ;;
6059 esac
6060 done
6061 IFS=$as_save_IFS
6062
6063
6064 fi
6065 if test "${ac_cv_path_install+set}" = set; then
6066 INSTALL=$ac_cv_path_install
6067 else
6068 # As a last resort, use the slow shell script. Don't cache a
6069 # value for INSTALL within a source directory, because that will
6070 # break other packages using the cache if that directory is
6071 # removed, or if the value is a relative name.
6072 INSTALL=$ac_install_sh
6073 fi
6074 fi
6075 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6076 echo "${ECHO_T}$INSTALL" >&6; }
6077
6078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6079 # It thinks the first close brace ends the variable substitution.
6080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6081
6082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6083
6084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6085
6086 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6087 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6088 LN_S=$as_ln_s
6089 if test "$LN_S" = "ln -s"; then
6090 { echo "$as_me:$LINENO: result: yes" >&5
6091 echo "${ECHO_T}yes" >&6; }
6092 else
6093 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6094 echo "${ECHO_T}no, using $LN_S" >&6; }
6095 fi
6096
6097
6098 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6099 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6100 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6101 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 cat >conftest.make <<\_ACEOF
6105 SHELL = /bin/sh
6106 all:
6107 @echo '@@@%%%=$(MAKE)=@@@%%%'
6108 _ACEOF
6109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6110 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6111 *@@@%%%=?*=@@@%%%*)
6112 eval ac_cv_prog_make_${ac_make}_set=yes;;
6113 *)
6114 eval ac_cv_prog_make_${ac_make}_set=no;;
6115 esac
6116 rm -f conftest.make
6117 fi
6118 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6119 { echo "$as_me:$LINENO: result: yes" >&5
6120 echo "${ECHO_T}yes" >&6; }
6121 SET_MAKE=
6122 else
6123 { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 SET_MAKE="MAKE=${MAKE-make}"
6126 fi
6127
6128
6129
6130 ac_ext=c
6131 ac_cpp='$CPP $CPPFLAGS'
6132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135
6136
6137 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6138 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6139 if test "${ac_cv_c_const+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148
6149 int
6150 main ()
6151 {
6152 /* FIXME: Include the comments suggested by Paul. */
6153 #ifndef __cplusplus
6154 /* Ultrix mips cc rejects this. */
6155 typedef int charset[2];
6156 const charset cs;
6157 /* SunOS 4.1.1 cc rejects this. */
6158 char const *const *pcpcc;
6159 char **ppc;
6160 /* NEC SVR4.0.2 mips cc rejects this. */
6161 struct point {int x, y;};
6162 static struct point const zero = {0,0};
6163 /* AIX XL C 1.02.0.0 rejects this.
6164 It does not let you subtract one const X* pointer from another in
6165 an arm of an if-expression whose if-part is not a constant
6166 expression */
6167 const char *g = "string";
6168 pcpcc = &g + (g ? g-g : 0);
6169 /* HPUX 7.0 cc rejects these. */
6170 ++pcpcc;
6171 ppc = (char**) pcpcc;
6172 pcpcc = (char const *const *) ppc;
6173 { /* SCO 3.2v4 cc rejects this. */
6174 char *t;
6175 char const *s = 0 ? (char *) 0 : (char const *) 0;
6176
6177 *t++ = 0;
6178 if (s) return 0;
6179 }
6180 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6181 int x[] = {25, 17};
6182 const int *foo = &x[0];
6183 ++foo;
6184 }
6185 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6186 typedef const int *iptr;
6187 iptr p = 0;
6188 ++p;
6189 }
6190 { /* AIX XL C 1.02.0.0 rejects this saying
6191 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6192 struct s { int j; const int *ap[3]; };
6193 struct s *b; b->j = 5;
6194 }
6195 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6196 const int foo = 10;
6197 if (!foo) return 0;
6198 }
6199 return !cs[0] && !zero.x;
6200 #endif
6201
6202 ;
6203 return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (ac_try="$ac_compile"
6208 case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_compile") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest.$ac_objext; then
6223 ac_cv_c_const=yes
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 ac_cv_c_const=no
6229 fi
6230
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 fi
6233 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6234 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6235 if test $ac_cv_c_const = no; then
6236
6237 cat >>confdefs.h <<\_ACEOF
6238 #define const
6239 _ACEOF
6240
6241 fi
6242
6243 { echo "$as_me:$LINENO: checking for inline" >&5
6244 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6245 if test "${ac_cv_c_inline+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 ac_cv_c_inline=no
6249 for ac_kw in inline __inline__ __inline; do
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 #ifndef __cplusplus
6257 typedef int foo_t;
6258 static $ac_kw foo_t static_foo () {return 0; }
6259 $ac_kw foo_t foo () {return 0; }
6260 #endif
6261
6262 _ACEOF
6263 rm -f conftest.$ac_objext
6264 if { (ac_try="$ac_compile"
6265 case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268 esac
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_compile") 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && {
6277 test -z "$ac_c_werror_flag" ||
6278 test ! -s conftest.err
6279 } && test -s conftest.$ac_objext; then
6280 ac_cv_c_inline=$ac_kw
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6284
6285
6286 fi
6287
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 test "$ac_cv_c_inline" != no && break
6290 done
6291
6292 fi
6293 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6294 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6295
6296
6297 case $ac_cv_c_inline in
6298 inline | yes) ;;
6299 *)
6300 case $ac_cv_c_inline in
6301 no) ac_val=;;
6302 *) ac_val=$ac_cv_c_inline;;
6303 esac
6304 cat >>confdefs.h <<_ACEOF
6305 #ifndef __cplusplus
6306 #define inline $ac_val
6307 #endif
6308 _ACEOF
6309 ;;
6310 esac
6311
6312 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6313 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6314 if test "$ac_cv_prog_cc_c89" != no; then
6315 { echo "$as_me:$LINENO: result: yes" >&5
6316 echo "${ECHO_T}yes" >&6; }
6317
6318 cat >>confdefs.h <<\_ACEOF
6319 #define PROTOTYPES 1
6320 _ACEOF
6321
6322
6323 cat >>confdefs.h <<\_ACEOF
6324 #define __PROTOTYPES 1
6325 _ACEOF
6326
6327 else
6328 { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6330 fi
6331
6332 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6333 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6334 if test "${ac_cv_c_bigendian+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 # See if sys/param.h defines the BYTE_ORDER macro.
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <sys/types.h>
6345 #include <sys/param.h>
6346
6347 int
6348 main ()
6349 {
6350 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6351 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6352 bogus endian macros
6353 #endif
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (ac_try="$ac_compile"
6361 case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6376 # It does; now see whether it defined to BIG_ENDIAN or not.
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 #include <sys/types.h>
6384 #include <sys/param.h>
6385
6386 int
6387 main ()
6388 {
6389 #if BYTE_ORDER != BIG_ENDIAN
6390 not big endian
6391 #endif
6392
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6399 case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6405 ac_status=$?
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 ac_cv_c_bigendian=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_cv_c_bigendian=no
6420 fi
6421
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427 # It does not; compile a test program.
6428 if test "$cross_compiling" = yes; then
6429 # try to guess the endianness by grepping values into an object file
6430 ac_cv_c_bigendian=unknown
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6438 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6439 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6440 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6441 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6442 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6443 int
6444 main ()
6445 {
6446 _ascii (); _ebcdic ();
6447 ;
6448 return 0;
6449 }
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6453 case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
6468 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6469 ac_cv_c_bigendian=yes
6470 fi
6471 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6472 if test "$ac_cv_c_bigendian" = unknown; then
6473 ac_cv_c_bigendian=no
6474 else
6475 # finding both strings is unlikely to happen, but who knows?
6476 ac_cv_c_bigendian=unknown
6477 fi
6478 fi
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483
6484 fi
6485
6486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 else
6488 cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h. */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6495 int
6496 main ()
6497 {
6498
6499 /* Are we little or big endian? From Harbison&Steele. */
6500 union
6501 {
6502 long int l;
6503 char c[sizeof (long int)];
6504 } u;
6505 u.l = 1;
6506 return u.c[sizeof (long int) - 1] == 1;
6507
6508 ;
6509 return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest$ac_exeext
6513 if { (ac_try="$ac_link"
6514 case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517 esac
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_link") 2>&5
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_c_bigendian=no
6533 else
6534 echo "$as_me: program exited with status $ac_status" >&5
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 ( exit $ac_status )
6539 ac_cv_c_bigendian=yes
6540 fi
6541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6542 fi
6543
6544
6545 fi
6546
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6550 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6551 case $ac_cv_c_bigendian in
6552 yes)
6553
6554 cat >>confdefs.h <<\_ACEOF
6555 #define WORDS_BIGENDIAN 1
6556 _ACEOF
6557 ;;
6558 no)
6559 ;;
6560 *)
6561 { { echo "$as_me:$LINENO: error: unknown endianness
6562 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6563 echo "$as_me: error: unknown endianness
6564 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6565 { (exit 1); exit 1; }; } ;;
6566 esac
6567
6568
6569
6570 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6571 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6572 if test "${ac_cv_c_const+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h. */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581
6582 int
6583 main ()
6584 {
6585 /* FIXME: Include the comments suggested by Paul. */
6586 #ifndef __cplusplus
6587 /* Ultrix mips cc rejects this. */
6588 typedef int charset[2];
6589 const charset cs;
6590 /* SunOS 4.1.1 cc rejects this. */
6591 char const *const *pcpcc;
6592 char **ppc;
6593 /* NEC SVR4.0.2 mips cc rejects this. */
6594 struct point {int x, y;};
6595 static struct point const zero = {0,0};
6596 /* AIX XL C 1.02.0.0 rejects this.
6597 It does not let you subtract one const X* pointer from another in
6598 an arm of an if-expression whose if-part is not a constant
6599 expression */
6600 const char *g = "string";
6601 pcpcc = &g + (g ? g-g : 0);
6602 /* HPUX 7.0 cc rejects these. */
6603 ++pcpcc;
6604 ppc = (char**) pcpcc;
6605 pcpcc = (char const *const *) ppc;
6606 { /* SCO 3.2v4 cc rejects this. */
6607 char *t;
6608 char const *s = 0 ? (char *) 0 : (char const *) 0;
6609
6610 *t++ = 0;
6611 if (s) return 0;
6612 }
6613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6614 int x[] = {25, 17};
6615 const int *foo = &x[0];
6616 ++foo;
6617 }
6618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6619 typedef const int *iptr;
6620 iptr p = 0;
6621 ++p;
6622 }
6623 { /* AIX XL C 1.02.0.0 rejects this saying
6624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6625 struct s { int j; const int *ap[3]; };
6626 struct s *b; b->j = 5;
6627 }
6628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6629 const int foo = 10;
6630 if (!foo) return 0;
6631 }
6632 return !cs[0] && !zero.x;
6633 #endif
6634
6635 ;
6636 return 0;
6637 }
6638 _ACEOF
6639 rm -f conftest.$ac_objext
6640 if { (ac_try="$ac_compile"
6641 case "(($ac_try" in
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6644 esac
6645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 (eval "$ac_compile") 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && {
6653 test -z "$ac_c_werror_flag" ||
6654 test ! -s conftest.err
6655 } && test -s conftest.$ac_objext; then
6656 ac_cv_c_const=yes
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ac_cv_c_const=no
6662 fi
6663
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 fi
6666 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6667 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6668 if test $ac_cv_c_const = no; then
6669
6670 cat >>confdefs.h <<\_ACEOF
6671 #define const
6672 _ACEOF
6673
6674 fi
6675
6676
6677
6678
6679
6680 # Check whether --enable-shared was given.
6681 if test "${enable_shared+set}" = set; then
6682 enableval=$enable_shared; p=${PACKAGE-default}
6683 case $enableval in
6684 yes) enable_shared=yes ;;
6685 no) enable_shared=no ;;
6686 *)
6687 enable_shared=no
6688 # Look at the argument we got. We use all the common list separators.
6689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6690 for pkg in $enableval; do
6691 IFS="$lt_save_ifs"
6692 if test "X$pkg" = "X$p"; then
6693 enable_shared=yes
6694 fi
6695 done
6696 IFS="$lt_save_ifs"
6697 ;;
6698 esac
6699 else
6700 enable_shared=yes
6701 fi
6702
6703
6704 # Check whether --enable-static was given.
6705 if test "${enable_static+set}" = set; then
6706 enableval=$enable_static; p=${PACKAGE-default}
6707 case $enableval in
6708 yes) enable_static=yes ;;
6709 no) enable_static=no ;;
6710 *)
6711 enable_static=no
6712 # Look at the argument we got. We use all the common list separators.
6713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6714 for pkg in $enableval; do
6715 IFS="$lt_save_ifs"
6716 if test "X$pkg" = "X$p"; then
6717 enable_static=yes
6718 fi
6719 done
6720 IFS="$lt_save_ifs"
6721 ;;
6722 esac
6723 else
6724 enable_static=yes
6725 fi
6726
6727
6728 # Check whether --enable-fast-install was given.
6729 if test "${enable_fast_install+set}" = set; then
6730 enableval=$enable_fast_install; p=${PACKAGE-default}
6731 case $enableval in
6732 yes) enable_fast_install=yes ;;
6733 no) enable_fast_install=no ;;
6734 *)
6735 enable_fast_install=no
6736 # Look at the argument we got. We use all the common list separators.
6737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6738 for pkg in $enableval; do
6739 IFS="$lt_save_ifs"
6740 if test "X$pkg" = "X$p"; then
6741 enable_fast_install=yes
6742 fi
6743 done
6744 IFS="$lt_save_ifs"
6745 ;;
6746 esac
6747 else
6748 enable_fast_install=yes
6749 fi
6750
6751
6752 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6753 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6754 if test "${lt_cv_path_SED+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 # Loop through the user's path and test for sed and gsed.
6758 # Then use that list of sed's as ones to test for truncation.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for lt_ac_prog in sed gsed; do
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6767 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6768 fi
6769 done
6770 done
6771 done
6772 lt_ac_max=0
6773 lt_ac_count=0
6774 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6775 # along with /bin/sed that truncates output.
6776 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6777 test ! -f $lt_ac_sed && continue
6778 cat /dev/null > conftest.in
6779 lt_ac_count=0
6780 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6781 # Check for GNU sed and select it if it is found.
6782 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6783 lt_cv_path_SED=$lt_ac_sed
6784 break
6785 fi
6786 while true; do
6787 cat conftest.in conftest.in >conftest.tmp
6788 mv conftest.tmp conftest.in
6789 cp conftest.in conftest.nl
6790 echo >>conftest.nl
6791 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6792 cmp -s conftest.out conftest.nl || break
6793 # 10000 chars as input seems more than enough
6794 test $lt_ac_count -gt 10 && break
6795 lt_ac_count=`expr $lt_ac_count + 1`
6796 if test $lt_ac_count -gt $lt_ac_max; then
6797 lt_ac_max=$lt_ac_count
6798 lt_cv_path_SED=$lt_ac_sed
6799 fi
6800 done
6801 done
6802
6803 fi
6804
6805 SED=$lt_cv_path_SED
6806 { echo "$as_me:$LINENO: result: $SED" >&5
6807 echo "${ECHO_T}$SED" >&6; }
6808
6809
6810 # Check whether --with-gnu-ld was given.
6811 if test "${with_gnu_ld+set}" = set; then
6812 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6813 else
6814 with_gnu_ld=no
6815 fi
6816
6817 ac_prog=ld
6818 if test "$GCC" = yes; then
6819 # Check if gcc -print-prog-name=ld gives a path.
6820 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6821 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6822 case $host in
6823 *-*-mingw*)
6824 # gcc leaves a trailing carriage return which upsets mingw
6825 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6826 *)
6827 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6828 esac
6829 case $ac_prog in
6830 # Accept absolute paths.
6831 [\\/]* | ?:[\\/]*)
6832 re_direlt='/[^/][^/]*/\.\./'
6833 # Canonicalize the pathname of ld
6834 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6835 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6836 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6837 done
6838 test -z "$LD" && LD="$ac_prog"
6839 ;;
6840 "")
6841 # If it fails, then pretend we aren't using GCC.
6842 ac_prog=ld
6843 ;;
6844 *)
6845 # If it is relative, then search for the first ld in PATH.
6846 with_gnu_ld=unknown
6847 ;;
6848 esac
6849 elif test "$with_gnu_ld" = yes; then
6850 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6851 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6852 else
6853 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6854 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6855 fi
6856 if test "${lt_cv_path_LD+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859 if test -z "$LD"; then
6860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6861 for ac_dir in $PATH; do
6862 IFS="$lt_save_ifs"
6863 test -z "$ac_dir" && ac_dir=.
6864 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6865 lt_cv_path_LD="$ac_dir/$ac_prog"
6866 # Check to see if the program is GNU ld. I'd rather use --version,
6867 # but apparently some variants of GNU ld only accept -v.
6868 # Break only if it was the GNU/non-GNU ld that we prefer.
6869 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6870 *GNU* | *'with BFD'*)
6871 test "$with_gnu_ld" != no && break
6872 ;;
6873 *)
6874 test "$with_gnu_ld" != yes && break
6875 ;;
6876 esac
6877 fi
6878 done
6879 IFS="$lt_save_ifs"
6880 else
6881 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6882 fi
6883 fi
6884
6885 LD="$lt_cv_path_LD"
6886 if test -n "$LD"; then
6887 { echo "$as_me:$LINENO: result: $LD" >&5
6888 echo "${ECHO_T}$LD" >&6; }
6889 else
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6892 fi
6893 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6894 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6895 { (exit 1); exit 1; }; }
6896 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6897 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6898 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6902 case `$LD -v 2>&1 </dev/null` in
6903 *GNU* | *'with BFD'*)
6904 lt_cv_prog_gnu_ld=yes
6905 ;;
6906 *)
6907 lt_cv_prog_gnu_ld=no
6908 ;;
6909 esac
6910 fi
6911 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6912 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6913 with_gnu_ld=$lt_cv_prog_gnu_ld
6914
6915
6916 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6917 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6918 if test "${lt_cv_ld_reload_flag+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 lt_cv_ld_reload_flag='-r'
6922 fi
6923 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6924 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6925 reload_flag=$lt_cv_ld_reload_flag
6926 case $reload_flag in
6927 "" | " "*) ;;
6928 *) reload_flag=" $reload_flag" ;;
6929 esac
6930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6931 case $host_os in
6932 darwin*)
6933 if test "$GCC" = yes; then
6934 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6935 else
6936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6937 fi
6938 ;;
6939 esac
6940
6941 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6942 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6943 if test "${lt_cv_path_NM+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 if test -n "$NM"; then
6947 # Let the user override the test.
6948 lt_cv_path_NM="$NM"
6949 else
6950 lt_nm_to_check="${ac_tool_prefix}nm"
6951 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6952 lt_nm_to_check="$lt_nm_to_check nm"
6953 fi
6954 for lt_tmp_nm in $lt_nm_to_check; do
6955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6956 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6957 IFS="$lt_save_ifs"
6958 test -z "$ac_dir" && ac_dir=.
6959 tmp_nm="$ac_dir/$lt_tmp_nm"
6960 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6961 # Check to see if the nm accepts a BSD-compat flag.
6962 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6963 # nm: unknown option "B" ignored
6964 # Tru64's nm complains that /dev/null is an invalid object file
6965 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6966 */dev/null* | *'Invalid file or object type'*)
6967 lt_cv_path_NM="$tmp_nm -B"
6968 break
6969 ;;
6970 *)
6971 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6972 */dev/null*)
6973 lt_cv_path_NM="$tmp_nm -p"
6974 break
6975 ;;
6976 *)
6977 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6978 continue # so that we can try to find one that supports BSD flags
6979 ;;
6980 esac
6981 ;;
6982 esac
6983 fi
6984 done
6985 IFS="$lt_save_ifs"
6986 done
6987 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6988 fi
6989 fi
6990 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6991 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6992 NM="$lt_cv_path_NM"
6993
6994 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6995 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6996 if test "${lt_cv_deplibs_check_method+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 lt_cv_file_magic_cmd='$MAGIC_CMD'
7000 lt_cv_file_magic_test_file=
7001 lt_cv_deplibs_check_method='unknown'
7002 # Need to set the preceding variable on all platforms that support
7003 # interlibrary dependencies.
7004 # 'none' -- dependencies not supported.
7005 # `unknown' -- same as none, but documents that we really don't know.
7006 # 'pass_all' -- all dependencies passed with no checks.
7007 # 'test_compile' -- check by making test program.
7008 # 'file_magic [[regex]]' -- check by looking for files in library path
7009 # which responds to the $file_magic_cmd with a given extended regex.
7010 # If you have `file' or equivalent on your system and you're not sure
7011 # whether `pass_all' will *always* work, you probably want this one.
7012
7013 case $host_os in
7014 aix4* | aix5*)
7015 lt_cv_deplibs_check_method=pass_all
7016 ;;
7017
7018 beos*)
7019 lt_cv_deplibs_check_method=pass_all
7020 ;;
7021
7022 bsdi[45]*)
7023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7024 lt_cv_file_magic_cmd='/usr/bin/file -L'
7025 lt_cv_file_magic_test_file=/shlib/libc.so
7026 ;;
7027
7028 cygwin*)
7029 # func_win32_libid is a shell function defined in ltmain.sh
7030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7031 lt_cv_file_magic_cmd='func_win32_libid'
7032 ;;
7033
7034 mingw* | pw32*)
7035 # Base MSYS/MinGW do not provide the 'file' command needed by
7036 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7037 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7038 lt_cv_file_magic_cmd='$OBJDUMP -f'
7039 ;;
7040
7041 darwin* | rhapsody*)
7042 lt_cv_deplibs_check_method=pass_all
7043 ;;
7044
7045 freebsd* | dragonfly*)
7046 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7047 case $host_cpu in
7048 i*86 )
7049 # Not sure whether the presence of OpenBSD here was a mistake.
7050 # Let's accept both of them until this is cleared up.
7051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7052 lt_cv_file_magic_cmd=/usr/bin/file
7053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7054 ;;
7055 esac
7056 else
7057 lt_cv_deplibs_check_method=pass_all
7058 fi
7059 ;;
7060
7061 gnu*)
7062 lt_cv_deplibs_check_method=pass_all
7063 ;;
7064
7065 hpux10.20* | hpux11*)
7066 lt_cv_file_magic_cmd=/usr/bin/file
7067 case $host_cpu in
7068 ia64*)
7069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7071 ;;
7072 hppa*64*)
7073 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]'
7074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7075 ;;
7076 *)
7077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7079 ;;
7080 esac
7081 ;;
7082
7083 interix3*)
7084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7086 ;;
7087
7088 irix5* | irix6* | nonstopux*)
7089 case $LD in
7090 *-32|*"-32 ") libmagic=32-bit;;
7091 *-n32|*"-n32 ") libmagic=N32;;
7092 *-64|*"-64 ") libmagic=64-bit;;
7093 *) libmagic=never-match;;
7094 esac
7095 lt_cv_deplibs_check_method=pass_all
7096 ;;
7097
7098 # This must be Linux ELF.
7099 linux* | k*bsd*-gnu)
7100 lt_cv_deplibs_check_method=pass_all
7101 ;;
7102
7103 netbsd* | netbsdelf*-gnu)
7104 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7106 else
7107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7108 fi
7109 ;;
7110
7111 newos6*)
7112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7113 lt_cv_file_magic_cmd=/usr/bin/file
7114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7115 ;;
7116
7117 nto-qnx*)
7118 lt_cv_deplibs_check_method=unknown
7119 ;;
7120
7121 openbsd*)
7122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7124 else
7125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7126 fi
7127 ;;
7128
7129 osf3* | osf4* | osf5*)
7130 lt_cv_deplibs_check_method=pass_all
7131 ;;
7132
7133 solaris*)
7134 lt_cv_deplibs_check_method=pass_all
7135 ;;
7136
7137 sysv4 | sysv4.3*)
7138 case $host_vendor in
7139 motorola)
7140 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]'
7141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7142 ;;
7143 ncr)
7144 lt_cv_deplibs_check_method=pass_all
7145 ;;
7146 sequent)
7147 lt_cv_file_magic_cmd='/bin/file'
7148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7149 ;;
7150 sni)
7151 lt_cv_file_magic_cmd='/bin/file'
7152 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7153 lt_cv_file_magic_test_file=/lib/libc.so
7154 ;;
7155 siemens)
7156 lt_cv_deplibs_check_method=pass_all
7157 ;;
7158 pc)
7159 lt_cv_deplibs_check_method=pass_all
7160 ;;
7161 esac
7162 ;;
7163
7164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
7167 esac
7168
7169 fi
7170 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7171 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
7172 file_magic_cmd=$lt_cv_file_magic_cmd
7173 deplibs_check_method=$lt_cv_deplibs_check_method
7174 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7175
7176
7177
7178
7179 # If no C compiler was specified, use CC.
7180 LTCC=${LTCC-"$CC"}
7181
7182 # If no C compiler flags were specified, use CFLAGS.
7183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7184
7185 # Allow CC to be a program name with arguments.
7186 compiler=$CC
7187
7188 # Check whether --enable-libtool-lock was given.
7189 if test "${enable_libtool_lock+set}" = set; then
7190 enableval=$enable_libtool_lock;
7191 fi
7192
7193 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7194
7195 # Some flags need to be propagated to the compiler or linker for good
7196 # libtool support.
7197 case $host in
7198 ia64-*-hpux*)
7199 # Find out which ABI we are using.
7200 echo 'int i;' > conftest.$ac_ext
7201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7202 (eval $ac_compile) 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; then
7206 case `/usr/bin/file conftest.$ac_objext` in
7207 *ELF-32*)
7208 HPUX_IA64_MODE="32"
7209 ;;
7210 *ELF-64*)
7211 HPUX_IA64_MODE="64"
7212 ;;
7213 esac
7214 fi
7215 rm -rf conftest*
7216 ;;
7217 *-*-irix6*)
7218 # Find out which ABI we are using.
7219 echo '#line 7219 "configure"' > conftest.$ac_ext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; then
7225 if test "$lt_cv_prog_gnu_ld" = yes; then
7226 case `/usr/bin/file conftest.$ac_objext` in
7227 *32-bit*)
7228 LD="${LD-ld} -melf32bsmip"
7229 ;;
7230 *N32*)
7231 LD="${LD-ld} -melf32bmipn32"
7232 ;;
7233 *64-bit*)
7234 LD="${LD-ld} -melf64bmip"
7235 ;;
7236 esac
7237 else
7238 case `/usr/bin/file conftest.$ac_objext` in
7239 *32-bit*)
7240 LD="${LD-ld} -32"
7241 ;;
7242 *N32*)
7243 LD="${LD-ld} -n32"
7244 ;;
7245 *64-bit*)
7246 LD="${LD-ld} -64"
7247 ;;
7248 esac
7249 fi
7250 fi
7251 rm -rf conftest*
7252 ;;
7253
7254 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7255 # Find out which ABI we are using.
7256 echo 'int i;' > conftest.$ac_ext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; then
7262 case `/usr/bin/file conftest.o` in
7263 *32-bit*)
7264 case $host in
7265 x86_64-*linux*)
7266 LD="${LD-ld} -m elf_i386"
7267 ;;
7268 ppc64-*linux*|powerpc64-*linux*)
7269 LD="${LD-ld} -m elf32ppclinux"
7270 ;;
7271 s390x-*linux*)
7272 LD="${LD-ld} -m elf_s390"
7273 ;;
7274 sparc64-*linux*)
7275 LD="${LD-ld} -m elf32_sparc"
7276 ;;
7277 esac
7278 ;;
7279 *64-bit*)
7280 case $host in
7281 x86_64-*linux*)
7282 LD="${LD-ld} -m elf_x86_64"
7283 ;;
7284 ppc*-*linux*|powerpc*-*linux*)
7285 LD="${LD-ld} -m elf64ppc"
7286 ;;
7287 s390*-*linux*)
7288 LD="${LD-ld} -m elf64_s390"
7289 ;;
7290 sparc*-*linux*)
7291 LD="${LD-ld} -m elf64_sparc"
7292 ;;
7293 esac
7294 ;;
7295 esac
7296 fi
7297 rm -rf conftest*
7298 ;;
7299
7300 *-*-sco3.2v5*)
7301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7302 SAVE_CFLAGS="$CFLAGS"
7303 CFLAGS="$CFLAGS -belf"
7304 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7305 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7306 if test "${lt_cv_cc_needs_belf+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309 ac_ext=c
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321
7322 int
7323 main ()
7324 {
7325
7326 ;
7327 return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7332 case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_link") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest$ac_exeext &&
7347 $as_test_x conftest$ac_exeext; then
7348 lt_cv_cc_needs_belf=yes
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 lt_cv_cc_needs_belf=no
7354 fi
7355
7356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7357 conftest$ac_exeext conftest.$ac_ext
7358 ac_ext=c
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364 fi
7365 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7366 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7367 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7369 CFLAGS="$SAVE_CFLAGS"
7370 fi
7371 ;;
7372 sparc*-*solaris*)
7373 # Find out which ABI we are using.
7374 echo 'int i;' > conftest.$ac_ext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; then
7380 case `/usr/bin/file conftest.o` in
7381 *64-bit*)
7382 case $lt_cv_prog_gnu_ld in
7383 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7384 *) LD="${LD-ld} -64" ;;
7385 esac
7386 ;;
7387 esac
7388 fi
7389 rm -rf conftest*
7390 ;;
7391
7392 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 if test -n "$DLLTOOL"; then
7402 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 DLLTOOL=$ac_cv_prog_DLLTOOL
7422 if test -n "$DLLTOOL"; then
7423 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7424 echo "${ECHO_T}$DLLTOOL" >&6; }
7425 else
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431 fi
7432 if test -z "$ac_cv_prog_DLLTOOL"; then
7433 ac_ct_DLLTOOL=$DLLTOOL
7434 # Extract the first word of "dlltool", so it can be a program name with args.
7435 set dummy dlltool; ac_word=$2
7436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441 if test -n "$ac_ct_DLLTOOL"; then
7442 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7462 if test -n "$ac_ct_DLLTOOL"; then
7463 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7464 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7465 else
7466 { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7468 fi
7469
7470 if test "x$ac_ct_DLLTOOL" = x; then
7471 DLLTOOL="false"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7476 whose name does not start with the host triplet. If you think this
7477 configuration is useful to you, please write to [email protected]." >&5
7478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7479 whose name does not start with the host triplet. If you think this
7480 configuration is useful to you, please write to [email protected]." >&2;}
7481 ac_tool_warned=yes ;;
7482 esac
7483 DLLTOOL=$ac_ct_DLLTOOL
7484 fi
7485 else
7486 DLLTOOL="$ac_cv_prog_DLLTOOL"
7487 fi
7488
7489 if test -n "$ac_tool_prefix"; then
7490 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7491 set dummy ${ac_tool_prefix}as; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_prog_AS+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497 if test -n "$AS"; then
7498 ac_cv_prog_AS="$AS" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_AS="${ac_tool_prefix}as"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 AS=$ac_cv_prog_AS
7518 if test -n "$AS"; then
7519 { echo "$as_me:$LINENO: result: $AS" >&5
7520 echo "${ECHO_T}$AS" >&6; }
7521 else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7524 fi
7525
7526
7527 fi
7528 if test -z "$ac_cv_prog_AS"; then
7529 ac_ct_AS=$AS
7530 # Extract the first word of "as", so it can be a program name with args.
7531 set dummy as; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 if test -n "$ac_ct_AS"; then
7538 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_prog_ac_ct_AS="as"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555 fi
7556 fi
7557 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7558 if test -n "$ac_ct_AS"; then
7559 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7560 echo "${ECHO_T}$ac_ct_AS" >&6; }
7561 else
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7564 fi
7565
7566 if test "x$ac_ct_AS" = x; then
7567 AS="false"
7568 else
7569 case $cross_compiling:$ac_tool_warned in
7570 yes:)
7571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7572 whose name does not start with the host triplet. If you think this
7573 configuration is useful to you, please write to [email protected]." >&5
7574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7575 whose name does not start with the host triplet. If you think this
7576 configuration is useful to you, please write to [email protected]." >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579 AS=$ac_ct_AS
7580 fi
7581 else
7582 AS="$ac_cv_prog_AS"
7583 fi
7584
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 if test -n "$OBJDUMP"; then
7594 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 OBJDUMP=$ac_cv_prog_OBJDUMP
7614 if test -n "$OBJDUMP"; then
7615 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7616 echo "${ECHO_T}$OBJDUMP" >&6; }
7617 else
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if test -z "$ac_cv_prog_OBJDUMP"; then
7625 ac_ct_OBJDUMP=$OBJDUMP
7626 # Extract the first word of "objdump", so it can be a program name with args.
7627 set dummy objdump; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633 if test -n "$ac_ct_OBJDUMP"; then
7634 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7654 if test -n "$ac_ct_OBJDUMP"; then
7655 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7656 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7657 else
7658 { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7660 fi
7661
7662 if test "x$ac_ct_OBJDUMP" = x; then
7663 OBJDUMP="false"
7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7668 whose name does not start with the host triplet. If you think this
7669 configuration is useful to you, please write to [email protected]." >&5
7670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7671 whose name does not start with the host triplet. If you think this
7672 configuration is useful to you, please write to [email protected]." >&2;}
7673 ac_tool_warned=yes ;;
7674 esac
7675 OBJDUMP=$ac_ct_OBJDUMP
7676 fi
7677 else
7678 OBJDUMP="$ac_cv_prog_OBJDUMP"
7679 fi
7680
7681 ;;
7682
7683 esac
7684
7685 need_locks="$enable_libtool_lock"
7686
7687
7688
7689 for ac_header in dlfcn.h
7690 do
7691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 fi
7698 ac_res=`eval echo '${'$as_ac_Header'}'`
7699 { echo "$as_me:$LINENO: result: $ac_res" >&5
7700 echo "${ECHO_T}$ac_res" >&6; }
7701 else
7702 # Is the header compilable?
7703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7712 #include <$ac_header>
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (ac_try="$ac_compile"
7716 case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7719 esac
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_compile") 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_c_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest.$ac_objext; then
7731 ac_header_compiler=yes
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 ac_header_compiler=no
7737 fi
7738
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7741 echo "${ECHO_T}$ac_header_compiler" >&6; }
7742
7743 # Is the header present?
7744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 #include <$ac_header>
7753 _ACEOF
7754 if { (ac_try="$ac_cpp conftest.$ac_ext"
7755 case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } >/dev/null && {
7767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 }; then
7770 ac_header_preproc=yes
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_header_preproc=no
7776 fi
7777
7778 rm -f conftest.err conftest.$ac_ext
7779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7780 echo "${ECHO_T}$ac_header_preproc" >&6; }
7781
7782 # So? What about this header?
7783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7784 yes:no: )
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7789 ac_header_preproc=yes
7790 ;;
7791 no:yes:* )
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7804 ( cat <<\_ASBOX
7805 ## ------------------------------------------ ##
7806 ## Report this to [email protected] ##
7807 ## ------------------------------------------ ##
7808 _ASBOX
7809 ) | sed "s/^/$as_me: WARNING: /" >&2
7810 ;;
7811 esac
7812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817 eval "$as_ac_Header=\$ac_header_preproc"
7818 fi
7819 ac_res=`eval echo '${'$as_ac_Header'}'`
7820 { echo "$as_me:$LINENO: result: $ac_res" >&5
7821 echo "${ECHO_T}$ac_res" >&6; }
7822
7823 fi
7824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7825 cat >>confdefs.h <<_ACEOF
7826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7827 _ACEOF
7828
7829 fi
7830
7831 done
7832
7833
7834
7835 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7836 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7837 (test "X$CXX" != "Xg++"))) ; then
7838 ac_ext=cpp
7839 ac_cpp='$CXXCPP $CPPFLAGS'
7840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7843 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7844 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7845 if test -z "$CXXCPP"; then
7846 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849 # Double quotes because CXXCPP needs to be expanded
7850 for CXXCPP in "$CXX -E" "/lib/cpp"
7851 do
7852 ac_preproc_ok=false
7853 for ac_cxx_preproc_warn_flag in '' yes
7854 do
7855 # Use a header file that comes with gcc, so configuring glibc
7856 # with a fresh cross-compiler works.
7857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7858 # <limits.h> exists even on freestanding compilers.
7859 # On the NeXT, cc -E runs the code through the compiler's parser,
7860 # not just through cpp. "Syntax error" is here to catch this case.
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #ifdef __STDC__
7868 # include <limits.h>
7869 #else
7870 # include <assert.h>
7871 #endif
7872 Syntax error
7873 _ACEOF
7874 if { (ac_try="$ac_cpp conftest.$ac_ext"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } >/dev/null && {
7887 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7888 test ! -s conftest.err
7889 }; then
7890 :
7891 else
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 # Broken: fails on valid input.
7896 continue
7897 fi
7898
7899 rm -f conftest.err conftest.$ac_ext
7900
7901 # OK, works on sane cases. Now check whether nonexistent headers
7902 # can be detected and how.
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 #include <ac_nonexistent.h>
7910 _ACEOF
7911 if { (ac_try="$ac_cpp conftest.$ac_ext"
7912 case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7918 ac_status=$?
7919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } >/dev/null && {
7924 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7925 test ! -s conftest.err
7926 }; then
7927 # Broken: success on invalid input.
7928 continue
7929 else
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 # Passes both tests.
7934 ac_preproc_ok=:
7935 break
7936 fi
7937
7938 rm -f conftest.err conftest.$ac_ext
7939
7940 done
7941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7942 rm -f conftest.err conftest.$ac_ext
7943 if $ac_preproc_ok; then
7944 break
7945 fi
7946
7947 done
7948 ac_cv_prog_CXXCPP=$CXXCPP
7949
7950 fi
7951 CXXCPP=$ac_cv_prog_CXXCPP
7952 else
7953 ac_cv_prog_CXXCPP=$CXXCPP
7954 fi
7955 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7956 echo "${ECHO_T}$CXXCPP" >&6; }
7957 ac_preproc_ok=false
7958 for ac_cxx_preproc_warn_flag in '' yes
7959 do
7960 # Use a header file that comes with gcc, so configuring glibc
7961 # with a fresh cross-compiler works.
7962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7963 # <limits.h> exists even on freestanding compilers.
7964 # On the NeXT, cc -E runs the code through the compiler's parser,
7965 # not just through cpp. "Syntax error" is here to catch this case.
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h. */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 #ifdef __STDC__
7973 # include <limits.h>
7974 #else
7975 # include <assert.h>
7976 #endif
7977 Syntax error
7978 _ACEOF
7979 if { (ac_try="$ac_cpp conftest.$ac_ext"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } >/dev/null && {
7992 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7993 test ! -s conftest.err
7994 }; then
7995 :
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 # Broken: fails on valid input.
8001 continue
8002 fi
8003
8004 rm -f conftest.err conftest.$ac_ext
8005
8006 # OK, works on sane cases. Now check whether nonexistent headers
8007 # can be detected and how.
8008 cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h. */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8014 #include <ac_nonexistent.h>
8015 _ACEOF
8016 if { (ac_try="$ac_cpp conftest.$ac_ext"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } >/dev/null && {
8029 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8030 test ! -s conftest.err
8031 }; then
8032 # Broken: success on invalid input.
8033 continue
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038 # Passes both tests.
8039 ac_preproc_ok=:
8040 break
8041 fi
8042
8043 rm -f conftest.err conftest.$ac_ext
8044
8045 done
8046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8047 rm -f conftest.err conftest.$ac_ext
8048 if $ac_preproc_ok; then
8049 :
8050 else
8051 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8052 See \`config.log' for more details." >&5
8053 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8054 See \`config.log' for more details." >&2;}
8055 { (exit 1); exit 1; }; }
8056 fi
8057
8058 ac_ext=cpp
8059 ac_cpp='$CXXCPP $CPPFLAGS'
8060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8063
8064 fi
8065
8066
8067 ac_ext=f
8068 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8069 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8071 if test -n "$ac_tool_prefix"; then
8072 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
8073 do
8074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8078 if test "${ac_cv_prog_F77+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081 if test -n "$F77"; then
8082 ac_cv_prog_F77="$F77" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 F77=$ac_cv_prog_F77
8102 if test -n "$F77"; then
8103 { echo "$as_me:$LINENO: result: $F77" >&5
8104 echo "${ECHO_T}$F77" >&6; }
8105 else
8106 { echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6; }
8108 fi
8109
8110
8111 test -n "$F77" && break
8112 done
8113 fi
8114 if test -z "$F77"; then
8115 ac_ct_F77=$F77
8116 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
8117 do
8118 # Extract the first word of "$ac_prog", so it can be a program name with args.
8119 set dummy $ac_prog; ac_word=$2
8120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8122 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 if test -n "$ac_ct_F77"; then
8126 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_ac_ct_F77="$ac_prog"
8136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139 done
8140 done
8141 IFS=$as_save_IFS
8142
8143 fi
8144 fi
8145 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8146 if test -n "$ac_ct_F77"; then
8147 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8148 echo "${ECHO_T}$ac_ct_F77" >&6; }
8149 else
8150 { echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6; }
8152 fi
8153
8154
8155 test -n "$ac_ct_F77" && break
8156 done
8157
8158 if test "x$ac_ct_F77" = x; then
8159 F77=""
8160 else
8161 case $cross_compiling:$ac_tool_warned in
8162 yes:)
8163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8164 whose name does not start with the host triplet. If you think this
8165 configuration is useful to you, please write to [email protected]." >&5
8166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8167 whose name does not start with the host triplet. If you think this
8168 configuration is useful to you, please write to [email protected]." >&2;}
8169 ac_tool_warned=yes ;;
8170 esac
8171 F77=$ac_ct_F77
8172 fi
8173 fi
8174
8175
8176 # Provide some information about the compiler.
8177 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8178 ac_compiler=`set X $ac_compile; echo $2`
8179 { (ac_try="$ac_compiler --version >&5"
8180 case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183 esac
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_compiler --version >&5") 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }
8189 { (ac_try="$ac_compiler -v >&5"
8190 case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_compiler -v >&5") 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }
8199 { (ac_try="$ac_compiler -V >&5"
8200 case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_compiler -V >&5") 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }
8209 rm -f a.out
8210
8211 # If we don't use `.F' as extension, the preprocessor is not run on the
8212 # input file. (Note that this only needs to work for GNU compilers.)
8213 ac_save_ext=$ac_ext
8214 ac_ext=F
8215 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8216 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8217 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 cat >conftest.$ac_ext <<_ACEOF
8221 program main
8222 #ifndef __GNUC__
8223 choke me
8224 #endif
8225
8226 end
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8230 case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_f77_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_compiler_gnu=yes
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 ac_compiler_gnu=no
8251 fi
8252
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8255
8256 fi
8257 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8258 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
8259 ac_ext=$ac_save_ext
8260 ac_test_FFLAGS=${FFLAGS+set}
8261 ac_save_FFLAGS=$FFLAGS
8262 FFLAGS=
8263 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8264 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
8265 if test "${ac_cv_prog_f77_g+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268 FFLAGS=-g
8269 cat >conftest.$ac_ext <<_ACEOF
8270 program main
8271
8272 end
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_f77_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_prog_f77_g=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8295
8296 ac_cv_prog_f77_g=no
8297 fi
8298
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300
8301 fi
8302 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8303 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
8304 if test "$ac_test_FFLAGS" = set; then
8305 FFLAGS=$ac_save_FFLAGS
8306 elif test $ac_cv_prog_f77_g = yes; then
8307 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8308 FFLAGS="-g -O2"
8309 else
8310 FFLAGS="-g"
8311 fi
8312 else
8313 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8314 FFLAGS="-O2"
8315 else
8316 FFLAGS=
8317 fi
8318 fi
8319
8320 G77=`test $ac_compiler_gnu = yes && echo yes`
8321 ac_ext=c
8322 ac_cpp='$CPP $CPPFLAGS'
8323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8326
8327
8328
8329 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8330
8331 # find the maximum length of command line arguments
8332 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8333 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8334 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 i=0
8338 teststring="ABCD"
8339
8340 case $build_os in
8341 msdosdjgpp*)
8342 # On DJGPP, this test can blow up pretty badly due to problems in libc
8343 # (any single argument exceeding 2000 bytes causes a buffer overrun
8344 # during glob expansion). Even if it were fixed, the result of this
8345 # check would be larger than it should be.
8346 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8347 ;;
8348
8349 gnu*)
8350 # Under GNU Hurd, this test is not required because there is
8351 # no limit to the length of command line arguments.
8352 # Libtool will interpret -1 as no limit whatsoever
8353 lt_cv_sys_max_cmd_len=-1;
8354 ;;
8355
8356 cygwin* | mingw*)
8357 # On Win9x/ME, this test blows up -- it succeeds, but takes
8358 # about 5 minutes as the teststring grows exponentially.
8359 # Worse, since 9x/ME are not pre-emptively multitasking,
8360 # you end up with a "frozen" computer, even though with patience
8361 # the test eventually succeeds (with a max line length of 256k).
8362 # Instead, let's just punt: use the minimum linelength reported by
8363 # all of the supported platforms: 8192 (on NT/2K/XP).
8364 lt_cv_sys_max_cmd_len=8192;
8365 ;;
8366
8367 amigaos*)
8368 # On AmigaOS with pdksh, this test takes hours, literally.
8369 # So we just punt and use a minimum line length of 8192.
8370 lt_cv_sys_max_cmd_len=8192;
8371 ;;
8372
8373 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8374 # This has been around since 386BSD, at least. Likely further.
8375 if test -x /sbin/sysctl; then
8376 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8377 elif test -x /usr/sbin/sysctl; then
8378 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8379 else
8380 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8381 fi
8382 # And add a safety zone
8383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8385 ;;
8386
8387 interix*)
8388 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8389 lt_cv_sys_max_cmd_len=196608
8390 ;;
8391
8392 osf*)
8393 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8394 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8395 # nice to cause kernel panics so lets avoid the loop below.
8396 # First set a reasonable default.
8397 lt_cv_sys_max_cmd_len=16384
8398 #
8399 if test -x /sbin/sysconfig; then
8400 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8401 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8402 esac
8403 fi
8404 ;;
8405 sco3.2v5*)
8406 lt_cv_sys_max_cmd_len=102400
8407 ;;
8408 sysv5* | sco5v6* | sysv4.2uw2*)
8409 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8410 if test -n "$kargmax"; then
8411 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8412 else
8413 lt_cv_sys_max_cmd_len=32768
8414 fi
8415 ;;
8416 *)
8417 # If test is not a shell built-in, we'll probably end up computing a
8418 # maximum length that is only half of the actual maximum length, but
8419 # we can't tell.
8420 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8421 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8422 = "XX$teststring") >/dev/null 2>&1 &&
8423 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8424 lt_cv_sys_max_cmd_len=$new_result &&
8425 test $i != 17 # 1/2 MB should be enough
8426 do
8427 i=`expr $i + 1`
8428 teststring=$teststring$teststring
8429 done
8430 teststring=
8431 # Add a significant safety factor because C++ compilers can tack on massive
8432 # amounts of additional arguments before passing them to the linker.
8433 # It appears as though 1/2 is a usable value.
8434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8435 ;;
8436 esac
8437
8438 fi
8439
8440 if test -n $lt_cv_sys_max_cmd_len ; then
8441 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8442 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8443 else
8444 { echo "$as_me:$LINENO: result: none" >&5
8445 echo "${ECHO_T}none" >&6; }
8446 fi
8447
8448
8449
8450
8451 # Check for command to grab the raw symbol name followed by C symbol from nm.
8452 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8453 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8454 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457
8458 # These are sane defaults that work on at least a few old systems.
8459 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8460
8461 # Character class describing NM global symbol codes.
8462 symcode='[BCDEGRST]'
8463
8464 # Regexp to match symbols that can be accessed directly from C.
8465 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8466
8467 # Transform an extracted symbol line into a proper C declaration
8468 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8469
8470 # Transform an extracted symbol line into symbol name and symbol address
8471 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'"
8472
8473 # Define system-specific variables.
8474 case $host_os in
8475 aix*)
8476 symcode='[BCDT]'
8477 ;;
8478 cygwin* | mingw* | pw32*)
8479 symcode='[ABCDGISTW]'
8480 ;;
8481 hpux*) # Its linker distinguishes data from code symbols
8482 if test "$host_cpu" = ia64; then
8483 symcode='[ABCDEGRST]'
8484 fi
8485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8486 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'"
8487 ;;
8488 linux* | k*bsd*-gnu)
8489 if test "$host_cpu" = ia64; then
8490 symcode='[ABCDGIRSTW]'
8491 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8492 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'"
8493 fi
8494 ;;
8495 irix* | nonstopux*)
8496 symcode='[BCDEGRST]'
8497 ;;
8498 osf*)
8499 symcode='[BCDEGQRST]'
8500 ;;
8501 solaris*)
8502 symcode='[BDRT]'
8503 ;;
8504 sco3.2v5*)
8505 symcode='[DT]'
8506 ;;
8507 sysv4.2uw2*)
8508 symcode='[DT]'
8509 ;;
8510 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8511 symcode='[ABDT]'
8512 ;;
8513 sysv4)
8514 symcode='[DFNSTU]'
8515 ;;
8516 esac
8517
8518 # Handle CRLF in mingw tool chain
8519 opt_cr=
8520 case $build_os in
8521 mingw*)
8522 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8523 ;;
8524 esac
8525
8526 # If we're using GNU nm, then use its standard symbol codes.
8527 case `$NM -V 2>&1` in
8528 *GNU* | *'with BFD'*)
8529 symcode='[ABCDGIRSTW]' ;;
8530 esac
8531
8532 # Try without a prefix undercore, then with it.
8533 for ac_symprfx in "" "_"; do
8534
8535 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8536 symxfrm="\\1 $ac_symprfx\\2 \\2"
8537
8538 # Write the raw and C identifiers.
8539 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8540
8541 # Check to see that the pipe works correctly.
8542 pipe_works=no
8543
8544 rm -f conftest*
8545 cat > conftest.$ac_ext <<EOF
8546 #ifdef __cplusplus
8547 extern "C" {
8548 #endif
8549 char nm_test_var;
8550 void nm_test_func(){}
8551 #ifdef __cplusplus
8552 }
8553 #endif
8554 int main(){nm_test_var='a';nm_test_func();return(0);}
8555 EOF
8556
8557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8558 (eval $ac_compile) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; then
8562 # Now try to grab the symbols.
8563 nlist=conftest.nm
8564 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8565 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && test -s "$nlist"; then
8569 # Try sorting and uniquifying the output.
8570 if sort "$nlist" | uniq > "$nlist"T; then
8571 mv -f "$nlist"T "$nlist"
8572 else
8573 rm -f "$nlist"T
8574 fi
8575
8576 # Make sure that we snagged all the symbols we need.
8577 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8578 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8579 cat <<EOF > conftest.$ac_ext
8580 #ifdef __cplusplus
8581 extern "C" {
8582 #endif
8583
8584 EOF
8585 # Now generate the symbol file.
8586 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8587
8588 cat <<EOF >> conftest.$ac_ext
8589 #if defined (__STDC__) && __STDC__
8590 # define lt_ptr_t void *
8591 #else
8592 # define lt_ptr_t char *
8593 # define const
8594 #endif
8595
8596 /* The mapping between symbol names and symbols. */
8597 const struct {
8598 const char *name;
8599 lt_ptr_t address;
8600 }
8601 lt_preloaded_symbols[] =
8602 {
8603 EOF
8604 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8605 cat <<\EOF >> conftest.$ac_ext
8606 {0, (lt_ptr_t) 0}
8607 };
8608
8609 #ifdef __cplusplus
8610 }
8611 #endif
8612 EOF
8613 # Now try linking the two files.
8614 mv conftest.$ac_objext conftstm.$ac_objext
8615 lt_save_LIBS="$LIBS"
8616 lt_save_CFLAGS="$CFLAGS"
8617 LIBS="conftstm.$ac_objext"
8618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8624 pipe_works=yes
8625 fi
8626 LIBS="$lt_save_LIBS"
8627 CFLAGS="$lt_save_CFLAGS"
8628 else
8629 echo "cannot find nm_test_func in $nlist" >&5
8630 fi
8631 else
8632 echo "cannot find nm_test_var in $nlist" >&5
8633 fi
8634 else
8635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8636 fi
8637 else
8638 echo "$progname: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8640 fi
8641 rm -f conftest* conftst*
8642
8643 # Do not use the global_symbol_pipe unless it works.
8644 if test "$pipe_works" = yes; then
8645 break
8646 else
8647 lt_cv_sys_global_symbol_pipe=
8648 fi
8649 done
8650
8651 fi
8652
8653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8654 lt_cv_sys_global_symbol_to_cdecl=
8655 fi
8656 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8657 { echo "$as_me:$LINENO: result: failed" >&5
8658 echo "${ECHO_T}failed" >&6; }
8659 else
8660 { echo "$as_me:$LINENO: result: ok" >&5
8661 echo "${ECHO_T}ok" >&6; }
8662 fi
8663
8664 { echo "$as_me:$LINENO: checking for objdir" >&5
8665 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8666 if test "${lt_cv_objdir+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669 rm -f .libs 2>/dev/null
8670 mkdir .libs 2>/dev/null
8671 if test -d .libs; then
8672 lt_cv_objdir=.libs
8673 else
8674 # MS-DOS does not allow filenames that begin with a dot.
8675 lt_cv_objdir=_libs
8676 fi
8677 rmdir .libs 2>/dev/null
8678 fi
8679 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8680 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8681 objdir=$lt_cv_objdir
8682
8683
8684
8685
8686
8687 case $host_os in
8688 aix3*)
8689 # AIX sometimes has problems with the GCC collect2 program. For some
8690 # reason, if we set the COLLECT_NAMES environment variable, the problems
8691 # vanish in a puff of smoke.
8692 if test "X${COLLECT_NAMES+set}" != Xset; then
8693 COLLECT_NAMES=
8694 export COLLECT_NAMES
8695 fi
8696 ;;
8697 esac
8698
8699 # Sed substitution that helps us do robust quoting. It backslashifies
8700 # metacharacters that are still active within double-quoted strings.
8701 Xsed='sed -e 1s/^X//'
8702 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8703
8704 # Same as above, but do not quote variable references.
8705 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8706
8707 # Sed substitution to delay expansion of an escaped shell variable in a
8708 # double_quote_subst'ed string.
8709 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8710
8711 # Sed substitution to avoid accidental globbing in evaled expressions
8712 no_glob_subst='s/\*/\\\*/g'
8713
8714 # Constants:
8715 rm="rm -f"
8716
8717 # Global variables:
8718 default_ofile=libtool
8719 can_build_shared=yes
8720
8721 # All known linkers require a `.a' archive for static linking (except MSVC,
8722 # which needs '.lib').
8723 libext=a
8724 ltmain="$ac_aux_dir/ltmain.sh"
8725 ofile="$default_ofile"
8726 with_gnu_ld="$lt_cv_prog_gnu_ld"
8727
8728 if test -n "$ac_tool_prefix"; then
8729 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}ar; ac_word=$2
8731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8733 if test "${ac_cv_prog_AR+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 if test -n "$AR"; then
8737 ac_cv_prog_AR="$AR" # Let the user override the test.
8738 else
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_AR="${ac_tool_prefix}ar"
8747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750 done
8751 done
8752 IFS=$as_save_IFS
8753
8754 fi
8755 fi
8756 AR=$ac_cv_prog_AR
8757 if test -n "$AR"; then
8758 { echo "$as_me:$LINENO: result: $AR" >&5
8759 echo "${ECHO_T}$AR" >&6; }
8760 else
8761 { echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6; }
8763 fi
8764
8765
8766 fi
8767 if test -z "$ac_cv_prog_AR"; then
8768 ac_ct_AR=$AR
8769 # Extract the first word of "ar", so it can be a program name with args.
8770 set dummy ar; ac_word=$2
8771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 if test -n "$ac_ct_AR"; then
8777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8778 else
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8781 do
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786 ac_cv_prog_ac_ct_AR="ar"
8787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8789 fi
8790 done
8791 done
8792 IFS=$as_save_IFS
8793
8794 fi
8795 fi
8796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8797 if test -n "$ac_ct_AR"; then
8798 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8799 echo "${ECHO_T}$ac_ct_AR" >&6; }
8800 else
8801 { echo "$as_me:$LINENO: result: no" >&5
8802 echo "${ECHO_T}no" >&6; }
8803 fi
8804
8805 if test "x$ac_ct_AR" = x; then
8806 AR="false"
8807 else
8808 case $cross_compiling:$ac_tool_warned in
8809 yes:)
8810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8811 whose name does not start with the host triplet. If you think this
8812 configuration is useful to you, please write to [email protected]." >&5
8813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8814 whose name does not start with the host triplet. If you think this
8815 configuration is useful to you, please write to [email protected]." >&2;}
8816 ac_tool_warned=yes ;;
8817 esac
8818 AR=$ac_ct_AR
8819 fi
8820 else
8821 AR="$ac_cv_prog_AR"
8822 fi
8823
8824 if test -n "$ac_tool_prefix"; then
8825 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8826 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8829 if test "${ac_cv_prog_RANLIB+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832 if test -n "$RANLIB"; then
8833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 break 2
8845 fi
8846 done
8847 done
8848 IFS=$as_save_IFS
8849
8850 fi
8851 fi
8852 RANLIB=$ac_cv_prog_RANLIB
8853 if test -n "$RANLIB"; then
8854 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8855 echo "${ECHO_T}$RANLIB" >&6; }
8856 else
8857 { echo "$as_me:$LINENO: result: no" >&5
8858 echo "${ECHO_T}no" >&6; }
8859 fi
8860
8861
8862 fi
8863 if test -z "$ac_cv_prog_RANLIB"; then
8864 ac_ct_RANLIB=$RANLIB
8865 # Extract the first word of "ranlib", so it can be a program name with args.
8866 set dummy ranlib; ac_word=$2
8867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8869 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872 if test -n "$ac_ct_RANLIB"; then
8873 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8874 else
8875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876 for as_dir in $PATH
8877 do
8878 IFS=$as_save_IFS
8879 test -z "$as_dir" && as_dir=.
8880 for ac_exec_ext in '' $ac_executable_extensions; do
8881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8882 ac_cv_prog_ac_ct_RANLIB="ranlib"
8883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8884 break 2
8885 fi
8886 done
8887 done
8888 IFS=$as_save_IFS
8889
8890 fi
8891 fi
8892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8893 if test -n "$ac_ct_RANLIB"; then
8894 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8895 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8896 else
8897 { echo "$as_me:$LINENO: result: no" >&5
8898 echo "${ECHO_T}no" >&6; }
8899 fi
8900
8901 if test "x$ac_ct_RANLIB" = x; then
8902 RANLIB=":"
8903 else
8904 case $cross_compiling:$ac_tool_warned in
8905 yes:)
8906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8907 whose name does not start with the host triplet. If you think this
8908 configuration is useful to you, please write to [email protected]." >&5
8909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8910 whose name does not start with the host triplet. If you think this
8911 configuration is useful to you, please write to [email protected]." >&2;}
8912 ac_tool_warned=yes ;;
8913 esac
8914 RANLIB=$ac_ct_RANLIB
8915 fi
8916 else
8917 RANLIB="$ac_cv_prog_RANLIB"
8918 fi
8919
8920 if test -n "$ac_tool_prefix"; then
8921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8922 set dummy ${ac_tool_prefix}strip; ac_word=$2
8923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8925 if test "${ac_cv_prog_STRIP+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 if test -n "$STRIP"; then
8929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8930 else
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 for as_dir in $PATH
8933 do
8934 IFS=$as_save_IFS
8935 test -z "$as_dir" && as_dir=.
8936 for ac_exec_ext in '' $ac_executable_extensions; do
8937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 break 2
8941 fi
8942 done
8943 done
8944 IFS=$as_save_IFS
8945
8946 fi
8947 fi
8948 STRIP=$ac_cv_prog_STRIP
8949 if test -n "$STRIP"; then
8950 { echo "$as_me:$LINENO: result: $STRIP" >&5
8951 echo "${ECHO_T}$STRIP" >&6; }
8952 else
8953 { echo "$as_me:$LINENO: result: no" >&5
8954 echo "${ECHO_T}no" >&6; }
8955 fi
8956
8957
8958 fi
8959 if test -z "$ac_cv_prog_STRIP"; then
8960 ac_ct_STRIP=$STRIP
8961 # Extract the first word of "strip", so it can be a program name with args.
8962 set dummy strip; ac_word=$2
8963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8965 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 else
8968 if test -n "$ac_ct_STRIP"; then
8969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978 ac_cv_prog_ac_ct_STRIP="strip"
8979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8981 fi
8982 done
8983 done
8984 IFS=$as_save_IFS
8985
8986 fi
8987 fi
8988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8989 if test -n "$ac_ct_STRIP"; then
8990 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8991 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8992 else
8993 { echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6; }
8995 fi
8996
8997 if test "x$ac_ct_STRIP" = x; then
8998 STRIP=":"
8999 else
9000 case $cross_compiling:$ac_tool_warned in
9001 yes:)
9002 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9003 whose name does not start with the host triplet. If you think this
9004 configuration is useful to you, please write to [email protected]." >&5
9005 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9006 whose name does not start with the host triplet. If you think this
9007 configuration is useful to you, please write to [email protected]." >&2;}
9008 ac_tool_warned=yes ;;
9009 esac
9010 STRIP=$ac_ct_STRIP
9011 fi
9012 else
9013 STRIP="$ac_cv_prog_STRIP"
9014 fi
9015
9016
9017 old_CC="$CC"
9018 old_CFLAGS="$CFLAGS"
9019
9020 # Set sane defaults for various variables
9021 test -z "$AR" && AR=ar
9022 test -z "$AR_FLAGS" && AR_FLAGS=cru
9023 test -z "$AS" && AS=as
9024 test -z "$CC" && CC=cc
9025 test -z "$LTCC" && LTCC=$CC
9026 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9027 test -z "$DLLTOOL" && DLLTOOL=dlltool
9028 test -z "$LD" && LD=ld
9029 test -z "$LN_S" && LN_S="ln -s"
9030 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9031 test -z "$NM" && NM=nm
9032 test -z "$SED" && SED=sed
9033 test -z "$OBJDUMP" && OBJDUMP=objdump
9034 test -z "$RANLIB" && RANLIB=:
9035 test -z "$STRIP" && STRIP=:
9036 test -z "$ac_objext" && ac_objext=o
9037
9038 # Determine commands to create old-style static archives.
9039 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9040 old_postinstall_cmds='chmod 644 $oldlib'
9041 old_postuninstall_cmds=
9042
9043 if test -n "$RANLIB"; then
9044 case $host_os in
9045 openbsd*)
9046 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9047 ;;
9048 *)
9049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9050 ;;
9051 esac
9052 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9053 fi
9054
9055 for cc_temp in $compiler""; do
9056 case $cc_temp in
9057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9059 \-*) ;;
9060 *) break;;
9061 esac
9062 done
9063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9064
9065
9066 # Only perform the check for file, if the check method requires it
9067 case $deplibs_check_method in
9068 file_magic*)
9069 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9070 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9071 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9072 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075 case $MAGIC_CMD in
9076 [\\/*] | ?:[\\/]*)
9077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9078 ;;
9079 *)
9080 lt_save_MAGIC_CMD="$MAGIC_CMD"
9081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9083 for ac_dir in $ac_dummy; do
9084 IFS="$lt_save_ifs"
9085 test -z "$ac_dir" && ac_dir=.
9086 if test -f $ac_dir/${ac_tool_prefix}file; then
9087 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9088 if test -n "$file_magic_test_file"; then
9089 case $deplibs_check_method in
9090 "file_magic "*)
9091 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9094 $EGREP "$file_magic_regex" > /dev/null; then
9095 :
9096 else
9097 cat <<EOF 1>&2
9098
9099 *** Warning: the command libtool uses to detect shared libraries,
9100 *** $file_magic_cmd, produces output that libtool cannot recognize.
9101 *** The result is that libtool may fail to recognize shared libraries
9102 *** as such. This will affect the creation of libtool libraries that
9103 *** depend on shared libraries, but programs linked with such libtool
9104 *** libraries will work regardless of this problem. Nevertheless, you
9105 *** may want to report the problem to your system manager and/or to
9106 *** [email protected]
9107
9108 EOF
9109 fi ;;
9110 esac
9111 fi
9112 break
9113 fi
9114 done
9115 IFS="$lt_save_ifs"
9116 MAGIC_CMD="$lt_save_MAGIC_CMD"
9117 ;;
9118 esac
9119 fi
9120
9121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9122 if test -n "$MAGIC_CMD"; then
9123 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9124 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9125 else
9126 { echo "$as_me:$LINENO: result: no" >&5
9127 echo "${ECHO_T}no" >&6; }
9128 fi
9129
9130 if test -z "$lt_cv_path_MAGIC_CMD"; then
9131 if test -n "$ac_tool_prefix"; then
9132 { echo "$as_me:$LINENO: checking for file" >&5
9133 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9134 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 case $MAGIC_CMD in
9138 [\\/*] | ?:[\\/]*)
9139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9140 ;;
9141 *)
9142 lt_save_MAGIC_CMD="$MAGIC_CMD"
9143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9145 for ac_dir in $ac_dummy; do
9146 IFS="$lt_save_ifs"
9147 test -z "$ac_dir" && ac_dir=.
9148 if test -f $ac_dir/file; then
9149 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9150 if test -n "$file_magic_test_file"; then
9151 case $deplibs_check_method in
9152 "file_magic "*)
9153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9156 $EGREP "$file_magic_regex" > /dev/null; then
9157 :
9158 else
9159 cat <<EOF 1>&2
9160
9161 *** Warning: the command libtool uses to detect shared libraries,
9162 *** $file_magic_cmd, produces output that libtool cannot recognize.
9163 *** The result is that libtool may fail to recognize shared libraries
9164 *** as such. This will affect the creation of libtool libraries that
9165 *** depend on shared libraries, but programs linked with such libtool
9166 *** libraries will work regardless of this problem. Nevertheless, you
9167 *** may want to report the problem to your system manager and/or to
9168 *** [email protected]
9169
9170 EOF
9171 fi ;;
9172 esac
9173 fi
9174 break
9175 fi
9176 done
9177 IFS="$lt_save_ifs"
9178 MAGIC_CMD="$lt_save_MAGIC_CMD"
9179 ;;
9180 esac
9181 fi
9182
9183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9184 if test -n "$MAGIC_CMD"; then
9185 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9186 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9187 else
9188 { echo "$as_me:$LINENO: result: no" >&5
9189 echo "${ECHO_T}no" >&6; }
9190 fi
9191
9192 else
9193 MAGIC_CMD=:
9194 fi
9195 fi
9196
9197 fi
9198 ;;
9199 esac
9200
9201 enable_dlopen=no
9202 enable_win32_dll=yes
9203
9204 # Check whether --enable-libtool-lock was given.
9205 if test "${enable_libtool_lock+set}" = set; then
9206 enableval=$enable_libtool_lock;
9207 fi
9208
9209 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9210
9211
9212 # Check whether --with-pic was given.
9213 if test "${with_pic+set}" = set; then
9214 withval=$with_pic; pic_mode="$withval"
9215 else
9216 pic_mode=default
9217 fi
9218
9219 test -z "$pic_mode" && pic_mode=default
9220
9221 # Use C for the default configuration in the libtool script
9222 tagname=
9223 lt_save_CC="$CC"
9224 ac_ext=c
9225 ac_cpp='$CPP $CPPFLAGS'
9226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9229
9230
9231 # Source file extension for C test sources.
9232 ac_ext=c
9233
9234 # Object file extension for compiled C test sources.
9235 objext=o
9236 objext=$objext
9237
9238 # Code to be used in simple compile tests
9239 lt_simple_compile_test_code="int some_variable = 0;\n"
9240
9241 # Code to be used in simple link tests
9242 lt_simple_link_test_code='int main(){return(0);}\n'
9243
9244
9245 # If no C compiler was specified, use CC.
9246 LTCC=${LTCC-"$CC"}
9247
9248 # If no C compiler flags were specified, use CFLAGS.
9249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9250
9251 # Allow CC to be a program name with arguments.
9252 compiler=$CC
9253
9254
9255 # save warnings/boilerplate of simple test code
9256 ac_outfile=conftest.$ac_objext
9257 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9258 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9259 _lt_compiler_boilerplate=`cat conftest.err`
9260 $rm conftest*
9261
9262 ac_outfile=conftest.$ac_objext
9263 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9264 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9265 _lt_linker_boilerplate=`cat conftest.err`
9266 $rm conftest*
9267
9268
9269
9270 lt_prog_compiler_no_builtin_flag=
9271
9272 if test "$GCC" = yes; then
9273 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9274
9275
9276 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9277 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9278 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281 lt_cv_prog_compiler_rtti_exceptions=no
9282 ac_outfile=conftest.$ac_objext
9283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9284 lt_compiler_flag="-fno-rtti -fno-exceptions"
9285 # Insert the option either (1) after the last *FLAGS variable, or
9286 # (2) before a word containing "conftest.", or (3) at the end.
9287 # Note that $ac_compile itself does not contain backslashes and begins
9288 # with a dollar sign (not a hyphen), so the echo should work correctly.
9289 # The option is referenced via a variable to avoid confusing sed.
9290 lt_compile=`echo "$ac_compile" | $SED \
9291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9293 -e 's:$: $lt_compiler_flag:'`
9294 (eval echo "\"\$as_me:9294: $lt_compile\"" >&5)
9295 (eval "$lt_compile" 2>conftest.err)
9296 ac_status=$?
9297 cat conftest.err >&5
9298 echo "$as_me:9298: \$? = $ac_status" >&5
9299 if (exit $ac_status) && test -s "$ac_outfile"; then
9300 # The compiler can only warn and ignore the option if not recognized
9301 # So say no if there are warnings other than the usual output.
9302 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9305 lt_cv_prog_compiler_rtti_exceptions=yes
9306 fi
9307 fi
9308 $rm conftest*
9309
9310 fi
9311 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9312 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9313
9314 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9315 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9316 else
9317 :
9318 fi
9319
9320 fi
9321
9322 lt_prog_compiler_wl=
9323 lt_prog_compiler_pic=
9324 lt_prog_compiler_static=
9325
9326 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9327 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9328
9329 if test "$GCC" = yes; then
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_static='-static'
9332
9333 case $host_os in
9334 aix*)
9335 # All AIX code is PIC.
9336 if test "$host_cpu" = ia64; then
9337 # AIX 5 now supports IA64 processor
9338 lt_prog_compiler_static='-Bstatic'
9339 fi
9340 ;;
9341
9342 amigaos*)
9343 # FIXME: we need at least 68020 code to build shared libraries, but
9344 # adding the `-m68020' flag to GCC prevents building anything better,
9345 # like `-m68040'.
9346 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9347 ;;
9348
9349 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9350 # PIC is the default for these OSes.
9351 ;;
9352
9353 mingw* | pw32* | os2*)
9354 # This hack is so that the source file can tell whether it is being
9355 # built for inclusion in a dll (and should export symbols for example).
9356 lt_prog_compiler_pic='-DDLL_EXPORT'
9357 ;;
9358
9359 darwin* | rhapsody*)
9360 # PIC is the default on this platform
9361 # Common symbols not allowed in MH_DYLIB files
9362 lt_prog_compiler_pic='-fno-common'
9363 ;;
9364
9365 interix3*)
9366 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9367 # Instead, we relocate shared libraries at runtime.
9368 ;;
9369
9370 msdosdjgpp*)
9371 # Just because we use GCC doesn't mean we suddenly get shared libraries
9372 # on systems that don't support them.
9373 lt_prog_compiler_can_build_shared=no
9374 enable_shared=no
9375 ;;
9376
9377 sysv4*MP*)
9378 if test -d /usr/nec; then
9379 lt_prog_compiler_pic=-Kconform_pic
9380 fi
9381 ;;
9382
9383 hpux*)
9384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9385 # not for PA HP-UX.
9386 case $host_cpu in
9387 hppa*64*|ia64*)
9388 # +Z the default
9389 ;;
9390 *)
9391 lt_prog_compiler_pic='-fPIC'
9392 ;;
9393 esac
9394 ;;
9395
9396 *)
9397 lt_prog_compiler_pic='-fPIC'
9398 ;;
9399 esac
9400 else
9401 # PORTME Check for flag to pass linker flags through the system compiler.
9402 case $host_os in
9403 aix*)
9404 lt_prog_compiler_wl='-Wl,'
9405 if test "$host_cpu" = ia64; then
9406 # AIX 5 now supports IA64 processor
9407 lt_prog_compiler_static='-Bstatic'
9408 else
9409 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9410 fi
9411 ;;
9412 darwin*)
9413 # PIC is the default on this platform
9414 # Common symbols not allowed in MH_DYLIB files
9415 case $cc_basename in
9416 xlc*)
9417 lt_prog_compiler_pic='-qnocommon'
9418 lt_prog_compiler_wl='-Wl,'
9419 ;;
9420 esac
9421 ;;
9422
9423 mingw* | pw32* | os2*)
9424 # This hack is so that the source file can tell whether it is being
9425 # built for inclusion in a dll (and should export symbols for example).
9426 lt_prog_compiler_pic='-DDLL_EXPORT'
9427 ;;
9428
9429 hpux9* | hpux10* | hpux11*)
9430 lt_prog_compiler_wl='-Wl,'
9431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9432 # not for PA HP-UX.
9433 case $host_cpu in
9434 hppa*64*|ia64*)
9435 # +Z the default
9436 ;;
9437 *)
9438 lt_prog_compiler_pic='+Z'
9439 ;;
9440 esac
9441 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9442 lt_prog_compiler_static='${wl}-a ${wl}archive'
9443 ;;
9444
9445 irix5* | irix6* | nonstopux*)
9446 lt_prog_compiler_wl='-Wl,'
9447 # PIC (with -KPIC) is the default.
9448 lt_prog_compiler_static='-non_shared'
9449 ;;
9450
9451 newsos6)
9452 lt_prog_compiler_pic='-KPIC'
9453 lt_prog_compiler_static='-Bstatic'
9454 ;;
9455
9456 linux* | k*bsd*-gnu)
9457 case $cc_basename in
9458 icc* | ecc*)
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-static'
9462 ;;
9463 pgcc* | pgf77* | pgf90* | pgf95*)
9464 # Portland Group compilers (*not* the Pentium gcc compiler,
9465 # which looks to be a dead project)
9466 lt_prog_compiler_wl='-Wl,'
9467 lt_prog_compiler_pic='-fpic'
9468 lt_prog_compiler_static='-Bstatic'
9469 ;;
9470 ccc*)
9471 lt_prog_compiler_wl='-Wl,'
9472 # All Alpha code is PIC.
9473 lt_prog_compiler_static='-non_shared'
9474 ;;
9475 esac
9476 ;;
9477
9478 osf3* | osf4* | osf5*)
9479 lt_prog_compiler_wl='-Wl,'
9480 # All OSF/1 code is PIC.
9481 lt_prog_compiler_static='-non_shared'
9482 ;;
9483
9484 solaris*)
9485 lt_prog_compiler_pic='-KPIC'
9486 lt_prog_compiler_static='-Bstatic'
9487 case $cc_basename in
9488 f77* | f90* | f95*)
9489 lt_prog_compiler_wl='-Qoption ld ';;
9490 *)
9491 lt_prog_compiler_wl='-Wl,';;
9492 esac
9493 ;;
9494
9495 sunos4*)
9496 lt_prog_compiler_wl='-Qoption ld '
9497 lt_prog_compiler_pic='-PIC'
9498 lt_prog_compiler_static='-Bstatic'
9499 ;;
9500
9501 sysv4 | sysv4.2uw2* | sysv4.3*)
9502 lt_prog_compiler_wl='-Wl,'
9503 lt_prog_compiler_pic='-KPIC'
9504 lt_prog_compiler_static='-Bstatic'
9505 ;;
9506
9507 sysv4*MP*)
9508 if test -d /usr/nec ;then
9509 lt_prog_compiler_pic='-Kconform_pic'
9510 lt_prog_compiler_static='-Bstatic'
9511 fi
9512 ;;
9513
9514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-KPIC'
9517 lt_prog_compiler_static='-Bstatic'
9518 ;;
9519
9520 unicos*)
9521 lt_prog_compiler_wl='-Wl,'
9522 lt_prog_compiler_can_build_shared=no
9523 ;;
9524
9525 uts4*)
9526 lt_prog_compiler_pic='-pic'
9527 lt_prog_compiler_static='-Bstatic'
9528 ;;
9529
9530 *)
9531 lt_prog_compiler_can_build_shared=no
9532 ;;
9533 esac
9534 fi
9535
9536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9537 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9538
9539 #
9540 # Check to make sure the PIC flag actually works.
9541 #
9542 if test -n "$lt_prog_compiler_pic"; then
9543
9544 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9545 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9546 if test "${lt_prog_compiler_pic_works+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 lt_prog_compiler_pic_works=no
9550 ac_outfile=conftest.$ac_objext
9551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9552 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9553 # Insert the option either (1) after the last *FLAGS variable, or
9554 # (2) before a word containing "conftest.", or (3) at the end.
9555 # Note that $ac_compile itself does not contain backslashes and begins
9556 # with a dollar sign (not a hyphen), so the echo should work correctly.
9557 # The option is referenced via a variable to avoid confusing sed.
9558 lt_compile=`echo "$ac_compile" | $SED \
9559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9561 -e 's:$: $lt_compiler_flag:'`
9562 (eval echo "\"\$as_me:9562: $lt_compile\"" >&5)
9563 (eval "$lt_compile" 2>conftest.err)
9564 ac_status=$?
9565 cat conftest.err >&5
9566 echo "$as_me:9566: \$? = $ac_status" >&5
9567 if (exit $ac_status) && test -s "$ac_outfile"; then
9568 # The compiler can only warn and ignore the option if not recognized
9569 # So say no if there are warnings other than the usual output.
9570 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9573 lt_prog_compiler_pic_works=yes
9574 fi
9575 fi
9576 $rm conftest*
9577
9578 fi
9579 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9580 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9581
9582 if test x"$lt_prog_compiler_pic_works" = xyes; then
9583 case $lt_prog_compiler_pic in
9584 "" | " "*) ;;
9585 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9586 esac
9587 else
9588 lt_prog_compiler_pic=
9589 lt_prog_compiler_can_build_shared=no
9590 fi
9591
9592 fi
9593 case $host_os in
9594 # For platforms which do not support PIC, -DPIC is meaningless:
9595 *djgpp*)
9596 lt_prog_compiler_pic=
9597 ;;
9598 *)
9599 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9600 ;;
9601 esac
9602
9603 #
9604 # Check to make sure the static flag actually works.
9605 #
9606 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9607 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9608 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9609 if test "${lt_prog_compiler_static_works+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612 lt_prog_compiler_static_works=no
9613 save_LDFLAGS="$LDFLAGS"
9614 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9615 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9617 # The linker can only warn and ignore the option if not recognized
9618 # So say no if there are warnings
9619 if test -s conftest.err; then
9620 # Append any errors to the config.log.
9621 cat conftest.err 1>&5
9622 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9624 if diff conftest.exp conftest.er2 >/dev/null; then
9625 lt_prog_compiler_static_works=yes
9626 fi
9627 else
9628 lt_prog_compiler_static_works=yes
9629 fi
9630 fi
9631 $rm conftest*
9632 LDFLAGS="$save_LDFLAGS"
9633
9634 fi
9635 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9636 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9637
9638 if test x"$lt_prog_compiler_static_works" = xyes; then
9639 :
9640 else
9641 lt_prog_compiler_static=
9642 fi
9643
9644
9645 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650 lt_cv_prog_compiler_c_o=no
9651 $rm -r conftest 2>/dev/null
9652 mkdir conftest
9653 cd conftest
9654 mkdir out
9655 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9656
9657 lt_compiler_flag="-o out/conftest2.$ac_objext"
9658 # Insert the option either (1) after the last *FLAGS variable, or
9659 # (2) before a word containing "conftest.", or (3) at the end.
9660 # Note that $ac_compile itself does not contain backslashes and begins
9661 # with a dollar sign (not a hyphen), so the echo should work correctly.
9662 lt_compile=`echo "$ac_compile" | $SED \
9663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9665 -e 's:$: $lt_compiler_flag:'`
9666 (eval echo "\"\$as_me:9666: $lt_compile\"" >&5)
9667 (eval "$lt_compile" 2>out/conftest.err)
9668 ac_status=$?
9669 cat out/conftest.err >&5
9670 echo "$as_me:9670: \$? = $ac_status" >&5
9671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9672 then
9673 # The compiler can only warn and ignore the option if not recognized
9674 # So say no if there are warnings
9675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9678 lt_cv_prog_compiler_c_o=yes
9679 fi
9680 fi
9681 chmod u+w . 2>&5
9682 $rm conftest*
9683 # SGI C++ compiler will create directory out/ii_files/ for
9684 # template instantiation
9685 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9686 $rm out/* && rmdir out
9687 cd ..
9688 rmdir conftest
9689 $rm conftest*
9690
9691 fi
9692 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9693 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9694
9695
9696 hard_links="nottested"
9697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9698 # do not overwrite the value of need_locks provided by the user
9699 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9700 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9701 hard_links=yes
9702 $rm conftest*
9703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9704 touch conftest.a
9705 ln conftest.a conftest.b 2>&5 || hard_links=no
9706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9707 { echo "$as_me:$LINENO: result: $hard_links" >&5
9708 echo "${ECHO_T}$hard_links" >&6; }
9709 if test "$hard_links" = no; then
9710 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9711 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9712 need_locks=warn
9713 fi
9714 else
9715 need_locks=no
9716 fi
9717
9718 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9719 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9720
9721 runpath_var=
9722 allow_undefined_flag=
9723 enable_shared_with_static_runtimes=no
9724 archive_cmds=
9725 archive_expsym_cmds=
9726 old_archive_From_new_cmds=
9727 old_archive_from_expsyms_cmds=
9728 export_dynamic_flag_spec=
9729 whole_archive_flag_spec=
9730 thread_safe_flag_spec=
9731 hardcode_libdir_flag_spec=
9732 hardcode_libdir_flag_spec_ld=
9733 hardcode_libdir_separator=
9734 hardcode_direct=no
9735 hardcode_minus_L=no
9736 hardcode_shlibpath_var=unsupported
9737 link_all_deplibs=unknown
9738 hardcode_automatic=no
9739 module_cmds=
9740 module_expsym_cmds=
9741 always_export_symbols=no
9742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9743 # include_expsyms should be a list of space-separated symbols to be *always*
9744 # included in the symbol list
9745 include_expsyms=
9746 # exclude_expsyms can be an extended regexp of symbols to exclude
9747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9749 # as well as any symbol that contains `d'.
9750 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9752 # platforms (ab)use it in PIC code, but their linkers get confused if
9753 # the symbol is explicitly referenced. Since portable code cannot
9754 # rely on this symbol name, it's probably fine to never include it in
9755 # preloaded symbol tables.
9756 extract_expsyms_cmds=
9757 # Just being paranoid about ensuring that cc_basename is set.
9758 for cc_temp in $compiler""; do
9759 case $cc_temp in
9760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9762 \-*) ;;
9763 *) break;;
9764 esac
9765 done
9766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9767
9768 case $host_os in
9769 cygwin* | mingw* | pw32*)
9770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9771 # When not using gcc, we currently assume that we are using
9772 # Microsoft Visual C++.
9773 if test "$GCC" != yes; then
9774 with_gnu_ld=no
9775 fi
9776 ;;
9777 interix*)
9778 # we just hope/assume this is gcc and not c89 (= MSVC++)
9779 with_gnu_ld=yes
9780 ;;
9781 openbsd*)
9782 with_gnu_ld=no
9783 ;;
9784 esac
9785
9786 ld_shlibs=yes
9787 if test "$with_gnu_ld" = yes; then
9788 # If archive_cmds runs LD, not CC, wlarc should be empty
9789 wlarc='${wl}'
9790
9791 # Set some defaults for GNU ld with shared library support. These
9792 # are reset later if shared libraries are not supported. Putting them
9793 # here allows them to be overridden if necessary.
9794 runpath_var=LD_RUN_PATH
9795 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9796 export_dynamic_flag_spec='${wl}--export-dynamic'
9797 # ancient GNU ld didn't support --whole-archive et. al.
9798 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9799 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9800 else
9801 whole_archive_flag_spec=
9802 fi
9803 supports_anon_versioning=no
9804 case `$LD -v 2>/dev/null` in
9805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9808 *\ 2.11.*) ;; # other 2.11 versions
9809 *) supports_anon_versioning=yes ;;
9810 esac
9811
9812 # See if GNU ld supports shared libraries.
9813 case $host_os in
9814 aix3* | aix4* | aix5*)
9815 # On AIX/PPC, the GNU linker is very broken
9816 if test "$host_cpu" != ia64; then
9817 ld_shlibs=no
9818 cat <<EOF 1>&2
9819
9820 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9821 *** to be unable to reliably create shared libraries on AIX.
9822 *** Therefore, libtool is disabling shared libraries support. If you
9823 *** really care for shared libraries, you may want to modify your PATH
9824 *** so that a non-GNU linker is found, and then restart.
9825
9826 EOF
9827 fi
9828 ;;
9829
9830 amigaos*)
9831 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)'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_minus_L=yes
9834
9835 # Samuel A. Falvo II <[email protected]> reports
9836 # that the semantics of dynamic libraries on AmigaOS, at least up
9837 # to version 4, is to share data among multiple programs linked
9838 # with the same dynamic library. Since this doesn't match the
9839 # behavior of shared libraries on other platforms, we can't use
9840 # them.
9841 ld_shlibs=no
9842 ;;
9843
9844 beos*)
9845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9846 allow_undefined_flag=unsupported
9847 # Joseph Beckenbach <[email protected]> says some releases of gcc
9848 # support --undefined. This deserves some investigation. FIXME
9849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9850 else
9851 ld_shlibs=no
9852 fi
9853 ;;
9854
9855 cygwin* | mingw* | pw32*)
9856 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9857 # as there is no search path for DLLs.
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 allow_undefined_flag=unsupported
9860 always_export_symbols=no
9861 enable_shared_with_static_runtimes=yes
9862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9863
9864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9866 # If the export-symbols file already is a .def file (1st line
9867 # is EXPORTS), use it as is; otherwise, prepend...
9868 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9869 cp $export_symbols $output_objdir/$soname.def;
9870 else
9871 echo EXPORTS > $output_objdir/$soname.def;
9872 cat $export_symbols >> $output_objdir/$soname.def;
9873 fi~
9874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9875 else
9876 ld_shlibs=no
9877 fi
9878 ;;
9879
9880 interix3*)
9881 hardcode_direct=no
9882 hardcode_shlibpath_var=no
9883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9884 export_dynamic_flag_spec='${wl}-E'
9885 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9886 # Instead, shared libraries are loaded at an image base (0x10000000 by
9887 # default) and relocated if they conflict, which is a slow very memory
9888 # consuming and fragmenting process. To avoid this, we pick a random,
9889 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9890 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9892 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9893 ;;
9894
9895 linux* | k*bsd*-gnu)
9896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9897 tmp_addflag=
9898 case $cc_basename,$host_cpu in
9899 pgcc*) # Portland Group C compiler
9900 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9901 tmp_addflag=' $pic_flag'
9902 ;;
9903 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9904 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9905 tmp_addflag=' $pic_flag -Mnomain' ;;
9906 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9907 tmp_addflag=' -i_dynamic' ;;
9908 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9909 tmp_addflag=' -i_dynamic -nofor_main' ;;
9910 ifc* | ifort*) # Intel Fortran compiler
9911 tmp_addflag=' -nofor_main' ;;
9912 esac
9913 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914
9915 if test $supports_anon_versioning = yes; then
9916 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9918 $echo "local: *; };" >> $output_objdir/$libname.ver~
9919 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9920 fi
9921 link_all_deplibs=no
9922 else
9923 ld_shlibs=no
9924 fi
9925 ;;
9926
9927 netbsd* | netbsdelf*-gnu)
9928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9930 wlarc=
9931 else
9932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9934 fi
9935 ;;
9936
9937 solaris*)
9938 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9939 ld_shlibs=no
9940 cat <<EOF 1>&2
9941
9942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9943 *** create shared libraries on Solaris systems. Therefore, libtool
9944 *** is disabling shared libraries support. We urge you to upgrade GNU
9945 *** binutils to release 2.9.1 or newer. Another option is to modify
9946 *** your PATH or compiler configuration so that the native linker is
9947 *** used, and then restart.
9948
9949 EOF
9950 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9953 else
9954 ld_shlibs=no
9955 fi
9956 ;;
9957
9958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9959 case `$LD -v 2>&1` in
9960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9961 ld_shlibs=no
9962 cat <<_LT_EOF 1>&2
9963
9964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9965 *** reliably create shared libraries on SCO systems. Therefore, libtool
9966 *** is disabling shared libraries support. We urge you to upgrade GNU
9967 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9968 *** your PATH or compiler configuration so that the native linker is
9969 *** used, and then restart.
9970
9971 _LT_EOF
9972 ;;
9973 *)
9974 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9975 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9978 else
9979 ld_shlibs=no
9980 fi
9981 ;;
9982 esac
9983 ;;
9984
9985 sunos4*)
9986 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9987 wlarc=
9988 hardcode_direct=yes
9989 hardcode_shlibpath_var=no
9990 ;;
9991
9992 *)
9993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9995 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9996 else
9997 ld_shlibs=no
9998 fi
9999 ;;
10000 esac
10001
10002 if test "$ld_shlibs" = no; then
10003 runpath_var=
10004 hardcode_libdir_flag_spec=
10005 export_dynamic_flag_spec=
10006 whole_archive_flag_spec=
10007 fi
10008 else
10009 # PORTME fill in a description of your system's linker (not GNU ld)
10010 case $host_os in
10011 aix3*)
10012 allow_undefined_flag=unsupported
10013 always_export_symbols=yes
10014 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'
10015 # Note: this linker hardcodes the directories in LIBPATH if there
10016 # are no directories specified by -L.
10017 hardcode_minus_L=yes
10018 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10019 # Neither direct hardcoding nor static linking is supported with a
10020 # broken collect2.
10021 hardcode_direct=unsupported
10022 fi
10023 ;;
10024
10025 aix4* | aix5*)
10026 if test "$host_cpu" = ia64; then
10027 # On IA64, the linker does run time linking by default, so we don't
10028 # have to do anything special.
10029 aix_use_runtimelinking=no
10030 exp_sym_flag='-Bexport'
10031 no_entry_flag=""
10032 else
10033 # If we're using GNU nm, then we don't want the "-C" option.
10034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10035 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10036 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'
10037 else
10038 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'
10039 fi
10040 aix_use_runtimelinking=no
10041
10042 # Test if we are trying to use run time linking or normal
10043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10044 # need to do runtime linking.
10045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10046 for ld_flag in $LDFLAGS; do
10047 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10048 aix_use_runtimelinking=yes
10049 break
10050 fi
10051 done
10052 ;;
10053 esac
10054
10055 exp_sym_flag='-bexport'
10056 no_entry_flag='-bnoentry'
10057 fi
10058
10059 # When large executables or shared objects are built, AIX ld can
10060 # have problems creating the table of contents. If linking a library
10061 # or program results in "error TOC overflow" add -mminimal-toc to
10062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10064
10065 archive_cmds=''
10066 hardcode_direct=yes
10067 hardcode_libdir_separator=':'
10068 link_all_deplibs=yes
10069
10070 if test "$GCC" = yes; then
10071 case $host_os in aix4.[012]|aix4.[012].*)
10072 # We only want to do this on AIX 4.2 and lower, the check
10073 # below for broken collect2 doesn't work under 4.3+
10074 collect2name=`${CC} -print-prog-name=collect2`
10075 if test -f "$collect2name" && \
10076 strings "$collect2name" | grep resolve_lib_name >/dev/null
10077 then
10078 # We have reworked collect2
10079 hardcode_direct=yes
10080 else
10081 # We have old collect2
10082 hardcode_direct=unsupported
10083 # It fails to find uninstalled libraries when the uninstalled
10084 # path is not listed in the libpath. Setting hardcode_minus_L
10085 # to unsupported forces relinking
10086 hardcode_minus_L=yes
10087 hardcode_libdir_flag_spec='-L$libdir'
10088 hardcode_libdir_separator=
10089 fi
10090 ;;
10091 esac
10092 shared_flag='-shared'
10093 if test "$aix_use_runtimelinking" = yes; then
10094 shared_flag="$shared_flag "'${wl}-G'
10095 fi
10096 else
10097 # not using gcc
10098 if test "$host_cpu" = ia64; then
10099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10100 # chokes on -Wl,-G. The following line is correct:
10101 shared_flag='-G'
10102 else
10103 if test "$aix_use_runtimelinking" = yes; then
10104 shared_flag='${wl}-G'
10105 else
10106 shared_flag='${wl}-bM:SRE'
10107 fi
10108 fi
10109 fi
10110
10111 # It seems that -bexpall does not export symbols beginning with
10112 # underscore (_), so it is better to generate a list of symbols to export.
10113 always_export_symbols=yes
10114 if test "$aix_use_runtimelinking" = yes; then
10115 # Warning - without using the other runtime loading flags (-brtl),
10116 # -berok will link without error, but may produce a broken library.
10117 allow_undefined_flag='-berok'
10118 # Determine the default libpath from the value encoded in an empty executable.
10119 cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h. */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125
10126 int
10127 main ()
10128 {
10129
10130 ;
10131 return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest$ac_exeext &&
10151 $as_test_x conftest$ac_exeext; then
10152
10153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10154 }'`
10155 # Check for a 64-bit object if we didn't find anything.
10156 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; }
10157 }'`; fi
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162
10163 fi
10164
10165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10166 conftest$ac_exeext conftest.$ac_ext
10167 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10168
10169 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10170 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10171 else
10172 if test "$host_cpu" = ia64; then
10173 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10174 allow_undefined_flag="-z nodefs"
10175 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10176 else
10177 # Determine the default libpath from the value encoded in an empty executable.
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184
10185 int
10186 main ()
10187 {
10188
10189 ;
10190 return 0;
10191 }
10192 _ACEOF
10193 rm -f conftest.$ac_objext conftest$ac_exeext
10194 if { (ac_try="$ac_link"
10195 case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_link") 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest$ac_exeext &&
10210 $as_test_x conftest$ac_exeext; then
10211
10212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10213 }'`
10214 # Check for a 64-bit object if we didn't find anything.
10215 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; }
10216 }'`; fi
10217 else
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221
10222 fi
10223
10224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10225 conftest$ac_exeext conftest.$ac_ext
10226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10227
10228 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10229 # Warning - without using the other run time loading flags,
10230 # -berok will link without error, but may produce a broken library.
10231 no_undefined_flag=' ${wl}-bernotok'
10232 allow_undefined_flag=' ${wl}-berok'
10233 # Exported symbols can be pulled into shared objects from archives
10234 whole_archive_flag_spec='$convenience'
10235 archive_cmds_need_lc=yes
10236 # This is similar to how AIX traditionally builds its shared libraries.
10237 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10238 fi
10239 fi
10240 ;;
10241
10242 amigaos*)
10243 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)'
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_minus_L=yes
10246 # see comment about different semantics on the GNU ld section
10247 ld_shlibs=no
10248 ;;
10249
10250 bsdi[45]*)
10251 export_dynamic_flag_spec=-rdynamic
10252 ;;
10253
10254 cygwin* | mingw* | pw32*)
10255 # When not using gcc, we currently assume that we are using
10256 # Microsoft Visual C++.
10257 # hardcode_libdir_flag_spec is actually meaningless, as there is
10258 # no search path for DLLs.
10259 hardcode_libdir_flag_spec=' '
10260 allow_undefined_flag=unsupported
10261 # Tell ltmain to make .lib files, not .a files.
10262 libext=lib
10263 # Tell ltmain to make .dll files, not .so files.
10264 shrext_cmds=".dll"
10265 # FIXME: Setting linknames here is a bad hack.
10266 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10267 # The linker will automatically build a .lib file if we build a DLL.
10268 old_archive_From_new_cmds='true'
10269 # FIXME: Should let the user specify the lib program.
10270 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10271 fix_srcfile_path='`cygpath -w "$srcfile"`'
10272 enable_shared_with_static_runtimes=yes
10273 ;;
10274
10275 darwin* | rhapsody*)
10276 case $host_os in
10277 rhapsody* | darwin1.[012])
10278 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10279 ;;
10280 *) # Darwin 1.3 on
10281 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10282 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10283 else
10284 case ${MACOSX_DEPLOYMENT_TARGET} in
10285 10.[012])
10286 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10287 ;;
10288 10.*)
10289 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10290 ;;
10291 esac
10292 fi
10293 ;;
10294 esac
10295 archive_cmds_need_lc=no
10296 hardcode_direct=no
10297 hardcode_automatic=yes
10298 hardcode_shlibpath_var=unsupported
10299 whole_archive_flag_spec=''
10300 link_all_deplibs=yes
10301 if test "$GCC" = yes ; then
10302 output_verbose_link_cmd='echo'
10303 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10304 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10306 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}'
10307 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}'
10308 else
10309 case $cc_basename in
10310 xlc*)
10311 output_verbose_link_cmd='echo'
10312 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10313 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10315 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}'
10316 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}'
10317 ;;
10318 *)
10319 ld_shlibs=no
10320 ;;
10321 esac
10322 fi
10323 ;;
10324
10325 dgux*)
10326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327 hardcode_libdir_flag_spec='-L$libdir'
10328 hardcode_shlibpath_var=no
10329 ;;
10330
10331 freebsd1*)
10332 ld_shlibs=no
10333 ;;
10334
10335 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10336 # support. Future versions do this automatically, but an explicit c++rt0.o
10337 # does not break anything, and helps significantly (at the cost of a little
10338 # extra space).
10339 freebsd2.2*)
10340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10341 hardcode_libdir_flag_spec='-R$libdir'
10342 hardcode_direct=yes
10343 hardcode_shlibpath_var=no
10344 ;;
10345
10346 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10347 freebsd2*)
10348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10349 hardcode_direct=yes
10350 hardcode_minus_L=yes
10351 hardcode_shlibpath_var=no
10352 ;;
10353
10354 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10355 freebsd* | dragonfly*)
10356 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10357 hardcode_libdir_flag_spec='-R$libdir'
10358 hardcode_direct=yes
10359 hardcode_shlibpath_var=no
10360 ;;
10361
10362 hpux9*)
10363 if test "$GCC" = yes; then
10364 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'
10365 else
10366 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'
10367 fi
10368 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10369 hardcode_libdir_separator=:
10370 hardcode_direct=yes
10371
10372 # hardcode_minus_L: Not really in the search PATH,
10373 # but as the default location of the library.
10374 hardcode_minus_L=yes
10375 export_dynamic_flag_spec='${wl}-E'
10376 ;;
10377
10378 hpux10*)
10379 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10380 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10381 else
10382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10383 fi
10384 if test "$with_gnu_ld" = no; then
10385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10386 hardcode_libdir_separator=:
10387
10388 hardcode_direct=yes
10389 export_dynamic_flag_spec='${wl}-E'
10390
10391 # hardcode_minus_L: Not really in the search PATH,
10392 # but as the default location of the library.
10393 hardcode_minus_L=yes
10394 fi
10395 ;;
10396
10397 hpux11*)
10398 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10399 case $host_cpu in
10400 hppa*64*)
10401 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10402 ;;
10403 ia64*)
10404 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10405 ;;
10406 *)
10407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10408 ;;
10409 esac
10410 else
10411 case $host_cpu in
10412 hppa*64*)
10413 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10414 ;;
10415 ia64*)
10416 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10417 ;;
10418 *)
10419 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10420 ;;
10421 esac
10422 fi
10423 if test "$with_gnu_ld" = no; then
10424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10425 hardcode_libdir_separator=:
10426
10427 case $host_cpu in
10428 hppa*64*|ia64*)
10429 hardcode_libdir_flag_spec_ld='+b $libdir'
10430 hardcode_direct=no
10431 hardcode_shlibpath_var=no
10432 ;;
10433 *)
10434 hardcode_direct=yes
10435 export_dynamic_flag_spec='${wl}-E'
10436
10437 # hardcode_minus_L: Not really in the search PATH,
10438 # but as the default location of the library.
10439 hardcode_minus_L=yes
10440 ;;
10441 esac
10442 fi
10443 ;;
10444
10445 irix5* | irix6* | nonstopux*)
10446 if test "$GCC" = yes; then
10447 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'
10448 else
10449 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'
10450 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10451 fi
10452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10453 hardcode_libdir_separator=:
10454 link_all_deplibs=yes
10455 ;;
10456
10457 netbsd* | netbsdelf*-gnu)
10458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10460 else
10461 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10462 fi
10463 hardcode_libdir_flag_spec='-R$libdir'
10464 hardcode_direct=yes
10465 hardcode_shlibpath_var=no
10466 ;;
10467
10468 newsos6)
10469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470 hardcode_direct=yes
10471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10472 hardcode_libdir_separator=:
10473 hardcode_shlibpath_var=no
10474 ;;
10475
10476 openbsd*)
10477 hardcode_direct=yes
10478 hardcode_shlibpath_var=no
10479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10481 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10483 export_dynamic_flag_spec='${wl}-E'
10484 else
10485 case $host_os in
10486 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10488 hardcode_libdir_flag_spec='-R$libdir'
10489 ;;
10490 *)
10491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10492 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10493 ;;
10494 esac
10495 fi
10496 ;;
10497
10498 os2*)
10499 hardcode_libdir_flag_spec='-L$libdir'
10500 hardcode_minus_L=yes
10501 allow_undefined_flag=unsupported
10502 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'
10503 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10504 ;;
10505
10506 osf3*)
10507 if test "$GCC" = yes; then
10508 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10509 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'
10510 else
10511 allow_undefined_flag=' -expect_unresolved \*'
10512 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'
10513 fi
10514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10515 hardcode_libdir_separator=:
10516 ;;
10517
10518 osf4* | osf5*) # as osf3* with the addition of -msym flag
10519 if test "$GCC" = yes; then
10520 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10521 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'
10522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10523 else
10524 allow_undefined_flag=' -expect_unresolved \*'
10525 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'
10526 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10527 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10528
10529 # Both c and cxx compiler support -rpath directly
10530 hardcode_libdir_flag_spec='-rpath $libdir'
10531 fi
10532 hardcode_libdir_separator=:
10533 ;;
10534
10535 solaris*)
10536 no_undefined_flag=' -z text'
10537 if test "$GCC" = yes; then
10538 wlarc='${wl}'
10539 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10540 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10541 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10542 else
10543 wlarc=''
10544 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10546 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10547 fi
10548 hardcode_libdir_flag_spec='-R$libdir'
10549 hardcode_shlibpath_var=no
10550 case $host_os in
10551 solaris2.[0-5] | solaris2.[0-5].*) ;;
10552 *)
10553 # The compiler driver will combine linker options so we
10554 # cannot just pass the convience library names through
10555 # without $wl, iff we do not link with $LD.
10556 # Luckily, gcc supports the same syntax we need for Sun Studio.
10557 # Supported since Solaris 2.6 (maybe 2.5.1?)
10558 case $wlarc in
10559 '')
10560 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10561 *)
10562 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10563 esac ;;
10564 esac
10565 link_all_deplibs=yes
10566 ;;
10567
10568 sunos4*)
10569 if test "x$host_vendor" = xsequent; then
10570 # Use $CC to link under sequent, because it throws in some extra .o
10571 # files that make .init and .fini sections work.
10572 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10573 else
10574 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10575 fi
10576 hardcode_libdir_flag_spec='-L$libdir'
10577 hardcode_direct=yes
10578 hardcode_minus_L=yes
10579 hardcode_shlibpath_var=no
10580 ;;
10581
10582 sysv4)
10583 case $host_vendor in
10584 sni)
10585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10586 hardcode_direct=yes # is this really true???
10587 ;;
10588 siemens)
10589 ## LD is ld it makes a PLAMLIB
10590 ## CC just makes a GrossModule.
10591 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10592 reload_cmds='$CC -r -o $output$reload_objs'
10593 hardcode_direct=no
10594 ;;
10595 motorola)
10596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10597 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10598 ;;
10599 esac
10600 runpath_var='LD_RUN_PATH'
10601 hardcode_shlibpath_var=no
10602 ;;
10603
10604 sysv4.3*)
10605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10606 hardcode_shlibpath_var=no
10607 export_dynamic_flag_spec='-Bexport'
10608 ;;
10609
10610 sysv4*MP*)
10611 if test -d /usr/nec; then
10612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613 hardcode_shlibpath_var=no
10614 runpath_var=LD_RUN_PATH
10615 hardcode_runpath_var=yes
10616 ld_shlibs=yes
10617 fi
10618 ;;
10619
10620 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10621 no_undefined_flag='${wl}-z,text'
10622 archive_cmds_need_lc=no
10623 hardcode_shlibpath_var=no
10624 runpath_var='LD_RUN_PATH'
10625
10626 if test "$GCC" = yes; then
10627 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10629 else
10630 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 fi
10633 ;;
10634
10635 sysv5* | sco3.2v5* | sco5v6*)
10636 # Note: We can NOT use -z defs as we might desire, because we do not
10637 # link with -lc, and that would cause any symbols used from libc to
10638 # always be unresolved, which means just about no library would
10639 # ever link correctly. If we're not using GNU ld we use -z text
10640 # though, which does catch some bad symbols but isn't as heavy-handed
10641 # as -z defs.
10642 no_undefined_flag='${wl}-z,text'
10643 allow_undefined_flag='${wl}-z,nodefs'
10644 archive_cmds_need_lc=no
10645 hardcode_shlibpath_var=no
10646 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10647 hardcode_libdir_separator=':'
10648 link_all_deplibs=yes
10649 export_dynamic_flag_spec='${wl}-Bexport'
10650 runpath_var='LD_RUN_PATH'
10651
10652 if test "$GCC" = yes; then
10653 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10655 else
10656 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10658 fi
10659 ;;
10660
10661 uts4*)
10662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10663 hardcode_libdir_flag_spec='-L$libdir'
10664 hardcode_shlibpath_var=no
10665 ;;
10666
10667 *)
10668 ld_shlibs=no
10669 ;;
10670 esac
10671 fi
10672
10673 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10674 echo "${ECHO_T}$ld_shlibs" >&6; }
10675 test "$ld_shlibs" = no && can_build_shared=no
10676
10677 #
10678 # Do we need to explicitly link libc?
10679 #
10680 case "x$archive_cmds_need_lc" in
10681 x|xyes)
10682 # Assume -lc should be added
10683 archive_cmds_need_lc=yes
10684
10685 if test "$enable_shared" = yes && test "$GCC" = yes; then
10686 case $archive_cmds in
10687 *'~'*)
10688 # FIXME: we may have to deal with multi-command sequences.
10689 ;;
10690 '$CC '*)
10691 # Test whether the compiler implicitly links with -lc since on some
10692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10693 # to ld, don't add -lc before -lgcc.
10694 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10695 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10696 $rm conftest*
10697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10698
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } 2>conftest.err; then
10704 soname=conftest
10705 lib=conftest
10706 libobjs=conftest.$ac_objext
10707 deplibs=
10708 wl=$lt_prog_compiler_wl
10709 pic_flag=$lt_prog_compiler_pic
10710 compiler_flags=-v
10711 linker_flags=-v
10712 verstring=
10713 output_objdir=.
10714 libname=conftest
10715 lt_save_allow_undefined_flag=$allow_undefined_flag
10716 allow_undefined_flag=
10717 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10718 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
10722 then
10723 archive_cmds_need_lc=no
10724 else
10725 archive_cmds_need_lc=yes
10726 fi
10727 allow_undefined_flag=$lt_save_allow_undefined_flag
10728 else
10729 cat conftest.err 1>&5
10730 fi
10731 $rm conftest*
10732 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10733 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10734 ;;
10735 esac
10736 fi
10737 ;;
10738 esac
10739
10740 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10741 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10742 library_names_spec=
10743 libname_spec='lib$name'
10744 soname_spec=
10745 shrext_cmds=".so"
10746 postinstall_cmds=
10747 postuninstall_cmds=
10748 finish_cmds=
10749 finish_eval=
10750 shlibpath_var=
10751 shlibpath_overrides_runpath=unknown
10752 version_type=none
10753 dynamic_linker="$host_os ld.so"
10754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10755 if test "$GCC" = yes; then
10756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10757 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10758 # if the path contains ";" then we assume it to be the separator
10759 # otherwise default to the standard path separator (i.e. ":") - it is
10760 # assumed that no part of a normal pathname contains ";" but that should
10761 # okay in the real world where ";" in dirpaths is itself problematic.
10762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10763 else
10764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10765 fi
10766 else
10767 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10768 fi
10769 need_lib_prefix=unknown
10770 hardcode_into_libs=no
10771
10772 # when you set need_version to no, make sure it does not cause -set_version
10773 # flags to be left without arguments
10774 need_version=unknown
10775
10776 case $host_os in
10777 aix3*)
10778 version_type=linux
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10780 shlibpath_var=LIBPATH
10781
10782 # AIX 3 has no versioning support, so we append a major version to the name.
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 ;;
10785
10786 aix4* | aix5*)
10787 version_type=linux
10788 need_lib_prefix=no
10789 need_version=no
10790 hardcode_into_libs=yes
10791 if test "$host_cpu" = ia64; then
10792 # AIX 5 supports IA64
10793 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 else
10796 # With GCC up to 2.95.x, collect2 would create an import file
10797 # for dependence libraries. The import file would start with
10798 # the line `#! .'. This would cause the generated library to
10799 # depend on `.', always an invalid library. This was fixed in
10800 # development snapshots of GCC prior to 3.0.
10801 case $host_os in
10802 aix4 | aix4.[01] | aix4.[01].*)
10803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10804 echo ' yes '
10805 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10806 :
10807 else
10808 can_build_shared=no
10809 fi
10810 ;;
10811 esac
10812 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10813 # soname into executable. Probably we can add versioning support to
10814 # collect2, so additional links can be useful in future.
10815 if test "$aix_use_runtimelinking" = yes; then
10816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10817 # instead of lib<name>.a to let people know that these are not
10818 # typical AIX shared libraries.
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 else
10821 # We preserve .a as extension for shared libraries through AIX4.2
10822 # and later when we are not doing run time linking.
10823 library_names_spec='${libname}${release}.a $libname.a'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 fi
10826 shlibpath_var=LIBPATH
10827 fi
10828 ;;
10829
10830 amigaos*)
10831 library_names_spec='$libname.ixlibrary $libname.a'
10832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10833 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'
10834 ;;
10835
10836 beos*)
10837 library_names_spec='${libname}${shared_ext}'
10838 dynamic_linker="$host_os ld.so"
10839 shlibpath_var=LIBRARY_PATH
10840 ;;
10841
10842 bsdi[45]*)
10843 version_type=linux
10844 need_version=no
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10851 # the default ld.so.conf also contains /usr/contrib/lib and
10852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10853 # libtool to hard-code these into programs
10854 ;;
10855
10856 cygwin* | mingw* | pw32*)
10857 version_type=windows
10858 shrext_cmds=".dll"
10859 need_version=no
10860 need_lib_prefix=no
10861
10862 case $GCC,$host_os in
10863 yes,cygwin* | yes,mingw* | yes,pw32*)
10864 library_names_spec='$libname.dll.a'
10865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10866 postinstall_cmds='base_file=`basename \${file}`~
10867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10868 dldir=$destdir/`dirname \$dlpath`~
10869 test -d \$dldir || mkdir -p \$dldir~
10870 $install_prog $dir/$dlname \$dldir/$dlname~
10871 chmod a+x \$dldir/$dlname'
10872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10873 dlpath=$dir/\$dldll~
10874 $rm \$dlpath'
10875 shlibpath_overrides_runpath=yes
10876
10877 case $host_os in
10878 cygwin*)
10879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10881 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10882 ;;
10883 mingw*)
10884 # MinGW DLLs use traditional 'lib' prefix
10885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10887 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10888 # It is most probably a Windows format PATH printed by
10889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10890 # path with ; separators, and with drive letters. We can handle the
10891 # drive letters (cygwin fileutils understands them), so leave them,
10892 # especially as we might pass files found there to a mingw objdump,
10893 # which wouldn't understand a cygwinified path. Ahh.
10894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10895 else
10896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10897 fi
10898 ;;
10899 pw32*)
10900 # pw32 DLLs use 'pw' prefix rather than 'lib'
10901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10902 ;;
10903 esac
10904 ;;
10905
10906 *)
10907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10908 ;;
10909 esac
10910 dynamic_linker='Win32 ld.exe'
10911 # FIXME: first we should search . and the directory the executable is in
10912 shlibpath_var=PATH
10913 ;;
10914
10915 darwin* | rhapsody*)
10916 dynamic_linker="$host_os dyld"
10917 version_type=darwin
10918 need_lib_prefix=no
10919 need_version=no
10920 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10921 soname_spec='${libname}${release}${major}$shared_ext'
10922 shlibpath_overrides_runpath=yes
10923 shlibpath_var=DYLD_LIBRARY_PATH
10924 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10925 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10926 if test "$GCC" = yes; then
10927 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"`
10928 else
10929 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10930 fi
10931 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10932 ;;
10933
10934 dgux*)
10935 version_type=linux
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 ;;
10942
10943 freebsd1*)
10944 dynamic_linker=no
10945 ;;
10946
10947 freebsd* | dragonfly*)
10948 # DragonFly does not have aout. When/if they implement a new
10949 # versioning mechanism, adjust this.
10950 if test -x /usr/bin/objformat; then
10951 objformat=`/usr/bin/objformat`
10952 else
10953 case $host_os in
10954 freebsd[123]*) objformat=aout ;;
10955 *) objformat=elf ;;
10956 esac
10957 fi
10958 version_type=freebsd-$objformat
10959 case $version_type in
10960 freebsd-elf*)
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10962 need_version=no
10963 need_lib_prefix=no
10964 ;;
10965 freebsd-*)
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10967 need_version=yes
10968 ;;
10969 esac
10970 shlibpath_var=LD_LIBRARY_PATH
10971 case $host_os in
10972 freebsd2*)
10973 shlibpath_overrides_runpath=yes
10974 ;;
10975 freebsd3.[01]* | freebsdelf3.[01]*)
10976 shlibpath_overrides_runpath=yes
10977 hardcode_into_libs=yes
10978 ;;
10979 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10980 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10981 shlibpath_overrides_runpath=no
10982 hardcode_into_libs=yes
10983 ;;
10984 freebsd*) # from 4.6 on
10985 shlibpath_overrides_runpath=yes
10986 hardcode_into_libs=yes
10987 ;;
10988 esac
10989 ;;
10990
10991 gnu*)
10992 version_type=linux
10993 need_lib_prefix=no
10994 need_version=no
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 hardcode_into_libs=yes
10999 ;;
11000
11001 hpux9* | hpux10* | hpux11*)
11002 # Give a soname corresponding to the major version so that dld.sl refuses to
11003 # link against other versions.
11004 version_type=sunos
11005 need_lib_prefix=no
11006 need_version=no
11007 case $host_cpu in
11008 ia64*)
11009 shrext_cmds='.so'
11010 hardcode_into_libs=yes
11011 dynamic_linker="$host_os dld.so"
11012 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 if test "X$HPUX_IA64_MODE" = X32; then
11017 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11018 else
11019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11020 fi
11021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11022 ;;
11023 hppa*64*)
11024 shrext_cmds='.sl'
11025 hardcode_into_libs=yes
11026 dynamic_linker="$host_os dld.sl"
11027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11033 ;;
11034 *)
11035 shrext_cmds='.sl'
11036 dynamic_linker="$host_os dld.sl"
11037 shlibpath_var=SHLIB_PATH
11038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 ;;
11042 esac
11043 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11044 postinstall_cmds='chmod 555 $lib'
11045 ;;
11046
11047 interix3*)
11048 version_type=linux
11049 need_lib_prefix=no
11050 need_version=no
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 shlibpath_overrides_runpath=no
11056 hardcode_into_libs=yes
11057 ;;
11058
11059 irix5* | irix6* | nonstopux*)
11060 case $host_os in
11061 nonstopux*) version_type=nonstopux ;;
11062 *)
11063 if test "$lt_cv_prog_gnu_ld" = yes; then
11064 version_type=linux
11065 else
11066 version_type=irix
11067 fi ;;
11068 esac
11069 need_lib_prefix=no
11070 need_version=no
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11073 case $host_os in
11074 irix5* | nonstopux*)
11075 libsuff= shlibsuff=
11076 ;;
11077 *)
11078 case $LD in # libtool.m4 will add one of these switches to LD
11079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11080 libsuff= shlibsuff= libmagic=32-bit;;
11081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11082 libsuff=32 shlibsuff=N32 libmagic=N32;;
11083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11085 *) libsuff= shlibsuff= libmagic=never-match;;
11086 esac
11087 ;;
11088 esac
11089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11090 shlibpath_overrides_runpath=no
11091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11093 hardcode_into_libs=yes
11094 ;;
11095
11096 # No shared lib support for Linux oldld, aout, or coff.
11097 linux*oldld* | linux*aout* | linux*coff*)
11098 dynamic_linker=no
11099 ;;
11100
11101 # This must be Linux ELF.
11102 linux* | k*bsd*-gnu)
11103 version_type=linux
11104 need_lib_prefix=no
11105 need_version=no
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=no
11111 # This implies no fast_install, which is unacceptable.
11112 # Some rework will be needed to allow for fast_install
11113 # before this can be enabled.
11114 hardcode_into_libs=yes
11115
11116 # Append ld.so.conf contents to the search path
11117 if test -f /etc/ld.so.conf; then
11118 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11120 fi
11121
11122 # We used to test for /lib/ld.so.1 and disable shared libraries on
11123 # powerpc, because MkLinux only supported shared libraries with the
11124 # GNU dynamic linker. Since this was broken with cross compilers,
11125 # most powerpc-linux boxes support dynamic linking these days and
11126 # people can always --disable-shared, the test was removed, and we
11127 # assume the GNU/Linux dynamic linker is in use.
11128 dynamic_linker='GNU/Linux ld.so'
11129 ;;
11130
11131 netbsdelf*-gnu)
11132 version_type=linux
11133 need_lib_prefix=no
11134 need_version=no
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=no
11139 hardcode_into_libs=yes
11140 dynamic_linker='NetBSD ld.elf_so'
11141 ;;
11142
11143 netbsd*)
11144 version_type=sunos
11145 need_lib_prefix=no
11146 need_version=no
11147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150 dynamic_linker='NetBSD (a.out) ld.so'
11151 else
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 dynamic_linker='NetBSD ld.elf_so'
11155 fi
11156 shlibpath_var=LD_LIBRARY_PATH
11157 shlibpath_overrides_runpath=yes
11158 hardcode_into_libs=yes
11159 ;;
11160
11161 newsos6)
11162 version_type=linux
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 ;;
11167
11168 nto-qnx*)
11169 version_type=linux
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=yes
11176 ;;
11177
11178 openbsd*)
11179 version_type=sunos
11180 sys_lib_dlsearch_path_spec="/usr/lib"
11181 need_lib_prefix=no
11182 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11183 case $host_os in
11184 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11185 *) need_version=no ;;
11186 esac
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11191 case $host_os in
11192 openbsd2.[89] | openbsd2.[89].*)
11193 shlibpath_overrides_runpath=no
11194 ;;
11195 *)
11196 shlibpath_overrides_runpath=yes
11197 ;;
11198 esac
11199 else
11200 shlibpath_overrides_runpath=yes
11201 fi
11202 ;;
11203
11204 os2*)
11205 libname_spec='$name'
11206 shrext_cmds=".dll"
11207 need_lib_prefix=no
11208 library_names_spec='$libname${shared_ext} $libname.a'
11209 dynamic_linker='OS/2 ld.exe'
11210 shlibpath_var=LIBPATH
11211 ;;
11212
11213 osf3* | osf4* | osf5*)
11214 version_type=osf
11215 need_lib_prefix=no
11216 need_version=no
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11221 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11222 ;;
11223
11224 solaris*)
11225 version_type=linux
11226 need_lib_prefix=no
11227 need_version=no
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11229 soname_spec='${libname}${release}${shared_ext}$major'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 shlibpath_overrides_runpath=yes
11232 hardcode_into_libs=yes
11233 # ldd complains unless libraries are executable
11234 postinstall_cmds='chmod +x $lib'
11235 ;;
11236
11237 sunos4*)
11238 version_type=sunos
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11240 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes
11243 if test "$with_gnu_ld" = yes; then
11244 need_lib_prefix=no
11245 fi
11246 need_version=yes
11247 ;;
11248
11249 sysv4 | sysv4.3*)
11250 version_type=linux
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 case $host_vendor in
11255 sni)
11256 shlibpath_overrides_runpath=no
11257 need_lib_prefix=no
11258 export_dynamic_flag_spec='${wl}-Blargedynsym'
11259 runpath_var=LD_RUN_PATH
11260 ;;
11261 siemens)
11262 need_lib_prefix=no
11263 ;;
11264 motorola)
11265 need_lib_prefix=no
11266 need_version=no
11267 shlibpath_overrides_runpath=no
11268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11269 ;;
11270 esac
11271 ;;
11272
11273 sysv4*MP*)
11274 if test -d /usr/nec ;then
11275 version_type=linux
11276 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11277 soname_spec='$libname${shared_ext}.$major'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 fi
11280 ;;
11281
11282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11283 version_type=freebsd-elf
11284 need_lib_prefix=no
11285 need_version=no
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 hardcode_into_libs=yes
11290 if test "$with_gnu_ld" = yes; then
11291 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11292 shlibpath_overrides_runpath=no
11293 else
11294 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11295 shlibpath_overrides_runpath=yes
11296 case $host_os in
11297 sco3.2v5*)
11298 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11299 ;;
11300 esac
11301 fi
11302 sys_lib_dlsearch_path_spec='/usr/lib'
11303 ;;
11304
11305 uts4*)
11306 version_type=linux
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 shlibpath_var=LD_LIBRARY_PATH
11310 ;;
11311
11312 *)
11313 dynamic_linker=no
11314 ;;
11315 esac
11316 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11317 echo "${ECHO_T}$dynamic_linker" >&6; }
11318 test "$dynamic_linker" = no && can_build_shared=no
11319
11320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11321 if test "$GCC" = yes; then
11322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11323 fi
11324
11325 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11327 hardcode_action=
11328 if test -n "$hardcode_libdir_flag_spec" || \
11329 test -n "$runpath_var" || \
11330 test "X$hardcode_automatic" = "Xyes" ; then
11331
11332 # We can hardcode non-existant directories.
11333 if test "$hardcode_direct" != no &&
11334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11335 # have to relink, otherwise we might link with an installed library
11336 # when we should be linking with a yet-to-be-installed one
11337 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11338 test "$hardcode_minus_L" != no; then
11339 # Linking always hardcodes the temporary library directory.
11340 hardcode_action=relink
11341 else
11342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11343 hardcode_action=immediate
11344 fi
11345 else
11346 # We cannot hardcode anything, or else we can only hardcode existing
11347 # directories.
11348 hardcode_action=unsupported
11349 fi
11350 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11351 echo "${ECHO_T}$hardcode_action" >&6; }
11352
11353 if test "$hardcode_action" = relink; then
11354 # Fast installation is not supported
11355 enable_fast_install=no
11356 elif test "$shlibpath_overrides_runpath" = yes ||
11357 test "$enable_shared" = no; then
11358 # Fast installation is not necessary
11359 enable_fast_install=needless
11360 fi
11361
11362 striplib=
11363 old_striplib=
11364 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11365 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11366 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11368 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11369 { echo "$as_me:$LINENO: result: yes" >&5
11370 echo "${ECHO_T}yes" >&6; }
11371 else
11372 # FIXME - insert some real tests, host_os isn't really good enough
11373 case $host_os in
11374 darwin*)
11375 if test -n "$STRIP" ; then
11376 striplib="$STRIP -x"
11377 { echo "$as_me:$LINENO: result: yes" >&5
11378 echo "${ECHO_T}yes" >&6; }
11379 else
11380 { echo "$as_me:$LINENO: result: no" >&5
11381 echo "${ECHO_T}no" >&6; }
11382 fi
11383 ;;
11384 *)
11385 { echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6; }
11387 ;;
11388 esac
11389 fi
11390
11391 if test "x$enable_dlopen" != xyes; then
11392 enable_dlopen=unknown
11393 enable_dlopen_self=unknown
11394 enable_dlopen_self_static=unknown
11395 else
11396 lt_cv_dlopen=no
11397 lt_cv_dlopen_libs=
11398
11399 case $host_os in
11400 beos*)
11401 lt_cv_dlopen="load_add_on"
11402 lt_cv_dlopen_libs=
11403 lt_cv_dlopen_self=yes
11404 ;;
11405
11406 mingw* | pw32*)
11407 lt_cv_dlopen="LoadLibrary"
11408 lt_cv_dlopen_libs=
11409 ;;
11410
11411 cygwin*)
11412 lt_cv_dlopen="dlopen"
11413 lt_cv_dlopen_libs=
11414 ;;
11415
11416 darwin*)
11417 # if libdl is installed we need to link against it
11418 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11419 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11420 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-ldl $LIBS"
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char dlopen ();
11439 int
11440 main ()
11441 {
11442 return dlopen ();
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (ac_try="$ac_link"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_link") 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest$ac_exeext &&
11464 $as_test_x conftest$ac_exeext; then
11465 ac_cv_lib_dl_dlopen=yes
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470 ac_cv_lib_dl_dlopen=no
11471 fi
11472
11473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11474 conftest$ac_exeext conftest.$ac_ext
11475 LIBS=$ac_check_lib_save_LIBS
11476 fi
11477 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11479 if test $ac_cv_lib_dl_dlopen = yes; then
11480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11481 else
11482
11483 lt_cv_dlopen="dyld"
11484 lt_cv_dlopen_libs=
11485 lt_cv_dlopen_self=yes
11486
11487 fi
11488
11489 ;;
11490
11491 *)
11492 { echo "$as_me:$LINENO: checking for shl_load" >&5
11493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11494 if test "${ac_cv_func_shl_load+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505 #define shl_load innocuous_shl_load
11506
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char shl_load (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11511
11512 #ifdef __STDC__
11513 # include <limits.h>
11514 #else
11515 # include <assert.h>
11516 #endif
11517
11518 #undef shl_load
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char shl_load ();
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined __stub_shl_load || defined __stub___shl_load
11531 choke me
11532 #endif
11533
11534 int
11535 main ()
11536 {
11537 return shl_load ();
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_link") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest$ac_exeext &&
11559 $as_test_x conftest$ac_exeext; then
11560 ac_cv_func_shl_load=yes
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_cv_func_shl_load=no
11566 fi
11567
11568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11569 conftest$ac_exeext conftest.$ac_ext
11570 fi
11571 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11572 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11573 if test $ac_cv_func_shl_load = yes; then
11574 lt_cv_dlopen="shl_load"
11575 else
11576 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11577 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11578 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-ldld $LIBS"
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h. */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589
11590 /* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11593 #ifdef __cplusplus
11594 extern "C"
11595 #endif
11596 char shl_load ();
11597 int
11598 main ()
11599 {
11600 return shl_load ();
11601 ;
11602 return 0;
11603 }
11604 _ACEOF
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (ac_try="$ac_link"
11607 case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_link") 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } && {
11619 test -z "$ac_c_werror_flag" ||
11620 test ! -s conftest.err
11621 } && test -s conftest$ac_exeext &&
11622 $as_test_x conftest$ac_exeext; then
11623 ac_cv_lib_dld_shl_load=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ac_cv_lib_dld_shl_load=no
11629 fi
11630
11631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11634 fi
11635 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11636 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11637 if test $ac_cv_lib_dld_shl_load = yes; then
11638 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11639 else
11640 { echo "$as_me:$LINENO: checking for dlopen" >&5
11641 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11642 if test "${ac_cv_func_dlopen+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h. */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11653 #define dlopen innocuous_dlopen
11654
11655 /* System header to define __stub macros and hopefully few prototypes,
11656 which can conflict with char dlopen (); below.
11657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11658 <limits.h> exists even on freestanding compilers. */
11659
11660 #ifdef __STDC__
11661 # include <limits.h>
11662 #else
11663 # include <assert.h>
11664 #endif
11665
11666 #undef dlopen
11667
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11671 #ifdef __cplusplus
11672 extern "C"
11673 #endif
11674 char dlopen ();
11675 /* The GNU C library defines this for functions which it implements
11676 to always fail with ENOSYS. Some functions are actually named
11677 something starting with __ and the normal name is an alias. */
11678 #if defined __stub_dlopen || defined __stub___dlopen
11679 choke me
11680 #endif
11681
11682 int
11683 main ()
11684 {
11685 return dlopen ();
11686 ;
11687 return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (ac_try="$ac_link"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_link") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest$ac_exeext &&
11707 $as_test_x conftest$ac_exeext; then
11708 ac_cv_func_dlopen=yes
11709 else
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 ac_cv_func_dlopen=no
11714 fi
11715
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717 conftest$ac_exeext conftest.$ac_ext
11718 fi
11719 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11720 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11721 if test $ac_cv_func_dlopen = yes; then
11722 lt_cv_dlopen="dlopen"
11723 else
11724 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11725 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11726 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729 ac_check_lib_save_LIBS=$LIBS
11730 LIBS="-ldl $LIBS"
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char dlopen ();
11745 int
11746 main ()
11747 {
11748 return dlopen ();
11749 ;
11750 return 0;
11751 }
11752 _ACEOF
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (ac_try="$ac_link"
11755 case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11758 esac
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_link") 2>conftest.er1
11761 ac_status=$?
11762 grep -v '^ *+' conftest.er1 >conftest.err
11763 rm -f conftest.er1
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } && {
11767 test -z "$ac_c_werror_flag" ||
11768 test ! -s conftest.err
11769 } && test -s conftest$ac_exeext &&
11770 $as_test_x conftest$ac_exeext; then
11771 ac_cv_lib_dl_dlopen=yes
11772 else
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 ac_cv_lib_dl_dlopen=no
11777 fi
11778
11779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11780 conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_lib_save_LIBS
11782 fi
11783 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11784 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11785 if test $ac_cv_lib_dl_dlopen = yes; then
11786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11787 else
11788 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11789 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11790 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793 ac_check_lib_save_LIBS=$LIBS
11794 LIBS="-lsvld $LIBS"
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801
11802 /* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11805 #ifdef __cplusplus
11806 extern "C"
11807 #endif
11808 char dlopen ();
11809 int
11810 main ()
11811 {
11812 return dlopen ();
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (ac_try="$ac_link"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_link") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest$ac_exeext &&
11834 $as_test_x conftest$ac_exeext; then
11835 ac_cv_lib_svld_dlopen=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 ac_cv_lib_svld_dlopen=no
11841 fi
11842
11843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11844 conftest$ac_exeext conftest.$ac_ext
11845 LIBS=$ac_check_lib_save_LIBS
11846 fi
11847 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11848 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11849 if test $ac_cv_lib_svld_dlopen = yes; then
11850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11851 else
11852 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11853 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11854 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857 ac_check_lib_save_LIBS=$LIBS
11858 LIBS="-ldld $LIBS"
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865
11866 /* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 char dld_link ();
11873 int
11874 main ()
11875 {
11876 return dld_link ();
11877 ;
11878 return 0;
11879 }
11880 _ACEOF
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>conftest.er1
11889 ac_status=$?
11890 grep -v '^ *+' conftest.er1 >conftest.err
11891 rm -f conftest.er1
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest$ac_exeext &&
11898 $as_test_x conftest$ac_exeext; then
11899 ac_cv_lib_dld_dld_link=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 ac_cv_lib_dld_dld_link=no
11905 fi
11906
11907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11912 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11913 if test $ac_cv_lib_dld_dld_link = yes; then
11914 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11915 fi
11916
11917
11918 fi
11919
11920
11921 fi
11922
11923
11924 fi
11925
11926
11927 fi
11928
11929
11930 fi
11931
11932 ;;
11933 esac
11934
11935 if test "x$lt_cv_dlopen" != xno; then
11936 enable_dlopen=yes
11937 else
11938 enable_dlopen=no
11939 fi
11940
11941 case $lt_cv_dlopen in
11942 dlopen)
11943 save_CPPFLAGS="$CPPFLAGS"
11944 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11945
11946 save_LDFLAGS="$LDFLAGS"
11947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11948
11949 save_LIBS="$LIBS"
11950 LIBS="$lt_cv_dlopen_libs $LIBS"
11951
11952 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11953 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11954 if test "${lt_cv_dlopen_self+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957 if test "$cross_compiling" = yes; then :
11958 lt_cv_dlopen_self=cross
11959 else
11960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11961 lt_status=$lt_dlunknown
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11963 "configure"
11964 #include "confdefs.h"
11965
11966 #if HAVE_DLFCN_H
11967 #include <dlfcn.h>
11968 #endif
11969
11970 #include <stdio.h>
11971
11972 #ifdef RTLD_GLOBAL
11973 # define LT_DLGLOBAL RTLD_GLOBAL
11974 #else
11975 # ifdef DL_GLOBAL
11976 # define LT_DLGLOBAL DL_GLOBAL
11977 # else
11978 # define LT_DLGLOBAL 0
11979 # endif
11980 #endif
11981
11982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11983 find out it does not work in some platform. */
11984 #ifndef LT_DLLAZY_OR_NOW
11985 # ifdef RTLD_LAZY
11986 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11987 # else
11988 # ifdef DL_LAZY
11989 # define LT_DLLAZY_OR_NOW DL_LAZY
11990 # else
11991 # ifdef RTLD_NOW
11992 # define LT_DLLAZY_OR_NOW RTLD_NOW
11993 # else
11994 # ifdef DL_NOW
11995 # define LT_DLLAZY_OR_NOW DL_NOW
11996 # else
11997 # define LT_DLLAZY_OR_NOW 0
11998 # endif
11999 # endif
12000 # endif
12001 # endif
12002 #endif
12003
12004 #ifdef __cplusplus
12005 extern "C" void exit (int);
12006 #endif
12007
12008 void fnord() { int i=42;}
12009 int main ()
12010 {
12011 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12012 int status = $lt_dlunknown;
12013
12014 if (self)
12015 {
12016 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12017 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12018 /* dlclose (self); */
12019 }
12020 else
12021 puts (dlerror ());
12022
12023 exit (status);
12024 }
12025 EOF
12026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027 (eval $ac_link) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12031 (./conftest; exit; ) >&5 2>/dev/null
12032 lt_status=$?
12033 case x$lt_status in
12034 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12035 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12036 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12037 esac
12038 else :
12039 # compilation failed
12040 lt_cv_dlopen_self=no
12041 fi
12042 fi
12043 rm -fr conftest*
12044
12045
12046 fi
12047 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12048 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12049
12050 if test "x$lt_cv_dlopen_self" = xyes; then
12051 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12052 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12053 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12054 if test "${lt_cv_dlopen_self_static+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057 if test "$cross_compiling" = yes; then :
12058 lt_cv_dlopen_self_static=cross
12059 else
12060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12061 lt_status=$lt_dlunknown
12062 cat > conftest.$ac_ext <<EOF
12063 #line 12063 "configure"
12064 #include "confdefs.h"
12065
12066 #if HAVE_DLFCN_H
12067 #include <dlfcn.h>
12068 #endif
12069
12070 #include <stdio.h>
12071
12072 #ifdef RTLD_GLOBAL
12073 # define LT_DLGLOBAL RTLD_GLOBAL
12074 #else
12075 # ifdef DL_GLOBAL
12076 # define LT_DLGLOBAL DL_GLOBAL
12077 # else
12078 # define LT_DLGLOBAL 0
12079 # endif
12080 #endif
12081
12082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12083 find out it does not work in some platform. */
12084 #ifndef LT_DLLAZY_OR_NOW
12085 # ifdef RTLD_LAZY
12086 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12087 # else
12088 # ifdef DL_LAZY
12089 # define LT_DLLAZY_OR_NOW DL_LAZY
12090 # else
12091 # ifdef RTLD_NOW
12092 # define LT_DLLAZY_OR_NOW RTLD_NOW
12093 # else
12094 # ifdef DL_NOW
12095 # define LT_DLLAZY_OR_NOW DL_NOW
12096 # else
12097 # define LT_DLLAZY_OR_NOW 0
12098 # endif
12099 # endif
12100 # endif
12101 # endif
12102 #endif
12103
12104 #ifdef __cplusplus
12105 extern "C" void exit (int);
12106 #endif
12107
12108 void fnord() { int i=42;}
12109 int main ()
12110 {
12111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12112 int status = $lt_dlunknown;
12113
12114 if (self)
12115 {
12116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12117 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12118 /* dlclose (self); */
12119 }
12120 else
12121 puts (dlerror ());
12122
12123 exit (status);
12124 }
12125 EOF
12126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127 (eval $ac_link) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12131 (./conftest; exit; ) >&5 2>/dev/null
12132 lt_status=$?
12133 case x$lt_status in
12134 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12135 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12136 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12137 esac
12138 else :
12139 # compilation failed
12140 lt_cv_dlopen_self_static=no
12141 fi
12142 fi
12143 rm -fr conftest*
12144
12145
12146 fi
12147 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12148 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12149 fi
12150
12151 CPPFLAGS="$save_CPPFLAGS"
12152 LDFLAGS="$save_LDFLAGS"
12153 LIBS="$save_LIBS"
12154 ;;
12155 esac
12156
12157 case $lt_cv_dlopen_self in
12158 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12159 *) enable_dlopen_self=unknown ;;
12160 esac
12161
12162 case $lt_cv_dlopen_self_static in
12163 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12164 *) enable_dlopen_self_static=unknown ;;
12165 esac
12166 fi
12167
12168
12169 # Report which library types will actually be built
12170 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12171 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12172 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12173 echo "${ECHO_T}$can_build_shared" >&6; }
12174
12175 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12176 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12177 test "$can_build_shared" = "no" && enable_shared=no
12178
12179 # On AIX, shared libraries and static libraries use the same namespace, and
12180 # are all built from PIC.
12181 case $host_os in
12182 aix3*)
12183 test "$enable_shared" = yes && enable_static=no
12184 if test -n "$RANLIB"; then
12185 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12186 postinstall_cmds='$RANLIB $lib'
12187 fi
12188 ;;
12189
12190 aix4* | aix5*)
12191 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12192 test "$enable_shared" = yes && enable_static=no
12193 fi
12194 ;;
12195 esac
12196 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12197 echo "${ECHO_T}$enable_shared" >&6; }
12198
12199 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12200 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12201 # Make sure either enable_shared or enable_static is yes.
12202 test "$enable_shared" = yes || enable_static=yes
12203 { echo "$as_me:$LINENO: result: $enable_static" >&5
12204 echo "${ECHO_T}$enable_static" >&6; }
12205
12206 # The else clause should only fire when bootstrapping the
12207 # libtool distribution, otherwise you forgot to ship ltmain.sh
12208 # with your package, and you will get complaints that there are
12209 # no rules to generate ltmain.sh.
12210 if test -f "$ltmain"; then
12211 # See if we are running on zsh, and set the options which allow our commands through
12212 # without removal of \ escapes.
12213 if test -n "${ZSH_VERSION+set}" ; then
12214 setopt NO_GLOB_SUBST
12215 fi
12216 # Now quote all the things that may contain metacharacters while being
12217 # careful not to overquote the AC_SUBSTed values. We take copies of the
12218 # variables and quote the copies for generation of the libtool script.
12219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12220 SED SHELL STRIP \
12221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12223 deplibs_check_method reload_flag reload_cmds need_locks \
12224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12225 lt_cv_sys_global_symbol_to_c_name_address \
12226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12227 old_postinstall_cmds old_postuninstall_cmds \
12228 compiler \
12229 CC \
12230 LD \
12231 lt_prog_compiler_wl \
12232 lt_prog_compiler_pic \
12233 lt_prog_compiler_static \
12234 lt_prog_compiler_no_builtin_flag \
12235 export_dynamic_flag_spec \
12236 thread_safe_flag_spec \
12237 whole_archive_flag_spec \
12238 enable_shared_with_static_runtimes \
12239 old_archive_cmds \
12240 old_archive_from_new_cmds \
12241 predep_objects \
12242 postdep_objects \
12243 predeps \
12244 postdeps \
12245 compiler_lib_search_path \
12246 archive_cmds \
12247 archive_expsym_cmds \
12248 postinstall_cmds \
12249 postuninstall_cmds \
12250 old_archive_from_expsyms_cmds \
12251 allow_undefined_flag \
12252 no_undefined_flag \
12253 export_symbols_cmds \
12254 hardcode_libdir_flag_spec \
12255 hardcode_libdir_flag_spec_ld \
12256 hardcode_libdir_separator \
12257 hardcode_automatic \
12258 module_cmds \
12259 module_expsym_cmds \
12260 lt_cv_prog_compiler_c_o \
12261 exclude_expsyms \
12262 include_expsyms; do
12263
12264 case $var in
12265 old_archive_cmds | \
12266 old_archive_from_new_cmds | \
12267 archive_cmds | \
12268 archive_expsym_cmds | \
12269 module_cmds | \
12270 module_expsym_cmds | \
12271 old_archive_from_expsyms_cmds | \
12272 export_symbols_cmds | \
12273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12274 postinstall_cmds | postuninstall_cmds | \
12275 old_postinstall_cmds | old_postuninstall_cmds | \
12276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12277 # Double-quote double-evaled strings.
12278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12279 ;;
12280 *)
12281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12282 ;;
12283 esac
12284 done
12285
12286 case $lt_echo in
12287 *'\$0 --fallback-echo"')
12288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12289 ;;
12290 esac
12291
12292 cfgfile="${ofile}T"
12293 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12294 $rm -f "$cfgfile"
12295 { echo "$as_me:$LINENO: creating $ofile" >&5
12296 echo "$as_me: creating $ofile" >&6;}
12297
12298 cat <<__EOF__ >> "$cfgfile"
12299 #! $SHELL
12300
12301 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12302 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12303 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12304 #
12305 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12306 # Free Software Foundation, Inc.
12307 #
12308 # This file is part of GNU Libtool:
12309 # Originally by Gordon Matzigkeit <[email protected]>, 1996
12310 #
12311 # This program is free software; you can redistribute it and/or modify
12312 # it under the terms of the GNU General Public License as published by
12313 # the Free Software Foundation; either version 2 of the License, or
12314 # (at your option) any later version.
12315 #
12316 # This program is distributed in the hope that it will be useful, but
12317 # WITHOUT ANY WARRANTY; without even the implied warranty of
12318 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12319 # General Public License for more details.
12320 #
12321 # You should have received a copy of the GNU General Public License
12322 # along with this program; if not, write to the Free Software
12323 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12324 #
12325 # As a special exception to the GNU General Public License, if you
12326 # distribute this file as part of a program that contains a
12327 # configuration script generated by Autoconf, you may include it under
12328 # the same distribution terms that you use for the rest of that program.
12329
12330 # A sed program that does not truncate output.
12331 SED=$lt_SED
12332
12333 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12334 Xsed="$SED -e 1s/^X//"
12335
12336 # The HP-UX ksh and POSIX shell print the target directory to stdout
12337 # if CDPATH is set.
12338 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12339
12340 # The names of the tagged configurations supported by this script.
12341 available_tags=
12342
12343 # ### BEGIN LIBTOOL CONFIG
12344
12345 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12346
12347 # Shell to use when invoking shell scripts.
12348 SHELL=$lt_SHELL
12349
12350 # Whether or not to build shared libraries.
12351 build_libtool_libs=$enable_shared
12352
12353 # Whether or not to build static libraries.
12354 build_old_libs=$enable_static
12355
12356 # Whether or not to add -lc for building shared libraries.
12357 build_libtool_need_lc=$archive_cmds_need_lc
12358
12359 # Whether or not to disallow shared libs when runtime libs are static
12360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12361
12362 # Whether or not to optimize for fast installation.
12363 fast_install=$enable_fast_install
12364
12365 # The host system.
12366 host_alias=$host_alias
12367 host=$host
12368 host_os=$host_os
12369
12370 # The build system.
12371 build_alias=$build_alias
12372 build=$build
12373 build_os=$build_os
12374
12375 # An echo program that does not interpret backslashes.
12376 echo=$lt_echo
12377
12378 # The archiver.
12379 AR=$lt_AR
12380 AR_FLAGS=$lt_AR_FLAGS
12381
12382 # A C compiler.
12383 LTCC=$lt_LTCC
12384
12385 # LTCC compiler flags.
12386 LTCFLAGS=$lt_LTCFLAGS
12387
12388 # A language-specific compiler.
12389 CC=$lt_compiler
12390
12391 # Is the compiler the GNU C compiler?
12392 with_gcc=$GCC
12393
12394 # An ERE matcher.
12395 EGREP=$lt_EGREP
12396
12397 # The linker used to build libraries.
12398 LD=$lt_LD
12399
12400 # Whether we need hard or soft links.
12401 LN_S=$lt_LN_S
12402
12403 # A BSD-compatible nm program.
12404 NM=$lt_NM
12405
12406 # A symbol stripping program
12407 STRIP=$lt_STRIP
12408
12409 # Used to examine libraries when file_magic_cmd begins "file"
12410 MAGIC_CMD=$MAGIC_CMD
12411
12412 # Used on cygwin: DLL creation program.
12413 DLLTOOL="$DLLTOOL"
12414
12415 # Used on cygwin: object dumper.
12416 OBJDUMP="$OBJDUMP"
12417
12418 # Used on cygwin: assembler.
12419 AS="$AS"
12420
12421 # The name of the directory that contains temporary libtool files.
12422 objdir=$objdir
12423
12424 # How to create reloadable object files.
12425 reload_flag=$lt_reload_flag
12426 reload_cmds=$lt_reload_cmds
12427
12428 # How to pass a linker flag through the compiler.
12429 wl=$lt_lt_prog_compiler_wl
12430
12431 # Object file suffix (normally "o").
12432 objext="$ac_objext"
12433
12434 # Old archive suffix (normally "a").
12435 libext="$libext"
12436
12437 # Shared library suffix (normally ".so").
12438 shrext_cmds='$shrext_cmds'
12439
12440 # Executable file suffix (normally "").
12441 exeext="$exeext"
12442
12443 # Additional compiler flags for building library objects.
12444 pic_flag=$lt_lt_prog_compiler_pic
12445 pic_mode=$pic_mode
12446
12447 # What is the maximum length of a command?
12448 max_cmd_len=$lt_cv_sys_max_cmd_len
12449
12450 # Does compiler simultaneously support -c and -o options?
12451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12452
12453 # Must we lock files when doing compilation?
12454 need_locks=$lt_need_locks
12455
12456 # Do we need the lib prefix for modules?
12457 need_lib_prefix=$need_lib_prefix
12458
12459 # Do we need a version for libraries?
12460 need_version=$need_version
12461
12462 # Whether dlopen is supported.
12463 dlopen_support=$enable_dlopen
12464
12465 # Whether dlopen of programs is supported.
12466 dlopen_self=$enable_dlopen_self
12467
12468 # Whether dlopen of statically linked programs is supported.
12469 dlopen_self_static=$enable_dlopen_self_static
12470
12471 # Compiler flag to prevent dynamic linking.
12472 link_static_flag=$lt_lt_prog_compiler_static
12473
12474 # Compiler flag to turn off builtin functions.
12475 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12476
12477 # Compiler flag to allow reflexive dlopens.
12478 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12479
12480 # Compiler flag to generate shared objects directly from archives.
12481 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12482
12483 # Compiler flag to generate thread-safe objects.
12484 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12485
12486 # Library versioning type.
12487 version_type=$version_type
12488
12489 # Format of library name prefix.
12490 libname_spec=$lt_libname_spec
12491
12492 # List of archive names. First name is the real one, the rest are links.
12493 # The last name is the one that the linker finds with -lNAME.
12494 library_names_spec=$lt_library_names_spec
12495
12496 # The coded name of the library, if different from the real name.
12497 soname_spec=$lt_soname_spec
12498
12499 # Commands used to build and install an old-style archive.
12500 RANLIB=$lt_RANLIB
12501 old_archive_cmds=$lt_old_archive_cmds
12502 old_postinstall_cmds=$lt_old_postinstall_cmds
12503 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12504
12505 # Create an old-style archive from a shared archive.
12506 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12507
12508 # Create a temporary old-style archive to link instead of a shared archive.
12509 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12510
12511 # Commands used to build and install a shared archive.
12512 archive_cmds=$lt_archive_cmds
12513 archive_expsym_cmds=$lt_archive_expsym_cmds
12514 postinstall_cmds=$lt_postinstall_cmds
12515 postuninstall_cmds=$lt_postuninstall_cmds
12516
12517 # Commands used to build a loadable module (assumed same as above if empty)
12518 module_cmds=$lt_module_cmds
12519 module_expsym_cmds=$lt_module_expsym_cmds
12520
12521 # Commands to strip libraries.
12522 old_striplib=$lt_old_striplib
12523 striplib=$lt_striplib
12524
12525 # Dependencies to place before the objects being linked to create a
12526 # shared library.
12527 predep_objects=$lt_predep_objects
12528
12529 # Dependencies to place after the objects being linked to create a
12530 # shared library.
12531 postdep_objects=$lt_postdep_objects
12532
12533 # Dependencies to place before the objects being linked to create a
12534 # shared library.
12535 predeps=$lt_predeps
12536
12537 # Dependencies to place after the objects being linked to create a
12538 # shared library.
12539 postdeps=$lt_postdeps
12540
12541 # The library search path used internally by the compiler when linking
12542 # a shared library.
12543 compiler_lib_search_path=$lt_compiler_lib_search_path
12544
12545 # Method to check whether dependent libraries are shared objects.
12546 deplibs_check_method=$lt_deplibs_check_method
12547
12548 # Command to use when deplibs_check_method == file_magic.
12549 file_magic_cmd=$lt_file_magic_cmd
12550
12551 # Flag that allows shared libraries with undefined symbols to be built.
12552 allow_undefined_flag=$lt_allow_undefined_flag
12553
12554 # Flag that forces no undefined symbols.
12555 no_undefined_flag=$lt_no_undefined_flag
12556
12557 # Commands used to finish a libtool library installation in a directory.
12558 finish_cmds=$lt_finish_cmds
12559
12560 # Same as above, but a single script fragment to be evaled but not shown.
12561 finish_eval=$lt_finish_eval
12562
12563 # Take the output of nm and produce a listing of raw symbols and C names.
12564 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12565
12566 # Transform the output of nm in a proper C declaration
12567 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12568
12569 # Transform the output of nm in a C name address pair
12570 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12571
12572 # This is the shared library runtime path variable.
12573 runpath_var=$runpath_var
12574
12575 # This is the shared library path variable.
12576 shlibpath_var=$shlibpath_var
12577
12578 # Is shlibpath searched before the hard-coded library search path?
12579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12580
12581 # How to hardcode a shared library path into an executable.
12582 hardcode_action=$hardcode_action
12583
12584 # Whether we should hardcode library paths into libraries.
12585 hardcode_into_libs=$hardcode_into_libs
12586
12587 # Flag to hardcode \$libdir into a binary during linking.
12588 # This must work even if \$libdir does not exist.
12589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12590
12591 # If ld is used when linking, flag to hardcode \$libdir into
12592 # a binary during linking. This must work even if \$libdir does
12593 # not exist.
12594 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12595
12596 # Whether we need a single -rpath flag with a separated argument.
12597 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12598
12599 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12600 # resulting binary.
12601 hardcode_direct=$hardcode_direct
12602
12603 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12604 # resulting binary.
12605 hardcode_minus_L=$hardcode_minus_L
12606
12607 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12608 # the resulting binary.
12609 hardcode_shlibpath_var=$hardcode_shlibpath_var
12610
12611 # Set to yes if building a shared library automatically hardcodes DIR into the library
12612 # and all subsequent libraries and executables linked against it.
12613 hardcode_automatic=$hardcode_automatic
12614
12615 # Variables whose values should be saved in libtool wrapper scripts and
12616 # restored at relink time.
12617 variables_saved_for_relink="$variables_saved_for_relink"
12618
12619 # Whether libtool must link a program against all its dependency libraries.
12620 link_all_deplibs=$link_all_deplibs
12621
12622 # Compile-time system search path for libraries
12623 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12624
12625 # Run-time system search path for libraries
12626 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12627
12628 # Fix the shell variable \$srcfile for the compiler.
12629 fix_srcfile_path="$fix_srcfile_path"
12630
12631 # Set to yes if exported symbols are required.
12632 always_export_symbols=$always_export_symbols
12633
12634 # The commands to list exported symbols.
12635 export_symbols_cmds=$lt_export_symbols_cmds
12636
12637 # The commands to extract the exported symbol list from a shared archive.
12638 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12639
12640 # Symbols that should not be listed in the preloaded symbols.
12641 exclude_expsyms=$lt_exclude_expsyms
12642
12643 # Symbols that must always be exported.
12644 include_expsyms=$lt_include_expsyms
12645
12646 # ### END LIBTOOL CONFIG
12647
12648 __EOF__
12649
12650
12651 case $host_os in
12652 aix3*)
12653 cat <<\EOF >> "$cfgfile"
12654
12655 # AIX sometimes has problems with the GCC collect2 program. For some
12656 # reason, if we set the COLLECT_NAMES environment variable, the problems
12657 # vanish in a puff of smoke.
12658 if test "X${COLLECT_NAMES+set}" != Xset; then
12659 COLLECT_NAMES=
12660 export COLLECT_NAMES
12661 fi
12662 EOF
12663 ;;
12664 esac
12665
12666 # We use sed instead of cat because bash on DJGPP gets confused if
12667 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12668 # text mode, it properly converts lines to CR/LF. This bash problem
12669 # is reportedly fixed, but why not run on old versions too?
12670 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12671
12672 mv -f "$cfgfile" "$ofile" || \
12673 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12674 chmod +x "$ofile"
12675
12676 else
12677 # If there is no Makefile yet, we rely on a make rule to execute
12678 # `config.status --recheck' to rerun these tests and create the
12679 # libtool script then.
12680 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12681 if test -f "$ltmain_in"; then
12682 test -f Makefile && make "$ltmain"
12683 fi
12684 fi
12685
12686
12687 ac_ext=c
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12692
12693 CC="$lt_save_CC"
12694
12695
12696 # Check whether --with-tags was given.
12697 if test "${with_tags+set}" = set; then
12698 withval=$with_tags; tagnames="$withval"
12699 fi
12700
12701
12702 if test -f "$ltmain" && test -n "$tagnames"; then
12703 if test ! -f "${ofile}"; then
12704 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12705 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12706 fi
12707
12708 if test -z "$LTCC"; then
12709 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12710 if test -z "$LTCC"; then
12711 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12712 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12713 else
12714 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12715 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12716 fi
12717 fi
12718 if test -z "$LTCFLAGS"; then
12719 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12720 fi
12721
12722 # Extract list of available tagged configurations in $ofile.
12723 # Note that this assumes the entire list is on one line.
12724 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12725
12726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12727 for tagname in $tagnames; do
12728 IFS="$lt_save_ifs"
12729 # Check whether tagname contains only valid characters
12730 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12731 "") ;;
12732 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12733 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12734 { (exit 1); exit 1; }; }
12735 ;;
12736 esac
12737
12738 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12739 then
12740 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12741 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12742 { (exit 1); exit 1; }; }
12743 fi
12744
12745 # Update the list of available tags.
12746 if test -n "$tagname"; then
12747 echo appending configuration tag \"$tagname\" to $ofile
12748
12749 case $tagname in
12750 CXX)
12751 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12752 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12753 (test "X$CXX" != "Xg++"))) ; then
12754 ac_ext=cpp
12755 ac_cpp='$CXXCPP $CPPFLAGS'
12756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12759
12760
12761
12762
12763 archive_cmds_need_lc_CXX=no
12764 allow_undefined_flag_CXX=
12765 always_export_symbols_CXX=no
12766 archive_expsym_cmds_CXX=
12767 export_dynamic_flag_spec_CXX=
12768 hardcode_direct_CXX=no
12769 hardcode_libdir_flag_spec_CXX=
12770 hardcode_libdir_flag_spec_ld_CXX=
12771 hardcode_libdir_separator_CXX=
12772 hardcode_minus_L_CXX=no
12773 hardcode_shlibpath_var_CXX=unsupported
12774 hardcode_automatic_CXX=no
12775 module_cmds_CXX=
12776 module_expsym_cmds_CXX=
12777 link_all_deplibs_CXX=unknown
12778 old_archive_cmds_CXX=$old_archive_cmds
12779 no_undefined_flag_CXX=
12780 whole_archive_flag_spec_CXX=
12781 enable_shared_with_static_runtimes_CXX=no
12782
12783 # Dependencies to place before and after the object being linked:
12784 predep_objects_CXX=
12785 postdep_objects_CXX=
12786 predeps_CXX=
12787 postdeps_CXX=
12788 compiler_lib_search_path_CXX=
12789
12790 # Source file extension for C++ test sources.
12791 ac_ext=cpp
12792
12793 # Object file extension for compiled C++ test sources.
12794 objext=o
12795 objext_CXX=$objext
12796
12797 # Code to be used in simple compile tests
12798 lt_simple_compile_test_code="int some_variable = 0;\n"
12799
12800 # Code to be used in simple link tests
12801 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12802
12803 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12804
12805 # If no C compiler was specified, use CC.
12806 LTCC=${LTCC-"$CC"}
12807
12808 # If no C compiler flags were specified, use CFLAGS.
12809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12810
12811 # Allow CC to be a program name with arguments.
12812 compiler=$CC
12813
12814
12815 # save warnings/boilerplate of simple test code
12816 ac_outfile=conftest.$ac_objext
12817 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12819 _lt_compiler_boilerplate=`cat conftest.err`
12820 $rm conftest*
12821
12822 ac_outfile=conftest.$ac_objext
12823 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12825 _lt_linker_boilerplate=`cat conftest.err`
12826 $rm conftest*
12827
12828
12829 # Allow CC to be a program name with arguments.
12830 lt_save_CC=$CC
12831 lt_save_LD=$LD
12832 lt_save_GCC=$GCC
12833 GCC=$GXX
12834 lt_save_with_gnu_ld=$with_gnu_ld
12835 lt_save_path_LD=$lt_cv_path_LD
12836 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12837 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12838 else
12839 $as_unset lt_cv_prog_gnu_ld
12840 fi
12841 if test -n "${lt_cv_path_LDCXX+set}"; then
12842 lt_cv_path_LD=$lt_cv_path_LDCXX
12843 else
12844 $as_unset lt_cv_path_LD
12845 fi
12846 test -z "${LDCXX+set}" || LD=$LDCXX
12847 CC=${CXX-"c++"}
12848 compiler=$CC
12849 compiler_CXX=$CC
12850 for cc_temp in $compiler""; do
12851 case $cc_temp in
12852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12854 \-*) ;;
12855 *) break;;
12856 esac
12857 done
12858 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12859
12860
12861 # We don't want -fno-exception wen compiling C++ code, so set the
12862 # no_builtin_flag separately
12863 if test "$GXX" = yes; then
12864 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12865 else
12866 lt_prog_compiler_no_builtin_flag_CXX=
12867 fi
12868
12869 if test "$GXX" = yes; then
12870 # Set up default GNU C++ configuration
12871
12872
12873 # Check whether --with-gnu-ld was given.
12874 if test "${with_gnu_ld+set}" = set; then
12875 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12876 else
12877 with_gnu_ld=no
12878 fi
12879
12880 ac_prog=ld
12881 if test "$GCC" = yes; then
12882 # Check if gcc -print-prog-name=ld gives a path.
12883 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12884 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12885 case $host in
12886 *-*-mingw*)
12887 # gcc leaves a trailing carriage return which upsets mingw
12888 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12889 *)
12890 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12891 esac
12892 case $ac_prog in
12893 # Accept absolute paths.
12894 [\\/]* | ?:[\\/]*)
12895 re_direlt='/[^/][^/]*/\.\./'
12896 # Canonicalize the pathname of ld
12897 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12898 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12899 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12900 done
12901 test -z "$LD" && LD="$ac_prog"
12902 ;;
12903 "")
12904 # If it fails, then pretend we aren't using GCC.
12905 ac_prog=ld
12906 ;;
12907 *)
12908 # If it is relative, then search for the first ld in PATH.
12909 with_gnu_ld=unknown
12910 ;;
12911 esac
12912 elif test "$with_gnu_ld" = yes; then
12913 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12914 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12915 else
12916 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12917 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12918 fi
12919 if test "${lt_cv_path_LD+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922 if test -z "$LD"; then
12923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12924 for ac_dir in $PATH; do
12925 IFS="$lt_save_ifs"
12926 test -z "$ac_dir" && ac_dir=.
12927 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12928 lt_cv_path_LD="$ac_dir/$ac_prog"
12929 # Check to see if the program is GNU ld. I'd rather use --version,
12930 # but apparently some variants of GNU ld only accept -v.
12931 # Break only if it was the GNU/non-GNU ld that we prefer.
12932 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12933 *GNU* | *'with BFD'*)
12934 test "$with_gnu_ld" != no && break
12935 ;;
12936 *)
12937 test "$with_gnu_ld" != yes && break
12938 ;;
12939 esac
12940 fi
12941 done
12942 IFS="$lt_save_ifs"
12943 else
12944 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12945 fi
12946 fi
12947
12948 LD="$lt_cv_path_LD"
12949 if test -n "$LD"; then
12950 { echo "$as_me:$LINENO: result: $LD" >&5
12951 echo "${ECHO_T}$LD" >&6; }
12952 else
12953 { echo "$as_me:$LINENO: result: no" >&5
12954 echo "${ECHO_T}no" >&6; }
12955 fi
12956 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12957 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12958 { (exit 1); exit 1; }; }
12959 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12960 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12961 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12965 case `$LD -v 2>&1 </dev/null` in
12966 *GNU* | *'with BFD'*)
12967 lt_cv_prog_gnu_ld=yes
12968 ;;
12969 *)
12970 lt_cv_prog_gnu_ld=no
12971 ;;
12972 esac
12973 fi
12974 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12975 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12976 with_gnu_ld=$lt_cv_prog_gnu_ld
12977
12978
12979
12980 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12981 # archiving commands below assume that GNU ld is being used.
12982 if test "$with_gnu_ld" = yes; then
12983 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984 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'
12985
12986 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988
12989 # If archive_cmds runs LD, not CC, wlarc should be empty
12990 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12991 # investigate it a little bit more. (MM)
12992 wlarc='${wl}'
12993
12994 # ancient GNU ld didn't support --whole-archive et. al.
12995 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12996 grep 'no-whole-archive' > /dev/null; then
12997 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12998 else
12999 whole_archive_flag_spec_CXX=
13000 fi
13001 else
13002 with_gnu_ld=no
13003 wlarc=
13004
13005 # A generic and very simple default shared library creation
13006 # command for GNU C++ for the case where it uses the native
13007 # linker, instead of GNU ld. If possible, this setting should
13008 # overridden to take advantage of the native linker features on
13009 # the platform it is being used on.
13010 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13011 fi
13012
13013 # Commands to make compiler produce verbose output that lists
13014 # what "hidden" libraries, object files and flags are used when
13015 # linking a shared library.
13016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13017
13018 else
13019 GXX=no
13020 with_gnu_ld=no
13021 wlarc=
13022 fi
13023
13024 # PORTME: fill in a description of your system's C++ link characteristics
13025 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13026 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13027 ld_shlibs_CXX=yes
13028 case $host_os in
13029 aix3*)
13030 # FIXME: insert proper C++ library support
13031 ld_shlibs_CXX=no
13032 ;;
13033 aix4* | aix5*)
13034 if test "$host_cpu" = ia64; then
13035 # On IA64, the linker does run time linking by default, so we don't
13036 # have to do anything special.
13037 aix_use_runtimelinking=no
13038 exp_sym_flag='-Bexport'
13039 no_entry_flag=""
13040 else
13041 aix_use_runtimelinking=no
13042
13043 # Test if we are trying to use run time linking or normal
13044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13045 # need to do runtime linking.
13046 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13047 for ld_flag in $LDFLAGS; do
13048 case $ld_flag in
13049 *-brtl*)
13050 aix_use_runtimelinking=yes
13051 break
13052 ;;
13053 esac
13054 done
13055 ;;
13056 esac
13057
13058 exp_sym_flag='-bexport'
13059 no_entry_flag='-bnoentry'
13060 fi
13061
13062 # When large executables or shared objects are built, AIX ld can
13063 # have problems creating the table of contents. If linking a library
13064 # or program results in "error TOC overflow" add -mminimal-toc to
13065 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13066 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13067
13068 archive_cmds_CXX=''
13069 hardcode_direct_CXX=yes
13070 hardcode_libdir_separator_CXX=':'
13071 link_all_deplibs_CXX=yes
13072
13073 if test "$GXX" = yes; then
13074 case $host_os in aix4.[012]|aix4.[012].*)
13075 # We only want to do this on AIX 4.2 and lower, the check
13076 # below for broken collect2 doesn't work under 4.3+
13077 collect2name=`${CC} -print-prog-name=collect2`
13078 if test -f "$collect2name" && \
13079 strings "$collect2name" | grep resolve_lib_name >/dev/null
13080 then
13081 # We have reworked collect2
13082 hardcode_direct_CXX=yes
13083 else
13084 # We have old collect2
13085 hardcode_direct_CXX=unsupported
13086 # It fails to find uninstalled libraries when the uninstalled
13087 # path is not listed in the libpath. Setting hardcode_minus_L
13088 # to unsupported forces relinking
13089 hardcode_minus_L_CXX=yes
13090 hardcode_libdir_flag_spec_CXX='-L$libdir'
13091 hardcode_libdir_separator_CXX=
13092 fi
13093 ;;
13094 esac
13095 shared_flag='-shared'
13096 if test "$aix_use_runtimelinking" = yes; then
13097 shared_flag="$shared_flag "'${wl}-G'
13098 fi
13099 else
13100 # not using gcc
13101 if test "$host_cpu" = ia64; then
13102 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13103 # chokes on -Wl,-G. The following line is correct:
13104 shared_flag='-G'
13105 else
13106 if test "$aix_use_runtimelinking" = yes; then
13107 shared_flag='${wl}-G'
13108 else
13109 shared_flag='${wl}-bM:SRE'
13110 fi
13111 fi
13112 fi
13113
13114 # It seems that -bexpall does not export symbols beginning with
13115 # underscore (_), so it is better to generate a list of symbols to export.
13116 always_export_symbols_CXX=yes
13117 if test "$aix_use_runtimelinking" = yes; then
13118 # Warning - without using the other runtime loading flags (-brtl),
13119 # -berok will link without error, but may produce a broken library.
13120 allow_undefined_flag_CXX='-berok'
13121 # Determine the default libpath from the value encoded in an empty executable.
13122 cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h. */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128
13129 int
13130 main ()
13131 {
13132
13133 ;
13134 return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (ac_try="$ac_link"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_link") 2>conftest.er1
13145 ac_status=$?
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } && {
13151 test -z "$ac_cxx_werror_flag" ||
13152 test ! -s conftest.err
13153 } && test -s conftest$ac_exeext &&
13154 $as_test_x conftest$ac_exeext; then
13155
13156 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13157 }'`
13158 # Check for a 64-bit object if we didn't find anything.
13159 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; }
13160 }'`; fi
13161 else
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165
13166 fi
13167
13168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13169 conftest$ac_exeext conftest.$ac_ext
13170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13171
13172 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13173
13174 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13175 else
13176 if test "$host_cpu" = ia64; then
13177 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13178 allow_undefined_flag_CXX="-z nodefs"
13179 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13180 else
13181 # Determine the default libpath from the value encoded in an empty executable.
13182 cat >conftest.$ac_ext <<_ACEOF
13183 /* confdefs.h. */
13184 _ACEOF
13185 cat confdefs.h >>conftest.$ac_ext
13186 cat >>conftest.$ac_ext <<_ACEOF
13187 /* end confdefs.h. */
13188
13189 int
13190 main ()
13191 {
13192
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (ac_try="$ac_link"
13199 case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_link") 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } && {
13211 test -z "$ac_cxx_werror_flag" ||
13212 test ! -s conftest.err
13213 } && test -s conftest$ac_exeext &&
13214 $as_test_x conftest$ac_exeext; then
13215
13216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13217 }'`
13218 # Check for a 64-bit object if we didn't find anything.
13219 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; }
13220 }'`; fi
13221 else
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225
13226 fi
13227
13228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13229 conftest$ac_exeext conftest.$ac_ext
13230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13231
13232 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13233 # Warning - without using the other run time loading flags,
13234 # -berok will link without error, but may produce a broken library.
13235 no_undefined_flag_CXX=' ${wl}-bernotok'
13236 allow_undefined_flag_CXX=' ${wl}-berok'
13237 # Exported symbols can be pulled into shared objects from archives
13238 whole_archive_flag_spec_CXX='$convenience'
13239 archive_cmds_need_lc_CXX=yes
13240 # This is similar to how AIX traditionally builds its shared libraries.
13241 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13242 fi
13243 fi
13244 ;;
13245
13246 beos*)
13247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13248 allow_undefined_flag_CXX=unsupported
13249 # Joseph Beckenbach <[email protected]> says some releases of gcc
13250 # support --undefined. This deserves some investigation. FIXME
13251 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13252 else
13253 ld_shlibs_CXX=no
13254 fi
13255 ;;
13256
13257 chorus*)
13258 case $cc_basename in
13259 *)
13260 # FIXME: insert proper C++ library support
13261 ld_shlibs_CXX=no
13262 ;;
13263 esac
13264 ;;
13265
13266 cygwin* | mingw* | pw32*)
13267 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13268 # as there is no search path for DLLs.
13269 hardcode_libdir_flag_spec_CXX='-L$libdir'
13270 allow_undefined_flag_CXX=unsupported
13271 always_export_symbols_CXX=no
13272 enable_shared_with_static_runtimes_CXX=yes
13273
13274 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13275 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13276 # If the export-symbols file already is a .def file (1st line
13277 # is EXPORTS), use it as is; otherwise, prepend...
13278 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13279 cp $export_symbols $output_objdir/$soname.def;
13280 else
13281 echo EXPORTS > $output_objdir/$soname.def;
13282 cat $export_symbols >> $output_objdir/$soname.def;
13283 fi~
13284 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13285 else
13286 ld_shlibs_CXX=no
13287 fi
13288 ;;
13289 darwin* | rhapsody*)
13290 case $host_os in
13291 rhapsody* | darwin1.[012])
13292 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13293 ;;
13294 *) # Darwin 1.3 on
13295 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13296 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13297 else
13298 case ${MACOSX_DEPLOYMENT_TARGET} in
13299 10.[012])
13300 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13301 ;;
13302 10.*)
13303 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13304 ;;
13305 esac
13306 fi
13307 ;;
13308 esac
13309 archive_cmds_need_lc_CXX=no
13310 hardcode_direct_CXX=no
13311 hardcode_automatic_CXX=yes
13312 hardcode_shlibpath_var_CXX=unsupported
13313 whole_archive_flag_spec_CXX=''
13314 link_all_deplibs_CXX=yes
13315
13316 if test "$GXX" = yes ; then
13317 lt_int_apple_cc_single_mod=no
13318 output_verbose_link_cmd='echo'
13319 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13320 lt_int_apple_cc_single_mod=yes
13321 fi
13322 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13323 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13324 else
13325 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'
13326 fi
13327 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13328 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13329 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13330 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}'
13331 else
13332 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}'
13333 fi
13334 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}'
13335 else
13336 case $cc_basename in
13337 xlc*)
13338 output_verbose_link_cmd='echo'
13339 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'
13340 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13342 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}'
13343 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}'
13344 ;;
13345 *)
13346 ld_shlibs_CXX=no
13347 ;;
13348 esac
13349 fi
13350 ;;
13351
13352 dgux*)
13353 case $cc_basename in
13354 ec++*)
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13357 ;;
13358 ghcx*)
13359 # Green Hills C++ Compiler
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13362 ;;
13363 *)
13364 # FIXME: insert proper C++ library support
13365 ld_shlibs_CXX=no
13366 ;;
13367 esac
13368 ;;
13369 freebsd[12]*)
13370 # C++ shared libraries reported to be fairly broken before switch to ELF
13371 ld_shlibs_CXX=no
13372 ;;
13373 freebsd-elf*)
13374 archive_cmds_need_lc_CXX=no
13375 ;;
13376 freebsd* | dragonfly*)
13377 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13378 # conventions
13379 ld_shlibs_CXX=yes
13380 ;;
13381 gnu*)
13382 ;;
13383 hpux9*)
13384 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13385 hardcode_libdir_separator_CXX=:
13386 export_dynamic_flag_spec_CXX='${wl}-E'
13387 hardcode_direct_CXX=yes
13388 hardcode_minus_L_CXX=yes # Not in the search PATH,
13389 # but as the default
13390 # location of the library.
13391
13392 case $cc_basename in
13393 CC*)
13394 # FIXME: insert proper C++ library support
13395 ld_shlibs_CXX=no
13396 ;;
13397 aCC*)
13398 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'
13399 # Commands to make compiler produce verbose output that lists
13400 # what "hidden" libraries, object files and flags are used when
13401 # linking a shared library.
13402 #
13403 # There doesn't appear to be a way to prevent this compiler from
13404 # explicitly linking system object files so we need to strip them
13405 # from the output so that they don't get included in the library
13406 # dependencies.
13407 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'
13408 ;;
13409 *)
13410 if test "$GXX" = yes; then
13411 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'
13412 else
13413 # FIXME: insert proper C++ library support
13414 ld_shlibs_CXX=no
13415 fi
13416 ;;
13417 esac
13418 ;;
13419 hpux10*|hpux11*)
13420 if test $with_gnu_ld = no; then
13421 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13422 hardcode_libdir_separator_CXX=:
13423
13424 case $host_cpu in
13425 hppa*64*|ia64*)
13426 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13427 ;;
13428 *)
13429 export_dynamic_flag_spec_CXX='${wl}-E'
13430 ;;
13431 esac
13432 fi
13433 case $host_cpu in
13434 hppa*64*|ia64*)
13435 hardcode_direct_CXX=no
13436 hardcode_shlibpath_var_CXX=no
13437 ;;
13438 *)
13439 hardcode_direct_CXX=yes
13440 hardcode_minus_L_CXX=yes # Not in the search PATH,
13441 # but as the default
13442 # location of the library.
13443 ;;
13444 esac
13445
13446 case $cc_basename in
13447 CC*)
13448 # FIXME: insert proper C++ library support
13449 ld_shlibs_CXX=no
13450 ;;
13451 aCC*)
13452 case $host_cpu in
13453 hppa*64*)
13454 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13455 ;;
13456 ia64*)
13457 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13458 ;;
13459 *)
13460 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461 ;;
13462 esac
13463 # Commands to make compiler produce verbose output that lists
13464 # what "hidden" libraries, object files and flags are used when
13465 # linking a shared library.
13466 #
13467 # There doesn't appear to be a way to prevent this compiler from
13468 # explicitly linking system object files so we need to strip them
13469 # from the output so that they don't get included in the library
13470 # dependencies.
13471 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'
13472 ;;
13473 *)
13474 if test "$GXX" = yes; then
13475 if test $with_gnu_ld = no; then
13476 case $host_cpu in
13477 hppa*64*)
13478 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13479 ;;
13480 ia64*)
13481 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13482 ;;
13483 *)
13484 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'
13485 ;;
13486 esac
13487 fi
13488 else
13489 # FIXME: insert proper C++ library support
13490 ld_shlibs_CXX=no
13491 fi
13492 ;;
13493 esac
13494 ;;
13495 interix3*)
13496 hardcode_direct_CXX=no
13497 hardcode_shlibpath_var_CXX=no
13498 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13499 export_dynamic_flag_spec_CXX='${wl}-E'
13500 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13501 # Instead, shared libraries are loaded at an image base (0x10000000 by
13502 # default) and relocated if they conflict, which is a slow very memory
13503 # consuming and fragmenting process. To avoid this, we pick a random,
13504 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13505 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13506 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13507 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13508 ;;
13509 irix5* | irix6*)
13510 case $cc_basename in
13511 CC*)
13512 # SGI C++
13513 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13514
13515 # Archives containing C++ object files must be created using
13516 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13517 # necessary to make sure instantiated templates are included
13518 # in the archive.
13519 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13520 ;;
13521 *)
13522 if test "$GXX" = yes; then
13523 if test "$with_gnu_ld" = no; then
13524 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13525 else
13526 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'
13527 fi
13528 fi
13529 link_all_deplibs_CXX=yes
13530 ;;
13531 esac
13532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13533 hardcode_libdir_separator_CXX=:
13534 ;;
13535 linux* | k*bsd*-gnu)
13536 case $cc_basename in
13537 KCC*)
13538 # Kuck and Associates, Inc. (KAI) C++ Compiler
13539
13540 # KCC will only create a shared library if the output file
13541 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13542 # to its proper name (with version) after linking.
13543 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'
13544 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'
13545 # Commands to make compiler produce verbose output that lists
13546 # what "hidden" libraries, object files and flags are used when
13547 # linking a shared library.
13548 #
13549 # There doesn't appear to be a way to prevent this compiler from
13550 # explicitly linking system object files so we need to strip them
13551 # from the output so that they don't get included in the library
13552 # dependencies.
13553 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'
13554
13555 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13556 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13557
13558 # Archives containing C++ object files must be created using
13559 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13560 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13561 ;;
13562 icpc*)
13563 # Intel C++
13564 with_gnu_ld=yes
13565 # version 8.0 and above of icpc choke on multiply defined symbols
13566 # if we add $predep_objects and $postdep_objects, however 7.1 and
13567 # earlier do not add the objects themselves.
13568 case `$CC -V 2>&1` in
13569 *"Version 7."*)
13570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13571 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'
13572 ;;
13573 *) # Version 8.0 or newer
13574 tmp_idyn=
13575 case $host_cpu in
13576 ia64*) tmp_idyn=' -i_dynamic';;
13577 esac
13578 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13579 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13580 ;;
13581 esac
13582 archive_cmds_need_lc_CXX=no
13583 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13584 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13585 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13586 ;;
13587 pgCC*)
13588 # Portland Group C++ compiler
13589 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13590 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13591
13592 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13594 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13595 ;;
13596 cxx*)
13597 # Compaq C++
13598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13599 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'
13600
13601 runpath_var=LD_RUN_PATH
13602 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13603 hardcode_libdir_separator_CXX=:
13604
13605 # Commands to make compiler produce verbose output that lists
13606 # what "hidden" libraries, object files and flags are used when
13607 # linking a shared library.
13608 #
13609 # There doesn't appear to be a way to prevent this compiler from
13610 # explicitly linking system object files so we need to strip them
13611 # from the output so that they don't get included in the library
13612 # dependencies.
13613 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'
13614 ;;
13615 esac
13616 ;;
13617 lynxos*)
13618 # FIXME: insert proper C++ library support
13619 ld_shlibs_CXX=no
13620 ;;
13621 m88k*)
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13624 ;;
13625 mvs*)
13626 case $cc_basename in
13627 cxx*)
13628 # FIXME: insert proper C++ library support
13629 ld_shlibs_CXX=no
13630 ;;
13631 *)
13632 # FIXME: insert proper C++ library support
13633 ld_shlibs_CXX=no
13634 ;;
13635 esac
13636 ;;
13637 netbsd* | netbsdelf*-gnu)
13638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13639 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13640 wlarc=
13641 hardcode_libdir_flag_spec_CXX='-R$libdir'
13642 hardcode_direct_CXX=yes
13643 hardcode_shlibpath_var_CXX=no
13644 fi
13645 # Workaround some broken pre-1.5 toolchains
13646 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13647 ;;
13648 openbsd2*)
13649 # C++ shared libraries are fairly broken
13650 ld_shlibs_CXX=no
13651 ;;
13652 openbsd*)
13653 hardcode_direct_CXX=yes
13654 hardcode_shlibpath_var_CXX=no
13655 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13656 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13658 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13659 export_dynamic_flag_spec_CXX='${wl}-E'
13660 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13661 fi
13662 output_verbose_link_cmd='echo'
13663 ;;
13664 osf3*)
13665 case $cc_basename in
13666 KCC*)
13667 # Kuck and Associates, Inc. (KAI) C++ Compiler
13668
13669 # KCC will only create a shared library if the output file
13670 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13671 # to its proper name (with version) after linking.
13672 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'
13673
13674 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13675 hardcode_libdir_separator_CXX=:
13676
13677 # Archives containing C++ object files must be created using
13678 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13679 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13680
13681 ;;
13682 RCC*)
13683 # Rational C++ 2.4.1
13684 # FIXME: insert proper C++ library support
13685 ld_shlibs_CXX=no
13686 ;;
13687 cxx*)
13688 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13689 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13690
13691 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13692 hardcode_libdir_separator_CXX=:
13693
13694 # Commands to make compiler produce verbose output that lists
13695 # what "hidden" libraries, object files and flags are used when
13696 # linking a shared library.
13697 #
13698 # There doesn't appear to be a way to prevent this compiler from
13699 # explicitly linking system object files so we need to strip them
13700 # from the output so that they don't get included in the library
13701 # dependencies.
13702 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'
13703 ;;
13704 *)
13705 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13706 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13707 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13708
13709 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13710 hardcode_libdir_separator_CXX=:
13711
13712 # Commands to make compiler produce verbose output that lists
13713 # what "hidden" libraries, object files and flags are used when
13714 # linking a shared library.
13715 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13716
13717 else
13718 # FIXME: insert proper C++ library support
13719 ld_shlibs_CXX=no
13720 fi
13721 ;;
13722 esac
13723 ;;
13724 osf4* | osf5*)
13725 case $cc_basename in
13726 KCC*)
13727 # Kuck and Associates, Inc. (KAI) C++ Compiler
13728
13729 # KCC will only create a shared library if the output file
13730 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13731 # to its proper name (with version) after linking.
13732 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'
13733
13734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13735 hardcode_libdir_separator_CXX=:
13736
13737 # Archives containing C++ object files must be created using
13738 # the KAI C++ compiler.
13739 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13740 ;;
13741 RCC*)
13742 # Rational C++ 2.4.1
13743 # FIXME: insert proper C++ library support
13744 ld_shlibs_CXX=no
13745 ;;
13746 cxx*)
13747 allow_undefined_flag_CXX=' -expect_unresolved \*'
13748 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13749 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13750 echo "-hidden">> $lib.exp~
13751 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13752 $rm $lib.exp'
13753
13754 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13755 hardcode_libdir_separator_CXX=:
13756
13757 # Commands to make compiler produce verbose output that lists
13758 # what "hidden" libraries, object files and flags are used when
13759 # linking a shared library.
13760 #
13761 # There doesn't appear to be a way to prevent this compiler from
13762 # explicitly linking system object files so we need to strip them
13763 # from the output so that they don't get included in the library
13764 # dependencies.
13765 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'
13766 ;;
13767 *)
13768 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13769 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13770 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13771
13772 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13773 hardcode_libdir_separator_CXX=:
13774
13775 # Commands to make compiler produce verbose output that lists
13776 # what "hidden" libraries, object files and flags are used when
13777 # linking a shared library.
13778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13779
13780 else
13781 # FIXME: insert proper C++ library support
13782 ld_shlibs_CXX=no
13783 fi
13784 ;;
13785 esac
13786 ;;
13787 psos*)
13788 # FIXME: insert proper C++ library support
13789 ld_shlibs_CXX=no
13790 ;;
13791 sunos4*)
13792 case $cc_basename in
13793 CC*)
13794 # Sun C++ 4.x
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13797 ;;
13798 lcc*)
13799 # Lucid
13800 # FIXME: insert proper C++ library support
13801 ld_shlibs_CXX=no
13802 ;;
13803 *)
13804 # FIXME: insert proper C++ library support
13805 ld_shlibs_CXX=no
13806 ;;
13807 esac
13808 ;;
13809 solaris*)
13810 case $cc_basename in
13811 CC*)
13812 # Sun C++ 4.2, 5.x and Centerline C++
13813 archive_cmds_need_lc_CXX=yes
13814 no_undefined_flag_CXX=' -zdefs'
13815 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13816 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13817 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13818
13819 hardcode_libdir_flag_spec_CXX='-R$libdir'
13820 hardcode_shlibpath_var_CXX=no
13821 case $host_os in
13822 solaris2.[0-5] | solaris2.[0-5].*) ;;
13823 *)
13824 # The C++ compiler is used as linker so we must use $wl
13825 # flag to pass the commands to the underlying system
13826 # linker. We must also pass each convience library through
13827 # to the system linker between allextract/defaultextract.
13828 # The C++ compiler will combine linker options so we
13829 # cannot just pass the convience library names through
13830 # without $wl.
13831 # Supported since Solaris 2.6 (maybe 2.5.1?)
13832 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13833 ;;
13834 esac
13835 link_all_deplibs_CXX=yes
13836
13837 output_verbose_link_cmd='echo'
13838
13839 # Archives containing C++ object files must be created using
13840 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13841 # necessary to make sure instantiated templates are included
13842 # in the archive.
13843 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13844 ;;
13845 gcx*)
13846 # Green Hills C++ Compiler
13847 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13848
13849 # The C++ compiler must be used to create the archive.
13850 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13851 ;;
13852 *)
13853 # GNU C++ compiler with Solaris linker
13854 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13855 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13856 if $CC --version | grep -v '^2\.7' > /dev/null; then
13857 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13858 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13859 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13860
13861 # Commands to make compiler produce verbose output that lists
13862 # what "hidden" libraries, object files and flags are used when
13863 # linking a shared library.
13864 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13865 else
13866 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13867 # platform.
13868 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13869 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13870 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13871
13872 # Commands to make compiler produce verbose output that lists
13873 # what "hidden" libraries, object files and flags are used when
13874 # linking a shared library.
13875 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13876 fi
13877
13878 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13879 fi
13880 ;;
13881 esac
13882 ;;
13883 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13884 no_undefined_flag_CXX='${wl}-z,text'
13885 archive_cmds_need_lc_CXX=no
13886 hardcode_shlibpath_var_CXX=no
13887 runpath_var='LD_RUN_PATH'
13888
13889 case $cc_basename in
13890 CC*)
13891 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13892 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13893 ;;
13894 *)
13895 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13896 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13897 ;;
13898 esac
13899 ;;
13900 sysv5* | sco3.2v5* | sco5v6*)
13901 # Note: We can NOT use -z defs as we might desire, because we do not
13902 # link with -lc, and that would cause any symbols used from libc to
13903 # always be unresolved, which means just about no library would
13904 # ever link correctly. If we're not using GNU ld we use -z text
13905 # though, which does catch some bad symbols but isn't as heavy-handed
13906 # as -z defs.
13907 # For security reasons, it is highly recommended that you always
13908 # use absolute paths for naming shared libraries, and exclude the
13909 # DT_RUNPATH tag from executables and libraries. But doing so
13910 # requires that you compile everything twice, which is a pain.
13911 # So that behaviour is only enabled if SCOABSPATH is set to a
13912 # non-empty value in the environment. Most likely only useful for
13913 # creating official distributions of packages.
13914 # This is a hack until libtool officially supports absolute path
13915 # names for shared libraries.
13916 no_undefined_flag_CXX='${wl}-z,text'
13917 allow_undefined_flag_CXX='${wl}-z,nodefs'
13918 archive_cmds_need_lc_CXX=no
13919 hardcode_shlibpath_var_CXX=no
13920 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13921 hardcode_libdir_separator_CXX=':'
13922 link_all_deplibs_CXX=yes
13923 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13924 runpath_var='LD_RUN_PATH'
13925
13926 case $cc_basename in
13927 CC*)
13928 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13929 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13930 ;;
13931 *)
13932 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13933 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13934 ;;
13935 esac
13936 ;;
13937 tandem*)
13938 case $cc_basename in
13939 NCC*)
13940 # NonStop-UX NCC 3.20
13941 # FIXME: insert proper C++ library support
13942 ld_shlibs_CXX=no
13943 ;;
13944 *)
13945 # FIXME: insert proper C++ library support
13946 ld_shlibs_CXX=no
13947 ;;
13948 esac
13949 ;;
13950 vxworks*)
13951 # FIXME: insert proper C++ library support
13952 ld_shlibs_CXX=no
13953 ;;
13954 *)
13955 # FIXME: insert proper C++ library support
13956 ld_shlibs_CXX=no
13957 ;;
13958 esac
13959 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13960 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13961 test "$ld_shlibs_CXX" = no && can_build_shared=no
13962
13963 GCC_CXX="$GXX"
13964 LD_CXX="$LD"
13965
13966
13967 cat > conftest.$ac_ext <<EOF
13968 class Foo
13969 {
13970 public:
13971 Foo (void) { a = 0; }
13972 private:
13973 int a;
13974 };
13975 EOF
13976
13977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13978 (eval $ac_compile) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; then
13982 # Parse the compiler output and extract the necessary
13983 # objects, libraries and library flags.
13984
13985 # Sentinel used to keep track of whether or not we are before
13986 # the conftest object file.
13987 pre_test_object_deps_done=no
13988
13989 # The `*' in the case matches for architectures that use `case' in
13990 # $output_verbose_cmd can trigger glob expansion during the loop
13991 # eval without this substitution.
13992 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13993
13994 for p in `eval $output_verbose_link_cmd`; do
13995 case $p in
13996
13997 -L* | -R* | -l*)
13998 # Some compilers place space between "-{L,R}" and the path.
13999 # Remove the space.
14000 if test $p = "-L" \
14001 || test $p = "-R"; then
14002 prev=$p
14003 continue
14004 else
14005 prev=
14006 fi
14007
14008 if test "$pre_test_object_deps_done" = no; then
14009 case $p in
14010 -L* | -R*)
14011 # Internal compiler library paths should come after those
14012 # provided the user. The postdeps already come after the
14013 # user supplied libs so there is no need to process them.
14014 if test -z "$compiler_lib_search_path_CXX"; then
14015 compiler_lib_search_path_CXX="${prev}${p}"
14016 else
14017 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14018 fi
14019 ;;
14020 # The "-l" case would never come before the object being
14021 # linked, so don't bother handling this case.
14022 esac
14023 else
14024 if test -z "$postdeps_CXX"; then
14025 postdeps_CXX="${prev}${p}"
14026 else
14027 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14028 fi
14029 fi
14030 ;;
14031
14032 *.$objext)
14033 # This assumes that the test object file only shows up
14034 # once in the compiler output.
14035 if test "$p" = "conftest.$objext"; then
14036 pre_test_object_deps_done=yes
14037 continue
14038 fi
14039
14040 if test "$pre_test_object_deps_done" = no; then
14041 if test -z "$predep_objects_CXX"; then
14042 predep_objects_CXX="$p"
14043 else
14044 predep_objects_CXX="$predep_objects_CXX $p"
14045 fi
14046 else
14047 if test -z "$postdep_objects_CXX"; then
14048 postdep_objects_CXX="$p"
14049 else
14050 postdep_objects_CXX="$postdep_objects_CXX $p"
14051 fi
14052 fi
14053 ;;
14054
14055 *) ;; # Ignore the rest.
14056
14057 esac
14058 done
14059
14060 # Clean up.
14061 rm -f a.out a.exe
14062 else
14063 echo "libtool.m4: error: problem compiling CXX test program"
14064 fi
14065
14066 $rm -f confest.$objext
14067
14068 # PORTME: override above test on systems where it is broken
14069 case $host_os in
14070 interix3*)
14071 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14072 # hack all around it, let's just trust "g++" to DTRT.
14073 predep_objects_CXX=
14074 postdep_objects_CXX=
14075 postdeps_CXX=
14076 ;;
14077
14078 solaris*)
14079 case $cc_basename in
14080 CC*)
14081 # Adding this requires a known-good setup of shared libraries for
14082 # Sun compiler versions before 5.6, else PIC objects from an old
14083 # archive will be linked into the output, leading to subtle bugs.
14084 postdeps_CXX='-lCstd -lCrun'
14085 ;;
14086 esac
14087 ;;
14088 esac
14089
14090
14091 case " $postdeps_CXX " in
14092 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14093 esac
14094
14095 lt_prog_compiler_wl_CXX=
14096 lt_prog_compiler_pic_CXX=
14097 lt_prog_compiler_static_CXX=
14098
14099 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14100 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14101
14102 # C++ specific cases for pic, static, wl, etc.
14103 if test "$GXX" = yes; then
14104 lt_prog_compiler_wl_CXX='-Wl,'
14105 lt_prog_compiler_static_CXX='-static'
14106
14107 case $host_os in
14108 aix*)
14109 # All AIX code is PIC.
14110 if test "$host_cpu" = ia64; then
14111 # AIX 5 now supports IA64 processor
14112 lt_prog_compiler_static_CXX='-Bstatic'
14113 fi
14114 ;;
14115 amigaos*)
14116 # FIXME: we need at least 68020 code to build shared libraries, but
14117 # adding the `-m68020' flag to GCC prevents building anything better,
14118 # like `-m68040'.
14119 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14120 ;;
14121 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14122 # PIC is the default for these OSes.
14123 ;;
14124 mingw* | os2* | pw32*)
14125 # This hack is so that the source file can tell whether it is being
14126 # built for inclusion in a dll (and should export symbols for example).
14127 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14128 ;;
14129 darwin* | rhapsody*)
14130 # PIC is the default on this platform
14131 # Common symbols not allowed in MH_DYLIB files
14132 lt_prog_compiler_pic_CXX='-fno-common'
14133 ;;
14134 *djgpp*)
14135 # DJGPP does not support shared libraries at all
14136 lt_prog_compiler_pic_CXX=
14137 ;;
14138 interix3*)
14139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14140 # Instead, we relocate shared libraries at runtime.
14141 ;;
14142 sysv4*MP*)
14143 if test -d /usr/nec; then
14144 lt_prog_compiler_pic_CXX=-Kconform_pic
14145 fi
14146 ;;
14147 hpux*)
14148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14149 # not for PA HP-UX.
14150 case $host_cpu in
14151 hppa*64*|ia64*)
14152 ;;
14153 *)
14154 lt_prog_compiler_pic_CXX='-fPIC'
14155 ;;
14156 esac
14157 ;;
14158 *)
14159 lt_prog_compiler_pic_CXX='-fPIC'
14160 ;;
14161 esac
14162 else
14163 case $host_os in
14164 aix4* | aix5*)
14165 # All AIX code is PIC.
14166 if test "$host_cpu" = ia64; then
14167 # AIX 5 now supports IA64 processor
14168 lt_prog_compiler_static_CXX='-Bstatic'
14169 else
14170 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14171 fi
14172 ;;
14173 chorus*)
14174 case $cc_basename in
14175 cxch68*)
14176 # Green Hills C++ Compiler
14177 # _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"
14178 ;;
14179 esac
14180 ;;
14181 darwin*)
14182 # PIC is the default on this platform
14183 # Common symbols not allowed in MH_DYLIB files
14184 case $cc_basename in
14185 xlc*)
14186 lt_prog_compiler_pic_CXX='-qnocommon'
14187 lt_prog_compiler_wl_CXX='-Wl,'
14188 ;;
14189 esac
14190 ;;
14191 dgux*)
14192 case $cc_basename in
14193 ec++*)
14194 lt_prog_compiler_pic_CXX='-KPIC'
14195 ;;
14196 ghcx*)
14197 # Green Hills C++ Compiler
14198 lt_prog_compiler_pic_CXX='-pic'
14199 ;;
14200 *)
14201 ;;
14202 esac
14203 ;;
14204 freebsd* | dragonfly*)
14205 # FreeBSD uses GNU C++
14206 ;;
14207 hpux9* | hpux10* | hpux11*)
14208 case $cc_basename in
14209 CC*)
14210 lt_prog_compiler_wl_CXX='-Wl,'
14211 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14212 if test "$host_cpu" != ia64; then
14213 lt_prog_compiler_pic_CXX='+Z'
14214 fi
14215 ;;
14216 aCC*)
14217 lt_prog_compiler_wl_CXX='-Wl,'
14218 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14219 case $host_cpu in
14220 hppa*64*|ia64*)
14221 # +Z the default
14222 ;;
14223 *)
14224 lt_prog_compiler_pic_CXX='+Z'
14225 ;;
14226 esac
14227 ;;
14228 *)
14229 ;;
14230 esac
14231 ;;
14232 interix*)
14233 # This is c89, which is MS Visual C++ (no shared libs)
14234 # Anyone wants to do a port?
14235 ;;
14236 irix5* | irix6* | nonstopux*)
14237 case $cc_basename in
14238 CC*)
14239 lt_prog_compiler_wl_CXX='-Wl,'
14240 lt_prog_compiler_static_CXX='-non_shared'
14241 # CC pic flag -KPIC is the default.
14242 ;;
14243 *)
14244 ;;
14245 esac
14246 ;;
14247 linux* | k*bsd*-gnu)
14248 case $cc_basename in
14249 KCC*)
14250 # KAI C++ Compiler
14251 lt_prog_compiler_wl_CXX='--backend -Wl,'
14252 lt_prog_compiler_pic_CXX='-fPIC'
14253 ;;
14254 icpc* | ecpc*)
14255 # Intel C++
14256 lt_prog_compiler_wl_CXX='-Wl,'
14257 lt_prog_compiler_pic_CXX='-KPIC'
14258 lt_prog_compiler_static_CXX='-static'
14259 ;;
14260 pgCC*)
14261 # Portland Group C++ compiler.
14262 lt_prog_compiler_wl_CXX='-Wl,'
14263 lt_prog_compiler_pic_CXX='-fpic'
14264 lt_prog_compiler_static_CXX='-Bstatic'
14265 ;;
14266 cxx*)
14267 # Compaq C++
14268 # Make sure the PIC flag is empty. It appears that all Alpha
14269 # Linux and Compaq Tru64 Unix objects are PIC.
14270 lt_prog_compiler_pic_CXX=
14271 lt_prog_compiler_static_CXX='-non_shared'
14272 ;;
14273 *)
14274 ;;
14275 esac
14276 ;;
14277 lynxos*)
14278 ;;
14279 m88k*)
14280 ;;
14281 mvs*)
14282 case $cc_basename in
14283 cxx*)
14284 lt_prog_compiler_pic_CXX='-W c,exportall'
14285 ;;
14286 *)
14287 ;;
14288 esac
14289 ;;
14290 netbsd* | netbsdelf*-gnu)
14291 ;;
14292 osf3* | osf4* | osf5*)
14293 case $cc_basename in
14294 KCC*)
14295 lt_prog_compiler_wl_CXX='--backend -Wl,'
14296 ;;
14297 RCC*)
14298 # Rational C++ 2.4.1
14299 lt_prog_compiler_pic_CXX='-pic'
14300 ;;
14301 cxx*)
14302 # Digital/Compaq C++
14303 lt_prog_compiler_wl_CXX='-Wl,'
14304 # Make sure the PIC flag is empty. It appears that all Alpha
14305 # Linux and Compaq Tru64 Unix objects are PIC.
14306 lt_prog_compiler_pic_CXX=
14307 lt_prog_compiler_static_CXX='-non_shared'
14308 ;;
14309 *)
14310 ;;
14311 esac
14312 ;;
14313 psos*)
14314 ;;
14315 solaris*)
14316 case $cc_basename in
14317 CC*)
14318 # Sun C++ 4.2, 5.x and Centerline C++
14319 lt_prog_compiler_pic_CXX='-KPIC'
14320 lt_prog_compiler_static_CXX='-Bstatic'
14321 lt_prog_compiler_wl_CXX='-Qoption ld '
14322 ;;
14323 gcx*)
14324 # Green Hills C++ Compiler
14325 lt_prog_compiler_pic_CXX='-PIC'
14326 ;;
14327 *)
14328 ;;
14329 esac
14330 ;;
14331 sunos4*)
14332 case $cc_basename in
14333 CC*)
14334 # Sun C++ 4.x
14335 lt_prog_compiler_pic_CXX='-pic'
14336 lt_prog_compiler_static_CXX='-Bstatic'
14337 ;;
14338 lcc*)
14339 # Lucid
14340 lt_prog_compiler_pic_CXX='-pic'
14341 ;;
14342 *)
14343 ;;
14344 esac
14345 ;;
14346 tandem*)
14347 case $cc_basename in
14348 NCC*)
14349 # NonStop-UX NCC 3.20
14350 lt_prog_compiler_pic_CXX='-KPIC'
14351 ;;
14352 *)
14353 ;;
14354 esac
14355 ;;
14356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14357 case $cc_basename in
14358 CC*)
14359 lt_prog_compiler_wl_CXX='-Wl,'
14360 lt_prog_compiler_pic_CXX='-KPIC'
14361 lt_prog_compiler_static_CXX='-Bstatic'
14362 ;;
14363 esac
14364 ;;
14365 vxworks*)
14366 ;;
14367 *)
14368 lt_prog_compiler_can_build_shared_CXX=no
14369 ;;
14370 esac
14371 fi
14372
14373 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14374 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14375
14376 #
14377 # Check to make sure the PIC flag actually works.
14378 #
14379 if test -n "$lt_prog_compiler_pic_CXX"; then
14380
14381 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14382 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14383 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 lt_prog_compiler_pic_works_CXX=no
14387 ac_outfile=conftest.$ac_objext
14388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14389 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14390 # Insert the option either (1) after the last *FLAGS variable, or
14391 # (2) before a word containing "conftest.", or (3) at the end.
14392 # Note that $ac_compile itself does not contain backslashes and begins
14393 # with a dollar sign (not a hyphen), so the echo should work correctly.
14394 # The option is referenced via a variable to avoid confusing sed.
14395 lt_compile=`echo "$ac_compile" | $SED \
14396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14398 -e 's:$: $lt_compiler_flag:'`
14399 (eval echo "\"\$as_me:14399: $lt_compile\"" >&5)
14400 (eval "$lt_compile" 2>conftest.err)
14401 ac_status=$?
14402 cat conftest.err >&5
14403 echo "$as_me:14403: \$? = $ac_status" >&5
14404 if (exit $ac_status) && test -s "$ac_outfile"; then
14405 # The compiler can only warn and ignore the option if not recognized
14406 # So say no if there are warnings other than the usual output.
14407 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14410 lt_prog_compiler_pic_works_CXX=yes
14411 fi
14412 fi
14413 $rm conftest*
14414
14415 fi
14416 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14417 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14418
14419 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14420 case $lt_prog_compiler_pic_CXX in
14421 "" | " "*) ;;
14422 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14423 esac
14424 else
14425 lt_prog_compiler_pic_CXX=
14426 lt_prog_compiler_can_build_shared_CXX=no
14427 fi
14428
14429 fi
14430 case $host_os in
14431 # For platforms which do not support PIC, -DPIC is meaningless:
14432 *djgpp*)
14433 lt_prog_compiler_pic_CXX=
14434 ;;
14435 *)
14436 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14437 ;;
14438 esac
14439
14440 #
14441 # Check to make sure the static flag actually works.
14442 #
14443 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14444 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14445 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14446 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 lt_prog_compiler_static_works_CXX=no
14450 save_LDFLAGS="$LDFLAGS"
14451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14452 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14454 # The linker can only warn and ignore the option if not recognized
14455 # So say no if there are warnings
14456 if test -s conftest.err; then
14457 # Append any errors to the config.log.
14458 cat conftest.err 1>&5
14459 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14461 if diff conftest.exp conftest.er2 >/dev/null; then
14462 lt_prog_compiler_static_works_CXX=yes
14463 fi
14464 else
14465 lt_prog_compiler_static_works_CXX=yes
14466 fi
14467 fi
14468 $rm conftest*
14469 LDFLAGS="$save_LDFLAGS"
14470
14471 fi
14472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14473 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14474
14475 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14476 :
14477 else
14478 lt_prog_compiler_static_CXX=
14479 fi
14480
14481
14482 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14483 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14484 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 else
14487 lt_cv_prog_compiler_c_o_CXX=no
14488 $rm -r conftest 2>/dev/null
14489 mkdir conftest
14490 cd conftest
14491 mkdir out
14492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14493
14494 lt_compiler_flag="-o out/conftest2.$ac_objext"
14495 # Insert the option either (1) after the last *FLAGS variable, or
14496 # (2) before a word containing "conftest.", or (3) at the end.
14497 # Note that $ac_compile itself does not contain backslashes and begins
14498 # with a dollar sign (not a hyphen), so the echo should work correctly.
14499 lt_compile=`echo "$ac_compile" | $SED \
14500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14502 -e 's:$: $lt_compiler_flag:'`
14503 (eval echo "\"\$as_me:14503: $lt_compile\"" >&5)
14504 (eval "$lt_compile" 2>out/conftest.err)
14505 ac_status=$?
14506 cat out/conftest.err >&5
14507 echo "$as_me:14507: \$? = $ac_status" >&5
14508 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14509 then
14510 # The compiler can only warn and ignore the option if not recognized
14511 # So say no if there are warnings
14512 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14513 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14514 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14515 lt_cv_prog_compiler_c_o_CXX=yes
14516 fi
14517 fi
14518 chmod u+w . 2>&5
14519 $rm conftest*
14520 # SGI C++ compiler will create directory out/ii_files/ for
14521 # template instantiation
14522 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14523 $rm out/* && rmdir out
14524 cd ..
14525 rmdir conftest
14526 $rm conftest*
14527
14528 fi
14529 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14530 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14531
14532
14533 hard_links="nottested"
14534 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14535 # do not overwrite the value of need_locks provided by the user
14536 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14537 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14538 hard_links=yes
14539 $rm conftest*
14540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14541 touch conftest.a
14542 ln conftest.a conftest.b 2>&5 || hard_links=no
14543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14544 { echo "$as_me:$LINENO: result: $hard_links" >&5
14545 echo "${ECHO_T}$hard_links" >&6; }
14546 if test "$hard_links" = no; then
14547 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14548 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14549 need_locks=warn
14550 fi
14551 else
14552 need_locks=no
14553 fi
14554
14555 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14556 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14557
14558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14559 case $host_os in
14560 aix4* | aix5*)
14561 # If we're using GNU nm, then we don't want the "-C" option.
14562 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14563 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14564 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'
14565 else
14566 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'
14567 fi
14568 ;;
14569 pw32*)
14570 export_symbols_cmds_CXX="$ltdll_cmds"
14571 ;;
14572 cygwin* | mingw*)
14573 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14574 ;;
14575 linux* | k*bsd*-gnu)
14576 link_all_deplibs_CXX=no
14577 ;;
14578 *)
14579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14580 ;;
14581 esac
14582
14583 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14584 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14585 test "$ld_shlibs_CXX" = no && can_build_shared=no
14586
14587 #
14588 # Do we need to explicitly link libc?
14589 #
14590 case "x$archive_cmds_need_lc_CXX" in
14591 x|xyes)
14592 # Assume -lc should be added
14593 archive_cmds_need_lc_CXX=yes
14594
14595 if test "$enable_shared" = yes && test "$GCC" = yes; then
14596 case $archive_cmds_CXX in
14597 *'~'*)
14598 # FIXME: we may have to deal with multi-command sequences.
14599 ;;
14600 '$CC '*)
14601 # Test whether the compiler implicitly links with -lc since on some
14602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14603 # to ld, don't add -lc before -lgcc.
14604 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14605 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14606 $rm conftest*
14607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14608
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } 2>conftest.err; then
14614 soname=conftest
14615 lib=conftest
14616 libobjs=conftest.$ac_objext
14617 deplibs=
14618 wl=$lt_prog_compiler_wl_CXX
14619 pic_flag=$lt_prog_compiler_pic_CXX
14620 compiler_flags=-v
14621 linker_flags=-v
14622 verstring=
14623 output_objdir=.
14624 libname=conftest
14625 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14626 allow_undefined_flag_CXX=
14627 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14628 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }
14632 then
14633 archive_cmds_need_lc_CXX=no
14634 else
14635 archive_cmds_need_lc_CXX=yes
14636 fi
14637 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14638 else
14639 cat conftest.err 1>&5
14640 fi
14641 $rm conftest*
14642 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14643 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14644 ;;
14645 esac
14646 fi
14647 ;;
14648 esac
14649
14650 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14651 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14652 library_names_spec=
14653 libname_spec='lib$name'
14654 soname_spec=
14655 shrext_cmds=".so"
14656 postinstall_cmds=
14657 postuninstall_cmds=
14658 finish_cmds=
14659 finish_eval=
14660 shlibpath_var=
14661 shlibpath_overrides_runpath=unknown
14662 version_type=none
14663 dynamic_linker="$host_os ld.so"
14664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14665 if test "$GCC" = yes; then
14666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14667 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14668 # if the path contains ";" then we assume it to be the separator
14669 # otherwise default to the standard path separator (i.e. ":") - it is
14670 # assumed that no part of a normal pathname contains ";" but that should
14671 # okay in the real world where ";" in dirpaths is itself problematic.
14672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14673 else
14674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14675 fi
14676 else
14677 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14678 fi
14679 need_lib_prefix=unknown
14680 hardcode_into_libs=no
14681
14682 # when you set need_version to no, make sure it does not cause -set_version
14683 # flags to be left without arguments
14684 need_version=unknown
14685
14686 case $host_os in
14687 aix3*)
14688 version_type=linux
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14690 shlibpath_var=LIBPATH
14691
14692 # AIX 3 has no versioning support, so we append a major version to the name.
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 ;;
14695
14696 aix4* | aix5*)
14697 version_type=linux
14698 need_lib_prefix=no
14699 need_version=no
14700 hardcode_into_libs=yes
14701 if test "$host_cpu" = ia64; then
14702 # AIX 5 supports IA64
14703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 else
14706 # With GCC up to 2.95.x, collect2 would create an import file
14707 # for dependence libraries. The import file would start with
14708 # the line `#! .'. This would cause the generated library to
14709 # depend on `.', always an invalid library. This was fixed in
14710 # development snapshots of GCC prior to 3.0.
14711 case $host_os in
14712 aix4 | aix4.[01] | aix4.[01].*)
14713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14714 echo ' yes '
14715 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14716 :
14717 else
14718 can_build_shared=no
14719 fi
14720 ;;
14721 esac
14722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14723 # soname into executable. Probably we can add versioning support to
14724 # collect2, so additional links can be useful in future.
14725 if test "$aix_use_runtimelinking" = yes; then
14726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14727 # instead of lib<name>.a to let people know that these are not
14728 # typical AIX shared libraries.
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 else
14731 # We preserve .a as extension for shared libraries through AIX4.2
14732 # and later when we are not doing run time linking.
14733 library_names_spec='${libname}${release}.a $libname.a'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 fi
14736 shlibpath_var=LIBPATH
14737 fi
14738 ;;
14739
14740 amigaos*)
14741 library_names_spec='$libname.ixlibrary $libname.a'
14742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14743 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'
14744 ;;
14745
14746 beos*)
14747 library_names_spec='${libname}${shared_ext}'
14748 dynamic_linker="$host_os ld.so"
14749 shlibpath_var=LIBRARY_PATH
14750 ;;
14751
14752 bsdi[45]*)
14753 version_type=linux
14754 need_version=no
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 soname_spec='${libname}${release}${shared_ext}$major'
14757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14761 # the default ld.so.conf also contains /usr/contrib/lib and
14762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14763 # libtool to hard-code these into programs
14764 ;;
14765
14766 cygwin* | mingw* | pw32*)
14767 version_type=windows
14768 shrext_cmds=".dll"
14769 need_version=no
14770 need_lib_prefix=no
14771
14772 case $GCC,$host_os in
14773 yes,cygwin* | yes,mingw* | yes,pw32*)
14774 library_names_spec='$libname.dll.a'
14775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14776 postinstall_cmds='base_file=`basename \${file}`~
14777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14778 dldir=$destdir/`dirname \$dlpath`~
14779 test -d \$dldir || mkdir -p \$dldir~
14780 $install_prog $dir/$dlname \$dldir/$dlname~
14781 chmod a+x \$dldir/$dlname'
14782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14783 dlpath=$dir/\$dldll~
14784 $rm \$dlpath'
14785 shlibpath_overrides_runpath=yes
14786
14787 case $host_os in
14788 cygwin*)
14789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14791 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14792 ;;
14793 mingw*)
14794 # MinGW DLLs use traditional 'lib' prefix
14795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14797 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14798 # It is most probably a Windows format PATH printed by
14799 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14800 # path with ; separators, and with drive letters. We can handle the
14801 # drive letters (cygwin fileutils understands them), so leave them,
14802 # especially as we might pass files found there to a mingw objdump,
14803 # which wouldn't understand a cygwinified path. Ahh.
14804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14805 else
14806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14807 fi
14808 ;;
14809 pw32*)
14810 # pw32 DLLs use 'pw' prefix rather than 'lib'
14811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14812 ;;
14813 esac
14814 ;;
14815
14816 *)
14817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14818 ;;
14819 esac
14820 dynamic_linker='Win32 ld.exe'
14821 # FIXME: first we should search . and the directory the executable is in
14822 shlibpath_var=PATH
14823 ;;
14824
14825 darwin* | rhapsody*)
14826 dynamic_linker="$host_os dyld"
14827 version_type=darwin
14828 need_lib_prefix=no
14829 need_version=no
14830 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14831 soname_spec='${libname}${release}${major}$shared_ext'
14832 shlibpath_overrides_runpath=yes
14833 shlibpath_var=DYLD_LIBRARY_PATH
14834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14835 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14836 if test "$GCC" = yes; then
14837 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"`
14838 else
14839 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14840 fi
14841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14842 ;;
14843
14844 dgux*)
14845 version_type=linux
14846 need_lib_prefix=no
14847 need_version=no
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 ;;
14852
14853 freebsd1*)
14854 dynamic_linker=no
14855 ;;
14856
14857 freebsd* | dragonfly*)
14858 # DragonFly does not have aout. When/if they implement a new
14859 # versioning mechanism, adjust this.
14860 if test -x /usr/bin/objformat; then
14861 objformat=`/usr/bin/objformat`
14862 else
14863 case $host_os in
14864 freebsd[123]*) objformat=aout ;;
14865 *) objformat=elf ;;
14866 esac
14867 fi
14868 version_type=freebsd-$objformat
14869 case $version_type in
14870 freebsd-elf*)
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14872 need_version=no
14873 need_lib_prefix=no
14874 ;;
14875 freebsd-*)
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14877 need_version=yes
14878 ;;
14879 esac
14880 shlibpath_var=LD_LIBRARY_PATH
14881 case $host_os in
14882 freebsd2*)
14883 shlibpath_overrides_runpath=yes
14884 ;;
14885 freebsd3.[01]* | freebsdelf3.[01]*)
14886 shlibpath_overrides_runpath=yes
14887 hardcode_into_libs=yes
14888 ;;
14889 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14890 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14891 shlibpath_overrides_runpath=no
14892 hardcode_into_libs=yes
14893 ;;
14894 freebsd*) # from 4.6 on
14895 shlibpath_overrides_runpath=yes
14896 hardcode_into_libs=yes
14897 ;;
14898 esac
14899 ;;
14900
14901 gnu*)
14902 version_type=linux
14903 need_lib_prefix=no
14904 need_version=no
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 hardcode_into_libs=yes
14909 ;;
14910
14911 hpux9* | hpux10* | hpux11*)
14912 # Give a soname corresponding to the major version so that dld.sl refuses to
14913 # link against other versions.
14914 version_type=sunos
14915 need_lib_prefix=no
14916 need_version=no
14917 case $host_cpu in
14918 ia64*)
14919 shrext_cmds='.so'
14920 hardcode_into_libs=yes
14921 dynamic_linker="$host_os dld.so"
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 if test "X$HPUX_IA64_MODE" = X32; then
14927 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14928 else
14929 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14930 fi
14931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14932 ;;
14933 hppa*64*)
14934 shrext_cmds='.sl'
14935 hardcode_into_libs=yes
14936 dynamic_linker="$host_os dld.sl"
14937 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14943 ;;
14944 *)
14945 shrext_cmds='.sl'
14946 dynamic_linker="$host_os dld.sl"
14947 shlibpath_var=SHLIB_PATH
14948 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 ;;
14952 esac
14953 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14954 postinstall_cmds='chmod 555 $lib'
14955 ;;
14956
14957 interix3*)
14958 version_type=linux
14959 need_lib_prefix=no
14960 need_version=no
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath=no
14966 hardcode_into_libs=yes
14967 ;;
14968
14969 irix5* | irix6* | nonstopux*)
14970 case $host_os in
14971 nonstopux*) version_type=nonstopux ;;
14972 *)
14973 if test "$lt_cv_prog_gnu_ld" = yes; then
14974 version_type=linux
14975 else
14976 version_type=irix
14977 fi ;;
14978 esac
14979 need_lib_prefix=no
14980 need_version=no
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14983 case $host_os in
14984 irix5* | nonstopux*)
14985 libsuff= shlibsuff=
14986 ;;
14987 *)
14988 case $LD in # libtool.m4 will add one of these switches to LD
14989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14990 libsuff= shlibsuff= libmagic=32-bit;;
14991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14992 libsuff=32 shlibsuff=N32 libmagic=N32;;
14993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14995 *) libsuff= shlibsuff= libmagic=never-match;;
14996 esac
14997 ;;
14998 esac
14999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15000 shlibpath_overrides_runpath=no
15001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15003 hardcode_into_libs=yes
15004 ;;
15005
15006 # No shared lib support for Linux oldld, aout, or coff.
15007 linux*oldld* | linux*aout* | linux*coff*)
15008 dynamic_linker=no
15009 ;;
15010
15011 # This must be Linux ELF.
15012 linux* | k*bsd*-gnu)
15013 version_type=linux
15014 need_lib_prefix=no
15015 need_version=no
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=no
15021 # This implies no fast_install, which is unacceptable.
15022 # Some rework will be needed to allow for fast_install
15023 # before this can be enabled.
15024 hardcode_into_libs=yes
15025
15026 # Append ld.so.conf contents to the search path
15027 if test -f /etc/ld.so.conf; then
15028 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15029 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15030 fi
15031
15032 # We used to test for /lib/ld.so.1 and disable shared libraries on
15033 # powerpc, because MkLinux only supported shared libraries with the
15034 # GNU dynamic linker. Since this was broken with cross compilers,
15035 # most powerpc-linux boxes support dynamic linking these days and
15036 # people can always --disable-shared, the test was removed, and we
15037 # assume the GNU/Linux dynamic linker is in use.
15038 dynamic_linker='GNU/Linux ld.so'
15039 ;;
15040
15041 netbsdelf*-gnu)
15042 version_type=linux
15043 need_lib_prefix=no
15044 need_version=no
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 shlibpath_overrides_runpath=no
15049 hardcode_into_libs=yes
15050 dynamic_linker='NetBSD ld.elf_so'
15051 ;;
15052
15053 netbsd*)
15054 version_type=sunos
15055 need_lib_prefix=no
15056 need_version=no
15057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15060 dynamic_linker='NetBSD (a.out) ld.so'
15061 else
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15063 soname_spec='${libname}${release}${shared_ext}$major'
15064 dynamic_linker='NetBSD ld.elf_so'
15065 fi
15066 shlibpath_var=LD_LIBRARY_PATH
15067 shlibpath_overrides_runpath=yes
15068 hardcode_into_libs=yes
15069 ;;
15070
15071 newsos6)
15072 version_type=linux
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 shlibpath_overrides_runpath=yes
15076 ;;
15077
15078 nto-qnx*)
15079 version_type=linux
15080 need_lib_prefix=no
15081 need_version=no
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 shlibpath_overrides_runpath=yes
15086 ;;
15087
15088 openbsd*)
15089 version_type=sunos
15090 sys_lib_dlsearch_path_spec="/usr/lib"
15091 need_lib_prefix=no
15092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15093 case $host_os in
15094 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15095 *) need_version=no ;;
15096 esac
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15101 case $host_os in
15102 openbsd2.[89] | openbsd2.[89].*)
15103 shlibpath_overrides_runpath=no
15104 ;;
15105 *)
15106 shlibpath_overrides_runpath=yes
15107 ;;
15108 esac
15109 else
15110 shlibpath_overrides_runpath=yes
15111 fi
15112 ;;
15113
15114 os2*)
15115 libname_spec='$name'
15116 shrext_cmds=".dll"
15117 need_lib_prefix=no
15118 library_names_spec='$libname${shared_ext} $libname.a'
15119 dynamic_linker='OS/2 ld.exe'
15120 shlibpath_var=LIBPATH
15121 ;;
15122
15123 osf3* | osf4* | osf5*)
15124 version_type=osf
15125 need_lib_prefix=no
15126 need_version=no
15127 soname_spec='${libname}${release}${shared_ext}$major'
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129 shlibpath_var=LD_LIBRARY_PATH
15130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15132 ;;
15133
15134 solaris*)
15135 version_type=linux
15136 need_lib_prefix=no
15137 need_version=no
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15142 hardcode_into_libs=yes
15143 # ldd complains unless libraries are executable
15144 postinstall_cmds='chmod +x $lib'
15145 ;;
15146
15147 sunos4*)
15148 version_type=sunos
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=yes
15153 if test "$with_gnu_ld" = yes; then
15154 need_lib_prefix=no
15155 fi
15156 need_version=yes
15157 ;;
15158
15159 sysv4 | sysv4.3*)
15160 version_type=linux
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 case $host_vendor in
15165 sni)
15166 shlibpath_overrides_runpath=no
15167 need_lib_prefix=no
15168 export_dynamic_flag_spec='${wl}-Blargedynsym'
15169 runpath_var=LD_RUN_PATH
15170 ;;
15171 siemens)
15172 need_lib_prefix=no
15173 ;;
15174 motorola)
15175 need_lib_prefix=no
15176 need_version=no
15177 shlibpath_overrides_runpath=no
15178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15179 ;;
15180 esac
15181 ;;
15182
15183 sysv4*MP*)
15184 if test -d /usr/nec ;then
15185 version_type=linux
15186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15187 soname_spec='$libname${shared_ext}.$major'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 fi
15190 ;;
15191
15192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15193 version_type=freebsd-elf
15194 need_lib_prefix=no
15195 need_version=no
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15197 soname_spec='${libname}${release}${shared_ext}$major'
15198 shlibpath_var=LD_LIBRARY_PATH
15199 hardcode_into_libs=yes
15200 if test "$with_gnu_ld" = yes; then
15201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15202 shlibpath_overrides_runpath=no
15203 else
15204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15205 shlibpath_overrides_runpath=yes
15206 case $host_os in
15207 sco3.2v5*)
15208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15209 ;;
15210 esac
15211 fi
15212 sys_lib_dlsearch_path_spec='/usr/lib'
15213 ;;
15214
15215 uts4*)
15216 version_type=linux
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 shlibpath_var=LD_LIBRARY_PATH
15220 ;;
15221
15222 *)
15223 dynamic_linker=no
15224 ;;
15225 esac
15226 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15227 echo "${ECHO_T}$dynamic_linker" >&6; }
15228 test "$dynamic_linker" = no && can_build_shared=no
15229
15230 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15231 if test "$GCC" = yes; then
15232 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15233 fi
15234
15235 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15236 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15237 hardcode_action_CXX=
15238 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15239 test -n "$runpath_var_CXX" || \
15240 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15241
15242 # We can hardcode non-existant directories.
15243 if test "$hardcode_direct_CXX" != no &&
15244 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15245 # have to relink, otherwise we might link with an installed library
15246 # when we should be linking with a yet-to-be-installed one
15247 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15248 test "$hardcode_minus_L_CXX" != no; then
15249 # Linking always hardcodes the temporary library directory.
15250 hardcode_action_CXX=relink
15251 else
15252 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15253 hardcode_action_CXX=immediate
15254 fi
15255 else
15256 # We cannot hardcode anything, or else we can only hardcode existing
15257 # directories.
15258 hardcode_action_CXX=unsupported
15259 fi
15260 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15261 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15262
15263 if test "$hardcode_action_CXX" = relink; then
15264 # Fast installation is not supported
15265 enable_fast_install=no
15266 elif test "$shlibpath_overrides_runpath" = yes ||
15267 test "$enable_shared" = no; then
15268 # Fast installation is not necessary
15269 enable_fast_install=needless
15270 fi
15271
15272
15273 # The else clause should only fire when bootstrapping the
15274 # libtool distribution, otherwise you forgot to ship ltmain.sh
15275 # with your package, and you will get complaints that there are
15276 # no rules to generate ltmain.sh.
15277 if test -f "$ltmain"; then
15278 # See if we are running on zsh, and set the options which allow our commands through
15279 # without removal of \ escapes.
15280 if test -n "${ZSH_VERSION+set}" ; then
15281 setopt NO_GLOB_SUBST
15282 fi
15283 # Now quote all the things that may contain metacharacters while being
15284 # careful not to overquote the AC_SUBSTed values. We take copies of the
15285 # variables and quote the copies for generation of the libtool script.
15286 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15287 SED SHELL STRIP \
15288 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15289 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15290 deplibs_check_method reload_flag reload_cmds need_locks \
15291 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15292 lt_cv_sys_global_symbol_to_c_name_address \
15293 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15294 old_postinstall_cmds old_postuninstall_cmds \
15295 compiler_CXX \
15296 CC_CXX \
15297 LD_CXX \
15298 lt_prog_compiler_wl_CXX \
15299 lt_prog_compiler_pic_CXX \
15300 lt_prog_compiler_static_CXX \
15301 lt_prog_compiler_no_builtin_flag_CXX \
15302 export_dynamic_flag_spec_CXX \
15303 thread_safe_flag_spec_CXX \
15304 whole_archive_flag_spec_CXX \
15305 enable_shared_with_static_runtimes_CXX \
15306 old_archive_cmds_CXX \
15307 old_archive_from_new_cmds_CXX \
15308 predep_objects_CXX \
15309 postdep_objects_CXX \
15310 predeps_CXX \
15311 postdeps_CXX \
15312 compiler_lib_search_path_CXX \
15313 archive_cmds_CXX \
15314 archive_expsym_cmds_CXX \
15315 postinstall_cmds_CXX \
15316 postuninstall_cmds_CXX \
15317 old_archive_from_expsyms_cmds_CXX \
15318 allow_undefined_flag_CXX \
15319 no_undefined_flag_CXX \
15320 export_symbols_cmds_CXX \
15321 hardcode_libdir_flag_spec_CXX \
15322 hardcode_libdir_flag_spec_ld_CXX \
15323 hardcode_libdir_separator_CXX \
15324 hardcode_automatic_CXX \
15325 module_cmds_CXX \
15326 module_expsym_cmds_CXX \
15327 lt_cv_prog_compiler_c_o_CXX \
15328 exclude_expsyms_CXX \
15329 include_expsyms_CXX; do
15330
15331 case $var in
15332 old_archive_cmds_CXX | \
15333 old_archive_from_new_cmds_CXX | \
15334 archive_cmds_CXX | \
15335 archive_expsym_cmds_CXX | \
15336 module_cmds_CXX | \
15337 module_expsym_cmds_CXX | \
15338 old_archive_from_expsyms_cmds_CXX | \
15339 export_symbols_cmds_CXX | \
15340 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15341 postinstall_cmds | postuninstall_cmds | \
15342 old_postinstall_cmds | old_postuninstall_cmds | \
15343 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15344 # Double-quote double-evaled strings.
15345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15346 ;;
15347 *)
15348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15349 ;;
15350 esac
15351 done
15352
15353 case $lt_echo in
15354 *'\$0 --fallback-echo"')
15355 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15356 ;;
15357 esac
15358
15359 cfgfile="$ofile"
15360
15361 cat <<__EOF__ >> "$cfgfile"
15362 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15363
15364 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15365
15366 # Shell to use when invoking shell scripts.
15367 SHELL=$lt_SHELL
15368
15369 # Whether or not to build shared libraries.
15370 build_libtool_libs=$enable_shared
15371
15372 # Whether or not to build static libraries.
15373 build_old_libs=$enable_static
15374
15375 # Whether or not to add -lc for building shared libraries.
15376 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15377
15378 # Whether or not to disallow shared libs when runtime libs are static
15379 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15380
15381 # Whether or not to optimize for fast installation.
15382 fast_install=$enable_fast_install
15383
15384 # The host system.
15385 host_alias=$host_alias
15386 host=$host
15387 host_os=$host_os
15388
15389 # The build system.
15390 build_alias=$build_alias
15391 build=$build
15392 build_os=$build_os
15393
15394 # An echo program that does not interpret backslashes.
15395 echo=$lt_echo
15396
15397 # The archiver.
15398 AR=$lt_AR
15399 AR_FLAGS=$lt_AR_FLAGS
15400
15401 # A C compiler.
15402 LTCC=$lt_LTCC
15403
15404 # LTCC compiler flags.
15405 LTCFLAGS=$lt_LTCFLAGS
15406
15407 # A language-specific compiler.
15408 CC=$lt_compiler_CXX
15409
15410 # Is the compiler the GNU C compiler?
15411 with_gcc=$GCC_CXX
15412
15413 # An ERE matcher.
15414 EGREP=$lt_EGREP
15415
15416 # The linker used to build libraries.
15417 LD=$lt_LD_CXX
15418
15419 # Whether we need hard or soft links.
15420 LN_S=$lt_LN_S
15421
15422 # A BSD-compatible nm program.
15423 NM=$lt_NM
15424
15425 # A symbol stripping program
15426 STRIP=$lt_STRIP
15427
15428 # Used to examine libraries when file_magic_cmd begins "file"
15429 MAGIC_CMD=$MAGIC_CMD
15430
15431 # Used on cygwin: DLL creation program.
15432 DLLTOOL="$DLLTOOL"
15433
15434 # Used on cygwin: object dumper.
15435 OBJDUMP="$OBJDUMP"
15436
15437 # Used on cygwin: assembler.
15438 AS="$AS"
15439
15440 # The name of the directory that contains temporary libtool files.
15441 objdir=$objdir
15442
15443 # How to create reloadable object files.
15444 reload_flag=$lt_reload_flag
15445 reload_cmds=$lt_reload_cmds
15446
15447 # How to pass a linker flag through the compiler.
15448 wl=$lt_lt_prog_compiler_wl_CXX
15449
15450 # Object file suffix (normally "o").
15451 objext="$ac_objext"
15452
15453 # Old archive suffix (normally "a").
15454 libext="$libext"
15455
15456 # Shared library suffix (normally ".so").
15457 shrext_cmds='$shrext_cmds'
15458
15459 # Executable file suffix (normally "").
15460 exeext="$exeext"
15461
15462 # Additional compiler flags for building library objects.
15463 pic_flag=$lt_lt_prog_compiler_pic_CXX
15464 pic_mode=$pic_mode
15465
15466 # What is the maximum length of a command?
15467 max_cmd_len=$lt_cv_sys_max_cmd_len
15468
15469 # Does compiler simultaneously support -c and -o options?
15470 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15471
15472 # Must we lock files when doing compilation?
15473 need_locks=$lt_need_locks
15474
15475 # Do we need the lib prefix for modules?
15476 need_lib_prefix=$need_lib_prefix
15477
15478 # Do we need a version for libraries?
15479 need_version=$need_version
15480
15481 # Whether dlopen is supported.
15482 dlopen_support=$enable_dlopen
15483
15484 # Whether dlopen of programs is supported.
15485 dlopen_self=$enable_dlopen_self
15486
15487 # Whether dlopen of statically linked programs is supported.
15488 dlopen_self_static=$enable_dlopen_self_static
15489
15490 # Compiler flag to prevent dynamic linking.
15491 link_static_flag=$lt_lt_prog_compiler_static_CXX
15492
15493 # Compiler flag to turn off builtin functions.
15494 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15495
15496 # Compiler flag to allow reflexive dlopens.
15497 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15498
15499 # Compiler flag to generate shared objects directly from archives.
15500 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15501
15502 # Compiler flag to generate thread-safe objects.
15503 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15504
15505 # Library versioning type.
15506 version_type=$version_type
15507
15508 # Format of library name prefix.
15509 libname_spec=$lt_libname_spec
15510
15511 # List of archive names. First name is the real one, the rest are links.
15512 # The last name is the one that the linker finds with -lNAME.
15513 library_names_spec=$lt_library_names_spec
15514
15515 # The coded name of the library, if different from the real name.
15516 soname_spec=$lt_soname_spec
15517
15518 # Commands used to build and install an old-style archive.
15519 RANLIB=$lt_RANLIB
15520 old_archive_cmds=$lt_old_archive_cmds_CXX
15521 old_postinstall_cmds=$lt_old_postinstall_cmds
15522 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15523
15524 # Create an old-style archive from a shared archive.
15525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15526
15527 # Create a temporary old-style archive to link instead of a shared archive.
15528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15529
15530 # Commands used to build and install a shared archive.
15531 archive_cmds=$lt_archive_cmds_CXX
15532 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15533 postinstall_cmds=$lt_postinstall_cmds
15534 postuninstall_cmds=$lt_postuninstall_cmds
15535
15536 # Commands used to build a loadable module (assumed same as above if empty)
15537 module_cmds=$lt_module_cmds_CXX
15538 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15539
15540 # Commands to strip libraries.
15541 old_striplib=$lt_old_striplib
15542 striplib=$lt_striplib
15543
15544 # Dependencies to place before the objects being linked to create a
15545 # shared library.
15546 predep_objects=$lt_predep_objects_CXX
15547
15548 # Dependencies to place after the objects being linked to create a
15549 # shared library.
15550 postdep_objects=$lt_postdep_objects_CXX
15551
15552 # Dependencies to place before the objects being linked to create a
15553 # shared library.
15554 predeps=$lt_predeps_CXX
15555
15556 # Dependencies to place after the objects being linked to create a
15557 # shared library.
15558 postdeps=$lt_postdeps_CXX
15559
15560 # The library search path used internally by the compiler when linking
15561 # a shared library.
15562 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15563
15564 # Method to check whether dependent libraries are shared objects.
15565 deplibs_check_method=$lt_deplibs_check_method
15566
15567 # Command to use when deplibs_check_method == file_magic.
15568 file_magic_cmd=$lt_file_magic_cmd
15569
15570 # Flag that allows shared libraries with undefined symbols to be built.
15571 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15572
15573 # Flag that forces no undefined symbols.
15574 no_undefined_flag=$lt_no_undefined_flag_CXX
15575
15576 # Commands used to finish a libtool library installation in a directory.
15577 finish_cmds=$lt_finish_cmds
15578
15579 # Same as above, but a single script fragment to be evaled but not shown.
15580 finish_eval=$lt_finish_eval
15581
15582 # Take the output of nm and produce a listing of raw symbols and C names.
15583 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15584
15585 # Transform the output of nm in a proper C declaration
15586 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15587
15588 # Transform the output of nm in a C name address pair
15589 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15590
15591 # This is the shared library runtime path variable.
15592 runpath_var=$runpath_var
15593
15594 # This is the shared library path variable.
15595 shlibpath_var=$shlibpath_var
15596
15597 # Is shlibpath searched before the hard-coded library search path?
15598 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15599
15600 # How to hardcode a shared library path into an executable.
15601 hardcode_action=$hardcode_action_CXX
15602
15603 # Whether we should hardcode library paths into libraries.
15604 hardcode_into_libs=$hardcode_into_libs
15605
15606 # Flag to hardcode \$libdir into a binary during linking.
15607 # This must work even if \$libdir does not exist.
15608 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15609
15610 # If ld is used when linking, flag to hardcode \$libdir into
15611 # a binary during linking. This must work even if \$libdir does
15612 # not exist.
15613 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15614
15615 # Whether we need a single -rpath flag with a separated argument.
15616 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15617
15618 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15619 # resulting binary.
15620 hardcode_direct=$hardcode_direct_CXX
15621
15622 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15623 # resulting binary.
15624 hardcode_minus_L=$hardcode_minus_L_CXX
15625
15626 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15627 # the resulting binary.
15628 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15629
15630 # Set to yes if building a shared library automatically hardcodes DIR into the library
15631 # and all subsequent libraries and executables linked against it.
15632 hardcode_automatic=$hardcode_automatic_CXX
15633
15634 # Variables whose values should be saved in libtool wrapper scripts and
15635 # restored at relink time.
15636 variables_saved_for_relink="$variables_saved_for_relink"
15637
15638 # Whether libtool must link a program against all its dependency libraries.
15639 link_all_deplibs=$link_all_deplibs_CXX
15640
15641 # Compile-time system search path for libraries
15642 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15643
15644 # Run-time system search path for libraries
15645 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15646
15647 # Fix the shell variable \$srcfile for the compiler.
15648 fix_srcfile_path="$fix_srcfile_path_CXX"
15649
15650 # Set to yes if exported symbols are required.
15651 always_export_symbols=$always_export_symbols_CXX
15652
15653 # The commands to list exported symbols.
15654 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15655
15656 # The commands to extract the exported symbol list from a shared archive.
15657 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15658
15659 # Symbols that should not be listed in the preloaded symbols.
15660 exclude_expsyms=$lt_exclude_expsyms_CXX
15661
15662 # Symbols that must always be exported.
15663 include_expsyms=$lt_include_expsyms_CXX
15664
15665 # ### END LIBTOOL TAG CONFIG: $tagname
15666
15667 __EOF__
15668
15669
15670 else
15671 # If there is no Makefile yet, we rely on a make rule to execute
15672 # `config.status --recheck' to rerun these tests and create the
15673 # libtool script then.
15674 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15675 if test -f "$ltmain_in"; then
15676 test -f Makefile && make "$ltmain"
15677 fi
15678 fi
15679
15680
15681 ac_ext=c
15682 ac_cpp='$CPP $CPPFLAGS'
15683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15686
15687 CC=$lt_save_CC
15688 LDCXX=$LD
15689 LD=$lt_save_LD
15690 GCC=$lt_save_GCC
15691 with_gnu_ldcxx=$with_gnu_ld
15692 with_gnu_ld=$lt_save_with_gnu_ld
15693 lt_cv_path_LDCXX=$lt_cv_path_LD
15694 lt_cv_path_LD=$lt_save_path_LD
15695 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15696 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15697
15698 else
15699 tagname=""
15700 fi
15701 ;;
15702
15703 F77)
15704 if test -n "$F77" && test "X$F77" != "Xno"; then
15705
15706 ac_ext=f
15707 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15708 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15709 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15710
15711
15712 archive_cmds_need_lc_F77=no
15713 allow_undefined_flag_F77=
15714 always_export_symbols_F77=no
15715 archive_expsym_cmds_F77=
15716 export_dynamic_flag_spec_F77=
15717 hardcode_direct_F77=no
15718 hardcode_libdir_flag_spec_F77=
15719 hardcode_libdir_flag_spec_ld_F77=
15720 hardcode_libdir_separator_F77=
15721 hardcode_minus_L_F77=no
15722 hardcode_automatic_F77=no
15723 module_cmds_F77=
15724 module_expsym_cmds_F77=
15725 link_all_deplibs_F77=unknown
15726 old_archive_cmds_F77=$old_archive_cmds
15727 no_undefined_flag_F77=
15728 whole_archive_flag_spec_F77=
15729 enable_shared_with_static_runtimes_F77=no
15730
15731 # Source file extension for f77 test sources.
15732 ac_ext=f
15733
15734 # Object file extension for compiled f77 test sources.
15735 objext=o
15736 objext_F77=$objext
15737
15738 # Code to be used in simple compile tests
15739 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15740
15741 # Code to be used in simple link tests
15742 lt_simple_link_test_code=" program t\n end\n"
15743
15744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15745
15746 # If no C compiler was specified, use CC.
15747 LTCC=${LTCC-"$CC"}
15748
15749 # If no C compiler flags were specified, use CFLAGS.
15750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15751
15752 # Allow CC to be a program name with arguments.
15753 compiler=$CC
15754
15755
15756 # save warnings/boilerplate of simple test code
15757 ac_outfile=conftest.$ac_objext
15758 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15760 _lt_compiler_boilerplate=`cat conftest.err`
15761 $rm conftest*
15762
15763 ac_outfile=conftest.$ac_objext
15764 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15766 _lt_linker_boilerplate=`cat conftest.err`
15767 $rm conftest*
15768
15769
15770 # Allow CC to be a program name with arguments.
15771 lt_save_CC="$CC"
15772 CC=${F77-"f77"}
15773 compiler=$CC
15774 compiler_F77=$CC
15775 for cc_temp in $compiler""; do
15776 case $cc_temp in
15777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15779 \-*) ;;
15780 *) break;;
15781 esac
15782 done
15783 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15784
15785
15786 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15787 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15788 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15789 echo "${ECHO_T}$can_build_shared" >&6; }
15790
15791 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15792 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15793 test "$can_build_shared" = "no" && enable_shared=no
15794
15795 # On AIX, shared libraries and static libraries use the same namespace, and
15796 # are all built from PIC.
15797 case $host_os in
15798 aix3*)
15799 test "$enable_shared" = yes && enable_static=no
15800 if test -n "$RANLIB"; then
15801 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15802 postinstall_cmds='$RANLIB $lib'
15803 fi
15804 ;;
15805 aix4* | aix5*)
15806 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15807 test "$enable_shared" = yes && enable_static=no
15808 fi
15809 ;;
15810 esac
15811 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15812 echo "${ECHO_T}$enable_shared" >&6; }
15813
15814 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15815 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15816 # Make sure either enable_shared or enable_static is yes.
15817 test "$enable_shared" = yes || enable_static=yes
15818 { echo "$as_me:$LINENO: result: $enable_static" >&5
15819 echo "${ECHO_T}$enable_static" >&6; }
15820
15821 GCC_F77="$G77"
15822 LD_F77="$LD"
15823
15824 lt_prog_compiler_wl_F77=
15825 lt_prog_compiler_pic_F77=
15826 lt_prog_compiler_static_F77=
15827
15828 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15829 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15830
15831 if test "$GCC" = yes; then
15832 lt_prog_compiler_wl_F77='-Wl,'
15833 lt_prog_compiler_static_F77='-static'
15834
15835 case $host_os in
15836 aix*)
15837 # All AIX code is PIC.
15838 if test "$host_cpu" = ia64; then
15839 # AIX 5 now supports IA64 processor
15840 lt_prog_compiler_static_F77='-Bstatic'
15841 fi
15842 ;;
15843
15844 amigaos*)
15845 # FIXME: we need at least 68020 code to build shared libraries, but
15846 # adding the `-m68020' flag to GCC prevents building anything better,
15847 # like `-m68040'.
15848 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15849 ;;
15850
15851 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15852 # PIC is the default for these OSes.
15853 ;;
15854
15855 mingw* | pw32* | os2*)
15856 # This hack is so that the source file can tell whether it is being
15857 # built for inclusion in a dll (and should export symbols for example).
15858 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15859 ;;
15860
15861 darwin* | rhapsody*)
15862 # PIC is the default on this platform
15863 # Common symbols not allowed in MH_DYLIB files
15864 lt_prog_compiler_pic_F77='-fno-common'
15865 ;;
15866
15867 interix3*)
15868 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15869 # Instead, we relocate shared libraries at runtime.
15870 ;;
15871
15872 msdosdjgpp*)
15873 # Just because we use GCC doesn't mean we suddenly get shared libraries
15874 # on systems that don't support them.
15875 lt_prog_compiler_can_build_shared_F77=no
15876 enable_shared=no
15877 ;;
15878
15879 sysv4*MP*)
15880 if test -d /usr/nec; then
15881 lt_prog_compiler_pic_F77=-Kconform_pic
15882 fi
15883 ;;
15884
15885 hpux*)
15886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15887 # not for PA HP-UX.
15888 case $host_cpu in
15889 hppa*64*|ia64*)
15890 # +Z the default
15891 ;;
15892 *)
15893 lt_prog_compiler_pic_F77='-fPIC'
15894 ;;
15895 esac
15896 ;;
15897
15898 *)
15899 lt_prog_compiler_pic_F77='-fPIC'
15900 ;;
15901 esac
15902 else
15903 # PORTME Check for flag to pass linker flags through the system compiler.
15904 case $host_os in
15905 aix*)
15906 lt_prog_compiler_wl_F77='-Wl,'
15907 if test "$host_cpu" = ia64; then
15908 # AIX 5 now supports IA64 processor
15909 lt_prog_compiler_static_F77='-Bstatic'
15910 else
15911 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15912 fi
15913 ;;
15914 darwin*)
15915 # PIC is the default on this platform
15916 # Common symbols not allowed in MH_DYLIB files
15917 case $cc_basename in
15918 xlc*)
15919 lt_prog_compiler_pic_F77='-qnocommon'
15920 lt_prog_compiler_wl_F77='-Wl,'
15921 ;;
15922 esac
15923 ;;
15924
15925 mingw* | pw32* | os2*)
15926 # This hack is so that the source file can tell whether it is being
15927 # built for inclusion in a dll (and should export symbols for example).
15928 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15929 ;;
15930
15931 hpux9* | hpux10* | hpux11*)
15932 lt_prog_compiler_wl_F77='-Wl,'
15933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15934 # not for PA HP-UX.
15935 case $host_cpu in
15936 hppa*64*|ia64*)
15937 # +Z the default
15938 ;;
15939 *)
15940 lt_prog_compiler_pic_F77='+Z'
15941 ;;
15942 esac
15943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15944 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15945 ;;
15946
15947 irix5* | irix6* | nonstopux*)
15948 lt_prog_compiler_wl_F77='-Wl,'
15949 # PIC (with -KPIC) is the default.
15950 lt_prog_compiler_static_F77='-non_shared'
15951 ;;
15952
15953 newsos6)
15954 lt_prog_compiler_pic_F77='-KPIC'
15955 lt_prog_compiler_static_F77='-Bstatic'
15956 ;;
15957
15958 linux* | k*bsd*-gnu)
15959 case $cc_basename in
15960 icc* | ecc*)
15961 lt_prog_compiler_wl_F77='-Wl,'
15962 lt_prog_compiler_pic_F77='-KPIC'
15963 lt_prog_compiler_static_F77='-static'
15964 ;;
15965 pgcc* | pgf77* | pgf90* | pgf95*)
15966 # Portland Group compilers (*not* the Pentium gcc compiler,
15967 # which looks to be a dead project)
15968 lt_prog_compiler_wl_F77='-Wl,'
15969 lt_prog_compiler_pic_F77='-fpic'
15970 lt_prog_compiler_static_F77='-Bstatic'
15971 ;;
15972 ccc*)
15973 lt_prog_compiler_wl_F77='-Wl,'
15974 # All Alpha code is PIC.
15975 lt_prog_compiler_static_F77='-non_shared'
15976 ;;
15977 esac
15978 ;;
15979
15980 osf3* | osf4* | osf5*)
15981 lt_prog_compiler_wl_F77='-Wl,'
15982 # All OSF/1 code is PIC.
15983 lt_prog_compiler_static_F77='-non_shared'
15984 ;;
15985
15986 solaris*)
15987 lt_prog_compiler_pic_F77='-KPIC'
15988 lt_prog_compiler_static_F77='-Bstatic'
15989 case $cc_basename in
15990 f77* | f90* | f95*)
15991 lt_prog_compiler_wl_F77='-Qoption ld ';;
15992 *)
15993 lt_prog_compiler_wl_F77='-Wl,';;
15994 esac
15995 ;;
15996
15997 sunos4*)
15998 lt_prog_compiler_wl_F77='-Qoption ld '
15999 lt_prog_compiler_pic_F77='-PIC'
16000 lt_prog_compiler_static_F77='-Bstatic'
16001 ;;
16002
16003 sysv4 | sysv4.2uw2* | sysv4.3*)
16004 lt_prog_compiler_wl_F77='-Wl,'
16005 lt_prog_compiler_pic_F77='-KPIC'
16006 lt_prog_compiler_static_F77='-Bstatic'
16007 ;;
16008
16009 sysv4*MP*)
16010 if test -d /usr/nec ;then
16011 lt_prog_compiler_pic_F77='-Kconform_pic'
16012 lt_prog_compiler_static_F77='-Bstatic'
16013 fi
16014 ;;
16015
16016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16017 lt_prog_compiler_wl_F77='-Wl,'
16018 lt_prog_compiler_pic_F77='-KPIC'
16019 lt_prog_compiler_static_F77='-Bstatic'
16020 ;;
16021
16022 unicos*)
16023 lt_prog_compiler_wl_F77='-Wl,'
16024 lt_prog_compiler_can_build_shared_F77=no
16025 ;;
16026
16027 uts4*)
16028 lt_prog_compiler_pic_F77='-pic'
16029 lt_prog_compiler_static_F77='-Bstatic'
16030 ;;
16031
16032 *)
16033 lt_prog_compiler_can_build_shared_F77=no
16034 ;;
16035 esac
16036 fi
16037
16038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16039 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16040
16041 #
16042 # Check to make sure the PIC flag actually works.
16043 #
16044 if test -n "$lt_prog_compiler_pic_F77"; then
16045
16046 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16048 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 else
16051 lt_prog_compiler_pic_works_F77=no
16052 ac_outfile=conftest.$ac_objext
16053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16054 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16055 # Insert the option either (1) after the last *FLAGS variable, or
16056 # (2) before a word containing "conftest.", or (3) at the end.
16057 # Note that $ac_compile itself does not contain backslashes and begins
16058 # with a dollar sign (not a hyphen), so the echo should work correctly.
16059 # The option is referenced via a variable to avoid confusing sed.
16060 lt_compile=`echo "$ac_compile" | $SED \
16061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16063 -e 's:$: $lt_compiler_flag:'`
16064 (eval echo "\"\$as_me:16064: $lt_compile\"" >&5)
16065 (eval "$lt_compile" 2>conftest.err)
16066 ac_status=$?
16067 cat conftest.err >&5
16068 echo "$as_me:16068: \$? = $ac_status" >&5
16069 if (exit $ac_status) && test -s "$ac_outfile"; then
16070 # The compiler can only warn and ignore the option if not recognized
16071 # So say no if there are warnings other than the usual output.
16072 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16075 lt_prog_compiler_pic_works_F77=yes
16076 fi
16077 fi
16078 $rm conftest*
16079
16080 fi
16081 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16082 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
16083
16084 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16085 case $lt_prog_compiler_pic_F77 in
16086 "" | " "*) ;;
16087 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16088 esac
16089 else
16090 lt_prog_compiler_pic_F77=
16091 lt_prog_compiler_can_build_shared_F77=no
16092 fi
16093
16094 fi
16095 case $host_os in
16096 # For platforms which do not support PIC, -DPIC is meaningless:
16097 *djgpp*)
16098 lt_prog_compiler_pic_F77=
16099 ;;
16100 *)
16101 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16102 ;;
16103 esac
16104
16105 #
16106 # Check to make sure the static flag actually works.
16107 #
16108 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16109 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16110 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16111 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114 lt_prog_compiler_static_works_F77=no
16115 save_LDFLAGS="$LDFLAGS"
16116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16117 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16119 # The linker can only warn and ignore the option if not recognized
16120 # So say no if there are warnings
16121 if test -s conftest.err; then
16122 # Append any errors to the config.log.
16123 cat conftest.err 1>&5
16124 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16126 if diff conftest.exp conftest.er2 >/dev/null; then
16127 lt_prog_compiler_static_works_F77=yes
16128 fi
16129 else
16130 lt_prog_compiler_static_works_F77=yes
16131 fi
16132 fi
16133 $rm conftest*
16134 LDFLAGS="$save_LDFLAGS"
16135
16136 fi
16137 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16138 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
16139
16140 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16141 :
16142 else
16143 lt_prog_compiler_static_F77=
16144 fi
16145
16146
16147 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16148 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16149 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 else
16152 lt_cv_prog_compiler_c_o_F77=no
16153 $rm -r conftest 2>/dev/null
16154 mkdir conftest
16155 cd conftest
16156 mkdir out
16157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16158
16159 lt_compiler_flag="-o out/conftest2.$ac_objext"
16160 # Insert the option either (1) after the last *FLAGS variable, or
16161 # (2) before a word containing "conftest.", or (3) at the end.
16162 # Note that $ac_compile itself does not contain backslashes and begins
16163 # with a dollar sign (not a hyphen), so the echo should work correctly.
16164 lt_compile=`echo "$ac_compile" | $SED \
16165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16167 -e 's:$: $lt_compiler_flag:'`
16168 (eval echo "\"\$as_me:16168: $lt_compile\"" >&5)
16169 (eval "$lt_compile" 2>out/conftest.err)
16170 ac_status=$?
16171 cat out/conftest.err >&5
16172 echo "$as_me:16172: \$? = $ac_status" >&5
16173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16174 then
16175 # The compiler can only warn and ignore the option if not recognized
16176 # So say no if there are warnings
16177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16180 lt_cv_prog_compiler_c_o_F77=yes
16181 fi
16182 fi
16183 chmod u+w . 2>&5
16184 $rm conftest*
16185 # SGI C++ compiler will create directory out/ii_files/ for
16186 # template instantiation
16187 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16188 $rm out/* && rmdir out
16189 cd ..
16190 rmdir conftest
16191 $rm conftest*
16192
16193 fi
16194 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16195 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16196
16197
16198 hard_links="nottested"
16199 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16200 # do not overwrite the value of need_locks provided by the user
16201 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16202 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16203 hard_links=yes
16204 $rm conftest*
16205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16206 touch conftest.a
16207 ln conftest.a conftest.b 2>&5 || hard_links=no
16208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16209 { echo "$as_me:$LINENO: result: $hard_links" >&5
16210 echo "${ECHO_T}$hard_links" >&6; }
16211 if test "$hard_links" = no; then
16212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16213 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16214 need_locks=warn
16215 fi
16216 else
16217 need_locks=no
16218 fi
16219
16220 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16222
16223 runpath_var=
16224 allow_undefined_flag_F77=
16225 enable_shared_with_static_runtimes_F77=no
16226 archive_cmds_F77=
16227 archive_expsym_cmds_F77=
16228 old_archive_From_new_cmds_F77=
16229 old_archive_from_expsyms_cmds_F77=
16230 export_dynamic_flag_spec_F77=
16231 whole_archive_flag_spec_F77=
16232 thread_safe_flag_spec_F77=
16233 hardcode_libdir_flag_spec_F77=
16234 hardcode_libdir_flag_spec_ld_F77=
16235 hardcode_libdir_separator_F77=
16236 hardcode_direct_F77=no
16237 hardcode_minus_L_F77=no
16238 hardcode_shlibpath_var_F77=unsupported
16239 link_all_deplibs_F77=unknown
16240 hardcode_automatic_F77=no
16241 module_cmds_F77=
16242 module_expsym_cmds_F77=
16243 always_export_symbols_F77=no
16244 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16245 # include_expsyms should be a list of space-separated symbols to be *always*
16246 # included in the symbol list
16247 include_expsyms_F77=
16248 # exclude_expsyms can be an extended regexp of symbols to exclude
16249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16251 # as well as any symbol that contains `d'.
16252 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16254 # platforms (ab)use it in PIC code, but their linkers get confused if
16255 # the symbol is explicitly referenced. Since portable code cannot
16256 # rely on this symbol name, it's probably fine to never include it in
16257 # preloaded symbol tables.
16258 extract_expsyms_cmds=
16259 # Just being paranoid about ensuring that cc_basename is set.
16260 for cc_temp in $compiler""; do
16261 case $cc_temp in
16262 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16263 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16264 \-*) ;;
16265 *) break;;
16266 esac
16267 done
16268 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16269
16270 case $host_os in
16271 cygwin* | mingw* | pw32*)
16272 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16273 # When not using gcc, we currently assume that we are using
16274 # Microsoft Visual C++.
16275 if test "$GCC" != yes; then
16276 with_gnu_ld=no
16277 fi
16278 ;;
16279 interix*)
16280 # we just hope/assume this is gcc and not c89 (= MSVC++)
16281 with_gnu_ld=yes
16282 ;;
16283 openbsd*)
16284 with_gnu_ld=no
16285 ;;
16286 esac
16287
16288 ld_shlibs_F77=yes
16289 if test "$with_gnu_ld" = yes; then
16290 # If archive_cmds runs LD, not CC, wlarc should be empty
16291 wlarc='${wl}'
16292
16293 # Set some defaults for GNU ld with shared library support. These
16294 # are reset later if shared libraries are not supported. Putting them
16295 # here allows them to be overridden if necessary.
16296 runpath_var=LD_RUN_PATH
16297 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16298 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16299 # ancient GNU ld didn't support --whole-archive et. al.
16300 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16301 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16302 else
16303 whole_archive_flag_spec_F77=
16304 fi
16305 supports_anon_versioning=no
16306 case `$LD -v 2>/dev/null` in
16307 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16308 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16309 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16310 *\ 2.11.*) ;; # other 2.11 versions
16311 *) supports_anon_versioning=yes ;;
16312 esac
16313
16314 # See if GNU ld supports shared libraries.
16315 case $host_os in
16316 aix3* | aix4* | aix5*)
16317 # On AIX/PPC, the GNU linker is very broken
16318 if test "$host_cpu" != ia64; then
16319 ld_shlibs_F77=no
16320 cat <<EOF 1>&2
16321
16322 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16323 *** to be unable to reliably create shared libraries on AIX.
16324 *** Therefore, libtool is disabling shared libraries support. If you
16325 *** really care for shared libraries, you may want to modify your PATH
16326 *** so that a non-GNU linker is found, and then restart.
16327
16328 EOF
16329 fi
16330 ;;
16331
16332 amigaos*)
16333 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)'
16334 hardcode_libdir_flag_spec_F77='-L$libdir'
16335 hardcode_minus_L_F77=yes
16336
16337 # Samuel A. Falvo II <[email protected]> reports
16338 # that the semantics of dynamic libraries on AmigaOS, at least up
16339 # to version 4, is to share data among multiple programs linked
16340 # with the same dynamic library. Since this doesn't match the
16341 # behavior of shared libraries on other platforms, we can't use
16342 # them.
16343 ld_shlibs_F77=no
16344 ;;
16345
16346 beos*)
16347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16348 allow_undefined_flag_F77=unsupported
16349 # Joseph Beckenbach <[email protected]> says some releases of gcc
16350 # support --undefined. This deserves some investigation. FIXME
16351 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16352 else
16353 ld_shlibs_F77=no
16354 fi
16355 ;;
16356
16357 cygwin* | mingw* | pw32*)
16358 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16359 # as there is no search path for DLLs.
16360 hardcode_libdir_flag_spec_F77='-L$libdir'
16361 allow_undefined_flag_F77=unsupported
16362 always_export_symbols_F77=no
16363 enable_shared_with_static_runtimes_F77=yes
16364 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16365
16366 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16367 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16368 # If the export-symbols file already is a .def file (1st line
16369 # is EXPORTS), use it as is; otherwise, prepend...
16370 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16371 cp $export_symbols $output_objdir/$soname.def;
16372 else
16373 echo EXPORTS > $output_objdir/$soname.def;
16374 cat $export_symbols >> $output_objdir/$soname.def;
16375 fi~
16376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16377 else
16378 ld_shlibs_F77=no
16379 fi
16380 ;;
16381
16382 interix3*)
16383 hardcode_direct_F77=no
16384 hardcode_shlibpath_var_F77=no
16385 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16386 export_dynamic_flag_spec_F77='${wl}-E'
16387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16388 # Instead, shared libraries are loaded at an image base (0x10000000 by
16389 # default) and relocated if they conflict, which is a slow very memory
16390 # consuming and fragmenting process. To avoid this, we pick a random,
16391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16392 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16393 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16394 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16395 ;;
16396
16397 linux* | k*bsd*-gnu)
16398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16399 tmp_addflag=
16400 case $cc_basename,$host_cpu in
16401 pgcc*) # Portland Group C compiler
16402 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16403 tmp_addflag=' $pic_flag'
16404 ;;
16405 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16406 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16407 tmp_addflag=' $pic_flag -Mnomain' ;;
16408 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16409 tmp_addflag=' -i_dynamic' ;;
16410 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16411 tmp_addflag=' -i_dynamic -nofor_main' ;;
16412 ifc* | ifort*) # Intel Fortran compiler
16413 tmp_addflag=' -nofor_main' ;;
16414 esac
16415 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16416
16417 if test $supports_anon_versioning = yes; then
16418 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16420 $echo "local: *; };" >> $output_objdir/$libname.ver~
16421 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16422 fi
16423 link_all_deplibs_F77=no
16424 else
16425 ld_shlibs_F77=no
16426 fi
16427 ;;
16428
16429 netbsd* | netbsdelf*-gnu)
16430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16431 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16432 wlarc=
16433 else
16434 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16435 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16436 fi
16437 ;;
16438
16439 solaris*)
16440 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16441 ld_shlibs_F77=no
16442 cat <<EOF 1>&2
16443
16444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16445 *** create shared libraries on Solaris systems. Therefore, libtool
16446 *** is disabling shared libraries support. We urge you to upgrade GNU
16447 *** binutils to release 2.9.1 or newer. Another option is to modify
16448 *** your PATH or compiler configuration so that the native linker is
16449 *** used, and then restart.
16450
16451 EOF
16452 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16453 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16454 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16455 else
16456 ld_shlibs_F77=no
16457 fi
16458 ;;
16459
16460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16461 case `$LD -v 2>&1` in
16462 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16463 ld_shlibs_F77=no
16464 cat <<_LT_EOF 1>&2
16465
16466 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16467 *** reliably create shared libraries on SCO systems. Therefore, libtool
16468 *** is disabling shared libraries support. We urge you to upgrade GNU
16469 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16470 *** your PATH or compiler configuration so that the native linker is
16471 *** used, and then restart.
16472
16473 _LT_EOF
16474 ;;
16475 *)
16476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16477 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16478 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16479 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16480 else
16481 ld_shlibs_F77=no
16482 fi
16483 ;;
16484 esac
16485 ;;
16486
16487 sunos4*)
16488 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16489 wlarc=
16490 hardcode_direct_F77=yes
16491 hardcode_shlibpath_var_F77=no
16492 ;;
16493
16494 *)
16495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16496 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16497 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16498 else
16499 ld_shlibs_F77=no
16500 fi
16501 ;;
16502 esac
16503
16504 if test "$ld_shlibs_F77" = no; then
16505 runpath_var=
16506 hardcode_libdir_flag_spec_F77=
16507 export_dynamic_flag_spec_F77=
16508 whole_archive_flag_spec_F77=
16509 fi
16510 else
16511 # PORTME fill in a description of your system's linker (not GNU ld)
16512 case $host_os in
16513 aix3*)
16514 allow_undefined_flag_F77=unsupported
16515 always_export_symbols_F77=yes
16516 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'
16517 # Note: this linker hardcodes the directories in LIBPATH if there
16518 # are no directories specified by -L.
16519 hardcode_minus_L_F77=yes
16520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16521 # Neither direct hardcoding nor static linking is supported with a
16522 # broken collect2.
16523 hardcode_direct_F77=unsupported
16524 fi
16525 ;;
16526
16527 aix4* | aix5*)
16528 if test "$host_cpu" = ia64; then
16529 # On IA64, the linker does run time linking by default, so we don't
16530 # have to do anything special.
16531 aix_use_runtimelinking=no
16532 exp_sym_flag='-Bexport'
16533 no_entry_flag=""
16534 else
16535 # If we're using GNU nm, then we don't want the "-C" option.
16536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16537 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16538 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'
16539 else
16540 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'
16541 fi
16542 aix_use_runtimelinking=no
16543
16544 # Test if we are trying to use run time linking or normal
16545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16546 # need to do runtime linking.
16547 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16548 for ld_flag in $LDFLAGS; do
16549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16550 aix_use_runtimelinking=yes
16551 break
16552 fi
16553 done
16554 ;;
16555 esac
16556
16557 exp_sym_flag='-bexport'
16558 no_entry_flag='-bnoentry'
16559 fi
16560
16561 # When large executables or shared objects are built, AIX ld can
16562 # have problems creating the table of contents. If linking a library
16563 # or program results in "error TOC overflow" add -mminimal-toc to
16564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16566
16567 archive_cmds_F77=''
16568 hardcode_direct_F77=yes
16569 hardcode_libdir_separator_F77=':'
16570 link_all_deplibs_F77=yes
16571
16572 if test "$GCC" = yes; then
16573 case $host_os in aix4.[012]|aix4.[012].*)
16574 # We only want to do this on AIX 4.2 and lower, the check
16575 # below for broken collect2 doesn't work under 4.3+
16576 collect2name=`${CC} -print-prog-name=collect2`
16577 if test -f "$collect2name" && \
16578 strings "$collect2name" | grep resolve_lib_name >/dev/null
16579 then
16580 # We have reworked collect2
16581 hardcode_direct_F77=yes
16582 else
16583 # We have old collect2
16584 hardcode_direct_F77=unsupported
16585 # It fails to find uninstalled libraries when the uninstalled
16586 # path is not listed in the libpath. Setting hardcode_minus_L
16587 # to unsupported forces relinking
16588 hardcode_minus_L_F77=yes
16589 hardcode_libdir_flag_spec_F77='-L$libdir'
16590 hardcode_libdir_separator_F77=
16591 fi
16592 ;;
16593 esac
16594 shared_flag='-shared'
16595 if test "$aix_use_runtimelinking" = yes; then
16596 shared_flag="$shared_flag "'${wl}-G'
16597 fi
16598 else
16599 # not using gcc
16600 if test "$host_cpu" = ia64; then
16601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16602 # chokes on -Wl,-G. The following line is correct:
16603 shared_flag='-G'
16604 else
16605 if test "$aix_use_runtimelinking" = yes; then
16606 shared_flag='${wl}-G'
16607 else
16608 shared_flag='${wl}-bM:SRE'
16609 fi
16610 fi
16611 fi
16612
16613 # It seems that -bexpall does not export symbols beginning with
16614 # underscore (_), so it is better to generate a list of symbols to export.
16615 always_export_symbols_F77=yes
16616 if test "$aix_use_runtimelinking" = yes; then
16617 # Warning - without using the other runtime loading flags (-brtl),
16618 # -berok will link without error, but may produce a broken library.
16619 allow_undefined_flag_F77='-berok'
16620 # Determine the default libpath from the value encoded in an empty executable.
16621 cat >conftest.$ac_ext <<_ACEOF
16622 program main
16623
16624 end
16625 _ACEOF
16626 rm -f conftest.$ac_objext conftest$ac_exeext
16627 if { (ac_try="$ac_link"
16628 case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_link") 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_f77_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest$ac_exeext &&
16643 $as_test_x conftest$ac_exeext; then
16644
16645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16646 }'`
16647 # Check for a 64-bit object if we didn't find anything.
16648 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; }
16649 }'`; fi
16650 else
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654
16655 fi
16656
16657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16658 conftest$ac_exeext conftest.$ac_ext
16659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16660
16661 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16662 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16663 else
16664 if test "$host_cpu" = ia64; then
16665 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16666 allow_undefined_flag_F77="-z nodefs"
16667 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16668 else
16669 # Determine the default libpath from the value encoded in an empty executable.
16670 cat >conftest.$ac_ext <<_ACEOF
16671 program main
16672
16673 end
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (ac_try="$ac_link"
16677 case "(($ac_try" in
16678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679 *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682 (eval "$ac_link") 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } && {
16689 test -z "$ac_f77_werror_flag" ||
16690 test ! -s conftest.err
16691 } && test -s conftest$ac_exeext &&
16692 $as_test_x conftest$ac_exeext; then
16693
16694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16695 }'`
16696 # Check for a 64-bit object if we didn't find anything.
16697 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; }
16698 }'`; fi
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703
16704 fi
16705
16706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16707 conftest$ac_exeext conftest.$ac_ext
16708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16709
16710 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16711 # Warning - without using the other run time loading flags,
16712 # -berok will link without error, but may produce a broken library.
16713 no_undefined_flag_F77=' ${wl}-bernotok'
16714 allow_undefined_flag_F77=' ${wl}-berok'
16715 # Exported symbols can be pulled into shared objects from archives
16716 whole_archive_flag_spec_F77='$convenience'
16717 archive_cmds_need_lc_F77=yes
16718 # This is similar to how AIX traditionally builds its shared libraries.
16719 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16720 fi
16721 fi
16722 ;;
16723
16724 amigaos*)
16725 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)'
16726 hardcode_libdir_flag_spec_F77='-L$libdir'
16727 hardcode_minus_L_F77=yes
16728 # see comment about different semantics on the GNU ld section
16729 ld_shlibs_F77=no
16730 ;;
16731
16732 bsdi[45]*)
16733 export_dynamic_flag_spec_F77=-rdynamic
16734 ;;
16735
16736 cygwin* | mingw* | pw32*)
16737 # When not using gcc, we currently assume that we are using
16738 # Microsoft Visual C++.
16739 # hardcode_libdir_flag_spec is actually meaningless, as there is
16740 # no search path for DLLs.
16741 hardcode_libdir_flag_spec_F77=' '
16742 allow_undefined_flag_F77=unsupported
16743 # Tell ltmain to make .lib files, not .a files.
16744 libext=lib
16745 # Tell ltmain to make .dll files, not .so files.
16746 shrext_cmds=".dll"
16747 # FIXME: Setting linknames here is a bad hack.
16748 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16749 # The linker will automatically build a .lib file if we build a DLL.
16750 old_archive_From_new_cmds_F77='true'
16751 # FIXME: Should let the user specify the lib program.
16752 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16753 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16754 enable_shared_with_static_runtimes_F77=yes
16755 ;;
16756
16757 darwin* | rhapsody*)
16758 case $host_os in
16759 rhapsody* | darwin1.[012])
16760 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16761 ;;
16762 *) # Darwin 1.3 on
16763 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16764 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16765 else
16766 case ${MACOSX_DEPLOYMENT_TARGET} in
16767 10.[012])
16768 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16769 ;;
16770 10.*)
16771 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16772 ;;
16773 esac
16774 fi
16775 ;;
16776 esac
16777 archive_cmds_need_lc_F77=no
16778 hardcode_direct_F77=no
16779 hardcode_automatic_F77=yes
16780 hardcode_shlibpath_var_F77=unsupported
16781 whole_archive_flag_spec_F77=''
16782 link_all_deplibs_F77=yes
16783 if test "$GCC" = yes ; then
16784 output_verbose_link_cmd='echo'
16785 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16786 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16787 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16788 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}'
16789 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}'
16790 else
16791 case $cc_basename in
16792 xlc*)
16793 output_verbose_link_cmd='echo'
16794 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16795 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16796 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16797 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}'
16798 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}'
16799 ;;
16800 *)
16801 ld_shlibs_F77=no
16802 ;;
16803 esac
16804 fi
16805 ;;
16806
16807 dgux*)
16808 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16809 hardcode_libdir_flag_spec_F77='-L$libdir'
16810 hardcode_shlibpath_var_F77=no
16811 ;;
16812
16813 freebsd1*)
16814 ld_shlibs_F77=no
16815 ;;
16816
16817 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16818 # support. Future versions do this automatically, but an explicit c++rt0.o
16819 # does not break anything, and helps significantly (at the cost of a little
16820 # extra space).
16821 freebsd2.2*)
16822 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16823 hardcode_libdir_flag_spec_F77='-R$libdir'
16824 hardcode_direct_F77=yes
16825 hardcode_shlibpath_var_F77=no
16826 ;;
16827
16828 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16829 freebsd2*)
16830 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16831 hardcode_direct_F77=yes
16832 hardcode_minus_L_F77=yes
16833 hardcode_shlibpath_var_F77=no
16834 ;;
16835
16836 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16837 freebsd* | dragonfly*)
16838 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16839 hardcode_libdir_flag_spec_F77='-R$libdir'
16840 hardcode_direct_F77=yes
16841 hardcode_shlibpath_var_F77=no
16842 ;;
16843
16844 hpux9*)
16845 if test "$GCC" = yes; then
16846 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'
16847 else
16848 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'
16849 fi
16850 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16851 hardcode_libdir_separator_F77=:
16852 hardcode_direct_F77=yes
16853
16854 # hardcode_minus_L: Not really in the search PATH,
16855 # but as the default location of the library.
16856 hardcode_minus_L_F77=yes
16857 export_dynamic_flag_spec_F77='${wl}-E'
16858 ;;
16859
16860 hpux10*)
16861 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16862 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16863 else
16864 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16865 fi
16866 if test "$with_gnu_ld" = no; then
16867 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16868 hardcode_libdir_separator_F77=:
16869
16870 hardcode_direct_F77=yes
16871 export_dynamic_flag_spec_F77='${wl}-E'
16872
16873 # hardcode_minus_L: Not really in the search PATH,
16874 # but as the default location of the library.
16875 hardcode_minus_L_F77=yes
16876 fi
16877 ;;
16878
16879 hpux11*)
16880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16881 case $host_cpu in
16882 hppa*64*)
16883 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16884 ;;
16885 ia64*)
16886 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16887 ;;
16888 *)
16889 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16890 ;;
16891 esac
16892 else
16893 case $host_cpu in
16894 hppa*64*)
16895 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16896 ;;
16897 ia64*)
16898 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16899 ;;
16900 *)
16901 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16902 ;;
16903 esac
16904 fi
16905 if test "$with_gnu_ld" = no; then
16906 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16907 hardcode_libdir_separator_F77=:
16908
16909 case $host_cpu in
16910 hppa*64*|ia64*)
16911 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16912 hardcode_direct_F77=no
16913 hardcode_shlibpath_var_F77=no
16914 ;;
16915 *)
16916 hardcode_direct_F77=yes
16917 export_dynamic_flag_spec_F77='${wl}-E'
16918
16919 # hardcode_minus_L: Not really in the search PATH,
16920 # but as the default location of the library.
16921 hardcode_minus_L_F77=yes
16922 ;;
16923 esac
16924 fi
16925 ;;
16926
16927 irix5* | irix6* | nonstopux*)
16928 if test "$GCC" = yes; then
16929 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'
16930 else
16931 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'
16932 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16933 fi
16934 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16935 hardcode_libdir_separator_F77=:
16936 link_all_deplibs_F77=yes
16937 ;;
16938
16939 netbsd* | netbsdelf*-gnu)
16940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16941 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16942 else
16943 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16944 fi
16945 hardcode_libdir_flag_spec_F77='-R$libdir'
16946 hardcode_direct_F77=yes
16947 hardcode_shlibpath_var_F77=no
16948 ;;
16949
16950 newsos6)
16951 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16952 hardcode_direct_F77=yes
16953 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16954 hardcode_libdir_separator_F77=:
16955 hardcode_shlibpath_var_F77=no
16956 ;;
16957
16958 openbsd*)
16959 hardcode_direct_F77=yes
16960 hardcode_shlibpath_var_F77=no
16961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16962 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16963 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16964 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16965 export_dynamic_flag_spec_F77='${wl}-E'
16966 else
16967 case $host_os in
16968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16969 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16970 hardcode_libdir_flag_spec_F77='-R$libdir'
16971 ;;
16972 *)
16973 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16974 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16975 ;;
16976 esac
16977 fi
16978 ;;
16979
16980 os2*)
16981 hardcode_libdir_flag_spec_F77='-L$libdir'
16982 hardcode_minus_L_F77=yes
16983 allow_undefined_flag_F77=unsupported
16984 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'
16985 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16986 ;;
16987
16988 osf3*)
16989 if test "$GCC" = yes; then
16990 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16991 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'
16992 else
16993 allow_undefined_flag_F77=' -expect_unresolved \*'
16994 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'
16995 fi
16996 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16997 hardcode_libdir_separator_F77=:
16998 ;;
16999
17000 osf4* | osf5*) # as osf3* with the addition of -msym flag
17001 if test "$GCC" = yes; then
17002 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17003 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'
17004 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17005 else
17006 allow_undefined_flag_F77=' -expect_unresolved \*'
17007 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'
17008 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~
17009 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17010
17011 # Both c and cxx compiler support -rpath directly
17012 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17013 fi
17014 hardcode_libdir_separator_F77=:
17015 ;;
17016
17017 solaris*)
17018 no_undefined_flag_F77=' -z text'
17019 if test "$GCC" = yes; then
17020 wlarc='${wl}'
17021 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17022 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17023 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17024 else
17025 wlarc=''
17026 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17027 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17028 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17029 fi
17030 hardcode_libdir_flag_spec_F77='-R$libdir'
17031 hardcode_shlibpath_var_F77=no
17032 case $host_os in
17033 solaris2.[0-5] | solaris2.[0-5].*) ;;
17034 *)
17035 # The compiler driver will combine linker options so we
17036 # cannot just pass the convience library names through
17037 # without $wl, iff we do not link with $LD.
17038 # Luckily, gcc supports the same syntax we need for Sun Studio.
17039 # Supported since Solaris 2.6 (maybe 2.5.1?)
17040 case $wlarc in
17041 '')
17042 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17043 *)
17044 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17045 esac ;;
17046 esac
17047 link_all_deplibs_F77=yes
17048 ;;
17049
17050 sunos4*)
17051 if test "x$host_vendor" = xsequent; then
17052 # Use $CC to link under sequent, because it throws in some extra .o
17053 # files that make .init and .fini sections work.
17054 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17055 else
17056 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17057 fi
17058 hardcode_libdir_flag_spec_F77='-L$libdir'
17059 hardcode_direct_F77=yes
17060 hardcode_minus_L_F77=yes
17061 hardcode_shlibpath_var_F77=no
17062 ;;
17063
17064 sysv4)
17065 case $host_vendor in
17066 sni)
17067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068 hardcode_direct_F77=yes # is this really true???
17069 ;;
17070 siemens)
17071 ## LD is ld it makes a PLAMLIB
17072 ## CC just makes a GrossModule.
17073 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17074 reload_cmds_F77='$CC -r -o $output$reload_objs'
17075 hardcode_direct_F77=no
17076 ;;
17077 motorola)
17078 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17079 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17080 ;;
17081 esac
17082 runpath_var='LD_RUN_PATH'
17083 hardcode_shlibpath_var_F77=no
17084 ;;
17085
17086 sysv4.3*)
17087 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17088 hardcode_shlibpath_var_F77=no
17089 export_dynamic_flag_spec_F77='-Bexport'
17090 ;;
17091
17092 sysv4*MP*)
17093 if test -d /usr/nec; then
17094 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17095 hardcode_shlibpath_var_F77=no
17096 runpath_var=LD_RUN_PATH
17097 hardcode_runpath_var=yes
17098 ld_shlibs_F77=yes
17099 fi
17100 ;;
17101
17102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17103 no_undefined_flag_F77='${wl}-z,text'
17104 archive_cmds_need_lc_F77=no
17105 hardcode_shlibpath_var_F77=no
17106 runpath_var='LD_RUN_PATH'
17107
17108 if test "$GCC" = yes; then
17109 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17110 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17111 else
17112 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17113 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114 fi
17115 ;;
17116
17117 sysv5* | sco3.2v5* | sco5v6*)
17118 # Note: We can NOT use -z defs as we might desire, because we do not
17119 # link with -lc, and that would cause any symbols used from libc to
17120 # always be unresolved, which means just about no library would
17121 # ever link correctly. If we're not using GNU ld we use -z text
17122 # though, which does catch some bad symbols but isn't as heavy-handed
17123 # as -z defs.
17124 no_undefined_flag_F77='${wl}-z,text'
17125 allow_undefined_flag_F77='${wl}-z,nodefs'
17126 archive_cmds_need_lc_F77=no
17127 hardcode_shlibpath_var_F77=no
17128 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17129 hardcode_libdir_separator_F77=':'
17130 link_all_deplibs_F77=yes
17131 export_dynamic_flag_spec_F77='${wl}-Bexport'
17132 runpath_var='LD_RUN_PATH'
17133
17134 if test "$GCC" = yes; then
17135 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17136 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17137 else
17138 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17139 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17140 fi
17141 ;;
17142
17143 uts4*)
17144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145 hardcode_libdir_flag_spec_F77='-L$libdir'
17146 hardcode_shlibpath_var_F77=no
17147 ;;
17148
17149 *)
17150 ld_shlibs_F77=no
17151 ;;
17152 esac
17153 fi
17154
17155 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17156 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17157 test "$ld_shlibs_F77" = no && can_build_shared=no
17158
17159 #
17160 # Do we need to explicitly link libc?
17161 #
17162 case "x$archive_cmds_need_lc_F77" in
17163 x|xyes)
17164 # Assume -lc should be added
17165 archive_cmds_need_lc_F77=yes
17166
17167 if test "$enable_shared" = yes && test "$GCC" = yes; then
17168 case $archive_cmds_F77 in
17169 *'~'*)
17170 # FIXME: we may have to deal with multi-command sequences.
17171 ;;
17172 '$CC '*)
17173 # Test whether the compiler implicitly links with -lc since on some
17174 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17175 # to ld, don't add -lc before -lgcc.
17176 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17177 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17178 $rm conftest*
17179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17180
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } 2>conftest.err; then
17186 soname=conftest
17187 lib=conftest
17188 libobjs=conftest.$ac_objext
17189 deplibs=
17190 wl=$lt_prog_compiler_wl_F77
17191 pic_flag=$lt_prog_compiler_pic_F77
17192 compiler_flags=-v
17193 linker_flags=-v
17194 verstring=
17195 output_objdir=.
17196 libname=conftest
17197 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17198 allow_undefined_flag_F77=
17199 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17200 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }
17204 then
17205 archive_cmds_need_lc_F77=no
17206 else
17207 archive_cmds_need_lc_F77=yes
17208 fi
17209 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17210 else
17211 cat conftest.err 1>&5
17212 fi
17213 $rm conftest*
17214 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17215 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17216 ;;
17217 esac
17218 fi
17219 ;;
17220 esac
17221
17222 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17223 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17224 library_names_spec=
17225 libname_spec='lib$name'
17226 soname_spec=
17227 shrext_cmds=".so"
17228 postinstall_cmds=
17229 postuninstall_cmds=
17230 finish_cmds=
17231 finish_eval=
17232 shlibpath_var=
17233 shlibpath_overrides_runpath=unknown
17234 version_type=none
17235 dynamic_linker="$host_os ld.so"
17236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17237 if test "$GCC" = yes; then
17238 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17239 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17240 # if the path contains ";" then we assume it to be the separator
17241 # otherwise default to the standard path separator (i.e. ":") - it is
17242 # assumed that no part of a normal pathname contains ";" but that should
17243 # okay in the real world where ";" in dirpaths is itself problematic.
17244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17245 else
17246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17247 fi
17248 else
17249 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17250 fi
17251 need_lib_prefix=unknown
17252 hardcode_into_libs=no
17253
17254 # when you set need_version to no, make sure it does not cause -set_version
17255 # flags to be left without arguments
17256 need_version=unknown
17257
17258 case $host_os in
17259 aix3*)
17260 version_type=linux
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17262 shlibpath_var=LIBPATH
17263
17264 # AIX 3 has no versioning support, so we append a major version to the name.
17265 soname_spec='${libname}${release}${shared_ext}$major'
17266 ;;
17267
17268 aix4* | aix5*)
17269 version_type=linux
17270 need_lib_prefix=no
17271 need_version=no
17272 hardcode_into_libs=yes
17273 if test "$host_cpu" = ia64; then
17274 # AIX 5 supports IA64
17275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 else
17278 # With GCC up to 2.95.x, collect2 would create an import file
17279 # for dependence libraries. The import file would start with
17280 # the line `#! .'. This would cause the generated library to
17281 # depend on `.', always an invalid library. This was fixed in
17282 # development snapshots of GCC prior to 3.0.
17283 case $host_os in
17284 aix4 | aix4.[01] | aix4.[01].*)
17285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17286 echo ' yes '
17287 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17288 :
17289 else
17290 can_build_shared=no
17291 fi
17292 ;;
17293 esac
17294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17295 # soname into executable. Probably we can add versioning support to
17296 # collect2, so additional links can be useful in future.
17297 if test "$aix_use_runtimelinking" = yes; then
17298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17299 # instead of lib<name>.a to let people know that these are not
17300 # typical AIX shared libraries.
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 else
17303 # We preserve .a as extension for shared libraries through AIX4.2
17304 # and later when we are not doing run time linking.
17305 library_names_spec='${libname}${release}.a $libname.a'
17306 soname_spec='${libname}${release}${shared_ext}$major'
17307 fi
17308 shlibpath_var=LIBPATH
17309 fi
17310 ;;
17311
17312 amigaos*)
17313 library_names_spec='$libname.ixlibrary $libname.a'
17314 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17315 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'
17316 ;;
17317
17318 beos*)
17319 library_names_spec='${libname}${shared_ext}'
17320 dynamic_linker="$host_os ld.so"
17321 shlibpath_var=LIBRARY_PATH
17322 ;;
17323
17324 bsdi[45]*)
17325 version_type=linux
17326 need_version=no
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17332 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17333 # the default ld.so.conf also contains /usr/contrib/lib and
17334 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17335 # libtool to hard-code these into programs
17336 ;;
17337
17338 cygwin* | mingw* | pw32*)
17339 version_type=windows
17340 shrext_cmds=".dll"
17341 need_version=no
17342 need_lib_prefix=no
17343
17344 case $GCC,$host_os in
17345 yes,cygwin* | yes,mingw* | yes,pw32*)
17346 library_names_spec='$libname.dll.a'
17347 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17348 postinstall_cmds='base_file=`basename \${file}`~
17349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17350 dldir=$destdir/`dirname \$dlpath`~
17351 test -d \$dldir || mkdir -p \$dldir~
17352 $install_prog $dir/$dlname \$dldir/$dlname~
17353 chmod a+x \$dldir/$dlname'
17354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17355 dlpath=$dir/\$dldll~
17356 $rm \$dlpath'
17357 shlibpath_overrides_runpath=yes
17358
17359 case $host_os in
17360 cygwin*)
17361 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17362 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17363 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17364 ;;
17365 mingw*)
17366 # MinGW DLLs use traditional 'lib' prefix
17367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17368 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17369 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17370 # It is most probably a Windows format PATH printed by
17371 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17372 # path with ; separators, and with drive letters. We can handle the
17373 # drive letters (cygwin fileutils understands them), so leave them,
17374 # especially as we might pass files found there to a mingw objdump,
17375 # which wouldn't understand a cygwinified path. Ahh.
17376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17377 else
17378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17379 fi
17380 ;;
17381 pw32*)
17382 # pw32 DLLs use 'pw' prefix rather than 'lib'
17383 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17384 ;;
17385 esac
17386 ;;
17387
17388 *)
17389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17390 ;;
17391 esac
17392 dynamic_linker='Win32 ld.exe'
17393 # FIXME: first we should search . and the directory the executable is in
17394 shlibpath_var=PATH
17395 ;;
17396
17397 darwin* | rhapsody*)
17398 dynamic_linker="$host_os dyld"
17399 version_type=darwin
17400 need_lib_prefix=no
17401 need_version=no
17402 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17403 soname_spec='${libname}${release}${major}$shared_ext'
17404 shlibpath_overrides_runpath=yes
17405 shlibpath_var=DYLD_LIBRARY_PATH
17406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17407 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17408 if test "$GCC" = yes; then
17409 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"`
17410 else
17411 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17412 fi
17413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17414 ;;
17415
17416 dgux*)
17417 version_type=linux
17418 need_lib_prefix=no
17419 need_version=no
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17421 soname_spec='${libname}${release}${shared_ext}$major'
17422 shlibpath_var=LD_LIBRARY_PATH
17423 ;;
17424
17425 freebsd1*)
17426 dynamic_linker=no
17427 ;;
17428
17429 freebsd* | dragonfly*)
17430 # DragonFly does not have aout. When/if they implement a new
17431 # versioning mechanism, adjust this.
17432 if test -x /usr/bin/objformat; then
17433 objformat=`/usr/bin/objformat`
17434 else
17435 case $host_os in
17436 freebsd[123]*) objformat=aout ;;
17437 *) objformat=elf ;;
17438 esac
17439 fi
17440 version_type=freebsd-$objformat
17441 case $version_type in
17442 freebsd-elf*)
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17444 need_version=no
17445 need_lib_prefix=no
17446 ;;
17447 freebsd-*)
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17449 need_version=yes
17450 ;;
17451 esac
17452 shlibpath_var=LD_LIBRARY_PATH
17453 case $host_os in
17454 freebsd2*)
17455 shlibpath_overrides_runpath=yes
17456 ;;
17457 freebsd3.[01]* | freebsdelf3.[01]*)
17458 shlibpath_overrides_runpath=yes
17459 hardcode_into_libs=yes
17460 ;;
17461 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17462 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17463 shlibpath_overrides_runpath=no
17464 hardcode_into_libs=yes
17465 ;;
17466 freebsd*) # from 4.6 on
17467 shlibpath_overrides_runpath=yes
17468 hardcode_into_libs=yes
17469 ;;
17470 esac
17471 ;;
17472
17473 gnu*)
17474 version_type=linux
17475 need_lib_prefix=no
17476 need_version=no
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 shlibpath_var=LD_LIBRARY_PATH
17480 hardcode_into_libs=yes
17481 ;;
17482
17483 hpux9* | hpux10* | hpux11*)
17484 # Give a soname corresponding to the major version so that dld.sl refuses to
17485 # link against other versions.
17486 version_type=sunos
17487 need_lib_prefix=no
17488 need_version=no
17489 case $host_cpu in
17490 ia64*)
17491 shrext_cmds='.so'
17492 hardcode_into_libs=yes
17493 dynamic_linker="$host_os dld.so"
17494 shlibpath_var=LD_LIBRARY_PATH
17495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17497 soname_spec='${libname}${release}${shared_ext}$major'
17498 if test "X$HPUX_IA64_MODE" = X32; then
17499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17500 else
17501 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17502 fi
17503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17504 ;;
17505 hppa*64*)
17506 shrext_cmds='.sl'
17507 hardcode_into_libs=yes
17508 dynamic_linker="$host_os dld.sl"
17509 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17515 ;;
17516 *)
17517 shrext_cmds='.sl'
17518 dynamic_linker="$host_os dld.sl"
17519 shlibpath_var=SHLIB_PATH
17520 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 ;;
17524 esac
17525 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17526 postinstall_cmds='chmod 555 $lib'
17527 ;;
17528
17529 interix3*)
17530 version_type=linux
17531 need_lib_prefix=no
17532 need_version=no
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17536 shlibpath_var=LD_LIBRARY_PATH
17537 shlibpath_overrides_runpath=no
17538 hardcode_into_libs=yes
17539 ;;
17540
17541 irix5* | irix6* | nonstopux*)
17542 case $host_os in
17543 nonstopux*) version_type=nonstopux ;;
17544 *)
17545 if test "$lt_cv_prog_gnu_ld" = yes; then
17546 version_type=linux
17547 else
17548 version_type=irix
17549 fi ;;
17550 esac
17551 need_lib_prefix=no
17552 need_version=no
17553 soname_spec='${libname}${release}${shared_ext}$major'
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17555 case $host_os in
17556 irix5* | nonstopux*)
17557 libsuff= shlibsuff=
17558 ;;
17559 *)
17560 case $LD in # libtool.m4 will add one of these switches to LD
17561 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17562 libsuff= shlibsuff= libmagic=32-bit;;
17563 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17564 libsuff=32 shlibsuff=N32 libmagic=N32;;
17565 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17566 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17567 *) libsuff= shlibsuff= libmagic=never-match;;
17568 esac
17569 ;;
17570 esac
17571 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17572 shlibpath_overrides_runpath=no
17573 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17574 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17575 hardcode_into_libs=yes
17576 ;;
17577
17578 # No shared lib support for Linux oldld, aout, or coff.
17579 linux*oldld* | linux*aout* | linux*coff*)
17580 dynamic_linker=no
17581 ;;
17582
17583 # This must be Linux ELF.
17584 linux* | k*bsd*-gnu)
17585 version_type=linux
17586 need_lib_prefix=no
17587 need_version=no
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17591 shlibpath_var=LD_LIBRARY_PATH
17592 shlibpath_overrides_runpath=no
17593 # This implies no fast_install, which is unacceptable.
17594 # Some rework will be needed to allow for fast_install
17595 # before this can be enabled.
17596 hardcode_into_libs=yes
17597
17598 # Append ld.so.conf contents to the search path
17599 if test -f /etc/ld.so.conf; then
17600 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17601 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17602 fi
17603
17604 # We used to test for /lib/ld.so.1 and disable shared libraries on
17605 # powerpc, because MkLinux only supported shared libraries with the
17606 # GNU dynamic linker. Since this was broken with cross compilers,
17607 # most powerpc-linux boxes support dynamic linking these days and
17608 # people can always --disable-shared, the test was removed, and we
17609 # assume the GNU/Linux dynamic linker is in use.
17610 dynamic_linker='GNU/Linux ld.so'
17611 ;;
17612
17613 netbsdelf*-gnu)
17614 version_type=linux
17615 need_lib_prefix=no
17616 need_version=no
17617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17618 soname_spec='${libname}${release}${shared_ext}$major'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 shlibpath_overrides_runpath=no
17621 hardcode_into_libs=yes
17622 dynamic_linker='NetBSD ld.elf_so'
17623 ;;
17624
17625 netbsd*)
17626 version_type=sunos
17627 need_lib_prefix=no
17628 need_version=no
17629 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17632 dynamic_linker='NetBSD (a.out) ld.so'
17633 else
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 dynamic_linker='NetBSD ld.elf_so'
17637 fi
17638 shlibpath_var=LD_LIBRARY_PATH
17639 shlibpath_overrides_runpath=yes
17640 hardcode_into_libs=yes
17641 ;;
17642
17643 newsos6)
17644 version_type=linux
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=yes
17648 ;;
17649
17650 nto-qnx*)
17651 version_type=linux
17652 need_lib_prefix=no
17653 need_version=no
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 shlibpath_var=LD_LIBRARY_PATH
17657 shlibpath_overrides_runpath=yes
17658 ;;
17659
17660 openbsd*)
17661 version_type=sunos
17662 sys_lib_dlsearch_path_spec="/usr/lib"
17663 need_lib_prefix=no
17664 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17665 case $host_os in
17666 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17667 *) need_version=no ;;
17668 esac
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17671 shlibpath_var=LD_LIBRARY_PATH
17672 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17673 case $host_os in
17674 openbsd2.[89] | openbsd2.[89].*)
17675 shlibpath_overrides_runpath=no
17676 ;;
17677 *)
17678 shlibpath_overrides_runpath=yes
17679 ;;
17680 esac
17681 else
17682 shlibpath_overrides_runpath=yes
17683 fi
17684 ;;
17685
17686 os2*)
17687 libname_spec='$name'
17688 shrext_cmds=".dll"
17689 need_lib_prefix=no
17690 library_names_spec='$libname${shared_ext} $libname.a'
17691 dynamic_linker='OS/2 ld.exe'
17692 shlibpath_var=LIBPATH
17693 ;;
17694
17695 osf3* | osf4* | osf5*)
17696 version_type=osf
17697 need_lib_prefix=no
17698 need_version=no
17699 soname_spec='${libname}${release}${shared_ext}$major'
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17703 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17704 ;;
17705
17706 solaris*)
17707 version_type=linux
17708 need_lib_prefix=no
17709 need_version=no
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=yes
17714 hardcode_into_libs=yes
17715 # ldd complains unless libraries are executable
17716 postinstall_cmds='chmod +x $lib'
17717 ;;
17718
17719 sunos4*)
17720 version_type=sunos
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17722 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17723 shlibpath_var=LD_LIBRARY_PATH
17724 shlibpath_overrides_runpath=yes
17725 if test "$with_gnu_ld" = yes; then
17726 need_lib_prefix=no
17727 fi
17728 need_version=yes
17729 ;;
17730
17731 sysv4 | sysv4.3*)
17732 version_type=linux
17733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17734 soname_spec='${libname}${release}${shared_ext}$major'
17735 shlibpath_var=LD_LIBRARY_PATH
17736 case $host_vendor in
17737 sni)
17738 shlibpath_overrides_runpath=no
17739 need_lib_prefix=no
17740 export_dynamic_flag_spec='${wl}-Blargedynsym'
17741 runpath_var=LD_RUN_PATH
17742 ;;
17743 siemens)
17744 need_lib_prefix=no
17745 ;;
17746 motorola)
17747 need_lib_prefix=no
17748 need_version=no
17749 shlibpath_overrides_runpath=no
17750 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17751 ;;
17752 esac
17753 ;;
17754
17755 sysv4*MP*)
17756 if test -d /usr/nec ;then
17757 version_type=linux
17758 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17759 soname_spec='$libname${shared_ext}.$major'
17760 shlibpath_var=LD_LIBRARY_PATH
17761 fi
17762 ;;
17763
17764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17765 version_type=freebsd-elf
17766 need_lib_prefix=no
17767 need_version=no
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17769 soname_spec='${libname}${release}${shared_ext}$major'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 hardcode_into_libs=yes
17772 if test "$with_gnu_ld" = yes; then
17773 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17774 shlibpath_overrides_runpath=no
17775 else
17776 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17777 shlibpath_overrides_runpath=yes
17778 case $host_os in
17779 sco3.2v5*)
17780 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17781 ;;
17782 esac
17783 fi
17784 sys_lib_dlsearch_path_spec='/usr/lib'
17785 ;;
17786
17787 uts4*)
17788 version_type=linux
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17790 soname_spec='${libname}${release}${shared_ext}$major'
17791 shlibpath_var=LD_LIBRARY_PATH
17792 ;;
17793
17794 *)
17795 dynamic_linker=no
17796 ;;
17797 esac
17798 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17799 echo "${ECHO_T}$dynamic_linker" >&6; }
17800 test "$dynamic_linker" = no && can_build_shared=no
17801
17802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17803 if test "$GCC" = yes; then
17804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17805 fi
17806
17807 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17808 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17809 hardcode_action_F77=
17810 if test -n "$hardcode_libdir_flag_spec_F77" || \
17811 test -n "$runpath_var_F77" || \
17812 test "X$hardcode_automatic_F77" = "Xyes" ; then
17813
17814 # We can hardcode non-existant directories.
17815 if test "$hardcode_direct_F77" != no &&
17816 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17817 # have to relink, otherwise we might link with an installed library
17818 # when we should be linking with a yet-to-be-installed one
17819 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17820 test "$hardcode_minus_L_F77" != no; then
17821 # Linking always hardcodes the temporary library directory.
17822 hardcode_action_F77=relink
17823 else
17824 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17825 hardcode_action_F77=immediate
17826 fi
17827 else
17828 # We cannot hardcode anything, or else we can only hardcode existing
17829 # directories.
17830 hardcode_action_F77=unsupported
17831 fi
17832 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17833 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17834
17835 if test "$hardcode_action_F77" = relink; then
17836 # Fast installation is not supported
17837 enable_fast_install=no
17838 elif test "$shlibpath_overrides_runpath" = yes ||
17839 test "$enable_shared" = no; then
17840 # Fast installation is not necessary
17841 enable_fast_install=needless
17842 fi
17843
17844
17845 # The else clause should only fire when bootstrapping the
17846 # libtool distribution, otherwise you forgot to ship ltmain.sh
17847 # with your package, and you will get complaints that there are
17848 # no rules to generate ltmain.sh.
17849 if test -f "$ltmain"; then
17850 # See if we are running on zsh, and set the options which allow our commands through
17851 # without removal of \ escapes.
17852 if test -n "${ZSH_VERSION+set}" ; then
17853 setopt NO_GLOB_SUBST
17854 fi
17855 # Now quote all the things that may contain metacharacters while being
17856 # careful not to overquote the AC_SUBSTed values. We take copies of the
17857 # variables and quote the copies for generation of the libtool script.
17858 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17859 SED SHELL STRIP \
17860 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17861 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17862 deplibs_check_method reload_flag reload_cmds need_locks \
17863 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17864 lt_cv_sys_global_symbol_to_c_name_address \
17865 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17866 old_postinstall_cmds old_postuninstall_cmds \
17867 compiler_F77 \
17868 CC_F77 \
17869 LD_F77 \
17870 lt_prog_compiler_wl_F77 \
17871 lt_prog_compiler_pic_F77 \
17872 lt_prog_compiler_static_F77 \
17873 lt_prog_compiler_no_builtin_flag_F77 \
17874 export_dynamic_flag_spec_F77 \
17875 thread_safe_flag_spec_F77 \
17876 whole_archive_flag_spec_F77 \
17877 enable_shared_with_static_runtimes_F77 \
17878 old_archive_cmds_F77 \
17879 old_archive_from_new_cmds_F77 \
17880 predep_objects_F77 \
17881 postdep_objects_F77 \
17882 predeps_F77 \
17883 postdeps_F77 \
17884 compiler_lib_search_path_F77 \
17885 archive_cmds_F77 \
17886 archive_expsym_cmds_F77 \
17887 postinstall_cmds_F77 \
17888 postuninstall_cmds_F77 \
17889 old_archive_from_expsyms_cmds_F77 \
17890 allow_undefined_flag_F77 \
17891 no_undefined_flag_F77 \
17892 export_symbols_cmds_F77 \
17893 hardcode_libdir_flag_spec_F77 \
17894 hardcode_libdir_flag_spec_ld_F77 \
17895 hardcode_libdir_separator_F77 \
17896 hardcode_automatic_F77 \
17897 module_cmds_F77 \
17898 module_expsym_cmds_F77 \
17899 lt_cv_prog_compiler_c_o_F77 \
17900 exclude_expsyms_F77 \
17901 include_expsyms_F77; do
17902
17903 case $var in
17904 old_archive_cmds_F77 | \
17905 old_archive_from_new_cmds_F77 | \
17906 archive_cmds_F77 | \
17907 archive_expsym_cmds_F77 | \
17908 module_cmds_F77 | \
17909 module_expsym_cmds_F77 | \
17910 old_archive_from_expsyms_cmds_F77 | \
17911 export_symbols_cmds_F77 | \
17912 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17913 postinstall_cmds | postuninstall_cmds | \
17914 old_postinstall_cmds | old_postuninstall_cmds | \
17915 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17916 # Double-quote double-evaled strings.
17917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17918 ;;
17919 *)
17920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17921 ;;
17922 esac
17923 done
17924
17925 case $lt_echo in
17926 *'\$0 --fallback-echo"')
17927 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17928 ;;
17929 esac
17930
17931 cfgfile="$ofile"
17932
17933 cat <<__EOF__ >> "$cfgfile"
17934 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17935
17936 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17937
17938 # Shell to use when invoking shell scripts.
17939 SHELL=$lt_SHELL
17940
17941 # Whether or not to build shared libraries.
17942 build_libtool_libs=$enable_shared
17943
17944 # Whether or not to build static libraries.
17945 build_old_libs=$enable_static
17946
17947 # Whether or not to add -lc for building shared libraries.
17948 build_libtool_need_lc=$archive_cmds_need_lc_F77
17949
17950 # Whether or not to disallow shared libs when runtime libs are static
17951 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17952
17953 # Whether or not to optimize for fast installation.
17954 fast_install=$enable_fast_install
17955
17956 # The host system.
17957 host_alias=$host_alias
17958 host=$host
17959 host_os=$host_os
17960
17961 # The build system.
17962 build_alias=$build_alias
17963 build=$build
17964 build_os=$build_os
17965
17966 # An echo program that does not interpret backslashes.
17967 echo=$lt_echo
17968
17969 # The archiver.
17970 AR=$lt_AR
17971 AR_FLAGS=$lt_AR_FLAGS
17972
17973 # A C compiler.
17974 LTCC=$lt_LTCC
17975
17976 # LTCC compiler flags.
17977 LTCFLAGS=$lt_LTCFLAGS
17978
17979 # A language-specific compiler.
17980 CC=$lt_compiler_F77
17981
17982 # Is the compiler the GNU C compiler?
17983 with_gcc=$GCC_F77
17984
17985 # An ERE matcher.
17986 EGREP=$lt_EGREP
17987
17988 # The linker used to build libraries.
17989 LD=$lt_LD_F77
17990
17991 # Whether we need hard or soft links.
17992 LN_S=$lt_LN_S
17993
17994 # A BSD-compatible nm program.
17995 NM=$lt_NM
17996
17997 # A symbol stripping program
17998 STRIP=$lt_STRIP
17999
18000 # Used to examine libraries when file_magic_cmd begins "file"
18001 MAGIC_CMD=$MAGIC_CMD
18002
18003 # Used on cygwin: DLL creation program.
18004 DLLTOOL="$DLLTOOL"
18005
18006 # Used on cygwin: object dumper.
18007 OBJDUMP="$OBJDUMP"
18008
18009 # Used on cygwin: assembler.
18010 AS="$AS"
18011
18012 # The name of the directory that contains temporary libtool files.
18013 objdir=$objdir
18014
18015 # How to create reloadable object files.
18016 reload_flag=$lt_reload_flag
18017 reload_cmds=$lt_reload_cmds
18018
18019 # How to pass a linker flag through the compiler.
18020 wl=$lt_lt_prog_compiler_wl_F77
18021
18022 # Object file suffix (normally "o").
18023 objext="$ac_objext"
18024
18025 # Old archive suffix (normally "a").
18026 libext="$libext"
18027
18028 # Shared library suffix (normally ".so").
18029 shrext_cmds='$shrext_cmds'
18030
18031 # Executable file suffix (normally "").
18032 exeext="$exeext"
18033
18034 # Additional compiler flags for building library objects.
18035 pic_flag=$lt_lt_prog_compiler_pic_F77
18036 pic_mode=$pic_mode
18037
18038 # What is the maximum length of a command?
18039 max_cmd_len=$lt_cv_sys_max_cmd_len
18040
18041 # Does compiler simultaneously support -c and -o options?
18042 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18043
18044 # Must we lock files when doing compilation?
18045 need_locks=$lt_need_locks
18046
18047 # Do we need the lib prefix for modules?
18048 need_lib_prefix=$need_lib_prefix
18049
18050 # Do we need a version for libraries?
18051 need_version=$need_version
18052
18053 # Whether dlopen is supported.
18054 dlopen_support=$enable_dlopen
18055
18056 # Whether dlopen of programs is supported.
18057 dlopen_self=$enable_dlopen_self
18058
18059 # Whether dlopen of statically linked programs is supported.
18060 dlopen_self_static=$enable_dlopen_self_static
18061
18062 # Compiler flag to prevent dynamic linking.
18063 link_static_flag=$lt_lt_prog_compiler_static_F77
18064
18065 # Compiler flag to turn off builtin functions.
18066 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18067
18068 # Compiler flag to allow reflexive dlopens.
18069 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18070
18071 # Compiler flag to generate shared objects directly from archives.
18072 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18073
18074 # Compiler flag to generate thread-safe objects.
18075 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18076
18077 # Library versioning type.
18078 version_type=$version_type
18079
18080 # Format of library name prefix.
18081 libname_spec=$lt_libname_spec
18082
18083 # List of archive names. First name is the real one, the rest are links.
18084 # The last name is the one that the linker finds with -lNAME.
18085 library_names_spec=$lt_library_names_spec
18086
18087 # The coded name of the library, if different from the real name.
18088 soname_spec=$lt_soname_spec
18089
18090 # Commands used to build and install an old-style archive.
18091 RANLIB=$lt_RANLIB
18092 old_archive_cmds=$lt_old_archive_cmds_F77
18093 old_postinstall_cmds=$lt_old_postinstall_cmds
18094 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18095
18096 # Create an old-style archive from a shared archive.
18097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18098
18099 # Create a temporary old-style archive to link instead of a shared archive.
18100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18101
18102 # Commands used to build and install a shared archive.
18103 archive_cmds=$lt_archive_cmds_F77
18104 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18105 postinstall_cmds=$lt_postinstall_cmds
18106 postuninstall_cmds=$lt_postuninstall_cmds
18107
18108 # Commands used to build a loadable module (assumed same as above if empty)
18109 module_cmds=$lt_module_cmds_F77
18110 module_expsym_cmds=$lt_module_expsym_cmds_F77
18111
18112 # Commands to strip libraries.
18113 old_striplib=$lt_old_striplib
18114 striplib=$lt_striplib
18115
18116 # Dependencies to place before the objects being linked to create a
18117 # shared library.
18118 predep_objects=$lt_predep_objects_F77
18119
18120 # Dependencies to place after the objects being linked to create a
18121 # shared library.
18122 postdep_objects=$lt_postdep_objects_F77
18123
18124 # Dependencies to place before the objects being linked to create a
18125 # shared library.
18126 predeps=$lt_predeps_F77
18127
18128 # Dependencies to place after the objects being linked to create a
18129 # shared library.
18130 postdeps=$lt_postdeps_F77
18131
18132 # The library search path used internally by the compiler when linking
18133 # a shared library.
18134 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18135
18136 # Method to check whether dependent libraries are shared objects.
18137 deplibs_check_method=$lt_deplibs_check_method
18138
18139 # Command to use when deplibs_check_method == file_magic.
18140 file_magic_cmd=$lt_file_magic_cmd
18141
18142 # Flag that allows shared libraries with undefined symbols to be built.
18143 allow_undefined_flag=$lt_allow_undefined_flag_F77
18144
18145 # Flag that forces no undefined symbols.
18146 no_undefined_flag=$lt_no_undefined_flag_F77
18147
18148 # Commands used to finish a libtool library installation in a directory.
18149 finish_cmds=$lt_finish_cmds
18150
18151 # Same as above, but a single script fragment to be evaled but not shown.
18152 finish_eval=$lt_finish_eval
18153
18154 # Take the output of nm and produce a listing of raw symbols and C names.
18155 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18156
18157 # Transform the output of nm in a proper C declaration
18158 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18159
18160 # Transform the output of nm in a C name address pair
18161 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18162
18163 # This is the shared library runtime path variable.
18164 runpath_var=$runpath_var
18165
18166 # This is the shared library path variable.
18167 shlibpath_var=$shlibpath_var
18168
18169 # Is shlibpath searched before the hard-coded library search path?
18170 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18171
18172 # How to hardcode a shared library path into an executable.
18173 hardcode_action=$hardcode_action_F77
18174
18175 # Whether we should hardcode library paths into libraries.
18176 hardcode_into_libs=$hardcode_into_libs
18177
18178 # Flag to hardcode \$libdir into a binary during linking.
18179 # This must work even if \$libdir does not exist.
18180 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18181
18182 # If ld is used when linking, flag to hardcode \$libdir into
18183 # a binary during linking. This must work even if \$libdir does
18184 # not exist.
18185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18186
18187 # Whether we need a single -rpath flag with a separated argument.
18188 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18189
18190 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18191 # resulting binary.
18192 hardcode_direct=$hardcode_direct_F77
18193
18194 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18195 # resulting binary.
18196 hardcode_minus_L=$hardcode_minus_L_F77
18197
18198 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18199 # the resulting binary.
18200 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18201
18202 # Set to yes if building a shared library automatically hardcodes DIR into the library
18203 # and all subsequent libraries and executables linked against it.
18204 hardcode_automatic=$hardcode_automatic_F77
18205
18206 # Variables whose values should be saved in libtool wrapper scripts and
18207 # restored at relink time.
18208 variables_saved_for_relink="$variables_saved_for_relink"
18209
18210 # Whether libtool must link a program against all its dependency libraries.
18211 link_all_deplibs=$link_all_deplibs_F77
18212
18213 # Compile-time system search path for libraries
18214 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18215
18216 # Run-time system search path for libraries
18217 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18218
18219 # Fix the shell variable \$srcfile for the compiler.
18220 fix_srcfile_path="$fix_srcfile_path_F77"
18221
18222 # Set to yes if exported symbols are required.
18223 always_export_symbols=$always_export_symbols_F77
18224
18225 # The commands to list exported symbols.
18226 export_symbols_cmds=$lt_export_symbols_cmds_F77
18227
18228 # The commands to extract the exported symbol list from a shared archive.
18229 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18230
18231 # Symbols that should not be listed in the preloaded symbols.
18232 exclude_expsyms=$lt_exclude_expsyms_F77
18233
18234 # Symbols that must always be exported.
18235 include_expsyms=$lt_include_expsyms_F77
18236
18237 # ### END LIBTOOL TAG CONFIG: $tagname
18238
18239 __EOF__
18240
18241
18242 else
18243 # If there is no Makefile yet, we rely on a make rule to execute
18244 # `config.status --recheck' to rerun these tests and create the
18245 # libtool script then.
18246 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18247 if test -f "$ltmain_in"; then
18248 test -f Makefile && make "$ltmain"
18249 fi
18250 fi
18251
18252
18253 ac_ext=c
18254 ac_cpp='$CPP $CPPFLAGS'
18255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18258
18259 CC="$lt_save_CC"
18260
18261 else
18262 tagname=""
18263 fi
18264 ;;
18265
18266 GCJ)
18267 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18268
18269
18270 # Source file extension for Java test sources.
18271 ac_ext=java
18272
18273 # Object file extension for compiled Java test sources.
18274 objext=o
18275 objext_GCJ=$objext
18276
18277 # Code to be used in simple compile tests
18278 lt_simple_compile_test_code="class foo {}\n"
18279
18280 # Code to be used in simple link tests
18281 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18282
18283 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18284
18285 # If no C compiler was specified, use CC.
18286 LTCC=${LTCC-"$CC"}
18287
18288 # If no C compiler flags were specified, use CFLAGS.
18289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18290
18291 # Allow CC to be a program name with arguments.
18292 compiler=$CC
18293
18294
18295 # save warnings/boilerplate of simple test code
18296 ac_outfile=conftest.$ac_objext
18297 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18299 _lt_compiler_boilerplate=`cat conftest.err`
18300 $rm conftest*
18301
18302 ac_outfile=conftest.$ac_objext
18303 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18305 _lt_linker_boilerplate=`cat conftest.err`
18306 $rm conftest*
18307
18308
18309 # Allow CC to be a program name with arguments.
18310 lt_save_CC="$CC"
18311 CC=${GCJ-"gcj"}
18312 compiler=$CC
18313 compiler_GCJ=$CC
18314 for cc_temp in $compiler""; do
18315 case $cc_temp in
18316 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18317 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18318 \-*) ;;
18319 *) break;;
18320 esac
18321 done
18322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18323
18324
18325 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18326 archive_cmds_need_lc_GCJ=no
18327
18328 old_archive_cmds_GCJ=$old_archive_cmds
18329
18330
18331 lt_prog_compiler_no_builtin_flag_GCJ=
18332
18333 if test "$GCC" = yes; then
18334 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18335
18336
18337 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18338 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18339 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 else
18342 lt_cv_prog_compiler_rtti_exceptions=no
18343 ac_outfile=conftest.$ac_objext
18344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18345 lt_compiler_flag="-fno-rtti -fno-exceptions"
18346 # Insert the option either (1) after the last *FLAGS variable, or
18347 # (2) before a word containing "conftest.", or (3) at the end.
18348 # Note that $ac_compile itself does not contain backslashes and begins
18349 # with a dollar sign (not a hyphen), so the echo should work correctly.
18350 # The option is referenced via a variable to avoid confusing sed.
18351 lt_compile=`echo "$ac_compile" | $SED \
18352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18354 -e 's:$: $lt_compiler_flag:'`
18355 (eval echo "\"\$as_me:18355: $lt_compile\"" >&5)
18356 (eval "$lt_compile" 2>conftest.err)
18357 ac_status=$?
18358 cat conftest.err >&5
18359 echo "$as_me:18359: \$? = $ac_status" >&5
18360 if (exit $ac_status) && test -s "$ac_outfile"; then
18361 # The compiler can only warn and ignore the option if not recognized
18362 # So say no if there are warnings other than the usual output.
18363 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18366 lt_cv_prog_compiler_rtti_exceptions=yes
18367 fi
18368 fi
18369 $rm conftest*
18370
18371 fi
18372 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18373 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18374
18375 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18376 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18377 else
18378 :
18379 fi
18380
18381 fi
18382
18383 lt_prog_compiler_wl_GCJ=
18384 lt_prog_compiler_pic_GCJ=
18385 lt_prog_compiler_static_GCJ=
18386
18387 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18389
18390 if test "$GCC" = yes; then
18391 lt_prog_compiler_wl_GCJ='-Wl,'
18392 lt_prog_compiler_static_GCJ='-static'
18393
18394 case $host_os in
18395 aix*)
18396 # All AIX code is PIC.
18397 if test "$host_cpu" = ia64; then
18398 # AIX 5 now supports IA64 processor
18399 lt_prog_compiler_static_GCJ='-Bstatic'
18400 fi
18401 ;;
18402
18403 amigaos*)
18404 # FIXME: we need at least 68020 code to build shared libraries, but
18405 # adding the `-m68020' flag to GCC prevents building anything better,
18406 # like `-m68040'.
18407 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18408 ;;
18409
18410 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18411 # PIC is the default for these OSes.
18412 ;;
18413
18414 mingw* | pw32* | os2*)
18415 # This hack is so that the source file can tell whether it is being
18416 # built for inclusion in a dll (and should export symbols for example).
18417 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18418 ;;
18419
18420 darwin* | rhapsody*)
18421 # PIC is the default on this platform
18422 # Common symbols not allowed in MH_DYLIB files
18423 lt_prog_compiler_pic_GCJ='-fno-common'
18424 ;;
18425
18426 interix3*)
18427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18428 # Instead, we relocate shared libraries at runtime.
18429 ;;
18430
18431 msdosdjgpp*)
18432 # Just because we use GCC doesn't mean we suddenly get shared libraries
18433 # on systems that don't support them.
18434 lt_prog_compiler_can_build_shared_GCJ=no
18435 enable_shared=no
18436 ;;
18437
18438 sysv4*MP*)
18439 if test -d /usr/nec; then
18440 lt_prog_compiler_pic_GCJ=-Kconform_pic
18441 fi
18442 ;;
18443
18444 hpux*)
18445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18446 # not for PA HP-UX.
18447 case $host_cpu in
18448 hppa*64*|ia64*)
18449 # +Z the default
18450 ;;
18451 *)
18452 lt_prog_compiler_pic_GCJ='-fPIC'
18453 ;;
18454 esac
18455 ;;
18456
18457 *)
18458 lt_prog_compiler_pic_GCJ='-fPIC'
18459 ;;
18460 esac
18461 else
18462 # PORTME Check for flag to pass linker flags through the system compiler.
18463 case $host_os in
18464 aix*)
18465 lt_prog_compiler_wl_GCJ='-Wl,'
18466 if test "$host_cpu" = ia64; then
18467 # AIX 5 now supports IA64 processor
18468 lt_prog_compiler_static_GCJ='-Bstatic'
18469 else
18470 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18471 fi
18472 ;;
18473 darwin*)
18474 # PIC is the default on this platform
18475 # Common symbols not allowed in MH_DYLIB files
18476 case $cc_basename in
18477 xlc*)
18478 lt_prog_compiler_pic_GCJ='-qnocommon'
18479 lt_prog_compiler_wl_GCJ='-Wl,'
18480 ;;
18481 esac
18482 ;;
18483
18484 mingw* | pw32* | os2*)
18485 # This hack is so that the source file can tell whether it is being
18486 # built for inclusion in a dll (and should export symbols for example).
18487 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18488 ;;
18489
18490 hpux9* | hpux10* | hpux11*)
18491 lt_prog_compiler_wl_GCJ='-Wl,'
18492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18493 # not for PA HP-UX.
18494 case $host_cpu in
18495 hppa*64*|ia64*)
18496 # +Z the default
18497 ;;
18498 *)
18499 lt_prog_compiler_pic_GCJ='+Z'
18500 ;;
18501 esac
18502 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18503 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18504 ;;
18505
18506 irix5* | irix6* | nonstopux*)
18507 lt_prog_compiler_wl_GCJ='-Wl,'
18508 # PIC (with -KPIC) is the default.
18509 lt_prog_compiler_static_GCJ='-non_shared'
18510 ;;
18511
18512 newsos6)
18513 lt_prog_compiler_pic_GCJ='-KPIC'
18514 lt_prog_compiler_static_GCJ='-Bstatic'
18515 ;;
18516
18517 linux* | k*bsd*-gnu)
18518 case $cc_basename in
18519 icc* | ecc*)
18520 lt_prog_compiler_wl_GCJ='-Wl,'
18521 lt_prog_compiler_pic_GCJ='-KPIC'
18522 lt_prog_compiler_static_GCJ='-static'
18523 ;;
18524 pgcc* | pgf77* | pgf90* | pgf95*)
18525 # Portland Group compilers (*not* the Pentium gcc compiler,
18526 # which looks to be a dead project)
18527 lt_prog_compiler_wl_GCJ='-Wl,'
18528 lt_prog_compiler_pic_GCJ='-fpic'
18529 lt_prog_compiler_static_GCJ='-Bstatic'
18530 ;;
18531 ccc*)
18532 lt_prog_compiler_wl_GCJ='-Wl,'
18533 # All Alpha code is PIC.
18534 lt_prog_compiler_static_GCJ='-non_shared'
18535 ;;
18536 esac
18537 ;;
18538
18539 osf3* | osf4* | osf5*)
18540 lt_prog_compiler_wl_GCJ='-Wl,'
18541 # All OSF/1 code is PIC.
18542 lt_prog_compiler_static_GCJ='-non_shared'
18543 ;;
18544
18545 solaris*)
18546 lt_prog_compiler_pic_GCJ='-KPIC'
18547 lt_prog_compiler_static_GCJ='-Bstatic'
18548 case $cc_basename in
18549 f77* | f90* | f95*)
18550 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18551 *)
18552 lt_prog_compiler_wl_GCJ='-Wl,';;
18553 esac
18554 ;;
18555
18556 sunos4*)
18557 lt_prog_compiler_wl_GCJ='-Qoption ld '
18558 lt_prog_compiler_pic_GCJ='-PIC'
18559 lt_prog_compiler_static_GCJ='-Bstatic'
18560 ;;
18561
18562 sysv4 | sysv4.2uw2* | sysv4.3*)
18563 lt_prog_compiler_wl_GCJ='-Wl,'
18564 lt_prog_compiler_pic_GCJ='-KPIC'
18565 lt_prog_compiler_static_GCJ='-Bstatic'
18566 ;;
18567
18568 sysv4*MP*)
18569 if test -d /usr/nec ;then
18570 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18571 lt_prog_compiler_static_GCJ='-Bstatic'
18572 fi
18573 ;;
18574
18575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18576 lt_prog_compiler_wl_GCJ='-Wl,'
18577 lt_prog_compiler_pic_GCJ='-KPIC'
18578 lt_prog_compiler_static_GCJ='-Bstatic'
18579 ;;
18580
18581 unicos*)
18582 lt_prog_compiler_wl_GCJ='-Wl,'
18583 lt_prog_compiler_can_build_shared_GCJ=no
18584 ;;
18585
18586 uts4*)
18587 lt_prog_compiler_pic_GCJ='-pic'
18588 lt_prog_compiler_static_GCJ='-Bstatic'
18589 ;;
18590
18591 *)
18592 lt_prog_compiler_can_build_shared_GCJ=no
18593 ;;
18594 esac
18595 fi
18596
18597 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18598 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18599
18600 #
18601 # Check to make sure the PIC flag actually works.
18602 #
18603 if test -n "$lt_prog_compiler_pic_GCJ"; then
18604
18605 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18607 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610 lt_prog_compiler_pic_works_GCJ=no
18611 ac_outfile=conftest.$ac_objext
18612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18613 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18614 # Insert the option either (1) after the last *FLAGS variable, or
18615 # (2) before a word containing "conftest.", or (3) at the end.
18616 # Note that $ac_compile itself does not contain backslashes and begins
18617 # with a dollar sign (not a hyphen), so the echo should work correctly.
18618 # The option is referenced via a variable to avoid confusing sed.
18619 lt_compile=`echo "$ac_compile" | $SED \
18620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18622 -e 's:$: $lt_compiler_flag:'`
18623 (eval echo "\"\$as_me:18623: $lt_compile\"" >&5)
18624 (eval "$lt_compile" 2>conftest.err)
18625 ac_status=$?
18626 cat conftest.err >&5
18627 echo "$as_me:18627: \$? = $ac_status" >&5
18628 if (exit $ac_status) && test -s "$ac_outfile"; then
18629 # The compiler can only warn and ignore the option if not recognized
18630 # So say no if there are warnings other than the usual output.
18631 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18634 lt_prog_compiler_pic_works_GCJ=yes
18635 fi
18636 fi
18637 $rm conftest*
18638
18639 fi
18640 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18641 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18642
18643 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18644 case $lt_prog_compiler_pic_GCJ in
18645 "" | " "*) ;;
18646 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18647 esac
18648 else
18649 lt_prog_compiler_pic_GCJ=
18650 lt_prog_compiler_can_build_shared_GCJ=no
18651 fi
18652
18653 fi
18654 case $host_os in
18655 # For platforms which do not support PIC, -DPIC is meaningless:
18656 *djgpp*)
18657 lt_prog_compiler_pic_GCJ=
18658 ;;
18659 *)
18660 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18661 ;;
18662 esac
18663
18664 #
18665 # Check to make sure the static flag actually works.
18666 #
18667 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18668 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18669 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18670 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673 lt_prog_compiler_static_works_GCJ=no
18674 save_LDFLAGS="$LDFLAGS"
18675 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18676 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18678 # The linker can only warn and ignore the option if not recognized
18679 # So say no if there are warnings
18680 if test -s conftest.err; then
18681 # Append any errors to the config.log.
18682 cat conftest.err 1>&5
18683 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18685 if diff conftest.exp conftest.er2 >/dev/null; then
18686 lt_prog_compiler_static_works_GCJ=yes
18687 fi
18688 else
18689 lt_prog_compiler_static_works_GCJ=yes
18690 fi
18691 fi
18692 $rm conftest*
18693 LDFLAGS="$save_LDFLAGS"
18694
18695 fi
18696 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18697 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18698
18699 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18700 :
18701 else
18702 lt_prog_compiler_static_GCJ=
18703 fi
18704
18705
18706 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18707 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18708 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711 lt_cv_prog_compiler_c_o_GCJ=no
18712 $rm -r conftest 2>/dev/null
18713 mkdir conftest
18714 cd conftest
18715 mkdir out
18716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18717
18718 lt_compiler_flag="-o out/conftest2.$ac_objext"
18719 # Insert the option either (1) after the last *FLAGS variable, or
18720 # (2) before a word containing "conftest.", or (3) at the end.
18721 # Note that $ac_compile itself does not contain backslashes and begins
18722 # with a dollar sign (not a hyphen), so the echo should work correctly.
18723 lt_compile=`echo "$ac_compile" | $SED \
18724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18726 -e 's:$: $lt_compiler_flag:'`
18727 (eval echo "\"\$as_me:18727: $lt_compile\"" >&5)
18728 (eval "$lt_compile" 2>out/conftest.err)
18729 ac_status=$?
18730 cat out/conftest.err >&5
18731 echo "$as_me:18731: \$? = $ac_status" >&5
18732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18733 then
18734 # The compiler can only warn and ignore the option if not recognized
18735 # So say no if there are warnings
18736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18739 lt_cv_prog_compiler_c_o_GCJ=yes
18740 fi
18741 fi
18742 chmod u+w . 2>&5
18743 $rm conftest*
18744 # SGI C++ compiler will create directory out/ii_files/ for
18745 # template instantiation
18746 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18747 $rm out/* && rmdir out
18748 cd ..
18749 rmdir conftest
18750 $rm conftest*
18751
18752 fi
18753 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18754 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18755
18756
18757 hard_links="nottested"
18758 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18759 # do not overwrite the value of need_locks provided by the user
18760 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18761 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18762 hard_links=yes
18763 $rm conftest*
18764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18765 touch conftest.a
18766 ln conftest.a conftest.b 2>&5 || hard_links=no
18767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18768 { echo "$as_me:$LINENO: result: $hard_links" >&5
18769 echo "${ECHO_T}$hard_links" >&6; }
18770 if test "$hard_links" = no; then
18771 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18772 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18773 need_locks=warn
18774 fi
18775 else
18776 need_locks=no
18777 fi
18778
18779 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18780 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18781
18782 runpath_var=
18783 allow_undefined_flag_GCJ=
18784 enable_shared_with_static_runtimes_GCJ=no
18785 archive_cmds_GCJ=
18786 archive_expsym_cmds_GCJ=
18787 old_archive_From_new_cmds_GCJ=
18788 old_archive_from_expsyms_cmds_GCJ=
18789 export_dynamic_flag_spec_GCJ=
18790 whole_archive_flag_spec_GCJ=
18791 thread_safe_flag_spec_GCJ=
18792 hardcode_libdir_flag_spec_GCJ=
18793 hardcode_libdir_flag_spec_ld_GCJ=
18794 hardcode_libdir_separator_GCJ=
18795 hardcode_direct_GCJ=no
18796 hardcode_minus_L_GCJ=no
18797 hardcode_shlibpath_var_GCJ=unsupported
18798 link_all_deplibs_GCJ=unknown
18799 hardcode_automatic_GCJ=no
18800 module_cmds_GCJ=
18801 module_expsym_cmds_GCJ=
18802 always_export_symbols_GCJ=no
18803 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18804 # include_expsyms should be a list of space-separated symbols to be *always*
18805 # included in the symbol list
18806 include_expsyms_GCJ=
18807 # exclude_expsyms can be an extended regexp of symbols to exclude
18808 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18809 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18810 # as well as any symbol that contains `d'.
18811 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18813 # platforms (ab)use it in PIC code, but their linkers get confused if
18814 # the symbol is explicitly referenced. Since portable code cannot
18815 # rely on this symbol name, it's probably fine to never include it in
18816 # preloaded symbol tables.
18817 extract_expsyms_cmds=
18818 # Just being paranoid about ensuring that cc_basename is set.
18819 for cc_temp in $compiler""; do
18820 case $cc_temp in
18821 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18822 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18823 \-*) ;;
18824 *) break;;
18825 esac
18826 done
18827 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18828
18829 case $host_os in
18830 cygwin* | mingw* | pw32*)
18831 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18832 # When not using gcc, we currently assume that we are using
18833 # Microsoft Visual C++.
18834 if test "$GCC" != yes; then
18835 with_gnu_ld=no
18836 fi
18837 ;;
18838 interix*)
18839 # we just hope/assume this is gcc and not c89 (= MSVC++)
18840 with_gnu_ld=yes
18841 ;;
18842 openbsd*)
18843 with_gnu_ld=no
18844 ;;
18845 esac
18846
18847 ld_shlibs_GCJ=yes
18848 if test "$with_gnu_ld" = yes; then
18849 # If archive_cmds runs LD, not CC, wlarc should be empty
18850 wlarc='${wl}'
18851
18852 # Set some defaults for GNU ld with shared library support. These
18853 # are reset later if shared libraries are not supported. Putting them
18854 # here allows them to be overridden if necessary.
18855 runpath_var=LD_RUN_PATH
18856 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18857 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18858 # ancient GNU ld didn't support --whole-archive et. al.
18859 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18860 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18861 else
18862 whole_archive_flag_spec_GCJ=
18863 fi
18864 supports_anon_versioning=no
18865 case `$LD -v 2>/dev/null` in
18866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18869 *\ 2.11.*) ;; # other 2.11 versions
18870 *) supports_anon_versioning=yes ;;
18871 esac
18872
18873 # See if GNU ld supports shared libraries.
18874 case $host_os in
18875 aix3* | aix4* | aix5*)
18876 # On AIX/PPC, the GNU linker is very broken
18877 if test "$host_cpu" != ia64; then
18878 ld_shlibs_GCJ=no
18879 cat <<EOF 1>&2
18880
18881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18882 *** to be unable to reliably create shared libraries on AIX.
18883 *** Therefore, libtool is disabling shared libraries support. If you
18884 *** really care for shared libraries, you may want to modify your PATH
18885 *** so that a non-GNU linker is found, and then restart.
18886
18887 EOF
18888 fi
18889 ;;
18890
18891 amigaos*)
18892 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)'
18893 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18894 hardcode_minus_L_GCJ=yes
18895
18896 # Samuel A. Falvo II <[email protected]> reports
18897 # that the semantics of dynamic libraries on AmigaOS, at least up
18898 # to version 4, is to share data among multiple programs linked
18899 # with the same dynamic library. Since this doesn't match the
18900 # behavior of shared libraries on other platforms, we can't use
18901 # them.
18902 ld_shlibs_GCJ=no
18903 ;;
18904
18905 beos*)
18906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18907 allow_undefined_flag_GCJ=unsupported
18908 # Joseph Beckenbach <[email protected]> says some releases of gcc
18909 # support --undefined. This deserves some investigation. FIXME
18910 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18911 else
18912 ld_shlibs_GCJ=no
18913 fi
18914 ;;
18915
18916 cygwin* | mingw* | pw32*)
18917 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18918 # as there is no search path for DLLs.
18919 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18920 allow_undefined_flag_GCJ=unsupported
18921 always_export_symbols_GCJ=no
18922 enable_shared_with_static_runtimes_GCJ=yes
18923 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18924
18925 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18926 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18927 # If the export-symbols file already is a .def file (1st line
18928 # is EXPORTS), use it as is; otherwise, prepend...
18929 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18930 cp $export_symbols $output_objdir/$soname.def;
18931 else
18932 echo EXPORTS > $output_objdir/$soname.def;
18933 cat $export_symbols >> $output_objdir/$soname.def;
18934 fi~
18935 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18936 else
18937 ld_shlibs_GCJ=no
18938 fi
18939 ;;
18940
18941 interix3*)
18942 hardcode_direct_GCJ=no
18943 hardcode_shlibpath_var_GCJ=no
18944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18945 export_dynamic_flag_spec_GCJ='${wl}-E'
18946 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18947 # Instead, shared libraries are loaded at an image base (0x10000000 by
18948 # default) and relocated if they conflict, which is a slow very memory
18949 # consuming and fragmenting process. To avoid this, we pick a random,
18950 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18951 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18952 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18953 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18954 ;;
18955
18956 linux* | k*bsd*-gnu)
18957 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18958 tmp_addflag=
18959 case $cc_basename,$host_cpu in
18960 pgcc*) # Portland Group C compiler
18961 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18962 tmp_addflag=' $pic_flag'
18963 ;;
18964 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18965 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18966 tmp_addflag=' $pic_flag -Mnomain' ;;
18967 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18968 tmp_addflag=' -i_dynamic' ;;
18969 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18970 tmp_addflag=' -i_dynamic -nofor_main' ;;
18971 ifc* | ifort*) # Intel Fortran compiler
18972 tmp_addflag=' -nofor_main' ;;
18973 esac
18974 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18975
18976 if test $supports_anon_versioning = yes; then
18977 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18979 $echo "local: *; };" >> $output_objdir/$libname.ver~
18980 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18981 fi
18982 link_all_deplibs_GCJ=no
18983 else
18984 ld_shlibs_GCJ=no
18985 fi
18986 ;;
18987
18988 netbsd* | netbsdelf*-gnu)
18989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18990 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18991 wlarc=
18992 else
18993 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18994 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18995 fi
18996 ;;
18997
18998 solaris*)
18999 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19000 ld_shlibs_GCJ=no
19001 cat <<EOF 1>&2
19002
19003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19004 *** create shared libraries on Solaris systems. Therefore, libtool
19005 *** is disabling shared libraries support. We urge you to upgrade GNU
19006 *** binutils to release 2.9.1 or newer. Another option is to modify
19007 *** your PATH or compiler configuration so that the native linker is
19008 *** used, and then restart.
19009
19010 EOF
19011 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19014 else
19015 ld_shlibs_GCJ=no
19016 fi
19017 ;;
19018
19019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19020 case `$LD -v 2>&1` in
19021 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19022 ld_shlibs_GCJ=no
19023 cat <<_LT_EOF 1>&2
19024
19025 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19026 *** reliably create shared libraries on SCO systems. Therefore, libtool
19027 *** is disabling shared libraries support. We urge you to upgrade GNU
19028 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19029 *** your PATH or compiler configuration so that the native linker is
19030 *** used, and then restart.
19031
19032 _LT_EOF
19033 ;;
19034 *)
19035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19036 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19037 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19038 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19039 else
19040 ld_shlibs_GCJ=no
19041 fi
19042 ;;
19043 esac
19044 ;;
19045
19046 sunos4*)
19047 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19048 wlarc=
19049 hardcode_direct_GCJ=yes
19050 hardcode_shlibpath_var_GCJ=no
19051 ;;
19052
19053 *)
19054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19055 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19056 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19057 else
19058 ld_shlibs_GCJ=no
19059 fi
19060 ;;
19061 esac
19062
19063 if test "$ld_shlibs_GCJ" = no; then
19064 runpath_var=
19065 hardcode_libdir_flag_spec_GCJ=
19066 export_dynamic_flag_spec_GCJ=
19067 whole_archive_flag_spec_GCJ=
19068 fi
19069 else
19070 # PORTME fill in a description of your system's linker (not GNU ld)
19071 case $host_os in
19072 aix3*)
19073 allow_undefined_flag_GCJ=unsupported
19074 always_export_symbols_GCJ=yes
19075 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'
19076 # Note: this linker hardcodes the directories in LIBPATH if there
19077 # are no directories specified by -L.
19078 hardcode_minus_L_GCJ=yes
19079 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19080 # Neither direct hardcoding nor static linking is supported with a
19081 # broken collect2.
19082 hardcode_direct_GCJ=unsupported
19083 fi
19084 ;;
19085
19086 aix4* | aix5*)
19087 if test "$host_cpu" = ia64; then
19088 # On IA64, the linker does run time linking by default, so we don't
19089 # have to do anything special.
19090 aix_use_runtimelinking=no
19091 exp_sym_flag='-Bexport'
19092 no_entry_flag=""
19093 else
19094 # If we're using GNU nm, then we don't want the "-C" option.
19095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19096 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19097 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'
19098 else
19099 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'
19100 fi
19101 aix_use_runtimelinking=no
19102
19103 # Test if we are trying to use run time linking or normal
19104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19105 # need to do runtime linking.
19106 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19107 for ld_flag in $LDFLAGS; do
19108 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19109 aix_use_runtimelinking=yes
19110 break
19111 fi
19112 done
19113 ;;
19114 esac
19115
19116 exp_sym_flag='-bexport'
19117 no_entry_flag='-bnoentry'
19118 fi
19119
19120 # When large executables or shared objects are built, AIX ld can
19121 # have problems creating the table of contents. If linking a library
19122 # or program results in "error TOC overflow" add -mminimal-toc to
19123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19125
19126 archive_cmds_GCJ=''
19127 hardcode_direct_GCJ=yes
19128 hardcode_libdir_separator_GCJ=':'
19129 link_all_deplibs_GCJ=yes
19130
19131 if test "$GCC" = yes; then
19132 case $host_os in aix4.[012]|aix4.[012].*)
19133 # We only want to do this on AIX 4.2 and lower, the check
19134 # below for broken collect2 doesn't work under 4.3+
19135 collect2name=`${CC} -print-prog-name=collect2`
19136 if test -f "$collect2name" && \
19137 strings "$collect2name" | grep resolve_lib_name >/dev/null
19138 then
19139 # We have reworked collect2
19140 hardcode_direct_GCJ=yes
19141 else
19142 # We have old collect2
19143 hardcode_direct_GCJ=unsupported
19144 # It fails to find uninstalled libraries when the uninstalled
19145 # path is not listed in the libpath. Setting hardcode_minus_L
19146 # to unsupported forces relinking
19147 hardcode_minus_L_GCJ=yes
19148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19149 hardcode_libdir_separator_GCJ=
19150 fi
19151 ;;
19152 esac
19153 shared_flag='-shared'
19154 if test "$aix_use_runtimelinking" = yes; then
19155 shared_flag="$shared_flag "'${wl}-G'
19156 fi
19157 else
19158 # not using gcc
19159 if test "$host_cpu" = ia64; then
19160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19161 # chokes on -Wl,-G. The following line is correct:
19162 shared_flag='-G'
19163 else
19164 if test "$aix_use_runtimelinking" = yes; then
19165 shared_flag='${wl}-G'
19166 else
19167 shared_flag='${wl}-bM:SRE'
19168 fi
19169 fi
19170 fi
19171
19172 # It seems that -bexpall does not export symbols beginning with
19173 # underscore (_), so it is better to generate a list of symbols to export.
19174 always_export_symbols_GCJ=yes
19175 if test "$aix_use_runtimelinking" = yes; then
19176 # Warning - without using the other runtime loading flags (-brtl),
19177 # -berok will link without error, but may produce a broken library.
19178 allow_undefined_flag_GCJ='-berok'
19179 # Determine the default libpath from the value encoded in an empty executable.
19180 cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h. */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186
19187 int
19188 main ()
19189 {
19190
19191 ;
19192 return 0;
19193 }
19194 _ACEOF
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (ac_try="$ac_link"
19197 case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202 (eval "$ac_link") 2>conftest.er1
19203 ac_status=$?
19204 grep -v '^ *+' conftest.er1 >conftest.err
19205 rm -f conftest.er1
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } && {
19209 test -z "$ac_c_werror_flag" ||
19210 test ! -s conftest.err
19211 } && test -s conftest$ac_exeext &&
19212 $as_test_x conftest$ac_exeext; then
19213
19214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19215 }'`
19216 # Check for a 64-bit object if we didn't find anything.
19217 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; }
19218 }'`; fi
19219 else
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223
19224 fi
19225
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227 conftest$ac_exeext conftest.$ac_ext
19228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19229
19230 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19231 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19232 else
19233 if test "$host_cpu" = ia64; then
19234 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19235 allow_undefined_flag_GCJ="-z nodefs"
19236 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19237 else
19238 # Determine the default libpath from the value encoded in an empty executable.
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245
19246 int
19247 main ()
19248 {
19249
19250 ;
19251 return 0;
19252 }
19253 _ACEOF
19254 rm -f conftest.$ac_objext conftest$ac_exeext
19255 if { (ac_try="$ac_link"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_link") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest$ac_exeext &&
19271 $as_test_x conftest$ac_exeext; then
19272
19273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19274 }'`
19275 # Check for a 64-bit object if we didn't find anything.
19276 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; }
19277 }'`; fi
19278 else
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19281
19282
19283 fi
19284
19285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19286 conftest$ac_exeext conftest.$ac_ext
19287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19288
19289 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19290 # Warning - without using the other run time loading flags,
19291 # -berok will link without error, but may produce a broken library.
19292 no_undefined_flag_GCJ=' ${wl}-bernotok'
19293 allow_undefined_flag_GCJ=' ${wl}-berok'
19294 # Exported symbols can be pulled into shared objects from archives
19295 whole_archive_flag_spec_GCJ='$convenience'
19296 archive_cmds_need_lc_GCJ=yes
19297 # This is similar to how AIX traditionally builds its shared libraries.
19298 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19299 fi
19300 fi
19301 ;;
19302
19303 amigaos*)
19304 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)'
19305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19306 hardcode_minus_L_GCJ=yes
19307 # see comment about different semantics on the GNU ld section
19308 ld_shlibs_GCJ=no
19309 ;;
19310
19311 bsdi[45]*)
19312 export_dynamic_flag_spec_GCJ=-rdynamic
19313 ;;
19314
19315 cygwin* | mingw* | pw32*)
19316 # When not using gcc, we currently assume that we are using
19317 # Microsoft Visual C++.
19318 # hardcode_libdir_flag_spec is actually meaningless, as there is
19319 # no search path for DLLs.
19320 hardcode_libdir_flag_spec_GCJ=' '
19321 allow_undefined_flag_GCJ=unsupported
19322 # Tell ltmain to make .lib files, not .a files.
19323 libext=lib
19324 # Tell ltmain to make .dll files, not .so files.
19325 shrext_cmds=".dll"
19326 # FIXME: Setting linknames here is a bad hack.
19327 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19328 # The linker will automatically build a .lib file if we build a DLL.
19329 old_archive_From_new_cmds_GCJ='true'
19330 # FIXME: Should let the user specify the lib program.
19331 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19332 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19333 enable_shared_with_static_runtimes_GCJ=yes
19334 ;;
19335
19336 darwin* | rhapsody*)
19337 case $host_os in
19338 rhapsody* | darwin1.[012])
19339 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19340 ;;
19341 *) # Darwin 1.3 on
19342 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19343 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19344 else
19345 case ${MACOSX_DEPLOYMENT_TARGET} in
19346 10.[012])
19347 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19348 ;;
19349 10.*)
19350 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19351 ;;
19352 esac
19353 fi
19354 ;;
19355 esac
19356 archive_cmds_need_lc_GCJ=no
19357 hardcode_direct_GCJ=no
19358 hardcode_automatic_GCJ=yes
19359 hardcode_shlibpath_var_GCJ=unsupported
19360 whole_archive_flag_spec_GCJ=''
19361 link_all_deplibs_GCJ=yes
19362 if test "$GCC" = yes ; then
19363 output_verbose_link_cmd='echo'
19364 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19365 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19367 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}'
19368 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}'
19369 else
19370 case $cc_basename in
19371 xlc*)
19372 output_verbose_link_cmd='echo'
19373 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19374 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19375 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19376 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}'
19377 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}'
19378 ;;
19379 *)
19380 ld_shlibs_GCJ=no
19381 ;;
19382 esac
19383 fi
19384 ;;
19385
19386 dgux*)
19387 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19388 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19389 hardcode_shlibpath_var_GCJ=no
19390 ;;
19391
19392 freebsd1*)
19393 ld_shlibs_GCJ=no
19394 ;;
19395
19396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19397 # support. Future versions do this automatically, but an explicit c++rt0.o
19398 # does not break anything, and helps significantly (at the cost of a little
19399 # extra space).
19400 freebsd2.2*)
19401 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19402 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19403 hardcode_direct_GCJ=yes
19404 hardcode_shlibpath_var_GCJ=no
19405 ;;
19406
19407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19408 freebsd2*)
19409 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19410 hardcode_direct_GCJ=yes
19411 hardcode_minus_L_GCJ=yes
19412 hardcode_shlibpath_var_GCJ=no
19413 ;;
19414
19415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19416 freebsd* | dragonfly*)
19417 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19418 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19419 hardcode_direct_GCJ=yes
19420 hardcode_shlibpath_var_GCJ=no
19421 ;;
19422
19423 hpux9*)
19424 if test "$GCC" = yes; then
19425 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'
19426 else
19427 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'
19428 fi
19429 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19430 hardcode_libdir_separator_GCJ=:
19431 hardcode_direct_GCJ=yes
19432
19433 # hardcode_minus_L: Not really in the search PATH,
19434 # but as the default location of the library.
19435 hardcode_minus_L_GCJ=yes
19436 export_dynamic_flag_spec_GCJ='${wl}-E'
19437 ;;
19438
19439 hpux10*)
19440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19441 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19442 else
19443 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19444 fi
19445 if test "$with_gnu_ld" = no; then
19446 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19447 hardcode_libdir_separator_GCJ=:
19448
19449 hardcode_direct_GCJ=yes
19450 export_dynamic_flag_spec_GCJ='${wl}-E'
19451
19452 # hardcode_minus_L: Not really in the search PATH,
19453 # but as the default location of the library.
19454 hardcode_minus_L_GCJ=yes
19455 fi
19456 ;;
19457
19458 hpux11*)
19459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19460 case $host_cpu in
19461 hppa*64*)
19462 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19463 ;;
19464 ia64*)
19465 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19466 ;;
19467 *)
19468 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19469 ;;
19470 esac
19471 else
19472 case $host_cpu in
19473 hppa*64*)
19474 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19475 ;;
19476 ia64*)
19477 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19478 ;;
19479 *)
19480 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19481 ;;
19482 esac
19483 fi
19484 if test "$with_gnu_ld" = no; then
19485 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19486 hardcode_libdir_separator_GCJ=:
19487
19488 case $host_cpu in
19489 hppa*64*|ia64*)
19490 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19491 hardcode_direct_GCJ=no
19492 hardcode_shlibpath_var_GCJ=no
19493 ;;
19494 *)
19495 hardcode_direct_GCJ=yes
19496 export_dynamic_flag_spec_GCJ='${wl}-E'
19497
19498 # hardcode_minus_L: Not really in the search PATH,
19499 # but as the default location of the library.
19500 hardcode_minus_L_GCJ=yes
19501 ;;
19502 esac
19503 fi
19504 ;;
19505
19506 irix5* | irix6* | nonstopux*)
19507 if test "$GCC" = yes; then
19508 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'
19509 else
19510 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'
19511 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19512 fi
19513 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19514 hardcode_libdir_separator_GCJ=:
19515 link_all_deplibs_GCJ=yes
19516 ;;
19517
19518 netbsd* | netbsdelf*-gnu)
19519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19520 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19521 else
19522 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19523 fi
19524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19525 hardcode_direct_GCJ=yes
19526 hardcode_shlibpath_var_GCJ=no
19527 ;;
19528
19529 newsos6)
19530 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19531 hardcode_direct_GCJ=yes
19532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19533 hardcode_libdir_separator_GCJ=:
19534 hardcode_shlibpath_var_GCJ=no
19535 ;;
19536
19537 openbsd*)
19538 hardcode_direct_GCJ=yes
19539 hardcode_shlibpath_var_GCJ=no
19540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19541 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19542 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19544 export_dynamic_flag_spec_GCJ='${wl}-E'
19545 else
19546 case $host_os in
19547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19548 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19549 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19550 ;;
19551 *)
19552 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19554 ;;
19555 esac
19556 fi
19557 ;;
19558
19559 os2*)
19560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19561 hardcode_minus_L_GCJ=yes
19562 allow_undefined_flag_GCJ=unsupported
19563 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'
19564 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19565 ;;
19566
19567 osf3*)
19568 if test "$GCC" = yes; then
19569 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19570 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'
19571 else
19572 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19573 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'
19574 fi
19575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19576 hardcode_libdir_separator_GCJ=:
19577 ;;
19578
19579 osf4* | osf5*) # as osf3* with the addition of -msym flag
19580 if test "$GCC" = yes; then
19581 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19582 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'
19583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19584 else
19585 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19586 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'
19587 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~
19588 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19589
19590 # Both c and cxx compiler support -rpath directly
19591 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19592 fi
19593 hardcode_libdir_separator_GCJ=:
19594 ;;
19595
19596 solaris*)
19597 no_undefined_flag_GCJ=' -z text'
19598 if test "$GCC" = yes; then
19599 wlarc='${wl}'
19600 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19601 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19602 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19603 else
19604 wlarc=''
19605 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19606 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19608 fi
19609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19610 hardcode_shlibpath_var_GCJ=no
19611 case $host_os in
19612 solaris2.[0-5] | solaris2.[0-5].*) ;;
19613 *)
19614 # The compiler driver will combine linker options so we
19615 # cannot just pass the convience library names through
19616 # without $wl, iff we do not link with $LD.
19617 # Luckily, gcc supports the same syntax we need for Sun Studio.
19618 # Supported since Solaris 2.6 (maybe 2.5.1?)
19619 case $wlarc in
19620 '')
19621 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19622 *)
19623 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19624 esac ;;
19625 esac
19626 link_all_deplibs_GCJ=yes
19627 ;;
19628
19629 sunos4*)
19630 if test "x$host_vendor" = xsequent; then
19631 # Use $CC to link under sequent, because it throws in some extra .o
19632 # files that make .init and .fini sections work.
19633 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19634 else
19635 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19636 fi
19637 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19638 hardcode_direct_GCJ=yes
19639 hardcode_minus_L_GCJ=yes
19640 hardcode_shlibpath_var_GCJ=no
19641 ;;
19642
19643 sysv4)
19644 case $host_vendor in
19645 sni)
19646 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19647 hardcode_direct_GCJ=yes # is this really true???
19648 ;;
19649 siemens)
19650 ## LD is ld it makes a PLAMLIB
19651 ## CC just makes a GrossModule.
19652 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19653 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19654 hardcode_direct_GCJ=no
19655 ;;
19656 motorola)
19657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19658 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19659 ;;
19660 esac
19661 runpath_var='LD_RUN_PATH'
19662 hardcode_shlibpath_var_GCJ=no
19663 ;;
19664
19665 sysv4.3*)
19666 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19667 hardcode_shlibpath_var_GCJ=no
19668 export_dynamic_flag_spec_GCJ='-Bexport'
19669 ;;
19670
19671 sysv4*MP*)
19672 if test -d /usr/nec; then
19673 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19674 hardcode_shlibpath_var_GCJ=no
19675 runpath_var=LD_RUN_PATH
19676 hardcode_runpath_var=yes
19677 ld_shlibs_GCJ=yes
19678 fi
19679 ;;
19680
19681 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19682 no_undefined_flag_GCJ='${wl}-z,text'
19683 archive_cmds_need_lc_GCJ=no
19684 hardcode_shlibpath_var_GCJ=no
19685 runpath_var='LD_RUN_PATH'
19686
19687 if test "$GCC" = yes; then
19688 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19689 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 else
19691 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19692 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19693 fi
19694 ;;
19695
19696 sysv5* | sco3.2v5* | sco5v6*)
19697 # Note: We can NOT use -z defs as we might desire, because we do not
19698 # link with -lc, and that would cause any symbols used from libc to
19699 # always be unresolved, which means just about no library would
19700 # ever link correctly. If we're not using GNU ld we use -z text
19701 # though, which does catch some bad symbols but isn't as heavy-handed
19702 # as -z defs.
19703 no_undefined_flag_GCJ='${wl}-z,text'
19704 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19705 archive_cmds_need_lc_GCJ=no
19706 hardcode_shlibpath_var_GCJ=no
19707 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19708 hardcode_libdir_separator_GCJ=':'
19709 link_all_deplibs_GCJ=yes
19710 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19711 runpath_var='LD_RUN_PATH'
19712
19713 if test "$GCC" = yes; then
19714 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19715 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19716 else
19717 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19718 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19719 fi
19720 ;;
19721
19722 uts4*)
19723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19724 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19725 hardcode_shlibpath_var_GCJ=no
19726 ;;
19727
19728 *)
19729 ld_shlibs_GCJ=no
19730 ;;
19731 esac
19732 fi
19733
19734 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19735 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19736 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19737
19738 #
19739 # Do we need to explicitly link libc?
19740 #
19741 case "x$archive_cmds_need_lc_GCJ" in
19742 x|xyes)
19743 # Assume -lc should be added
19744 archive_cmds_need_lc_GCJ=yes
19745
19746 if test "$enable_shared" = yes && test "$GCC" = yes; then
19747 case $archive_cmds_GCJ in
19748 *'~'*)
19749 # FIXME: we may have to deal with multi-command sequences.
19750 ;;
19751 '$CC '*)
19752 # Test whether the compiler implicitly links with -lc since on some
19753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19754 # to ld, don't add -lc before -lgcc.
19755 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19756 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19757 $rm conftest*
19758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19759
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761 (eval $ac_compile) 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } 2>conftest.err; then
19765 soname=conftest
19766 lib=conftest
19767 libobjs=conftest.$ac_objext
19768 deplibs=
19769 wl=$lt_prog_compiler_wl_GCJ
19770 pic_flag=$lt_prog_compiler_pic_GCJ
19771 compiler_flags=-v
19772 linker_flags=-v
19773 verstring=
19774 output_objdir=.
19775 libname=conftest
19776 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19777 allow_undefined_flag_GCJ=
19778 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19779 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }
19783 then
19784 archive_cmds_need_lc_GCJ=no
19785 else
19786 archive_cmds_need_lc_GCJ=yes
19787 fi
19788 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19789 else
19790 cat conftest.err 1>&5
19791 fi
19792 $rm conftest*
19793 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19794 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19795 ;;
19796 esac
19797 fi
19798 ;;
19799 esac
19800
19801 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19802 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19803 library_names_spec=
19804 libname_spec='lib$name'
19805 soname_spec=
19806 shrext_cmds=".so"
19807 postinstall_cmds=
19808 postuninstall_cmds=
19809 finish_cmds=
19810 finish_eval=
19811 shlibpath_var=
19812 shlibpath_overrides_runpath=unknown
19813 version_type=none
19814 dynamic_linker="$host_os ld.so"
19815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19816 if test "$GCC" = yes; then
19817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19818 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19819 # if the path contains ";" then we assume it to be the separator
19820 # otherwise default to the standard path separator (i.e. ":") - it is
19821 # assumed that no part of a normal pathname contains ";" but that should
19822 # okay in the real world where ";" in dirpaths is itself problematic.
19823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19824 else
19825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19826 fi
19827 else
19828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19829 fi
19830 need_lib_prefix=unknown
19831 hardcode_into_libs=no
19832
19833 # when you set need_version to no, make sure it does not cause -set_version
19834 # flags to be left without arguments
19835 need_version=unknown
19836
19837 case $host_os in
19838 aix3*)
19839 version_type=linux
19840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19841 shlibpath_var=LIBPATH
19842
19843 # AIX 3 has no versioning support, so we append a major version to the name.
19844 soname_spec='${libname}${release}${shared_ext}$major'
19845 ;;
19846
19847 aix4* | aix5*)
19848 version_type=linux
19849 need_lib_prefix=no
19850 need_version=no
19851 hardcode_into_libs=yes
19852 if test "$host_cpu" = ia64; then
19853 # AIX 5 supports IA64
19854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19855 shlibpath_var=LD_LIBRARY_PATH
19856 else
19857 # With GCC up to 2.95.x, collect2 would create an import file
19858 # for dependence libraries. The import file would start with
19859 # the line `#! .'. This would cause the generated library to
19860 # depend on `.', always an invalid library. This was fixed in
19861 # development snapshots of GCC prior to 3.0.
19862 case $host_os in
19863 aix4 | aix4.[01] | aix4.[01].*)
19864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19865 echo ' yes '
19866 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19867 :
19868 else
19869 can_build_shared=no
19870 fi
19871 ;;
19872 esac
19873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19874 # soname into executable. Probably we can add versioning support to
19875 # collect2, so additional links can be useful in future.
19876 if test "$aix_use_runtimelinking" = yes; then
19877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19878 # instead of lib<name>.a to let people know that these are not
19879 # typical AIX shared libraries.
19880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19881 else
19882 # We preserve .a as extension for shared libraries through AIX4.2
19883 # and later when we are not doing run time linking.
19884 library_names_spec='${libname}${release}.a $libname.a'
19885 soname_spec='${libname}${release}${shared_ext}$major'
19886 fi
19887 shlibpath_var=LIBPATH
19888 fi
19889 ;;
19890
19891 amigaos*)
19892 library_names_spec='$libname.ixlibrary $libname.a'
19893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19894 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'
19895 ;;
19896
19897 beos*)
19898 library_names_spec='${libname}${shared_ext}'
19899 dynamic_linker="$host_os ld.so"
19900 shlibpath_var=LIBRARY_PATH
19901 ;;
19902
19903 bsdi[45]*)
19904 version_type=linux
19905 need_version=no
19906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19907 soname_spec='${libname}${release}${shared_ext}$major'
19908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19909 shlibpath_var=LD_LIBRARY_PATH
19910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19912 # the default ld.so.conf also contains /usr/contrib/lib and
19913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19914 # libtool to hard-code these into programs
19915 ;;
19916
19917 cygwin* | mingw* | pw32*)
19918 version_type=windows
19919 shrext_cmds=".dll"
19920 need_version=no
19921 need_lib_prefix=no
19922
19923 case $GCC,$host_os in
19924 yes,cygwin* | yes,mingw* | yes,pw32*)
19925 library_names_spec='$libname.dll.a'
19926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19927 postinstall_cmds='base_file=`basename \${file}`~
19928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19929 dldir=$destdir/`dirname \$dlpath`~
19930 test -d \$dldir || mkdir -p \$dldir~
19931 $install_prog $dir/$dlname \$dldir/$dlname~
19932 chmod a+x \$dldir/$dlname'
19933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19934 dlpath=$dir/\$dldll~
19935 $rm \$dlpath'
19936 shlibpath_overrides_runpath=yes
19937
19938 case $host_os in
19939 cygwin*)
19940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19943 ;;
19944 mingw*)
19945 # MinGW DLLs use traditional 'lib' prefix
19946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19949 # It is most probably a Windows format PATH printed by
19950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19951 # path with ; separators, and with drive letters. We can handle the
19952 # drive letters (cygwin fileutils understands them), so leave them,
19953 # especially as we might pass files found there to a mingw objdump,
19954 # which wouldn't understand a cygwinified path. Ahh.
19955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19956 else
19957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19958 fi
19959 ;;
19960 pw32*)
19961 # pw32 DLLs use 'pw' prefix rather than 'lib'
19962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19963 ;;
19964 esac
19965 ;;
19966
19967 *)
19968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19969 ;;
19970 esac
19971 dynamic_linker='Win32 ld.exe'
19972 # FIXME: first we should search . and the directory the executable is in
19973 shlibpath_var=PATH
19974 ;;
19975
19976 darwin* | rhapsody*)
19977 dynamic_linker="$host_os dyld"
19978 version_type=darwin
19979 need_lib_prefix=no
19980 need_version=no
19981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19982 soname_spec='${libname}${release}${major}$shared_ext'
19983 shlibpath_overrides_runpath=yes
19984 shlibpath_var=DYLD_LIBRARY_PATH
19985 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19987 if test "$GCC" = yes; then
19988 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"`
19989 else
19990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19991 fi
19992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19993 ;;
19994
19995 dgux*)
19996 version_type=linux
19997 need_lib_prefix=no
19998 need_version=no
19999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20000 soname_spec='${libname}${release}${shared_ext}$major'
20001 shlibpath_var=LD_LIBRARY_PATH
20002 ;;
20003
20004 freebsd1*)
20005 dynamic_linker=no
20006 ;;
20007
20008 freebsd* | dragonfly*)
20009 # DragonFly does not have aout. When/if they implement a new
20010 # versioning mechanism, adjust this.
20011 if test -x /usr/bin/objformat; then
20012 objformat=`/usr/bin/objformat`
20013 else
20014 case $host_os in
20015 freebsd[123]*) objformat=aout ;;
20016 *) objformat=elf ;;
20017 esac
20018 fi
20019 version_type=freebsd-$objformat
20020 case $version_type in
20021 freebsd-elf*)
20022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20023 need_version=no
20024 need_lib_prefix=no
20025 ;;
20026 freebsd-*)
20027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20028 need_version=yes
20029 ;;
20030 esac
20031 shlibpath_var=LD_LIBRARY_PATH
20032 case $host_os in
20033 freebsd2*)
20034 shlibpath_overrides_runpath=yes
20035 ;;
20036 freebsd3.[01]* | freebsdelf3.[01]*)
20037 shlibpath_overrides_runpath=yes
20038 hardcode_into_libs=yes
20039 ;;
20040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20042 shlibpath_overrides_runpath=no
20043 hardcode_into_libs=yes
20044 ;;
20045 freebsd*) # from 4.6 on
20046 shlibpath_overrides_runpath=yes
20047 hardcode_into_libs=yes
20048 ;;
20049 esac
20050 ;;
20051
20052 gnu*)
20053 version_type=linux
20054 need_lib_prefix=no
20055 need_version=no
20056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20057 soname_spec='${libname}${release}${shared_ext}$major'
20058 shlibpath_var=LD_LIBRARY_PATH
20059 hardcode_into_libs=yes
20060 ;;
20061
20062 hpux9* | hpux10* | hpux11*)
20063 # Give a soname corresponding to the major version so that dld.sl refuses to
20064 # link against other versions.
20065 version_type=sunos
20066 need_lib_prefix=no
20067 need_version=no
20068 case $host_cpu in
20069 ia64*)
20070 shrext_cmds='.so'
20071 hardcode_into_libs=yes
20072 dynamic_linker="$host_os dld.so"
20073 shlibpath_var=LD_LIBRARY_PATH
20074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20076 soname_spec='${libname}${release}${shared_ext}$major'
20077 if test "X$HPUX_IA64_MODE" = X32; then
20078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20079 else
20080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20081 fi
20082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20083 ;;
20084 hppa*64*)
20085 shrext_cmds='.sl'
20086 hardcode_into_libs=yes
20087 dynamic_linker="$host_os dld.sl"
20088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20091 soname_spec='${libname}${release}${shared_ext}$major'
20092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20094 ;;
20095 *)
20096 shrext_cmds='.sl'
20097 dynamic_linker="$host_os dld.sl"
20098 shlibpath_var=SHLIB_PATH
20099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20101 soname_spec='${libname}${release}${shared_ext}$major'
20102 ;;
20103 esac
20104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20105 postinstall_cmds='chmod 555 $lib'
20106 ;;
20107
20108 interix3*)
20109 version_type=linux
20110 need_lib_prefix=no
20111 need_version=no
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20113 soname_spec='${libname}${release}${shared_ext}$major'
20114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20115 shlibpath_var=LD_LIBRARY_PATH
20116 shlibpath_overrides_runpath=no
20117 hardcode_into_libs=yes
20118 ;;
20119
20120 irix5* | irix6* | nonstopux*)
20121 case $host_os in
20122 nonstopux*) version_type=nonstopux ;;
20123 *)
20124 if test "$lt_cv_prog_gnu_ld" = yes; then
20125 version_type=linux
20126 else
20127 version_type=irix
20128 fi ;;
20129 esac
20130 need_lib_prefix=no
20131 need_version=no
20132 soname_spec='${libname}${release}${shared_ext}$major'
20133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20134 case $host_os in
20135 irix5* | nonstopux*)
20136 libsuff= shlibsuff=
20137 ;;
20138 *)
20139 case $LD in # libtool.m4 will add one of these switches to LD
20140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20141 libsuff= shlibsuff= libmagic=32-bit;;
20142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20143 libsuff=32 shlibsuff=N32 libmagic=N32;;
20144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20146 *) libsuff= shlibsuff= libmagic=never-match;;
20147 esac
20148 ;;
20149 esac
20150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20151 shlibpath_overrides_runpath=no
20152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20154 hardcode_into_libs=yes
20155 ;;
20156
20157 # No shared lib support for Linux oldld, aout, or coff.
20158 linux*oldld* | linux*aout* | linux*coff*)
20159 dynamic_linker=no
20160 ;;
20161
20162 # This must be Linux ELF.
20163 linux* | k*bsd*-gnu)
20164 version_type=linux
20165 need_lib_prefix=no
20166 need_version=no
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168 soname_spec='${libname}${release}${shared_ext}$major'
20169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20170 shlibpath_var=LD_LIBRARY_PATH
20171 shlibpath_overrides_runpath=no
20172 # This implies no fast_install, which is unacceptable.
20173 # Some rework will be needed to allow for fast_install
20174 # before this can be enabled.
20175 hardcode_into_libs=yes
20176
20177 # Append ld.so.conf contents to the search path
20178 if test -f /etc/ld.so.conf; then
20179 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20181 fi
20182
20183 # We used to test for /lib/ld.so.1 and disable shared libraries on
20184 # powerpc, because MkLinux only supported shared libraries with the
20185 # GNU dynamic linker. Since this was broken with cross compilers,
20186 # most powerpc-linux boxes support dynamic linking these days and
20187 # people can always --disable-shared, the test was removed, and we
20188 # assume the GNU/Linux dynamic linker is in use.
20189 dynamic_linker='GNU/Linux ld.so'
20190 ;;
20191
20192 netbsdelf*-gnu)
20193 version_type=linux
20194 need_lib_prefix=no
20195 need_version=no
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20197 soname_spec='${libname}${release}${shared_ext}$major'
20198 shlibpath_var=LD_LIBRARY_PATH
20199 shlibpath_overrides_runpath=no
20200 hardcode_into_libs=yes
20201 dynamic_linker='NetBSD ld.elf_so'
20202 ;;
20203
20204 netbsd*)
20205 version_type=sunos
20206 need_lib_prefix=no
20207 need_version=no
20208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20211 dynamic_linker='NetBSD (a.out) ld.so'
20212 else
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20214 soname_spec='${libname}${release}${shared_ext}$major'
20215 dynamic_linker='NetBSD ld.elf_so'
20216 fi
20217 shlibpath_var=LD_LIBRARY_PATH
20218 shlibpath_overrides_runpath=yes
20219 hardcode_into_libs=yes
20220 ;;
20221
20222 newsos6)
20223 version_type=linux
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20225 shlibpath_var=LD_LIBRARY_PATH
20226 shlibpath_overrides_runpath=yes
20227 ;;
20228
20229 nto-qnx*)
20230 version_type=linux
20231 need_lib_prefix=no
20232 need_version=no
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 shlibpath_var=LD_LIBRARY_PATH
20236 shlibpath_overrides_runpath=yes
20237 ;;
20238
20239 openbsd*)
20240 version_type=sunos
20241 sys_lib_dlsearch_path_spec="/usr/lib"
20242 need_lib_prefix=no
20243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20244 case $host_os in
20245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20246 *) need_version=no ;;
20247 esac
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20252 case $host_os in
20253 openbsd2.[89] | openbsd2.[89].*)
20254 shlibpath_overrides_runpath=no
20255 ;;
20256 *)
20257 shlibpath_overrides_runpath=yes
20258 ;;
20259 esac
20260 else
20261 shlibpath_overrides_runpath=yes
20262 fi
20263 ;;
20264
20265 os2*)
20266 libname_spec='$name'
20267 shrext_cmds=".dll"
20268 need_lib_prefix=no
20269 library_names_spec='$libname${shared_ext} $libname.a'
20270 dynamic_linker='OS/2 ld.exe'
20271 shlibpath_var=LIBPATH
20272 ;;
20273
20274 osf3* | osf4* | osf5*)
20275 version_type=osf
20276 need_lib_prefix=no
20277 need_version=no
20278 soname_spec='${libname}${release}${shared_ext}$major'
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280 shlibpath_var=LD_LIBRARY_PATH
20281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20283 ;;
20284
20285 solaris*)
20286 version_type=linux
20287 need_lib_prefix=no
20288 need_version=no
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=yes
20293 hardcode_into_libs=yes
20294 # ldd complains unless libraries are executable
20295 postinstall_cmds='chmod +x $lib'
20296 ;;
20297
20298 sunos4*)
20299 version_type=sunos
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 shlibpath_overrides_runpath=yes
20304 if test "$with_gnu_ld" = yes; then
20305 need_lib_prefix=no
20306 fi
20307 need_version=yes
20308 ;;
20309
20310 sysv4 | sysv4.3*)
20311 version_type=linux
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 shlibpath_var=LD_LIBRARY_PATH
20315 case $host_vendor in
20316 sni)
20317 shlibpath_overrides_runpath=no
20318 need_lib_prefix=no
20319 export_dynamic_flag_spec='${wl}-Blargedynsym'
20320 runpath_var=LD_RUN_PATH
20321 ;;
20322 siemens)
20323 need_lib_prefix=no
20324 ;;
20325 motorola)
20326 need_lib_prefix=no
20327 need_version=no
20328 shlibpath_overrides_runpath=no
20329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20330 ;;
20331 esac
20332 ;;
20333
20334 sysv4*MP*)
20335 if test -d /usr/nec ;then
20336 version_type=linux
20337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20338 soname_spec='$libname${shared_ext}.$major'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 fi
20341 ;;
20342
20343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20344 version_type=freebsd-elf
20345 need_lib_prefix=no
20346 need_version=no
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20348 soname_spec='${libname}${release}${shared_ext}$major'
20349 shlibpath_var=LD_LIBRARY_PATH
20350 hardcode_into_libs=yes
20351 if test "$with_gnu_ld" = yes; then
20352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20353 shlibpath_overrides_runpath=no
20354 else
20355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20356 shlibpath_overrides_runpath=yes
20357 case $host_os in
20358 sco3.2v5*)
20359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20360 ;;
20361 esac
20362 fi
20363 sys_lib_dlsearch_path_spec='/usr/lib'
20364 ;;
20365
20366 uts4*)
20367 version_type=linux
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369 soname_spec='${libname}${release}${shared_ext}$major'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 ;;
20372
20373 *)
20374 dynamic_linker=no
20375 ;;
20376 esac
20377 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20378 echo "${ECHO_T}$dynamic_linker" >&6; }
20379 test "$dynamic_linker" = no && can_build_shared=no
20380
20381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20382 if test "$GCC" = yes; then
20383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20384 fi
20385
20386 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20387 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20388 hardcode_action_GCJ=
20389 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20390 test -n "$runpath_var_GCJ" || \
20391 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20392
20393 # We can hardcode non-existant directories.
20394 if test "$hardcode_direct_GCJ" != no &&
20395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20396 # have to relink, otherwise we might link with an installed library
20397 # when we should be linking with a yet-to-be-installed one
20398 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20399 test "$hardcode_minus_L_GCJ" != no; then
20400 # Linking always hardcodes the temporary library directory.
20401 hardcode_action_GCJ=relink
20402 else
20403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20404 hardcode_action_GCJ=immediate
20405 fi
20406 else
20407 # We cannot hardcode anything, or else we can only hardcode existing
20408 # directories.
20409 hardcode_action_GCJ=unsupported
20410 fi
20411 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20412 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20413
20414 if test "$hardcode_action_GCJ" = relink; then
20415 # Fast installation is not supported
20416 enable_fast_install=no
20417 elif test "$shlibpath_overrides_runpath" = yes ||
20418 test "$enable_shared" = no; then
20419 # Fast installation is not necessary
20420 enable_fast_install=needless
20421 fi
20422
20423
20424 # The else clause should only fire when bootstrapping the
20425 # libtool distribution, otherwise you forgot to ship ltmain.sh
20426 # with your package, and you will get complaints that there are
20427 # no rules to generate ltmain.sh.
20428 if test -f "$ltmain"; then
20429 # See if we are running on zsh, and set the options which allow our commands through
20430 # without removal of \ escapes.
20431 if test -n "${ZSH_VERSION+set}" ; then
20432 setopt NO_GLOB_SUBST
20433 fi
20434 # Now quote all the things that may contain metacharacters while being
20435 # careful not to overquote the AC_SUBSTed values. We take copies of the
20436 # variables and quote the copies for generation of the libtool script.
20437 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20438 SED SHELL STRIP \
20439 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20440 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20441 deplibs_check_method reload_flag reload_cmds need_locks \
20442 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20443 lt_cv_sys_global_symbol_to_c_name_address \
20444 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20445 old_postinstall_cmds old_postuninstall_cmds \
20446 compiler_GCJ \
20447 CC_GCJ \
20448 LD_GCJ \
20449 lt_prog_compiler_wl_GCJ \
20450 lt_prog_compiler_pic_GCJ \
20451 lt_prog_compiler_static_GCJ \
20452 lt_prog_compiler_no_builtin_flag_GCJ \
20453 export_dynamic_flag_spec_GCJ \
20454 thread_safe_flag_spec_GCJ \
20455 whole_archive_flag_spec_GCJ \
20456 enable_shared_with_static_runtimes_GCJ \
20457 old_archive_cmds_GCJ \
20458 old_archive_from_new_cmds_GCJ \
20459 predep_objects_GCJ \
20460 postdep_objects_GCJ \
20461 predeps_GCJ \
20462 postdeps_GCJ \
20463 compiler_lib_search_path_GCJ \
20464 archive_cmds_GCJ \
20465 archive_expsym_cmds_GCJ \
20466 postinstall_cmds_GCJ \
20467 postuninstall_cmds_GCJ \
20468 old_archive_from_expsyms_cmds_GCJ \
20469 allow_undefined_flag_GCJ \
20470 no_undefined_flag_GCJ \
20471 export_symbols_cmds_GCJ \
20472 hardcode_libdir_flag_spec_GCJ \
20473 hardcode_libdir_flag_spec_ld_GCJ \
20474 hardcode_libdir_separator_GCJ \
20475 hardcode_automatic_GCJ \
20476 module_cmds_GCJ \
20477 module_expsym_cmds_GCJ \
20478 lt_cv_prog_compiler_c_o_GCJ \
20479 exclude_expsyms_GCJ \
20480 include_expsyms_GCJ; do
20481
20482 case $var in
20483 old_archive_cmds_GCJ | \
20484 old_archive_from_new_cmds_GCJ | \
20485 archive_cmds_GCJ | \
20486 archive_expsym_cmds_GCJ | \
20487 module_cmds_GCJ | \
20488 module_expsym_cmds_GCJ | \
20489 old_archive_from_expsyms_cmds_GCJ | \
20490 export_symbols_cmds_GCJ | \
20491 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20492 postinstall_cmds | postuninstall_cmds | \
20493 old_postinstall_cmds | old_postuninstall_cmds | \
20494 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20495 # Double-quote double-evaled strings.
20496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20497 ;;
20498 *)
20499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20500 ;;
20501 esac
20502 done
20503
20504 case $lt_echo in
20505 *'\$0 --fallback-echo"')
20506 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20507 ;;
20508 esac
20509
20510 cfgfile="$ofile"
20511
20512 cat <<__EOF__ >> "$cfgfile"
20513 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20514
20515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20516
20517 # Shell to use when invoking shell scripts.
20518 SHELL=$lt_SHELL
20519
20520 # Whether or not to build shared libraries.
20521 build_libtool_libs=$enable_shared
20522
20523 # Whether or not to build static libraries.
20524 build_old_libs=$enable_static
20525
20526 # Whether or not to add -lc for building shared libraries.
20527 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20528
20529 # Whether or not to disallow shared libs when runtime libs are static
20530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20531
20532 # Whether or not to optimize for fast installation.
20533 fast_install=$enable_fast_install
20534
20535 # The host system.
20536 host_alias=$host_alias
20537 host=$host
20538 host_os=$host_os
20539
20540 # The build system.
20541 build_alias=$build_alias
20542 build=$build
20543 build_os=$build_os
20544
20545 # An echo program that does not interpret backslashes.
20546 echo=$lt_echo
20547
20548 # The archiver.
20549 AR=$lt_AR
20550 AR_FLAGS=$lt_AR_FLAGS
20551
20552 # A C compiler.
20553 LTCC=$lt_LTCC
20554
20555 # LTCC compiler flags.
20556 LTCFLAGS=$lt_LTCFLAGS
20557
20558 # A language-specific compiler.
20559 CC=$lt_compiler_GCJ
20560
20561 # Is the compiler the GNU C compiler?
20562 with_gcc=$GCC_GCJ
20563
20564 # An ERE matcher.
20565 EGREP=$lt_EGREP
20566
20567 # The linker used to build libraries.
20568 LD=$lt_LD_GCJ
20569
20570 # Whether we need hard or soft links.
20571 LN_S=$lt_LN_S
20572
20573 # A BSD-compatible nm program.
20574 NM=$lt_NM
20575
20576 # A symbol stripping program
20577 STRIP=$lt_STRIP
20578
20579 # Used to examine libraries when file_magic_cmd begins "file"
20580 MAGIC_CMD=$MAGIC_CMD
20581
20582 # Used on cygwin: DLL creation program.
20583 DLLTOOL="$DLLTOOL"
20584
20585 # Used on cygwin: object dumper.
20586 OBJDUMP="$OBJDUMP"
20587
20588 # Used on cygwin: assembler.
20589 AS="$AS"
20590
20591 # The name of the directory that contains temporary libtool files.
20592 objdir=$objdir
20593
20594 # How to create reloadable object files.
20595 reload_flag=$lt_reload_flag
20596 reload_cmds=$lt_reload_cmds
20597
20598 # How to pass a linker flag through the compiler.
20599 wl=$lt_lt_prog_compiler_wl_GCJ
20600
20601 # Object file suffix (normally "o").
20602 objext="$ac_objext"
20603
20604 # Old archive suffix (normally "a").
20605 libext="$libext"
20606
20607 # Shared library suffix (normally ".so").
20608 shrext_cmds='$shrext_cmds'
20609
20610 # Executable file suffix (normally "").
20611 exeext="$exeext"
20612
20613 # Additional compiler flags for building library objects.
20614 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20615 pic_mode=$pic_mode
20616
20617 # What is the maximum length of a command?
20618 max_cmd_len=$lt_cv_sys_max_cmd_len
20619
20620 # Does compiler simultaneously support -c and -o options?
20621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20622
20623 # Must we lock files when doing compilation?
20624 need_locks=$lt_need_locks
20625
20626 # Do we need the lib prefix for modules?
20627 need_lib_prefix=$need_lib_prefix
20628
20629 # Do we need a version for libraries?
20630 need_version=$need_version
20631
20632 # Whether dlopen is supported.
20633 dlopen_support=$enable_dlopen
20634
20635 # Whether dlopen of programs is supported.
20636 dlopen_self=$enable_dlopen_self
20637
20638 # Whether dlopen of statically linked programs is supported.
20639 dlopen_self_static=$enable_dlopen_self_static
20640
20641 # Compiler flag to prevent dynamic linking.
20642 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20643
20644 # Compiler flag to turn off builtin functions.
20645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20646
20647 # Compiler flag to allow reflexive dlopens.
20648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20649
20650 # Compiler flag to generate shared objects directly from archives.
20651 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20652
20653 # Compiler flag to generate thread-safe objects.
20654 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20655
20656 # Library versioning type.
20657 version_type=$version_type
20658
20659 # Format of library name prefix.
20660 libname_spec=$lt_libname_spec
20661
20662 # List of archive names. First name is the real one, the rest are links.
20663 # The last name is the one that the linker finds with -lNAME.
20664 library_names_spec=$lt_library_names_spec
20665
20666 # The coded name of the library, if different from the real name.
20667 soname_spec=$lt_soname_spec
20668
20669 # Commands used to build and install an old-style archive.
20670 RANLIB=$lt_RANLIB
20671 old_archive_cmds=$lt_old_archive_cmds_GCJ
20672 old_postinstall_cmds=$lt_old_postinstall_cmds
20673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20674
20675 # Create an old-style archive from a shared archive.
20676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20677
20678 # Create a temporary old-style archive to link instead of a shared archive.
20679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20680
20681 # Commands used to build and install a shared archive.
20682 archive_cmds=$lt_archive_cmds_GCJ
20683 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20684 postinstall_cmds=$lt_postinstall_cmds
20685 postuninstall_cmds=$lt_postuninstall_cmds
20686
20687 # Commands used to build a loadable module (assumed same as above if empty)
20688 module_cmds=$lt_module_cmds_GCJ
20689 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20690
20691 # Commands to strip libraries.
20692 old_striplib=$lt_old_striplib
20693 striplib=$lt_striplib
20694
20695 # Dependencies to place before the objects being linked to create a
20696 # shared library.
20697 predep_objects=$lt_predep_objects_GCJ
20698
20699 # Dependencies to place after the objects being linked to create a
20700 # shared library.
20701 postdep_objects=$lt_postdep_objects_GCJ
20702
20703 # Dependencies to place before the objects being linked to create a
20704 # shared library.
20705 predeps=$lt_predeps_GCJ
20706
20707 # Dependencies to place after the objects being linked to create a
20708 # shared library.
20709 postdeps=$lt_postdeps_GCJ
20710
20711 # The library search path used internally by the compiler when linking
20712 # a shared library.
20713 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20714
20715 # Method to check whether dependent libraries are shared objects.
20716 deplibs_check_method=$lt_deplibs_check_method
20717
20718 # Command to use when deplibs_check_method == file_magic.
20719 file_magic_cmd=$lt_file_magic_cmd
20720
20721 # Flag that allows shared libraries with undefined symbols to be built.
20722 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20723
20724 # Flag that forces no undefined symbols.
20725 no_undefined_flag=$lt_no_undefined_flag_GCJ
20726
20727 # Commands used to finish a libtool library installation in a directory.
20728 finish_cmds=$lt_finish_cmds
20729
20730 # Same as above, but a single script fragment to be evaled but not shown.
20731 finish_eval=$lt_finish_eval
20732
20733 # Take the output of nm and produce a listing of raw symbols and C names.
20734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20735
20736 # Transform the output of nm in a proper C declaration
20737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20738
20739 # Transform the output of nm in a C name address pair
20740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20741
20742 # This is the shared library runtime path variable.
20743 runpath_var=$runpath_var
20744
20745 # This is the shared library path variable.
20746 shlibpath_var=$shlibpath_var
20747
20748 # Is shlibpath searched before the hard-coded library search path?
20749 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20750
20751 # How to hardcode a shared library path into an executable.
20752 hardcode_action=$hardcode_action_GCJ
20753
20754 # Whether we should hardcode library paths into libraries.
20755 hardcode_into_libs=$hardcode_into_libs
20756
20757 # Flag to hardcode \$libdir into a binary during linking.
20758 # This must work even if \$libdir does not exist.
20759 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20760
20761 # If ld is used when linking, flag to hardcode \$libdir into
20762 # a binary during linking. This must work even if \$libdir does
20763 # not exist.
20764 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20765
20766 # Whether we need a single -rpath flag with a separated argument.
20767 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20768
20769 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20770 # resulting binary.
20771 hardcode_direct=$hardcode_direct_GCJ
20772
20773 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20774 # resulting binary.
20775 hardcode_minus_L=$hardcode_minus_L_GCJ
20776
20777 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20778 # the resulting binary.
20779 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20780
20781 # Set to yes if building a shared library automatically hardcodes DIR into the library
20782 # and all subsequent libraries and executables linked against it.
20783 hardcode_automatic=$hardcode_automatic_GCJ
20784
20785 # Variables whose values should be saved in libtool wrapper scripts and
20786 # restored at relink time.
20787 variables_saved_for_relink="$variables_saved_for_relink"
20788
20789 # Whether libtool must link a program against all its dependency libraries.
20790 link_all_deplibs=$link_all_deplibs_GCJ
20791
20792 # Compile-time system search path for libraries
20793 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20794
20795 # Run-time system search path for libraries
20796 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20797
20798 # Fix the shell variable \$srcfile for the compiler.
20799 fix_srcfile_path="$fix_srcfile_path_GCJ"
20800
20801 # Set to yes if exported symbols are required.
20802 always_export_symbols=$always_export_symbols_GCJ
20803
20804 # The commands to list exported symbols.
20805 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20806
20807 # The commands to extract the exported symbol list from a shared archive.
20808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20809
20810 # Symbols that should not be listed in the preloaded symbols.
20811 exclude_expsyms=$lt_exclude_expsyms_GCJ
20812
20813 # Symbols that must always be exported.
20814 include_expsyms=$lt_include_expsyms_GCJ
20815
20816 # ### END LIBTOOL TAG CONFIG: $tagname
20817
20818 __EOF__
20819
20820
20821 else
20822 # If there is no Makefile yet, we rely on a make rule to execute
20823 # `config.status --recheck' to rerun these tests and create the
20824 # libtool script then.
20825 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20826 if test -f "$ltmain_in"; then
20827 test -f Makefile && make "$ltmain"
20828 fi
20829 fi
20830
20831
20832 ac_ext=c
20833 ac_cpp='$CPP $CPPFLAGS'
20834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20837
20838 CC="$lt_save_CC"
20839
20840 else
20841 tagname=""
20842 fi
20843 ;;
20844
20845 RC)
20846
20847
20848 # Source file extension for RC test sources.
20849 ac_ext=rc
20850
20851 # Object file extension for compiled RC test sources.
20852 objext=o
20853 objext_RC=$objext
20854
20855 # Code to be used in simple compile tests
20856 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20857
20858 # Code to be used in simple link tests
20859 lt_simple_link_test_code="$lt_simple_compile_test_code"
20860
20861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20862
20863 # If no C compiler was specified, use CC.
20864 LTCC=${LTCC-"$CC"}
20865
20866 # If no C compiler flags were specified, use CFLAGS.
20867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20868
20869 # Allow CC to be a program name with arguments.
20870 compiler=$CC
20871
20872
20873 # save warnings/boilerplate of simple test code
20874 ac_outfile=conftest.$ac_objext
20875 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20877 _lt_compiler_boilerplate=`cat conftest.err`
20878 $rm conftest*
20879
20880 ac_outfile=conftest.$ac_objext
20881 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20883 _lt_linker_boilerplate=`cat conftest.err`
20884 $rm conftest*
20885
20886
20887 # Allow CC to be a program name with arguments.
20888 lt_save_CC="$CC"
20889 CC=${RC-"windres"}
20890 compiler=$CC
20891 compiler_RC=$CC
20892 for cc_temp in $compiler""; do
20893 case $cc_temp in
20894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20896 \-*) ;;
20897 *) break;;
20898 esac
20899 done
20900 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20901
20902 lt_cv_prog_compiler_c_o_RC=yes
20903
20904 # The else clause should only fire when bootstrapping the
20905 # libtool distribution, otherwise you forgot to ship ltmain.sh
20906 # with your package, and you will get complaints that there are
20907 # no rules to generate ltmain.sh.
20908 if test -f "$ltmain"; then
20909 # See if we are running on zsh, and set the options which allow our commands through
20910 # without removal of \ escapes.
20911 if test -n "${ZSH_VERSION+set}" ; then
20912 setopt NO_GLOB_SUBST
20913 fi
20914 # Now quote all the things that may contain metacharacters while being
20915 # careful not to overquote the AC_SUBSTed values. We take copies of the
20916 # variables and quote the copies for generation of the libtool script.
20917 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20918 SED SHELL STRIP \
20919 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20920 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20921 deplibs_check_method reload_flag reload_cmds need_locks \
20922 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20923 lt_cv_sys_global_symbol_to_c_name_address \
20924 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20925 old_postinstall_cmds old_postuninstall_cmds \
20926 compiler_RC \
20927 CC_RC \
20928 LD_RC \
20929 lt_prog_compiler_wl_RC \
20930 lt_prog_compiler_pic_RC \
20931 lt_prog_compiler_static_RC \
20932 lt_prog_compiler_no_builtin_flag_RC \
20933 export_dynamic_flag_spec_RC \
20934 thread_safe_flag_spec_RC \
20935 whole_archive_flag_spec_RC \
20936 enable_shared_with_static_runtimes_RC \
20937 old_archive_cmds_RC \
20938 old_archive_from_new_cmds_RC \
20939 predep_objects_RC \
20940 postdep_objects_RC \
20941 predeps_RC \
20942 postdeps_RC \
20943 compiler_lib_search_path_RC \
20944 archive_cmds_RC \
20945 archive_expsym_cmds_RC \
20946 postinstall_cmds_RC \
20947 postuninstall_cmds_RC \
20948 old_archive_from_expsyms_cmds_RC \
20949 allow_undefined_flag_RC \
20950 no_undefined_flag_RC \
20951 export_symbols_cmds_RC \
20952 hardcode_libdir_flag_spec_RC \
20953 hardcode_libdir_flag_spec_ld_RC \
20954 hardcode_libdir_separator_RC \
20955 hardcode_automatic_RC \
20956 module_cmds_RC \
20957 module_expsym_cmds_RC \
20958 lt_cv_prog_compiler_c_o_RC \
20959 exclude_expsyms_RC \
20960 include_expsyms_RC; do
20961
20962 case $var in
20963 old_archive_cmds_RC | \
20964 old_archive_from_new_cmds_RC | \
20965 archive_cmds_RC | \
20966 archive_expsym_cmds_RC | \
20967 module_cmds_RC | \
20968 module_expsym_cmds_RC | \
20969 old_archive_from_expsyms_cmds_RC | \
20970 export_symbols_cmds_RC | \
20971 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20972 postinstall_cmds | postuninstall_cmds | \
20973 old_postinstall_cmds | old_postuninstall_cmds | \
20974 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20975 # Double-quote double-evaled strings.
20976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20977 ;;
20978 *)
20979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20980 ;;
20981 esac
20982 done
20983
20984 case $lt_echo in
20985 *'\$0 --fallback-echo"')
20986 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20987 ;;
20988 esac
20989
20990 cfgfile="$ofile"
20991
20992 cat <<__EOF__ >> "$cfgfile"
20993 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20994
20995 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20996
20997 # Shell to use when invoking shell scripts.
20998 SHELL=$lt_SHELL
20999
21000 # Whether or not to build shared libraries.
21001 build_libtool_libs=$enable_shared
21002
21003 # Whether or not to build static libraries.
21004 build_old_libs=$enable_static
21005
21006 # Whether or not to add -lc for building shared libraries.
21007 build_libtool_need_lc=$archive_cmds_need_lc_RC
21008
21009 # Whether or not to disallow shared libs when runtime libs are static
21010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21011
21012 # Whether or not to optimize for fast installation.
21013 fast_install=$enable_fast_install
21014
21015 # The host system.
21016 host_alias=$host_alias
21017 host=$host
21018 host_os=$host_os
21019
21020 # The build system.
21021 build_alias=$build_alias
21022 build=$build
21023 build_os=$build_os
21024
21025 # An echo program that does not interpret backslashes.
21026 echo=$lt_echo
21027
21028 # The archiver.
21029 AR=$lt_AR
21030 AR_FLAGS=$lt_AR_FLAGS
21031
21032 # A C compiler.
21033 LTCC=$lt_LTCC
21034
21035 # LTCC compiler flags.
21036 LTCFLAGS=$lt_LTCFLAGS
21037
21038 # A language-specific compiler.
21039 CC=$lt_compiler_RC
21040
21041 # Is the compiler the GNU C compiler?
21042 with_gcc=$GCC_RC
21043
21044 # An ERE matcher.
21045 EGREP=$lt_EGREP
21046
21047 # The linker used to build libraries.
21048 LD=$lt_LD_RC
21049
21050 # Whether we need hard or soft links.
21051 LN_S=$lt_LN_S
21052
21053 # A BSD-compatible nm program.
21054 NM=$lt_NM
21055
21056 # A symbol stripping program
21057 STRIP=$lt_STRIP
21058
21059 # Used to examine libraries when file_magic_cmd begins "file"
21060 MAGIC_CMD=$MAGIC_CMD
21061
21062 # Used on cygwin: DLL creation program.
21063 DLLTOOL="$DLLTOOL"
21064
21065 # Used on cygwin: object dumper.
21066 OBJDUMP="$OBJDUMP"
21067
21068 # Used on cygwin: assembler.
21069 AS="$AS"
21070
21071 # The name of the directory that contains temporary libtool files.
21072 objdir=$objdir
21073
21074 # How to create reloadable object files.
21075 reload_flag=$lt_reload_flag
21076 reload_cmds=$lt_reload_cmds
21077
21078 # How to pass a linker flag through the compiler.
21079 wl=$lt_lt_prog_compiler_wl_RC
21080
21081 # Object file suffix (normally "o").
21082 objext="$ac_objext"
21083
21084 # Old archive suffix (normally "a").
21085 libext="$libext"
21086
21087 # Shared library suffix (normally ".so").
21088 shrext_cmds='$shrext_cmds'
21089
21090 # Executable file suffix (normally "").
21091 exeext="$exeext"
21092
21093 # Additional compiler flags for building library objects.
21094 pic_flag=$lt_lt_prog_compiler_pic_RC
21095 pic_mode=$pic_mode
21096
21097 # What is the maximum length of a command?
21098 max_cmd_len=$lt_cv_sys_max_cmd_len
21099
21100 # Does compiler simultaneously support -c and -o options?
21101 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21102
21103 # Must we lock files when doing compilation?
21104 need_locks=$lt_need_locks
21105
21106 # Do we need the lib prefix for modules?
21107 need_lib_prefix=$need_lib_prefix
21108
21109 # Do we need a version for libraries?
21110 need_version=$need_version
21111
21112 # Whether dlopen is supported.
21113 dlopen_support=$enable_dlopen
21114
21115 # Whether dlopen of programs is supported.
21116 dlopen_self=$enable_dlopen_self
21117
21118 # Whether dlopen of statically linked programs is supported.
21119 dlopen_self_static=$enable_dlopen_self_static
21120
21121 # Compiler flag to prevent dynamic linking.
21122 link_static_flag=$lt_lt_prog_compiler_static_RC
21123
21124 # Compiler flag to turn off builtin functions.
21125 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21126
21127 # Compiler flag to allow reflexive dlopens.
21128 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21129
21130 # Compiler flag to generate shared objects directly from archives.
21131 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21132
21133 # Compiler flag to generate thread-safe objects.
21134 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21135
21136 # Library versioning type.
21137 version_type=$version_type
21138
21139 # Format of library name prefix.
21140 libname_spec=$lt_libname_spec
21141
21142 # List of archive names. First name is the real one, the rest are links.
21143 # The last name is the one that the linker finds with -lNAME.
21144 library_names_spec=$lt_library_names_spec
21145
21146 # The coded name of the library, if different from the real name.
21147 soname_spec=$lt_soname_spec
21148
21149 # Commands used to build and install an old-style archive.
21150 RANLIB=$lt_RANLIB
21151 old_archive_cmds=$lt_old_archive_cmds_RC
21152 old_postinstall_cmds=$lt_old_postinstall_cmds
21153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21154
21155 # Create an old-style archive from a shared archive.
21156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21157
21158 # Create a temporary old-style archive to link instead of a shared archive.
21159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21160
21161 # Commands used to build and install a shared archive.
21162 archive_cmds=$lt_archive_cmds_RC
21163 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21164 postinstall_cmds=$lt_postinstall_cmds
21165 postuninstall_cmds=$lt_postuninstall_cmds
21166
21167 # Commands used to build a loadable module (assumed same as above if empty)
21168 module_cmds=$lt_module_cmds_RC
21169 module_expsym_cmds=$lt_module_expsym_cmds_RC
21170
21171 # Commands to strip libraries.
21172 old_striplib=$lt_old_striplib
21173 striplib=$lt_striplib
21174
21175 # Dependencies to place before the objects being linked to create a
21176 # shared library.
21177 predep_objects=$lt_predep_objects_RC
21178
21179 # Dependencies to place after the objects being linked to create a
21180 # shared library.
21181 postdep_objects=$lt_postdep_objects_RC
21182
21183 # Dependencies to place before the objects being linked to create a
21184 # shared library.
21185 predeps=$lt_predeps_RC
21186
21187 # Dependencies to place after the objects being linked to create a
21188 # shared library.
21189 postdeps=$lt_postdeps_RC
21190
21191 # The library search path used internally by the compiler when linking
21192 # a shared library.
21193 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21194
21195 # Method to check whether dependent libraries are shared objects.
21196 deplibs_check_method=$lt_deplibs_check_method
21197
21198 # Command to use when deplibs_check_method == file_magic.
21199 file_magic_cmd=$lt_file_magic_cmd
21200
21201 # Flag that allows shared libraries with undefined symbols to be built.
21202 allow_undefined_flag=$lt_allow_undefined_flag_RC
21203
21204 # Flag that forces no undefined symbols.
21205 no_undefined_flag=$lt_no_undefined_flag_RC
21206
21207 # Commands used to finish a libtool library installation in a directory.
21208 finish_cmds=$lt_finish_cmds
21209
21210 # Same as above, but a single script fragment to be evaled but not shown.
21211 finish_eval=$lt_finish_eval
21212
21213 # Take the output of nm and produce a listing of raw symbols and C names.
21214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21215
21216 # Transform the output of nm in a proper C declaration
21217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21218
21219 # Transform the output of nm in a C name address pair
21220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21221
21222 # This is the shared library runtime path variable.
21223 runpath_var=$runpath_var
21224
21225 # This is the shared library path variable.
21226 shlibpath_var=$shlibpath_var
21227
21228 # Is shlibpath searched before the hard-coded library search path?
21229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21230
21231 # How to hardcode a shared library path into an executable.
21232 hardcode_action=$hardcode_action_RC
21233
21234 # Whether we should hardcode library paths into libraries.
21235 hardcode_into_libs=$hardcode_into_libs
21236
21237 # Flag to hardcode \$libdir into a binary during linking.
21238 # This must work even if \$libdir does not exist.
21239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21240
21241 # If ld is used when linking, flag to hardcode \$libdir into
21242 # a binary during linking. This must work even if \$libdir does
21243 # not exist.
21244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21245
21246 # Whether we need a single -rpath flag with a separated argument.
21247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21248
21249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21250 # resulting binary.
21251 hardcode_direct=$hardcode_direct_RC
21252
21253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21254 # resulting binary.
21255 hardcode_minus_L=$hardcode_minus_L_RC
21256
21257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21258 # the resulting binary.
21259 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21260
21261 # Set to yes if building a shared library automatically hardcodes DIR into the library
21262 # and all subsequent libraries and executables linked against it.
21263 hardcode_automatic=$hardcode_automatic_RC
21264
21265 # Variables whose values should be saved in libtool wrapper scripts and
21266 # restored at relink time.
21267 variables_saved_for_relink="$variables_saved_for_relink"
21268
21269 # Whether libtool must link a program against all its dependency libraries.
21270 link_all_deplibs=$link_all_deplibs_RC
21271
21272 # Compile-time system search path for libraries
21273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21274
21275 # Run-time system search path for libraries
21276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21277
21278 # Fix the shell variable \$srcfile for the compiler.
21279 fix_srcfile_path="$fix_srcfile_path_RC"
21280
21281 # Set to yes if exported symbols are required.
21282 always_export_symbols=$always_export_symbols_RC
21283
21284 # The commands to list exported symbols.
21285 export_symbols_cmds=$lt_export_symbols_cmds_RC
21286
21287 # The commands to extract the exported symbol list from a shared archive.
21288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21289
21290 # Symbols that should not be listed in the preloaded symbols.
21291 exclude_expsyms=$lt_exclude_expsyms_RC
21292
21293 # Symbols that must always be exported.
21294 include_expsyms=$lt_include_expsyms_RC
21295
21296 # ### END LIBTOOL TAG CONFIG: $tagname
21297
21298 __EOF__
21299
21300
21301 else
21302 # If there is no Makefile yet, we rely on a make rule to execute
21303 # `config.status --recheck' to rerun these tests and create the
21304 # libtool script then.
21305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21306 if test -f "$ltmain_in"; then
21307 test -f Makefile && make "$ltmain"
21308 fi
21309 fi
21310
21311
21312 ac_ext=c
21313 ac_cpp='$CPP $CPPFLAGS'
21314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21317
21318 CC="$lt_save_CC"
21319
21320 ;;
21321
21322 *)
21323 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21324 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21325 { (exit 1); exit 1; }; }
21326 ;;
21327 esac
21328
21329 # Append the new tag name to the list of available tags.
21330 if test -n "$tagname" ; then
21331 available_tags="$available_tags $tagname"
21332 fi
21333 fi
21334 done
21335 IFS="$lt_save_ifs"
21336
21337 # Now substitute the updated list of available tags.
21338 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21339 mv "${ofile}T" "$ofile"
21340 chmod +x "$ofile"
21341 else
21342 rm -f "${ofile}T"
21343 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21344 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21345 { (exit 1); exit 1; }; }
21346 fi
21347 fi
21348
21349
21350
21351 # This can be used to rebuild libtool when needed
21352 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21353
21354 # Always use our own libtool.
21355 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21356
21357 # Prevent multiple expansion
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379 { echo "$as_me:$LINENO: checking for size_t" >&5
21380 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21381 if test "${ac_cv_type_size_t+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384 cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h. */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h. */
21390 $ac_includes_default
21391 typedef size_t ac__type_new_;
21392 int
21393 main ()
21394 {
21395 if ((ac__type_new_ *) 0)
21396 return 0;
21397 if (sizeof (ac__type_new_))
21398 return 0;
21399 ;
21400 return 0;
21401 }
21402 _ACEOF
21403 rm -f conftest.$ac_objext
21404 if { (ac_try="$ac_compile"
21405 case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_compile") 2>conftest.er1
21411 ac_status=$?
21412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && {
21417 test -z "$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21419 } && test -s conftest.$ac_objext; then
21420 ac_cv_type_size_t=yes
21421 else
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425 ac_cv_type_size_t=no
21426 fi
21427
21428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429 fi
21430 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21431 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21432 if test $ac_cv_type_size_t = yes; then
21433 :
21434 else
21435
21436 cat >>confdefs.h <<_ACEOF
21437 #define size_t unsigned int
21438 _ACEOF
21439
21440 fi
21441
21442
21443
21444 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
21445 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
21446 if test "${ac_cv_header_stdbool_h+set}" = set; then
21447 echo $ECHO_N "(cached) $ECHO_C" >&6
21448 else
21449 cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h. */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455
21456 #include <stdbool.h>
21457 #ifndef bool
21458 "error: bool is not defined"
21459 #endif
21460 #ifndef false
21461 "error: false is not defined"
21462 #endif
21463 #if false
21464 "error: false is not 0"
21465 #endif
21466 #ifndef true
21467 "error: true is not defined"
21468 #endif
21469 #if true != 1
21470 "error: true is not 1"
21471 #endif
21472 #ifndef __bool_true_false_are_defined
21473 "error: __bool_true_false_are_defined is not defined"
21474 #endif
21475
21476 struct s { _Bool s: 1; _Bool t; } s;
21477
21478 char a[true == 1 ? 1 : -1];
21479 char b[false == 0 ? 1 : -1];
21480 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21481 char d[(bool) 0.5 == true ? 1 : -1];
21482 bool e = &s;
21483 char f[(_Bool) 0.0 == false ? 1 : -1];
21484 char g[true];
21485 char h[sizeof (_Bool)];
21486 char i[sizeof s.t];
21487 enum { j = false, k = true, l = false * true, m = true * 256 };
21488 _Bool n[m];
21489 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21490 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21491 # if defined __xlc__ || defined __GNUC__
21492 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
21493 reported by James Lemley on 2005-10-05; see
21494 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
21495 This test is not quite right, since xlc is allowed to
21496 reject this program, as the initializer for xlcbug is
21497 not one of the forms that C requires support for.
21498 However, doing the test right would require a runtime
21499 test, and that would make cross-compilation harder.
21500 Let us hope that IBM fixes the xlc bug, and also adds
21501 support for this kind of constant expression. In the
21502 meantime, this test will reject xlc, which is OK, since
21503 our stdbool.h substitute should suffice. We also test
21504 this with GCC, where it should work, to detect more
21505 quickly whether someone messes up the test in the
21506 future. */
21507 char digs[] = "0123456789";
21508 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
21509 # endif
21510 /* Catch a bug in an HP-UX C compiler. See
21511 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21512 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21513 */
21514 _Bool q = true;
21515 _Bool *pq = &q;
21516
21517 int
21518 main ()
21519 {
21520
21521 *pq |= q;
21522 *pq |= ! q;
21523 /* Refer to every declared value, to avoid compiler optimizations. */
21524 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21525 + !m + !n + !o + !p + !q + !pq);
21526
21527 ;
21528 return 0;
21529 }
21530 _ACEOF
21531 rm -f conftest.$ac_objext
21532 if { (ac_try="$ac_compile"
21533 case "(($ac_try" in
21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21536 esac
21537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21538 (eval "$ac_compile") 2>conftest.er1
21539 ac_status=$?
21540 grep -v '^ *+' conftest.er1 >conftest.err
21541 rm -f conftest.er1
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } && {
21545 test -z "$ac_c_werror_flag" ||
21546 test ! -s conftest.err
21547 } && test -s conftest.$ac_objext; then
21548 ac_cv_header_stdbool_h=yes
21549 else
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 ac_cv_header_stdbool_h=no
21554 fi
21555
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 fi
21558 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
21559 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
21560 { echo "$as_me:$LINENO: checking for _Bool" >&5
21561 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
21562 if test "${ac_cv_type__Bool+set}" = set; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565 cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h. */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 $ac_includes_default
21572 typedef _Bool ac__type_new_;
21573 int
21574 main ()
21575 {
21576 if ((ac__type_new_ *) 0)
21577 return 0;
21578 if (sizeof (ac__type_new_))
21579 return 0;
21580 ;
21581 return 0;
21582 }
21583 _ACEOF
21584 rm -f conftest.$ac_objext
21585 if { (ac_try="$ac_compile"
21586 case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_compile") 2>conftest.er1
21592 ac_status=$?
21593 grep -v '^ *+' conftest.er1 >conftest.err
21594 rm -f conftest.er1
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } && {
21598 test -z "$ac_c_werror_flag" ||
21599 test ! -s conftest.err
21600 } && test -s conftest.$ac_objext; then
21601 ac_cv_type__Bool=yes
21602 else
21603 echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21605
21606 ac_cv_type__Bool=no
21607 fi
21608
21609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610 fi
21611 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
21612 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
21613 if test $ac_cv_type__Bool = yes; then
21614
21615 cat >>confdefs.h <<_ACEOF
21616 #define HAVE__BOOL 1
21617 _ACEOF
21618
21619
21620 fi
21621
21622 if test $ac_cv_header_stdbool_h = yes; then
21623
21624 cat >>confdefs.h <<\_ACEOF
21625 #define HAVE_STDBOOL_H 1
21626 _ACEOF
21627
21628 fi
21629
21630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21632 if test "${ac_cv_header_stdc+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 else
21635 cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h. */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 #include <stdlib.h>
21642 #include <stdarg.h>
21643 #include <string.h>
21644 #include <float.h>
21645
21646 int
21647 main ()
21648 {
21649
21650 ;
21651 return 0;
21652 }
21653 _ACEOF
21654 rm -f conftest.$ac_objext
21655 if { (ac_try="$ac_compile"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21659 esac
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_compile") 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest.$ac_objext; then
21671 ac_cv_header_stdc=yes
21672 else
21673 echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21675
21676 ac_cv_header_stdc=no
21677 fi
21678
21679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21680
21681 if test $ac_cv_header_stdc = yes; then
21682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21683 cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h. */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689 #include <string.h>
21690
21691 _ACEOF
21692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21693 $EGREP "memchr" >/dev/null 2>&1; then
21694 :
21695 else
21696 ac_cv_header_stdc=no
21697 fi
21698 rm -f conftest*
21699
21700 fi
21701
21702 if test $ac_cv_header_stdc = yes; then
21703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21704 cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h. */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 #include <stdlib.h>
21711
21712 _ACEOF
21713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21714 $EGREP "free" >/dev/null 2>&1; then
21715 :
21716 else
21717 ac_cv_header_stdc=no
21718 fi
21719 rm -f conftest*
21720
21721 fi
21722
21723 if test $ac_cv_header_stdc = yes; then
21724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21725 if test "$cross_compiling" = yes; then
21726 :
21727 else
21728 cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h. */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21734 #include <ctype.h>
21735 #include <stdlib.h>
21736 #if ((' ' & 0x0FF) == 0x020)
21737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21739 #else
21740 # define ISLOWER(c) \
21741 (('a' <= (c) && (c) <= 'i') \
21742 || ('j' <= (c) && (c) <= 'r') \
21743 || ('s' <= (c) && (c) <= 'z'))
21744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21745 #endif
21746
21747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21748 int
21749 main ()
21750 {
21751 int i;
21752 for (i = 0; i < 256; i++)
21753 if (XOR (islower (i), ISLOWER (i))
21754 || toupper (i) != TOUPPER (i))
21755 return 2;
21756 return 0;
21757 }
21758 _ACEOF
21759 rm -f conftest$ac_exeext
21760 if { (ac_try="$ac_link"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21764 esac
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_link") 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21770 { (case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_try") 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; }; then
21779 :
21780 else
21781 echo "$as_me: program exited with status $ac_status" >&5
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785 ( exit $ac_status )
21786 ac_cv_header_stdc=no
21787 fi
21788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21789 fi
21790
21791
21792 fi
21793 fi
21794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21796 if test $ac_cv_header_stdc = yes; then
21797
21798 cat >>confdefs.h <<\_ACEOF
21799 #define STDC_HEADERS 1
21800 _ACEOF
21801
21802 fi
21803
21804
21805
21806
21807
21808
21809 for ac_header in sys/endian.h sys/stat.h sys/types.h sys/mman.h
21810 do
21811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21817 fi
21818 ac_res=`eval echo '${'$as_ac_Header'}'`
21819 { echo "$as_me:$LINENO: result: $ac_res" >&5
21820 echo "${ECHO_T}$ac_res" >&6; }
21821 else
21822 # Is the header compilable?
21823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 $ac_includes_default
21832 #include <$ac_header>
21833 _ACEOF
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
21851 ac_header_compiler=yes
21852 else
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ac_header_compiler=no
21857 fi
21858
21859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21861 echo "${ECHO_T}$ac_header_compiler" >&6; }
21862
21863 # Is the header present?
21864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21866 cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h. */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21872 #include <$ac_header>
21873 _ACEOF
21874 if { (ac_try="$ac_cpp conftest.$ac_ext"
21875 case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21878 esac
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21881 ac_status=$?
21882 grep -v '^ *+' conftest.er1 >conftest.err
21883 rm -f conftest.er1
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } >/dev/null && {
21887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21889 }; then
21890 ac_header_preproc=yes
21891 else
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895 ac_header_preproc=no
21896 fi
21897
21898 rm -f conftest.err conftest.$ac_ext
21899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21900 echo "${ECHO_T}$ac_header_preproc" >&6; }
21901
21902 # So? What about this header?
21903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21904 yes:no: )
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21909 ac_header_preproc=yes
21910 ;;
21911 no:yes:* )
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21924 ( cat <<\_ASBOX
21925 ## ------------------------------------------ ##
21926 ## Report this to [email protected] ##
21927 ## ------------------------------------------ ##
21928 _ASBOX
21929 ) | sed "s/^/$as_me: WARNING: /" >&2
21930 ;;
21931 esac
21932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21935 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 else
21937 eval "$as_ac_Header=\$ac_header_preproc"
21938 fi
21939 ac_res=`eval echo '${'$as_ac_Header'}'`
21940 { echo "$as_me:$LINENO: result: $ac_res" >&5
21941 echo "${ECHO_T}$ac_res" >&6; }
21942
21943 fi
21944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21945 cat >>confdefs.h <<_ACEOF
21946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21947 _ACEOF
21948
21949 fi
21950
21951 done
21952
21953
21954
21955
21956
21957
21958 for ac_header in assert.h byteswap.h dlfcn.h ctype.h errno.h
21959 do
21960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 fi
21967 ac_res=`eval echo '${'$as_ac_Header'}'`
21968 { echo "$as_me:$LINENO: result: $ac_res" >&5
21969 echo "${ECHO_T}$ac_res" >&6; }
21970 else
21971 # Is the header compilable?
21972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 $ac_includes_default
21981 #include <$ac_header>
21982 _ACEOF
21983 rm -f conftest.$ac_objext
21984 if { (ac_try="$ac_compile"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_compile") 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest.$ac_objext; then
22000 ac_header_compiler=yes
22001 else
22002 echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22004
22005 ac_header_compiler=no
22006 fi
22007
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22010 echo "${ECHO_T}$ac_header_compiler" >&6; }
22011
22012 # Is the header present?
22013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22015 cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h. */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22021 #include <$ac_header>
22022 _ACEOF
22023 if { (ac_try="$ac_cpp conftest.$ac_ext"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22030 ac_status=$?
22031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } >/dev/null && {
22036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22037 test ! -s conftest.err
22038 }; then
22039 ac_header_preproc=yes
22040 else
22041 echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22043
22044 ac_header_preproc=no
22045 fi
22046
22047 rm -f conftest.err conftest.$ac_ext
22048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22049 echo "${ECHO_T}$ac_header_preproc" >&6; }
22050
22051 # So? What about this header?
22052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22053 yes:no: )
22054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22058 ac_header_preproc=yes
22059 ;;
22060 no:yes:* )
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22073 ( cat <<\_ASBOX
22074 ## ------------------------------------------ ##
22075 ## Report this to [email protected] ##
22076 ## ------------------------------------------ ##
22077 _ASBOX
22078 ) | sed "s/^/$as_me: WARNING: /" >&2
22079 ;;
22080 esac
22081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22086 eval "$as_ac_Header=\$ac_header_preproc"
22087 fi
22088 ac_res=`eval echo '${'$as_ac_Header'}'`
22089 { echo "$as_me:$LINENO: result: $ac_res" >&5
22090 echo "${ECHO_T}$ac_res" >&6; }
22091
22092 fi
22093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22094 cat >>confdefs.h <<_ACEOF
22095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22096 _ACEOF
22097
22098 fi
22099
22100 done
22101
22102
22103
22104
22105
22106 for ac_header in endian.h fcntl.h inttypes.h limits.h
22107 do
22108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22114 fi
22115 ac_res=`eval echo '${'$as_ac_Header'}'`
22116 { echo "$as_me:$LINENO: result: $ac_res" >&5
22117 echo "${ECHO_T}$ac_res" >&6; }
22118 else
22119 # Is the header compilable?
22120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h. */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 $ac_includes_default
22129 #include <$ac_header>
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_compile") 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest.$ac_objext; then
22148 ac_header_compiler=yes
22149 else
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22152
22153 ac_header_compiler=no
22154 fi
22155
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22158 echo "${ECHO_T}$ac_header_compiler" >&6; }
22159
22160 # Is the header present?
22161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22163 cat >conftest.$ac_ext <<_ACEOF
22164 /* confdefs.h. */
22165 _ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22169 #include <$ac_header>
22170 _ACEOF
22171 if { (ac_try="$ac_cpp conftest.$ac_ext"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22178 ac_status=$?
22179 grep -v '^ *+' conftest.er1 >conftest.err
22180 rm -f conftest.er1
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } >/dev/null && {
22184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 }; then
22187 ac_header_preproc=yes
22188 else
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22191
22192 ac_header_preproc=no
22193 fi
22194
22195 rm -f conftest.err conftest.$ac_ext
22196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22197 echo "${ECHO_T}$ac_header_preproc" >&6; }
22198
22199 # So? What about this header?
22200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22201 yes:no: )
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22206 ac_header_preproc=yes
22207 ;;
22208 no:yes:* )
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22221 ( cat <<\_ASBOX
22222 ## ------------------------------------------ ##
22223 ## Report this to [email protected] ##
22224 ## ------------------------------------------ ##
22225 _ASBOX
22226 ) | sed "s/^/$as_me: WARNING: /" >&2
22227 ;;
22228 esac
22229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234 eval "$as_ac_Header=\$ac_header_preproc"
22235 fi
22236 ac_res=`eval echo '${'$as_ac_Header'}'`
22237 { echo "$as_me:$LINENO: result: $ac_res" >&5
22238 echo "${ECHO_T}$ac_res" >&6; }
22239
22240 fi
22241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22242 cat >>confdefs.h <<_ACEOF
22243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22244 _ACEOF
22245
22246 fi
22247
22248 done
22249
22250
22251
22252
22253
22254 for ac_header in malloc.h unistd.h utime.h values.h
22255 do
22256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22262 fi
22263 ac_res=`eval echo '${'$as_ac_Header'}'`
22264 { echo "$as_me:$LINENO: result: $ac_res" >&5
22265 echo "${ECHO_T}$ac_res" >&6; }
22266 else
22267 # Is the header compilable?
22268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 $ac_includes_default
22277 #include <$ac_header>
22278 _ACEOF
22279 rm -f conftest.$ac_objext
22280 if { (ac_try="$ac_compile"
22281 case "(($ac_try" in
22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22284 esac
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_compile") 2>conftest.er1
22287 ac_status=$?
22288 grep -v '^ *+' conftest.er1 >conftest.err
22289 rm -f conftest.er1
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest.$ac_objext; then
22296 ac_header_compiler=yes
22297 else
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301 ac_header_compiler=no
22302 fi
22303
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22306 echo "${ECHO_T}$ac_header_compiler" >&6; }
22307
22308 # Is the header present?
22309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22311 cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h. */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 #include <$ac_header>
22318 _ACEOF
22319 if { (ac_try="$ac_cpp conftest.$ac_ext"
22320 case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22323 esac
22324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22326 ac_status=$?
22327 grep -v '^ *+' conftest.er1 >conftest.err
22328 rm -f conftest.er1
22329 cat conftest.err >&5
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } >/dev/null && {
22332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22333 test ! -s conftest.err
22334 }; then
22335 ac_header_preproc=yes
22336 else
22337 echo "$as_me: failed program was:" >&5
22338 sed 's/^/| /' conftest.$ac_ext >&5
22339
22340 ac_header_preproc=no
22341 fi
22342
22343 rm -f conftest.err conftest.$ac_ext
22344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22345 echo "${ECHO_T}$ac_header_preproc" >&6; }
22346
22347 # So? What about this header?
22348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22349 yes:no: )
22350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22354 ac_header_preproc=yes
22355 ;;
22356 no:yes:* )
22357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22369 ( cat <<\_ASBOX
22370 ## ------------------------------------------ ##
22371 ## Report this to [email protected] ##
22372 ## ------------------------------------------ ##
22373 _ASBOX
22374 ) | sed "s/^/$as_me: WARNING: /" >&2
22375 ;;
22376 esac
22377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382 eval "$as_ac_Header=\$ac_header_preproc"
22383 fi
22384 ac_res=`eval echo '${'$as_ac_Header'}'`
22385 { echo "$as_me:$LINENO: result: $ac_res" >&5
22386 echo "${ECHO_T}$ac_res" >&6; }
22387
22388 fi
22389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22390 cat >>confdefs.h <<_ACEOF
22391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22392 _ACEOF
22393
22394 fi
22395
22396 done
22397
22398
22399
22400
22401
22402
22403
22404 for ac_header in signal.h stdint.h stdio.h stdlib.h string.h strings.h
22405 do
22406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22412 fi
22413 ac_res=`eval echo '${'$as_ac_Header'}'`
22414 { echo "$as_me:$LINENO: result: $ac_res" >&5
22415 echo "${ECHO_T}$ac_res" >&6; }
22416 else
22417 # Is the header compilable?
22418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 $ac_includes_default
22427 #include <$ac_header>
22428 _ACEOF
22429 rm -f conftest.$ac_objext
22430 if { (ac_try="$ac_compile"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434 esac
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_compile") 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && {
22443 test -z "$ac_c_werror_flag" ||
22444 test ! -s conftest.err
22445 } && test -s conftest.$ac_objext; then
22446 ac_header_compiler=yes
22447 else
22448 echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22450
22451 ac_header_compiler=no
22452 fi
22453
22454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22456 echo "${ECHO_T}$ac_header_compiler" >&6; }
22457
22458 # Is the header present?
22459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h. */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include <$ac_header>
22468 _ACEOF
22469 if { (ac_try="$ac_cpp conftest.$ac_ext"
22470 case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22476 ac_status=$?
22477 grep -v '^ *+' conftest.er1 >conftest.err
22478 rm -f conftest.er1
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } >/dev/null && {
22482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 }; then
22485 ac_header_preproc=yes
22486 else
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 ac_header_preproc=no
22491 fi
22492
22493 rm -f conftest.err conftest.$ac_ext
22494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22495 echo "${ECHO_T}$ac_header_preproc" >&6; }
22496
22497 # So? What about this header?
22498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22499 yes:no: )
22500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22504 ac_header_preproc=yes
22505 ;;
22506 no:yes:* )
22507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22519 ( cat <<\_ASBOX
22520 ## ------------------------------------------ ##
22521 ## Report this to [email protected] ##
22522 ## ------------------------------------------ ##
22523 _ASBOX
22524 ) | sed "s/^/$as_me: WARNING: /" >&2
22525 ;;
22526 esac
22527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532 eval "$as_ac_Header=\$ac_header_preproc"
22533 fi
22534 ac_res=`eval echo '${'$as_ac_Header'}'`
22535 { echo "$as_me:$LINENO: result: $ac_res" >&5
22536 echo "${ECHO_T}$ac_res" >&6; }
22537
22538 fi
22539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22540 cat >>confdefs.h <<_ACEOF
22541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22542 _ACEOF
22543
22544 fi
22545
22546 done
22547
22548
22549
22550
22551 for ac_header in stdlib.h
22552 do
22553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22559 fi
22560 ac_res=`eval echo '${'$as_ac_Header'}'`
22561 { echo "$as_me:$LINENO: result: $ac_res" >&5
22562 echo "${ECHO_T}$ac_res" >&6; }
22563 else
22564 # Is the header compilable?
22565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h. */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22573 $ac_includes_default
22574 #include <$ac_header>
22575 _ACEOF
22576 rm -f conftest.$ac_objext
22577 if { (ac_try="$ac_compile"
22578 case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22581 esac
22582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22583 (eval "$ac_compile") 2>conftest.er1
22584 ac_status=$?
22585 grep -v '^ *+' conftest.er1 >conftest.err
22586 rm -f conftest.er1
22587 cat conftest.err >&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); } && {
22590 test -z "$ac_c_werror_flag" ||
22591 test ! -s conftest.err
22592 } && test -s conftest.$ac_objext; then
22593 ac_header_compiler=yes
22594 else
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22597
22598 ac_header_compiler=no
22599 fi
22600
22601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22603 echo "${ECHO_T}$ac_header_compiler" >&6; }
22604
22605 # Is the header present?
22606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22608 cat >conftest.$ac_ext <<_ACEOF
22609 /* confdefs.h. */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614 #include <$ac_header>
22615 _ACEOF
22616 if { (ac_try="$ac_cpp conftest.$ac_ext"
22617 case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22623 ac_status=$?
22624 grep -v '^ *+' conftest.er1 >conftest.err
22625 rm -f conftest.er1
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } >/dev/null && {
22629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 }; then
22632 ac_header_preproc=yes
22633 else
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637 ac_header_preproc=no
22638 fi
22639
22640 rm -f conftest.err conftest.$ac_ext
22641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22642 echo "${ECHO_T}$ac_header_preproc" >&6; }
22643
22644 # So? What about this header?
22645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22646 yes:no: )
22647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22651 ac_header_preproc=yes
22652 ;;
22653 no:yes:* )
22654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22666 ( cat <<\_ASBOX
22667 ## ------------------------------------------ ##
22668 ## Report this to [email protected] ##
22669 ## ------------------------------------------ ##
22670 _ASBOX
22671 ) | sed "s/^/$as_me: WARNING: /" >&2
22672 ;;
22673 esac
22674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679 eval "$as_ac_Header=\$ac_header_preproc"
22680 fi
22681 ac_res=`eval echo '${'$as_ac_Header'}'`
22682 { echo "$as_me:$LINENO: result: $ac_res" >&5
22683 echo "${ECHO_T}$ac_res" >&6; }
22684
22685 fi
22686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22687 cat >>confdefs.h <<_ACEOF
22688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22689 _ACEOF
22690
22691 fi
22692
22693 done
22694
22695 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22696 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22697 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22698 echo $ECHO_N "(cached) $ECHO_C" >&6
22699 else
22700 if test "$cross_compiling" = yes; then
22701 ac_cv_func_malloc_0_nonnull=no
22702 else
22703 cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h. */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22709 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22710 # include <stdlib.h>
22711 #else
22712 char *malloc ();
22713 #endif
22714
22715 int
22716 main ()
22717 {
22718 return ! malloc (0);
22719 ;
22720 return 0;
22721 }
22722 _ACEOF
22723 rm -f conftest$ac_exeext
22724 if { (ac_try="$ac_link"
22725 case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_link") 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22734 { (case "(($ac_try" in
22735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22737 esac
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739 (eval "$ac_try") 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22743 ac_cv_func_malloc_0_nonnull=yes
22744 else
22745 echo "$as_me: program exited with status $ac_status" >&5
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 ( exit $ac_status )
22750 ac_cv_func_malloc_0_nonnull=no
22751 fi
22752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22753 fi
22754
22755
22756 fi
22757 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22758 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22759 if test $ac_cv_func_malloc_0_nonnull = yes; then
22760
22761 cat >>confdefs.h <<\_ACEOF
22762 #define HAVE_MALLOC 1
22763 _ACEOF
22764
22765 else
22766 cat >>confdefs.h <<\_ACEOF
22767 #define HAVE_MALLOC 0
22768 _ACEOF
22769
22770 case " $LIBOBJS " in
22771 *" malloc.$ac_objext "* ) ;;
22772 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22773 ;;
22774 esac
22775
22776
22777 cat >>confdefs.h <<\_ACEOF
22778 #define malloc rpl_malloc
22779 _ACEOF
22780
22781 fi
22782
22783
22784
22785 { echo "$as_me:$LINENO: checking for working memcmp" >&5
22786 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
22787 if test "${ac_cv_func_memcmp_working+set}" = set; then
22788 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 else
22790 if test "$cross_compiling" = yes; then
22791 ac_cv_func_memcmp_working=no
22792 else
22793 cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h. */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 $ac_includes_default
22800 int
22801 main ()
22802 {
22803
22804 /* Some versions of memcmp are not 8-bit clean. */
22805 char c0 = '\100', c1 = '\200', c2 = '\201';
22806 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22807 return 1;
22808
22809 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22810 or more and with at least one buffer not starting on a 4-byte boundary.
22811 William Lewis provided this test program. */
22812 {
22813 char foo[21];
22814 char bar[21];
22815 int i;
22816 for (i = 0; i < 4; i++)
22817 {
22818 char *a = foo + i;
22819 char *b = bar + i;
22820 strcpy (a, "--------01111111");
22821 strcpy (b, "--------10000000");
22822 if (memcmp (a, b, 16) >= 0)
22823 return 1;
22824 }
22825 return 0;
22826 }
22827
22828 ;
22829 return 0;
22830 }
22831 _ACEOF
22832 rm -f conftest$ac_exeext
22833 if { (ac_try="$ac_link"
22834 case "(($ac_try" in
22835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22837 esac
22838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839 (eval "$ac_link") 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22843 { (case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_try") 2>&5
22849 ac_status=$?
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; }; then
22852 ac_cv_func_memcmp_working=yes
22853 else
22854 echo "$as_me: program exited with status $ac_status" >&5
22855 echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22857
22858 ( exit $ac_status )
22859 ac_cv_func_memcmp_working=no
22860 fi
22861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22862 fi
22863
22864
22865 fi
22866 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22867 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
22868 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22869 *" memcmp.$ac_objext "* ) ;;
22870 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22871 ;;
22872 esac
22873
22874
22875
22876
22877
22878 for ac_func in bcopy bzero
22879 do
22880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 else
22886 cat >conftest.$ac_ext <<_ACEOF
22887 /* confdefs.h. */
22888 _ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h. */
22892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22894 #define $ac_func innocuous_$ac_func
22895
22896 /* System header to define __stub macros and hopefully few prototypes,
22897 which can conflict with char $ac_func (); below.
22898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22899 <limits.h> exists even on freestanding compilers. */
22900
22901 #ifdef __STDC__
22902 # include <limits.h>
22903 #else
22904 # include <assert.h>
22905 #endif
22906
22907 #undef $ac_func
22908
22909 /* Override any GCC internal prototype to avoid an error.
22910 Use char because int might match the return type of a GCC
22911 builtin and then its argument prototype would still apply. */
22912 #ifdef __cplusplus
22913 extern "C"
22914 #endif
22915 char $ac_func ();
22916 /* The GNU C library defines this for functions which it implements
22917 to always fail with ENOSYS. Some functions are actually named
22918 something starting with __ and the normal name is an alias. */
22919 #if defined __stub_$ac_func || defined __stub___$ac_func
22920 choke me
22921 #endif
22922
22923 int
22924 main ()
22925 {
22926 return $ac_func ();
22927 ;
22928 return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest.$ac_objext conftest$ac_exeext
22932 if { (ac_try="$ac_link"
22933 case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_link") 2>conftest.er1
22939 ac_status=$?
22940 grep -v '^ *+' conftest.er1 >conftest.err
22941 rm -f conftest.er1
22942 cat conftest.err >&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } && {
22945 test -z "$ac_c_werror_flag" ||
22946 test ! -s conftest.err
22947 } && test -s conftest$ac_exeext &&
22948 $as_test_x conftest$ac_exeext; then
22949 eval "$as_ac_var=yes"
22950 else
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954 eval "$as_ac_var=no"
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958 conftest$ac_exeext conftest.$ac_ext
22959 fi
22960 ac_res=`eval echo '${'$as_ac_var'}'`
22961 { echo "$as_me:$LINENO: result: $ac_res" >&5
22962 echo "${ECHO_T}$ac_res" >&6; }
22963 if test `eval echo '${'$as_ac_var'}'` = yes; then
22964 cat >>confdefs.h <<_ACEOF
22965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22966 _ACEOF
22967
22968 fi
22969 done
22970
22971
22972
22973 for ac_func in fcntl fsync
22974 do
22975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22979 echo $ECHO_N "(cached) $ECHO_C" >&6
22980 else
22981 cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h. */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22989 #define $ac_func innocuous_$ac_func
22990
22991 /* System header to define __stub macros and hopefully few prototypes,
22992 which can conflict with char $ac_func (); below.
22993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22994 <limits.h> exists even on freestanding compilers. */
22995
22996 #ifdef __STDC__
22997 # include <limits.h>
22998 #else
22999 # include <assert.h>
23000 #endif
23001
23002 #undef $ac_func
23003
23004 /* Override any GCC internal prototype to avoid an error.
23005 Use char because int might match the return type of a GCC
23006 builtin and then its argument prototype would still apply. */
23007 #ifdef __cplusplus
23008 extern "C"
23009 #endif
23010 char $ac_func ();
23011 /* The GNU C library defines this for functions which it implements
23012 to always fail with ENOSYS. Some functions are actually named
23013 something starting with __ and the normal name is an alias. */
23014 #if defined __stub_$ac_func || defined __stub___$ac_func
23015 choke me
23016 #endif
23017
23018 int
23019 main ()
23020 {
23021 return $ac_func ();
23022 ;
23023 return 0;
23024 }
23025 _ACEOF
23026 rm -f conftest.$ac_objext conftest$ac_exeext
23027 if { (ac_try="$ac_link"
23028 case "(($ac_try" in
23029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030 *) ac_try_echo=$ac_try;;
23031 esac
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033 (eval "$ac_link") 2>conftest.er1
23034 ac_status=$?
23035 grep -v '^ *+' conftest.er1 >conftest.err
23036 rm -f conftest.er1
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } && {
23040 test -z "$ac_c_werror_flag" ||
23041 test ! -s conftest.err
23042 } && test -s conftest$ac_exeext &&
23043 $as_test_x conftest$ac_exeext; then
23044 eval "$as_ac_var=yes"
23045 else
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 eval "$as_ac_var=no"
23050 fi
23051
23052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23053 conftest$ac_exeext conftest.$ac_ext
23054 fi
23055 ac_res=`eval echo '${'$as_ac_var'}'`
23056 { echo "$as_me:$LINENO: result: $ac_res" >&5
23057 echo "${ECHO_T}$ac_res" >&6; }
23058 if test `eval echo '${'$as_ac_var'}'` = yes; then
23059 cat >>confdefs.h <<_ACEOF
23060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23061 _ACEOF
23062
23063 fi
23064 done
23065
23066
23067
23068
23069 for ac_func in memset memmove mlock
23070 do
23071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23076 else
23077 cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h. */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23085 #define $ac_func innocuous_$ac_func
23086
23087 /* System header to define __stub macros and hopefully few prototypes,
23088 which can conflict with char $ac_func (); below.
23089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23090 <limits.h> exists even on freestanding compilers. */
23091
23092 #ifdef __STDC__
23093 # include <limits.h>
23094 #else
23095 # include <assert.h>
23096 #endif
23097
23098 #undef $ac_func
23099
23100 /* Override any GCC internal prototype to avoid an error.
23101 Use char because int might match the return type of a GCC
23102 builtin and then its argument prototype would still apply. */
23103 #ifdef __cplusplus
23104 extern "C"
23105 #endif
23106 char $ac_func ();
23107 /* The GNU C library defines this for functions which it implements
23108 to always fail with ENOSYS. Some functions are actually named
23109 something starting with __ and the normal name is an alias. */
23110 #if defined __stub_$ac_func || defined __stub___$ac_func
23111 choke me
23112 #endif
23113
23114 int
23115 main ()
23116 {
23117 return $ac_func ();
23118 ;
23119 return 0;
23120 }
23121 _ACEOF
23122 rm -f conftest.$ac_objext conftest$ac_exeext
23123 if { (ac_try="$ac_link"
23124 case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_link") 2>conftest.er1
23130 ac_status=$?
23131 grep -v '^ *+' conftest.er1 >conftest.err
23132 rm -f conftest.er1
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest$ac_exeext &&
23139 $as_test_x conftest$ac_exeext; then
23140 eval "$as_ac_var=yes"
23141 else
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23144
23145 eval "$as_ac_var=no"
23146 fi
23147
23148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23149 conftest$ac_exeext conftest.$ac_ext
23150 fi
23151 ac_res=`eval echo '${'$as_ac_var'}'`
23152 { echo "$as_me:$LINENO: result: $ac_res" >&5
23153 echo "${ECHO_T}$ac_res" >&6; }
23154 if test `eval echo '${'$as_ac_var'}'` = yes; then
23155 cat >>confdefs.h <<_ACEOF
23156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23157 _ACEOF
23158
23159 fi
23160 done
23161
23162
23163
23164 for ac_func in sigaction signal
23165 do
23166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23170 echo $ECHO_N "(cached) $ECHO_C" >&6
23171 else
23172 cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h. */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23180 #define $ac_func innocuous_$ac_func
23181
23182 /* System header to define __stub macros and hopefully few prototypes,
23183 which can conflict with char $ac_func (); below.
23184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23185 <limits.h> exists even on freestanding compilers. */
23186
23187 #ifdef __STDC__
23188 # include <limits.h>
23189 #else
23190 # include <assert.h>
23191 #endif
23192
23193 #undef $ac_func
23194
23195 /* Override any GCC internal prototype to avoid an error.
23196 Use char because int might match the return type of a GCC
23197 builtin and then its argument prototype would still apply. */
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 char $ac_func ();
23202 /* The GNU C library defines this for functions which it implements
23203 to always fail with ENOSYS. Some functions are actually named
23204 something starting with __ and the normal name is an alias. */
23205 #if defined __stub_$ac_func || defined __stub___$ac_func
23206 choke me
23207 #endif
23208
23209 int
23210 main ()
23211 {
23212 return $ac_func ();
23213 ;
23214 return 0;
23215 }
23216 _ACEOF
23217 rm -f conftest.$ac_objext conftest$ac_exeext
23218 if { (ac_try="$ac_link"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_link") 2>conftest.er1
23225 ac_status=$?
23226 grep -v '^ *+' conftest.er1 >conftest.err
23227 rm -f conftest.er1
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest$ac_exeext &&
23234 $as_test_x conftest$ac_exeext; then
23235 eval "$as_ac_var=yes"
23236 else
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240 eval "$as_ac_var=no"
23241 fi
23242
23243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23244 conftest$ac_exeext conftest.$ac_ext
23245 fi
23246 ac_res=`eval echo '${'$as_ac_var'}'`
23247 { echo "$as_me:$LINENO: result: $ac_res" >&5
23248 echo "${ECHO_T}$ac_res" >&6; }
23249 if test `eval echo '${'$as_ac_var'}'` = yes; then
23250 cat >>confdefs.h <<_ACEOF
23251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23252 _ACEOF
23253
23254 fi
23255 done
23256
23257
23258
23259 for ac_func in readdir_r readdir
23260 do
23261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23266 else
23267 cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h. */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23275 #define $ac_func innocuous_$ac_func
23276
23277 /* System header to define __stub macros and hopefully few prototypes,
23278 which can conflict with char $ac_func (); below.
23279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23280 <limits.h> exists even on freestanding compilers. */
23281
23282 #ifdef __STDC__
23283 # include <limits.h>
23284 #else
23285 # include <assert.h>
23286 #endif
23287
23288 #undef $ac_func
23289
23290 /* Override any GCC internal prototype to avoid an error.
23291 Use char because int might match the return type of a GCC
23292 builtin and then its argument prototype would still apply. */
23293 #ifdef __cplusplus
23294 extern "C"
23295 #endif
23296 char $ac_func ();
23297 /* The GNU C library defines this for functions which it implements
23298 to always fail with ENOSYS. Some functions are actually named
23299 something starting with __ and the normal name is an alias. */
23300 #if defined __stub_$ac_func || defined __stub___$ac_func
23301 choke me
23302 #endif
23303
23304 int
23305 main ()
23306 {
23307 return $ac_func ();
23308 ;
23309 return 0;
23310 }
23311 _ACEOF
23312 rm -f conftest.$ac_objext conftest$ac_exeext
23313 if { (ac_try="$ac_link"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23317 esac
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_link") 2>conftest.er1
23320 ac_status=$?
23321 grep -v '^ *+' conftest.er1 >conftest.err
23322 rm -f conftest.er1
23323 cat conftest.err >&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); } && {
23326 test -z "$ac_c_werror_flag" ||
23327 test ! -s conftest.err
23328 } && test -s conftest$ac_exeext &&
23329 $as_test_x conftest$ac_exeext; then
23330 eval "$as_ac_var=yes"
23331 else
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23334
23335 eval "$as_ac_var=no"
23336 fi
23337
23338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23339 conftest$ac_exeext conftest.$ac_ext
23340 fi
23341 ac_res=`eval echo '${'$as_ac_var'}'`
23342 { echo "$as_me:$LINENO: result: $ac_res" >&5
23343 echo "${ECHO_T}$ac_res" >&6; }
23344 if test `eval echo '${'$as_ac_var'}'` = yes; then
23345 cat >>confdefs.h <<_ACEOF
23346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23347 _ACEOF
23348
23349 fi
23350 done
23351
23352
23353 for ac_func in strtol
23354 do
23355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361 cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h. */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23369 #define $ac_func innocuous_$ac_func
23370
23371 /* System header to define __stub macros and hopefully few prototypes,
23372 which can conflict with char $ac_func (); below.
23373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23374 <limits.h> exists even on freestanding compilers. */
23375
23376 #ifdef __STDC__
23377 # include <limits.h>
23378 #else
23379 # include <assert.h>
23380 #endif
23381
23382 #undef $ac_func
23383
23384 /* Override any GCC internal prototype to avoid an error.
23385 Use char because int might match the return type of a GCC
23386 builtin and then its argument prototype would still apply. */
23387 #ifdef __cplusplus
23388 extern "C"
23389 #endif
23390 char $ac_func ();
23391 /* The GNU C library defines this for functions which it implements
23392 to always fail with ENOSYS. Some functions are actually named
23393 something starting with __ and the normal name is an alias. */
23394 #if defined __stub_$ac_func || defined __stub___$ac_func
23395 choke me
23396 #endif
23397
23398 int
23399 main ()
23400 {
23401 return $ac_func ();
23402 ;
23403 return 0;
23404 }
23405 _ACEOF
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (ac_try="$ac_link"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413 (eval "$ac_link") 2>conftest.er1
23414 ac_status=$?
23415 grep -v '^ *+' conftest.er1 >conftest.err
23416 rm -f conftest.er1
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest$ac_exeext &&
23423 $as_test_x conftest$ac_exeext; then
23424 eval "$as_ac_var=yes"
23425 else
23426 echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23428
23429 eval "$as_ac_var=no"
23430 fi
23431
23432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23433 conftest$ac_exeext conftest.$ac_ext
23434 fi
23435 ac_res=`eval echo '${'$as_ac_var'}'`
23436 { echo "$as_me:$LINENO: result: $ac_res" >&5
23437 echo "${ECHO_T}$ac_res" >&6; }
23438 if test `eval echo '${'$as_ac_var'}'` = yes; then
23439 cat >>confdefs.h <<_ACEOF
23440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23441 _ACEOF
23442
23443 fi
23444 done
23445
23446
23447
23448 for ac_func in lstat stat
23449 do
23450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23455 else
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h. */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23464 #define $ac_func innocuous_$ac_func
23465
23466 /* System header to define __stub macros and hopefully few prototypes,
23467 which can conflict with char $ac_func (); below.
23468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23469 <limits.h> exists even on freestanding compilers. */
23470
23471 #ifdef __STDC__
23472 # include <limits.h>
23473 #else
23474 # include <assert.h>
23475 #endif
23476
23477 #undef $ac_func
23478
23479 /* Override any GCC internal prototype to avoid an error.
23480 Use char because int might match the return type of a GCC
23481 builtin and then its argument prototype would still apply. */
23482 #ifdef __cplusplus
23483 extern "C"
23484 #endif
23485 char $ac_func ();
23486 /* The GNU C library defines this for functions which it implements
23487 to always fail with ENOSYS. Some functions are actually named
23488 something starting with __ and the normal name is an alias. */
23489 #if defined __stub_$ac_func || defined __stub___$ac_func
23490 choke me
23491 #endif
23492
23493 int
23494 main ()
23495 {
23496 return $ac_func ();
23497 ;
23498 return 0;
23499 }
23500 _ACEOF
23501 rm -f conftest.$ac_objext conftest$ac_exeext
23502 if { (ac_try="$ac_link"
23503 case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23506 esac
23507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23508 (eval "$ac_link") 2>conftest.er1
23509 ac_status=$?
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } && {
23515 test -z "$ac_c_werror_flag" ||
23516 test ! -s conftest.err
23517 } && test -s conftest$ac_exeext &&
23518 $as_test_x conftest$ac_exeext; then
23519 eval "$as_ac_var=yes"
23520 else
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23523
23524 eval "$as_ac_var=no"
23525 fi
23526
23527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23528 conftest$ac_exeext conftest.$ac_ext
23529 fi
23530 ac_res=`eval echo '${'$as_ac_var'}'`
23531 { echo "$as_me:$LINENO: result: $ac_res" >&5
23532 echo "${ECHO_T}$ac_res" >&6; }
23533 if test `eval echo '${'$as_ac_var'}'` = yes; then
23534 cat >>confdefs.h <<_ACEOF
23535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23536 _ACEOF
23537
23538 fi
23539 done
23540
23541
23542
23543 for ac_func in umask utime
23544 do
23545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23550 else
23551 cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h. */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23559 #define $ac_func innocuous_$ac_func
23560
23561 /* System header to define __stub macros and hopefully few prototypes,
23562 which can conflict with char $ac_func (); below.
23563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23564 <limits.h> exists even on freestanding compilers. */
23565
23566 #ifdef __STDC__
23567 # include <limits.h>
23568 #else
23569 # include <assert.h>
23570 #endif
23571
23572 #undef $ac_func
23573
23574 /* Override any GCC internal prototype to avoid an error.
23575 Use char because int might match the return type of a GCC
23576 builtin and then its argument prototype would still apply. */
23577 #ifdef __cplusplus
23578 extern "C"
23579 #endif
23580 char $ac_func ();
23581 /* The GNU C library defines this for functions which it implements
23582 to always fail with ENOSYS. Some functions are actually named
23583 something starting with __ and the normal name is an alias. */
23584 #if defined __stub_$ac_func || defined __stub___$ac_func
23585 choke me
23586 #endif
23587
23588 int
23589 main ()
23590 {
23591 return $ac_func ();
23592 ;
23593 return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext conftest$ac_exeext
23597 if { (ac_try="$ac_link"
23598 case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23601 esac
23602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603 (eval "$ac_link") 2>conftest.er1
23604 ac_status=$?
23605 grep -v '^ *+' conftest.er1 >conftest.err
23606 rm -f conftest.er1
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } && {
23610 test -z "$ac_c_werror_flag" ||
23611 test ! -s conftest.err
23612 } && test -s conftest$ac_exeext &&
23613 $as_test_x conftest$ac_exeext; then
23614 eval "$as_ac_var=yes"
23615 else
23616 echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619 eval "$as_ac_var=no"
23620 fi
23621
23622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23623 conftest$ac_exeext conftest.$ac_ext
23624 fi
23625 ac_res=`eval echo '${'$as_ac_var'}'`
23626 { echo "$as_me:$LINENO: result: $ac_res" >&5
23627 echo "${ECHO_T}$ac_res" >&6; }
23628 if test `eval echo '${'$as_ac_var'}'` = yes; then
23629 cat >>confdefs.h <<_ACEOF
23630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23631 _ACEOF
23632
23633 fi
23634 done
23635
23636
23637
23638 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
23639 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
23640 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
23641 echo $ECHO_N "(cached) $ECHO_C" >&6
23642 else
23643 cat >conftest.$ac_ext <<_ACEOF
23644 /* confdefs.h. */
23645 _ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 $ac_includes_default
23650 typedef unsigned long long int ac__type_new_;
23651 int
23652 main ()
23653 {
23654 if ((ac__type_new_ *) 0)
23655 return 0;
23656 if (sizeof (ac__type_new_))
23657 return 0;
23658 ;
23659 return 0;
23660 }
23661 _ACEOF
23662 rm -f conftest.$ac_objext
23663 if { (ac_try="$ac_compile"
23664 case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23667 esac
23668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23669 (eval "$ac_compile") 2>conftest.er1
23670 ac_status=$?
23671 grep -v '^ *+' conftest.er1 >conftest.err
23672 rm -f conftest.er1
23673 cat conftest.err >&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } && {
23676 test -z "$ac_c_werror_flag" ||
23677 test ! -s conftest.err
23678 } && test -s conftest.$ac_objext; then
23679 ac_cv_type_unsigned_long_long_int=yes
23680 else
23681 echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23683
23684 ac_cv_type_unsigned_long_long_int=no
23685 fi
23686
23687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23688 fi
23689 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
23690 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
23691
23692 # The cast to long int works around a bug in the HP C Compiler
23693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23695 # This bug is HP SR number 8606223364.
23696 { echo "$as_me:$LINENO: checking size of unsigned long long int" >&5
23697 echo $ECHO_N "checking size of unsigned long long int... $ECHO_C" >&6; }
23698 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23700 else
23701 if test "$cross_compiling" = yes; then
23702 # Depending upon the size, compute the lo and hi bounds.
23703 cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h. */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 $ac_includes_default
23710 typedef unsigned long long int ac__type_sizeof_;
23711 int
23712 main ()
23713 {
23714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23715 test_array [0] = 0
23716
23717 ;
23718 return 0;
23719 }
23720 _ACEOF
23721 rm -f conftest.$ac_objext
23722 if { (ac_try="$ac_compile"
23723 case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23726 esac
23727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23728 (eval "$ac_compile") 2>conftest.er1
23729 ac_status=$?
23730 grep -v '^ *+' conftest.er1 >conftest.err
23731 rm -f conftest.er1
23732 cat conftest.err >&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } && {
23735 test -z "$ac_c_werror_flag" ||
23736 test ! -s conftest.err
23737 } && test -s conftest.$ac_objext; then
23738 ac_lo=0 ac_mid=0
23739 while :; do
23740 cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h. */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 $ac_includes_default
23747 typedef unsigned long long int ac__type_sizeof_;
23748 int
23749 main ()
23750 {
23751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23752 test_array [0] = 0
23753
23754 ;
23755 return 0;
23756 }
23757 _ACEOF
23758 rm -f conftest.$ac_objext
23759 if { (ac_try="$ac_compile"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_compile") 2>conftest.er1
23766 ac_status=$?
23767 grep -v '^ *+' conftest.er1 >conftest.err
23768 rm -f conftest.er1
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } && {
23772 test -z "$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 } && test -s conftest.$ac_objext; then
23775 ac_hi=$ac_mid; break
23776 else
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780 ac_lo=`expr $ac_mid + 1`
23781 if test $ac_lo -le $ac_mid; then
23782 ac_lo= ac_hi=
23783 break
23784 fi
23785 ac_mid=`expr 2 '*' $ac_mid + 1`
23786 fi
23787
23788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 done
23790 else
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23793
23794 cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h. */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23800 $ac_includes_default
23801 typedef unsigned long long int ac__type_sizeof_;
23802 int
23803 main ()
23804 {
23805 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23806 test_array [0] = 0
23807
23808 ;
23809 return 0;
23810 }
23811 _ACEOF
23812 rm -f conftest.$ac_objext
23813 if { (ac_try="$ac_compile"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23817 esac
23818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23819 (eval "$ac_compile") 2>conftest.er1
23820 ac_status=$?
23821 grep -v '^ *+' conftest.er1 >conftest.err
23822 rm -f conftest.er1
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } && {
23826 test -z "$ac_c_werror_flag" ||
23827 test ! -s conftest.err
23828 } && test -s conftest.$ac_objext; then
23829 ac_hi=-1 ac_mid=-1
23830 while :; do
23831 cat >conftest.$ac_ext <<_ACEOF
23832 /* confdefs.h. */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h. */
23837 $ac_includes_default
23838 typedef unsigned long long int ac__type_sizeof_;
23839 int
23840 main ()
23841 {
23842 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23843 test_array [0] = 0
23844
23845 ;
23846 return 0;
23847 }
23848 _ACEOF
23849 rm -f conftest.$ac_objext
23850 if { (ac_try="$ac_compile"
23851 case "(($ac_try" in
23852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853 *) ac_try_echo=$ac_try;;
23854 esac
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856 (eval "$ac_compile") 2>conftest.er1
23857 ac_status=$?
23858 grep -v '^ *+' conftest.er1 >conftest.err
23859 rm -f conftest.er1
23860 cat conftest.err >&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } && {
23863 test -z "$ac_c_werror_flag" ||
23864 test ! -s conftest.err
23865 } && test -s conftest.$ac_objext; then
23866 ac_lo=$ac_mid; break
23867 else
23868 echo "$as_me: failed program was:" >&5
23869 sed 's/^/| /' conftest.$ac_ext >&5
23870
23871 ac_hi=`expr '(' $ac_mid ')' - 1`
23872 if test $ac_mid -le $ac_hi; then
23873 ac_lo= ac_hi=
23874 break
23875 fi
23876 ac_mid=`expr 2 '*' $ac_mid`
23877 fi
23878
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 done
23881 else
23882 echo "$as_me: failed program was:" >&5
23883 sed 's/^/| /' conftest.$ac_ext >&5
23884
23885 ac_lo= ac_hi=
23886 fi
23887
23888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23889 fi
23890
23891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892 # Binary search between lo and hi bounds.
23893 while test "x$ac_lo" != "x$ac_hi"; do
23894 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23895 cat >conftest.$ac_ext <<_ACEOF
23896 /* confdefs.h. */
23897 _ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h. */
23901 $ac_includes_default
23902 typedef unsigned long long int ac__type_sizeof_;
23903 int
23904 main ()
23905 {
23906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23907 test_array [0] = 0
23908
23909 ;
23910 return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (ac_try="$ac_compile"
23915 case "(($ac_try" in
23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917 *) ac_try_echo=$ac_try;;
23918 esac
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920 (eval "$ac_compile") 2>conftest.er1
23921 ac_status=$?
23922 grep -v '^ *+' conftest.er1 >conftest.err
23923 rm -f conftest.er1
23924 cat conftest.err >&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); } && {
23927 test -z "$ac_c_werror_flag" ||
23928 test ! -s conftest.err
23929 } && test -s conftest.$ac_objext; then
23930 ac_hi=$ac_mid
23931 else
23932 echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23934
23935 ac_lo=`expr '(' $ac_mid ')' + 1`
23936 fi
23937
23938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939 done
23940 case $ac_lo in
23941 ?*) ac_cv_sizeof_unsigned_long_long_int=$ac_lo;;
23942 '') if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23943 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
23944 See \`config.log' for more details." >&5
23945 echo "$as_me: error: cannot compute sizeof (unsigned long long int)
23946 See \`config.log' for more details." >&2;}
23947 { (exit 77); exit 77; }; }
23948 else
23949 ac_cv_sizeof_unsigned_long_long_int=0
23950 fi ;;
23951 esac
23952 else
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h. */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23959 $ac_includes_default
23960 typedef unsigned long long int ac__type_sizeof_;
23961 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23962 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23963 #include <stdio.h>
23964 #include <stdlib.h>
23965 int
23966 main ()
23967 {
23968
23969 FILE *f = fopen ("conftest.val", "w");
23970 if (! f)
23971 return 1;
23972 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23973 {
23974 long int i = longval ();
23975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23976 return 1;
23977 fprintf (f, "%ld\n", i);
23978 }
23979 else
23980 {
23981 unsigned long int i = ulongval ();
23982 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23983 return 1;
23984 fprintf (f, "%lu\n", i);
23985 }
23986 return ferror (f) || fclose (f) != 0;
23987
23988 ;
23989 return 0;
23990 }
23991 _ACEOF
23992 rm -f conftest$ac_exeext
23993 if { (ac_try="$ac_link"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23997 esac
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_link") 2>&5
24000 ac_status=$?
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24003 { (case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_try") 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ac_cv_sizeof_unsigned_long_long_int=`cat conftest.val`
24013 else
24014 echo "$as_me: program exited with status $ac_status" >&5
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24017
24018 ( exit $ac_status )
24019 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
24020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
24021 See \`config.log' for more details." >&5
24022 echo "$as_me: error: cannot compute sizeof (unsigned long long int)
24023 See \`config.log' for more details." >&2;}
24024 { (exit 77); exit 77; }; }
24025 else
24026 ac_cv_sizeof_unsigned_long_long_int=0
24027 fi
24028 fi
24029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24030 fi
24031 rm -f conftest.val
24032 fi
24033 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
24034 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
24035
24036
24037
24038 cat >>confdefs.h <<_ACEOF
24039 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
24040 _ACEOF
24041
24042
24043 { echo "$as_me:$LINENO: checking for unsigned long int" >&5
24044 echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6; }
24045 if test "${ac_cv_type_unsigned_long_int+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24047 else
24048 cat >conftest.$ac_ext <<_ACEOF
24049 /* confdefs.h. */
24050 _ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h. */
24054 $ac_includes_default
24055 typedef unsigned long int ac__type_new_;
24056 int
24057 main ()
24058 {
24059 if ((ac__type_new_ *) 0)
24060 return 0;
24061 if (sizeof (ac__type_new_))
24062 return 0;
24063 ;
24064 return 0;
24065 }
24066 _ACEOF
24067 rm -f conftest.$ac_objext
24068 if { (ac_try="$ac_compile"
24069 case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24072 esac
24073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24074 (eval "$ac_compile") 2>conftest.er1
24075 ac_status=$?
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } && {
24081 test -z "$ac_c_werror_flag" ||
24082 test ! -s conftest.err
24083 } && test -s conftest.$ac_objext; then
24084 ac_cv_type_unsigned_long_int=yes
24085 else
24086 echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24088
24089 ac_cv_type_unsigned_long_int=no
24090 fi
24091
24092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24093 fi
24094 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
24095 echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6; }
24096
24097 # The cast to long int works around a bug in the HP C Compiler
24098 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24099 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24100 # This bug is HP SR number 8606223364.
24101 { echo "$as_me:$LINENO: checking size of unsigned long int" >&5
24102 echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6; }
24103 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
24104 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 else
24106 if test "$cross_compiling" = yes; then
24107 # Depending upon the size, compute the lo and hi bounds.
24108 cat >conftest.$ac_ext <<_ACEOF
24109 /* confdefs.h. */
24110 _ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24114 $ac_includes_default
24115 typedef unsigned long int ac__type_sizeof_;
24116 int
24117 main ()
24118 {
24119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24120 test_array [0] = 0
24121
24122 ;
24123 return 0;
24124 }
24125 _ACEOF
24126 rm -f conftest.$ac_objext
24127 if { (ac_try="$ac_compile"
24128 case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24131 esac
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.$ac_objext; then
24143 ac_lo=0 ac_mid=0
24144 while :; do
24145 cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h. */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h. */
24151 $ac_includes_default
24152 typedef unsigned long int ac__type_sizeof_;
24153 int
24154 main ()
24155 {
24156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24157 test_array [0] = 0
24158
24159 ;
24160 return 0;
24161 }
24162 _ACEOF
24163 rm -f conftest.$ac_objext
24164 if { (ac_try="$ac_compile"
24165 case "(($ac_try" in
24166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167 *) ac_try_echo=$ac_try;;
24168 esac
24169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24170 (eval "$ac_compile") 2>conftest.er1
24171 ac_status=$?
24172 grep -v '^ *+' conftest.er1 >conftest.err
24173 rm -f conftest.er1
24174 cat conftest.err >&5
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); } && {
24177 test -z "$ac_c_werror_flag" ||
24178 test ! -s conftest.err
24179 } && test -s conftest.$ac_objext; then
24180 ac_hi=$ac_mid; break
24181 else
24182 echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185 ac_lo=`expr $ac_mid + 1`
24186 if test $ac_lo -le $ac_mid; then
24187 ac_lo= ac_hi=
24188 break
24189 fi
24190 ac_mid=`expr 2 '*' $ac_mid + 1`
24191 fi
24192
24193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24194 done
24195 else
24196 echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24198
24199 cat >conftest.$ac_ext <<_ACEOF
24200 /* confdefs.h. */
24201 _ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 $ac_includes_default
24206 typedef unsigned long int ac__type_sizeof_;
24207 int
24208 main ()
24209 {
24210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24211 test_array [0] = 0
24212
24213 ;
24214 return 0;
24215 }
24216 _ACEOF
24217 rm -f conftest.$ac_objext
24218 if { (ac_try="$ac_compile"
24219 case "(($ac_try" in
24220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24221 *) ac_try_echo=$ac_try;;
24222 esac
24223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24224 (eval "$ac_compile") 2>conftest.er1
24225 ac_status=$?
24226 grep -v '^ *+' conftest.er1 >conftest.err
24227 rm -f conftest.er1
24228 cat conftest.err >&5
24229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230 (exit $ac_status); } && {
24231 test -z "$ac_c_werror_flag" ||
24232 test ! -s conftest.err
24233 } && test -s conftest.$ac_objext; then
24234 ac_hi=-1 ac_mid=-1
24235 while :; do
24236 cat >conftest.$ac_ext <<_ACEOF
24237 /* confdefs.h. */
24238 _ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h. */
24242 $ac_includes_default
24243 typedef unsigned long int ac__type_sizeof_;
24244 int
24245 main ()
24246 {
24247 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24248 test_array [0] = 0
24249
24250 ;
24251 return 0;
24252 }
24253 _ACEOF
24254 rm -f conftest.$ac_objext
24255 if { (ac_try="$ac_compile"
24256 case "(($ac_try" in
24257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258 *) ac_try_echo=$ac_try;;
24259 esac
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261 (eval "$ac_compile") 2>conftest.er1
24262 ac_status=$?
24263 grep -v '^ *+' conftest.er1 >conftest.err
24264 rm -f conftest.er1
24265 cat conftest.err >&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } && {
24268 test -z "$ac_c_werror_flag" ||
24269 test ! -s conftest.err
24270 } && test -s conftest.$ac_objext; then
24271 ac_lo=$ac_mid; break
24272 else
24273 echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.$ac_ext >&5
24275
24276 ac_hi=`expr '(' $ac_mid ')' - 1`
24277 if test $ac_mid -le $ac_hi; then
24278 ac_lo= ac_hi=
24279 break
24280 fi
24281 ac_mid=`expr 2 '*' $ac_mid`
24282 fi
24283
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 done
24286 else
24287 echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24289
24290 ac_lo= ac_hi=
24291 fi
24292
24293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24294 fi
24295
24296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24297 # Binary search between lo and hi bounds.
24298 while test "x$ac_lo" != "x$ac_hi"; do
24299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24300 cat >conftest.$ac_ext <<_ACEOF
24301 /* confdefs.h. */
24302 _ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24306 $ac_includes_default
24307 typedef unsigned long int ac__type_sizeof_;
24308 int
24309 main ()
24310 {
24311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24312 test_array [0] = 0
24313
24314 ;
24315 return 0;
24316 }
24317 _ACEOF
24318 rm -f conftest.$ac_objext
24319 if { (ac_try="$ac_compile"
24320 case "(($ac_try" in
24321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24322 *) ac_try_echo=$ac_try;;
24323 esac
24324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24325 (eval "$ac_compile") 2>conftest.er1
24326 ac_status=$?
24327 grep -v '^ *+' conftest.er1 >conftest.err
24328 rm -f conftest.er1
24329 cat conftest.err >&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); } && {
24332 test -z "$ac_c_werror_flag" ||
24333 test ! -s conftest.err
24334 } && test -s conftest.$ac_objext; then
24335 ac_hi=$ac_mid
24336 else
24337 echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24339
24340 ac_lo=`expr '(' $ac_mid ')' + 1`
24341 fi
24342
24343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24344 done
24345 case $ac_lo in
24346 ?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
24347 '') if test "$ac_cv_type_unsigned_long_int" = yes; then
24348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
24349 See \`config.log' for more details." >&5
24350 echo "$as_me: error: cannot compute sizeof (unsigned long int)
24351 See \`config.log' for more details." >&2;}
24352 { (exit 77); exit 77; }; }
24353 else
24354 ac_cv_sizeof_unsigned_long_int=0
24355 fi ;;
24356 esac
24357 else
24358 cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h. */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24364 $ac_includes_default
24365 typedef unsigned long int ac__type_sizeof_;
24366 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24367 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24368 #include <stdio.h>
24369 #include <stdlib.h>
24370 int
24371 main ()
24372 {
24373
24374 FILE *f = fopen ("conftest.val", "w");
24375 if (! f)
24376 return 1;
24377 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24378 {
24379 long int i = longval ();
24380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24381 return 1;
24382 fprintf (f, "%ld\n", i);
24383 }
24384 else
24385 {
24386 unsigned long int i = ulongval ();
24387 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24388 return 1;
24389 fprintf (f, "%lu\n", i);
24390 }
24391 return ferror (f) || fclose (f) != 0;
24392
24393 ;
24394 return 0;
24395 }
24396 _ACEOF
24397 rm -f conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24402 esac
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_link") 2>&5
24405 ac_status=$?
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24408 { (case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_try") 2>&5
24414 ac_status=$?
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24417 ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
24418 else
24419 echo "$as_me: program exited with status $ac_status" >&5
24420 echo "$as_me: failed program was:" >&5
24421 sed 's/^/| /' conftest.$ac_ext >&5
24422
24423 ( exit $ac_status )
24424 if test "$ac_cv_type_unsigned_long_int" = yes; then
24425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
24426 See \`config.log' for more details." >&5
24427 echo "$as_me: error: cannot compute sizeof (unsigned long int)
24428 See \`config.log' for more details." >&2;}
24429 { (exit 77); exit 77; }; }
24430 else
24431 ac_cv_sizeof_unsigned_long_int=0
24432 fi
24433 fi
24434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24435 fi
24436 rm -f conftest.val
24437 fi
24438 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
24439 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
24440
24441
24442
24443 cat >>confdefs.h <<_ACEOF
24444 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
24445 _ACEOF
24446
24447
24448 { echo "$as_me:$LINENO: checking for unsigned int" >&5
24449 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
24450 if test "${ac_cv_type_unsigned_int+set}" = set; then
24451 echo $ECHO_N "(cached) $ECHO_C" >&6
24452 else
24453 cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h. */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24459 $ac_includes_default
24460 typedef unsigned int ac__type_new_;
24461 int
24462 main ()
24463 {
24464 if ((ac__type_new_ *) 0)
24465 return 0;
24466 if (sizeof (ac__type_new_))
24467 return 0;
24468 ;
24469 return 0;
24470 }
24471 _ACEOF
24472 rm -f conftest.$ac_objext
24473 if { (ac_try="$ac_compile"
24474 case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24477 esac
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_compile") 2>conftest.er1
24480 ac_status=$?
24481 grep -v '^ *+' conftest.er1 >conftest.err
24482 rm -f conftest.er1
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } && {
24486 test -z "$ac_c_werror_flag" ||
24487 test ! -s conftest.err
24488 } && test -s conftest.$ac_objext; then
24489 ac_cv_type_unsigned_int=yes
24490 else
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494 ac_cv_type_unsigned_int=no
24495 fi
24496
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498 fi
24499 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
24500 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
24501
24502 # The cast to long int works around a bug in the HP C Compiler
24503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24505 # This bug is HP SR number 8606223364.
24506 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
24507 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
24508 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24510 else
24511 if test "$cross_compiling" = yes; then
24512 # Depending upon the size, compute the lo and hi bounds.
24513 cat >conftest.$ac_ext <<_ACEOF
24514 /* confdefs.h. */
24515 _ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h. */
24519 $ac_includes_default
24520 typedef unsigned int ac__type_sizeof_;
24521 int
24522 main ()
24523 {
24524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24525 test_array [0] = 0
24526
24527 ;
24528 return 0;
24529 }
24530 _ACEOF
24531 rm -f conftest.$ac_objext
24532 if { (ac_try="$ac_compile"
24533 case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24536 esac
24537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538 (eval "$ac_compile") 2>conftest.er1
24539 ac_status=$?
24540 grep -v '^ *+' conftest.er1 >conftest.err
24541 rm -f conftest.er1
24542 cat conftest.err >&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); } && {
24545 test -z "$ac_c_werror_flag" ||
24546 test ! -s conftest.err
24547 } && test -s conftest.$ac_objext; then
24548 ac_lo=0 ac_mid=0
24549 while :; do
24550 cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h. */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 $ac_includes_default
24557 typedef unsigned int ac__type_sizeof_;
24558 int
24559 main ()
24560 {
24561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24562 test_array [0] = 0
24563
24564 ;
24565 return 0;
24566 }
24567 _ACEOF
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24573 esac
24574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24575 (eval "$ac_compile") 2>conftest.er1
24576 ac_status=$?
24577 grep -v '^ *+' conftest.er1 >conftest.err
24578 rm -f conftest.er1
24579 cat conftest.err >&5
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } && {
24582 test -z "$ac_c_werror_flag" ||
24583 test ! -s conftest.err
24584 } && test -s conftest.$ac_objext; then
24585 ac_hi=$ac_mid; break
24586 else
24587 echo "$as_me: failed program was:" >&5
24588 sed 's/^/| /' conftest.$ac_ext >&5
24589
24590 ac_lo=`expr $ac_mid + 1`
24591 if test $ac_lo -le $ac_mid; then
24592 ac_lo= ac_hi=
24593 break
24594 fi
24595 ac_mid=`expr 2 '*' $ac_mid + 1`
24596 fi
24597
24598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24599 done
24600 else
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24603
24604 cat >conftest.$ac_ext <<_ACEOF
24605 /* confdefs.h. */
24606 _ACEOF
24607 cat confdefs.h >>conftest.$ac_ext
24608 cat >>conftest.$ac_ext <<_ACEOF
24609 /* end confdefs.h. */
24610 $ac_includes_default
24611 typedef unsigned int ac__type_sizeof_;
24612 int
24613 main ()
24614 {
24615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24616 test_array [0] = 0
24617
24618 ;
24619 return 0;
24620 }
24621 _ACEOF
24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626 *) ac_try_echo=$ac_try;;
24627 esac
24628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24629 (eval "$ac_compile") 2>conftest.er1
24630 ac_status=$?
24631 grep -v '^ *+' conftest.er1 >conftest.err
24632 rm -f conftest.er1
24633 cat conftest.err >&5
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } && {
24636 test -z "$ac_c_werror_flag" ||
24637 test ! -s conftest.err
24638 } && test -s conftest.$ac_objext; then
24639 ac_hi=-1 ac_mid=-1
24640 while :; do
24641 cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h. */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24647 $ac_includes_default
24648 typedef unsigned int ac__type_sizeof_;
24649 int
24650 main ()
24651 {
24652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24653 test_array [0] = 0
24654
24655 ;
24656 return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext
24660 if { (ac_try="$ac_compile"
24661 case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24664 esac
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_compile") 2>conftest.er1
24667 ac_status=$?
24668 grep -v '^ *+' conftest.er1 >conftest.err
24669 rm -f conftest.er1
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } && {
24673 test -z "$ac_c_werror_flag" ||
24674 test ! -s conftest.err
24675 } && test -s conftest.$ac_objext; then
24676 ac_lo=$ac_mid; break
24677 else
24678 echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24680
24681 ac_hi=`expr '(' $ac_mid ')' - 1`
24682 if test $ac_mid -le $ac_hi; then
24683 ac_lo= ac_hi=
24684 break
24685 fi
24686 ac_mid=`expr 2 '*' $ac_mid`
24687 fi
24688
24689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24690 done
24691 else
24692 echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24694
24695 ac_lo= ac_hi=
24696 fi
24697
24698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24699 fi
24700
24701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24702 # Binary search between lo and hi bounds.
24703 while test "x$ac_lo" != "x$ac_hi"; do
24704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24705 cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h. */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h. */
24711 $ac_includes_default
24712 typedef unsigned int ac__type_sizeof_;
24713 int
24714 main ()
24715 {
24716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24717 test_array [0] = 0
24718
24719 ;
24720 return 0;
24721 }
24722 _ACEOF
24723 rm -f conftest.$ac_objext
24724 if { (ac_try="$ac_compile"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24728 esac
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730 (eval "$ac_compile") 2>conftest.er1
24731 ac_status=$?
24732 grep -v '^ *+' conftest.er1 >conftest.err
24733 rm -f conftest.er1
24734 cat conftest.err >&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } && {
24737 test -z "$ac_c_werror_flag" ||
24738 test ! -s conftest.err
24739 } && test -s conftest.$ac_objext; then
24740 ac_hi=$ac_mid
24741 else
24742 echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24744
24745 ac_lo=`expr '(' $ac_mid ')' + 1`
24746 fi
24747
24748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24749 done
24750 case $ac_lo in
24751 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24752 '') if test "$ac_cv_type_unsigned_int" = yes; then
24753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24754 See \`config.log' for more details." >&5
24755 echo "$as_me: error: cannot compute sizeof (unsigned int)
24756 See \`config.log' for more details." >&2;}
24757 { (exit 77); exit 77; }; }
24758 else
24759 ac_cv_sizeof_unsigned_int=0
24760 fi ;;
24761 esac
24762 else
24763 cat >conftest.$ac_ext <<_ACEOF
24764 /* confdefs.h. */
24765 _ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h. */
24769 $ac_includes_default
24770 typedef unsigned int ac__type_sizeof_;
24771 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24772 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24773 #include <stdio.h>
24774 #include <stdlib.h>
24775 int
24776 main ()
24777 {
24778
24779 FILE *f = fopen ("conftest.val", "w");
24780 if (! f)
24781 return 1;
24782 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24783 {
24784 long int i = longval ();
24785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24786 return 1;
24787 fprintf (f, "%ld\n", i);
24788 }
24789 else
24790 {
24791 unsigned long int i = ulongval ();
24792 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24793 return 1;
24794 fprintf (f, "%lu\n", i);
24795 }
24796 return ferror (f) || fclose (f) != 0;
24797
24798 ;
24799 return 0;
24800 }
24801 _ACEOF
24802 rm -f conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24807 esac
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_link") 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24813 { (case "(($ac_try" in
24814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24815 *) ac_try_echo=$ac_try;;
24816 esac
24817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24818 (eval "$ac_try") 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
24822 ac_cv_sizeof_unsigned_int=`cat conftest.val`
24823 else
24824 echo "$as_me: program exited with status $ac_status" >&5
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828 ( exit $ac_status )
24829 if test "$ac_cv_type_unsigned_int" = yes; then
24830 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24831 See \`config.log' for more details." >&5
24832 echo "$as_me: error: cannot compute sizeof (unsigned int)
24833 See \`config.log' for more details." >&2;}
24834 { (exit 77); exit 77; }; }
24835 else
24836 ac_cv_sizeof_unsigned_int=0
24837 fi
24838 fi
24839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24840 fi
24841 rm -f conftest.val
24842 fi
24843 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24844 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24845
24846
24847
24848 cat >>confdefs.h <<_ACEOF
24849 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24850 _ACEOF
24851
24852
24853 { echo "$as_me:$LINENO: checking for unsigned short int" >&5
24854 echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6; }
24855 if test "${ac_cv_type_unsigned_short_int+set}" = set; then
24856 echo $ECHO_N "(cached) $ECHO_C" >&6
24857 else
24858 cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h. */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24864 $ac_includes_default
24865 typedef unsigned short int ac__type_new_;
24866 int
24867 main ()
24868 {
24869 if ((ac__type_new_ *) 0)
24870 return 0;
24871 if (sizeof (ac__type_new_))
24872 return 0;
24873 ;
24874 return 0;
24875 }
24876 _ACEOF
24877 rm -f conftest.$ac_objext
24878 if { (ac_try="$ac_compile"
24879 case "(($ac_try" in
24880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24881 *) ac_try_echo=$ac_try;;
24882 esac
24883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24884 (eval "$ac_compile") 2>conftest.er1
24885 ac_status=$?
24886 grep -v '^ *+' conftest.er1 >conftest.err
24887 rm -f conftest.er1
24888 cat conftest.err >&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); } && {
24891 test -z "$ac_c_werror_flag" ||
24892 test ! -s conftest.err
24893 } && test -s conftest.$ac_objext; then
24894 ac_cv_type_unsigned_short_int=yes
24895 else
24896 echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24898
24899 ac_cv_type_unsigned_short_int=no
24900 fi
24901
24902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24903 fi
24904 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
24905 echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6; }
24906
24907 # The cast to long int works around a bug in the HP C Compiler
24908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24910 # This bug is HP SR number 8606223364.
24911 { echo "$as_me:$LINENO: checking size of unsigned short int" >&5
24912 echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6; }
24913 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
24914 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 else
24916 if test "$cross_compiling" = yes; then
24917 # Depending upon the size, compute the lo and hi bounds.
24918 cat >conftest.$ac_ext <<_ACEOF
24919 /* confdefs.h. */
24920 _ACEOF
24921 cat confdefs.h >>conftest.$ac_ext
24922 cat >>conftest.$ac_ext <<_ACEOF
24923 /* end confdefs.h. */
24924 $ac_includes_default
24925 typedef unsigned short int ac__type_sizeof_;
24926 int
24927 main ()
24928 {
24929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24930 test_array [0] = 0
24931
24932 ;
24933 return 0;
24934 }
24935 _ACEOF
24936 rm -f conftest.$ac_objext
24937 if { (ac_try="$ac_compile"
24938 case "(($ac_try" in
24939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24940 *) ac_try_echo=$ac_try;;
24941 esac
24942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24943 (eval "$ac_compile") 2>conftest.er1
24944 ac_status=$?
24945 grep -v '^ *+' conftest.er1 >conftest.err
24946 rm -f conftest.er1
24947 cat conftest.err >&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } && {
24950 test -z "$ac_c_werror_flag" ||
24951 test ! -s conftest.err
24952 } && test -s conftest.$ac_objext; then
24953 ac_lo=0 ac_mid=0
24954 while :; do
24955 cat >conftest.$ac_ext <<_ACEOF
24956 /* confdefs.h. */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h. */
24961 $ac_includes_default
24962 typedef unsigned short int ac__type_sizeof_;
24963 int
24964 main ()
24965 {
24966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24967 test_array [0] = 0
24968
24969 ;
24970 return 0;
24971 }
24972 _ACEOF
24973 rm -f conftest.$ac_objext
24974 if { (ac_try="$ac_compile"
24975 case "(($ac_try" in
24976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24977 *) ac_try_echo=$ac_try;;
24978 esac
24979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24980 (eval "$ac_compile") 2>conftest.er1
24981 ac_status=$?
24982 grep -v '^ *+' conftest.er1 >conftest.err
24983 rm -f conftest.er1
24984 cat conftest.err >&5
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } && {
24987 test -z "$ac_c_werror_flag" ||
24988 test ! -s conftest.err
24989 } && test -s conftest.$ac_objext; then
24990 ac_hi=$ac_mid; break
24991 else
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24994
24995 ac_lo=`expr $ac_mid + 1`
24996 if test $ac_lo -le $ac_mid; then
24997 ac_lo= ac_hi=
24998 break
24999 fi
25000 ac_mid=`expr 2 '*' $ac_mid + 1`
25001 fi
25002
25003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25004 done
25005 else
25006 echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25008
25009 cat >conftest.$ac_ext <<_ACEOF
25010 /* confdefs.h. */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h. */
25015 $ac_includes_default
25016 typedef unsigned short int ac__type_sizeof_;
25017 int
25018 main ()
25019 {
25020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25021 test_array [0] = 0
25022
25023 ;
25024 return 0;
25025 }
25026 _ACEOF
25027 rm -f conftest.$ac_objext
25028 if { (ac_try="$ac_compile"
25029 case "(($ac_try" in
25030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25032 esac
25033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25034 (eval "$ac_compile") 2>conftest.er1
25035 ac_status=$?
25036 grep -v '^ *+' conftest.er1 >conftest.err
25037 rm -f conftest.er1
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest.$ac_objext; then
25044 ac_hi=-1 ac_mid=-1
25045 while :; do
25046 cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h. */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25052 $ac_includes_default
25053 typedef unsigned short int ac__type_sizeof_;
25054 int
25055 main ()
25056 {
25057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25058 test_array [0] = 0
25059
25060 ;
25061 return 0;
25062 }
25063 _ACEOF
25064 rm -f conftest.$ac_objext
25065 if { (ac_try="$ac_compile"
25066 case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25069 esac
25070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25071 (eval "$ac_compile") 2>conftest.er1
25072 ac_status=$?
25073 grep -v '^ *+' conftest.er1 >conftest.err
25074 rm -f conftest.er1
25075 cat conftest.err >&5
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); } && {
25078 test -z "$ac_c_werror_flag" ||
25079 test ! -s conftest.err
25080 } && test -s conftest.$ac_objext; then
25081 ac_lo=$ac_mid; break
25082 else
25083 echo "$as_me: failed program was:" >&5
25084 sed 's/^/| /' conftest.$ac_ext >&5
25085
25086 ac_hi=`expr '(' $ac_mid ')' - 1`
25087 if test $ac_mid -le $ac_hi; then
25088 ac_lo= ac_hi=
25089 break
25090 fi
25091 ac_mid=`expr 2 '*' $ac_mid`
25092 fi
25093
25094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095 done
25096 else
25097 echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25099
25100 ac_lo= ac_hi=
25101 fi
25102
25103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25104 fi
25105
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107 # Binary search between lo and hi bounds.
25108 while test "x$ac_lo" != "x$ac_hi"; do
25109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25110 cat >conftest.$ac_ext <<_ACEOF
25111 /* confdefs.h. */
25112 _ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 $ac_includes_default
25117 typedef unsigned short int ac__type_sizeof_;
25118 int
25119 main ()
25120 {
25121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25122 test_array [0] = 0
25123
25124 ;
25125 return 0;
25126 }
25127 _ACEOF
25128 rm -f conftest.$ac_objext
25129 if { (ac_try="$ac_compile"
25130 case "(($ac_try" in
25131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132 *) ac_try_echo=$ac_try;;
25133 esac
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25136 ac_status=$?
25137 grep -v '^ *+' conftest.er1 >conftest.err
25138 rm -f conftest.er1
25139 cat conftest.err >&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_c_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25145 ac_hi=$ac_mid
25146 else
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150 ac_lo=`expr '(' $ac_mid ')' + 1`
25151 fi
25152
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 done
25155 case $ac_lo in
25156 ?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
25157 '') if test "$ac_cv_type_unsigned_short_int" = yes; then
25158 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
25159 See \`config.log' for more details." >&5
25160 echo "$as_me: error: cannot compute sizeof (unsigned short int)
25161 See \`config.log' for more details." >&2;}
25162 { (exit 77); exit 77; }; }
25163 else
25164 ac_cv_sizeof_unsigned_short_int=0
25165 fi ;;
25166 esac
25167 else
25168 cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h. */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 $ac_includes_default
25175 typedef unsigned short int ac__type_sizeof_;
25176 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25177 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25178 #include <stdio.h>
25179 #include <stdlib.h>
25180 int
25181 main ()
25182 {
25183
25184 FILE *f = fopen ("conftest.val", "w");
25185 if (! f)
25186 return 1;
25187 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25188 {
25189 long int i = longval ();
25190 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25191 return 1;
25192 fprintf (f, "%ld\n", i);
25193 }
25194 else
25195 {
25196 unsigned long int i = ulongval ();
25197 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25198 return 1;
25199 fprintf (f, "%lu\n", i);
25200 }
25201 return ferror (f) || fclose (f) != 0;
25202
25203 ;
25204 return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest$ac_exeext
25208 if { (ac_try="$ac_link"
25209 case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212 esac
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_link") 2>&5
25215 ac_status=$?
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25218 { (case "(($ac_try" in
25219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220 *) ac_try_echo=$ac_try;;
25221 esac
25222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223 (eval "$ac_try") 2>&5
25224 ac_status=$?
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); }; }; then
25227 ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
25228 else
25229 echo "$as_me: program exited with status $ac_status" >&5
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25232
25233 ( exit $ac_status )
25234 if test "$ac_cv_type_unsigned_short_int" = yes; then
25235 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
25236 See \`config.log' for more details." >&5
25237 echo "$as_me: error: cannot compute sizeof (unsigned short int)
25238 See \`config.log' for more details." >&2;}
25239 { (exit 77); exit 77; }; }
25240 else
25241 ac_cv_sizeof_unsigned_short_int=0
25242 fi
25243 fi
25244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25245 fi
25246 rm -f conftest.val
25247 fi
25248 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
25249 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
25250
25251
25252
25253 cat >>confdefs.h <<_ACEOF
25254 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
25255 _ACEOF
25256
25257
25258 { echo "$as_me:$LINENO: checking for unsigned char" >&5
25259 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
25260 if test "${ac_cv_type_unsigned_char+set}" = set; then
25261 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 else
25263 cat >conftest.$ac_ext <<_ACEOF
25264 /* confdefs.h. */
25265 _ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25269 $ac_includes_default
25270 typedef unsigned char ac__type_new_;
25271 int
25272 main ()
25273 {
25274 if ((ac__type_new_ *) 0)
25275 return 0;
25276 if (sizeof (ac__type_new_))
25277 return 0;
25278 ;
25279 return 0;
25280 }
25281 _ACEOF
25282 rm -f conftest.$ac_objext
25283 if { (ac_try="$ac_compile"
25284 case "(($ac_try" in
25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25287 esac
25288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25289 (eval "$ac_compile") 2>conftest.er1
25290 ac_status=$?
25291 grep -v '^ *+' conftest.er1 >conftest.err
25292 rm -f conftest.er1
25293 cat conftest.err >&5
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); } && {
25296 test -z "$ac_c_werror_flag" ||
25297 test ! -s conftest.err
25298 } && test -s conftest.$ac_objext; then
25299 ac_cv_type_unsigned_char=yes
25300 else
25301 echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25303
25304 ac_cv_type_unsigned_char=no
25305 fi
25306
25307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25308 fi
25309 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
25310 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
25311
25312 # The cast to long int works around a bug in the HP C Compiler
25313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25315 # This bug is HP SR number 8606223364.
25316 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
25317 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
25318 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
25319 echo $ECHO_N "(cached) $ECHO_C" >&6
25320 else
25321 if test "$cross_compiling" = yes; then
25322 # Depending upon the size, compute the lo and hi bounds.
25323 cat >conftest.$ac_ext <<_ACEOF
25324 /* confdefs.h. */
25325 _ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h. */
25329 $ac_includes_default
25330 typedef unsigned char ac__type_sizeof_;
25331 int
25332 main ()
25333 {
25334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25335 test_array [0] = 0
25336
25337 ;
25338 return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext
25342 if { (ac_try="$ac_compile"
25343 case "(($ac_try" in
25344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345 *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348 (eval "$ac_compile") 2>conftest.er1
25349 ac_status=$?
25350 grep -v '^ *+' conftest.er1 >conftest.err
25351 rm -f conftest.er1
25352 cat conftest.err >&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } && {
25355 test -z "$ac_c_werror_flag" ||
25356 test ! -s conftest.err
25357 } && test -s conftest.$ac_objext; then
25358 ac_lo=0 ac_mid=0
25359 while :; do
25360 cat >conftest.$ac_ext <<_ACEOF
25361 /* confdefs.h. */
25362 _ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h. */
25366 $ac_includes_default
25367 typedef unsigned char ac__type_sizeof_;
25368 int
25369 main ()
25370 {
25371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25372 test_array [0] = 0
25373
25374 ;
25375 return 0;
25376 }
25377 _ACEOF
25378 rm -f conftest.$ac_objext
25379 if { (ac_try="$ac_compile"
25380 case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25383 esac
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385 (eval "$ac_compile") 2>conftest.er1
25386 ac_status=$?
25387 grep -v '^ *+' conftest.er1 >conftest.err
25388 rm -f conftest.er1
25389 cat conftest.err >&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } && {
25392 test -z "$ac_c_werror_flag" ||
25393 test ! -s conftest.err
25394 } && test -s conftest.$ac_objext; then
25395 ac_hi=$ac_mid; break
25396 else
25397 echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25399
25400 ac_lo=`expr $ac_mid + 1`
25401 if test $ac_lo -le $ac_mid; then
25402 ac_lo= ac_hi=
25403 break
25404 fi
25405 ac_mid=`expr 2 '*' $ac_mid + 1`
25406 fi
25407
25408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25409 done
25410 else
25411 echo "$as_me: failed program was:" >&5
25412 sed 's/^/| /' conftest.$ac_ext >&5
25413
25414 cat >conftest.$ac_ext <<_ACEOF
25415 /* confdefs.h. */
25416 _ACEOF
25417 cat confdefs.h >>conftest.$ac_ext
25418 cat >>conftest.$ac_ext <<_ACEOF
25419 /* end confdefs.h. */
25420 $ac_includes_default
25421 typedef unsigned char ac__type_sizeof_;
25422 int
25423 main ()
25424 {
25425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25426 test_array [0] = 0
25427
25428 ;
25429 return 0;
25430 }
25431 _ACEOF
25432 rm -f conftest.$ac_objext
25433 if { (ac_try="$ac_compile"
25434 case "(($ac_try" in
25435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436 *) ac_try_echo=$ac_try;;
25437 esac
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439 (eval "$ac_compile") 2>conftest.er1
25440 ac_status=$?
25441 grep -v '^ *+' conftest.er1 >conftest.err
25442 rm -f conftest.er1
25443 cat conftest.err >&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); } && {
25446 test -z "$ac_c_werror_flag" ||
25447 test ! -s conftest.err
25448 } && test -s conftest.$ac_objext; then
25449 ac_hi=-1 ac_mid=-1
25450 while :; do
25451 cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h. */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25457 $ac_includes_default
25458 typedef unsigned char ac__type_sizeof_;
25459 int
25460 main ()
25461 {
25462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25463 test_array [0] = 0
25464
25465 ;
25466 return 0;
25467 }
25468 _ACEOF
25469 rm -f conftest.$ac_objext
25470 if { (ac_try="$ac_compile"
25471 case "(($ac_try" in
25472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25473 *) ac_try_echo=$ac_try;;
25474 esac
25475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25476 (eval "$ac_compile") 2>conftest.er1
25477 ac_status=$?
25478 grep -v '^ *+' conftest.er1 >conftest.err
25479 rm -f conftest.er1
25480 cat conftest.err >&5
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } && {
25483 test -z "$ac_c_werror_flag" ||
25484 test ! -s conftest.err
25485 } && test -s conftest.$ac_objext; then
25486 ac_lo=$ac_mid; break
25487 else
25488 echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25490
25491 ac_hi=`expr '(' $ac_mid ')' - 1`
25492 if test $ac_mid -le $ac_hi; then
25493 ac_lo= ac_hi=
25494 break
25495 fi
25496 ac_mid=`expr 2 '*' $ac_mid`
25497 fi
25498
25499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25500 done
25501 else
25502 echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25504
25505 ac_lo= ac_hi=
25506 fi
25507
25508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25509 fi
25510
25511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25512 # Binary search between lo and hi bounds.
25513 while test "x$ac_lo" != "x$ac_hi"; do
25514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25515 cat >conftest.$ac_ext <<_ACEOF
25516 /* confdefs.h. */
25517 _ACEOF
25518 cat confdefs.h >>conftest.$ac_ext
25519 cat >>conftest.$ac_ext <<_ACEOF
25520 /* end confdefs.h. */
25521 $ac_includes_default
25522 typedef unsigned char ac__type_sizeof_;
25523 int
25524 main ()
25525 {
25526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25527 test_array [0] = 0
25528
25529 ;
25530 return 0;
25531 }
25532 _ACEOF
25533 rm -f conftest.$ac_objext
25534 if { (ac_try="$ac_compile"
25535 case "(($ac_try" in
25536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537 *) ac_try_echo=$ac_try;;
25538 esac
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540 (eval "$ac_compile") 2>conftest.er1
25541 ac_status=$?
25542 grep -v '^ *+' conftest.er1 >conftest.err
25543 rm -f conftest.er1
25544 cat conftest.err >&5
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); } && {
25547 test -z "$ac_c_werror_flag" ||
25548 test ! -s conftest.err
25549 } && test -s conftest.$ac_objext; then
25550 ac_hi=$ac_mid
25551 else
25552 echo "$as_me: failed program was:" >&5
25553 sed 's/^/| /' conftest.$ac_ext >&5
25554
25555 ac_lo=`expr '(' $ac_mid ')' + 1`
25556 fi
25557
25558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25559 done
25560 case $ac_lo in
25561 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
25562 '') if test "$ac_cv_type_unsigned_char" = yes; then
25563 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
25564 See \`config.log' for more details." >&5
25565 echo "$as_me: error: cannot compute sizeof (unsigned char)
25566 See \`config.log' for more details." >&2;}
25567 { (exit 77); exit 77; }; }
25568 else
25569 ac_cv_sizeof_unsigned_char=0
25570 fi ;;
25571 esac
25572 else
25573 cat >conftest.$ac_ext <<_ACEOF
25574 /* confdefs.h. */
25575 _ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h. */
25579 $ac_includes_default
25580 typedef unsigned char ac__type_sizeof_;
25581 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25582 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25583 #include <stdio.h>
25584 #include <stdlib.h>
25585 int
25586 main ()
25587 {
25588
25589 FILE *f = fopen ("conftest.val", "w");
25590 if (! f)
25591 return 1;
25592 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25593 {
25594 long int i = longval ();
25595 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25596 return 1;
25597 fprintf (f, "%ld\n", i);
25598 }
25599 else
25600 {
25601 unsigned long int i = ulongval ();
25602 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25603 return 1;
25604 fprintf (f, "%lu\n", i);
25605 }
25606 return ferror (f) || fclose (f) != 0;
25607
25608 ;
25609 return 0;
25610 }
25611 _ACEOF
25612 rm -f conftest$ac_exeext
25613 if { (ac_try="$ac_link"
25614 case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25617 esac
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_link") 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25623 { (case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_try") 2>&5
25629 ac_status=$?
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
25632 ac_cv_sizeof_unsigned_char=`cat conftest.val`
25633 else
25634 echo "$as_me: program exited with status $ac_status" >&5
25635 echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25637
25638 ( exit $ac_status )
25639 if test "$ac_cv_type_unsigned_char" = yes; then
25640 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
25641 See \`config.log' for more details." >&5
25642 echo "$as_me: error: cannot compute sizeof (unsigned char)
25643 See \`config.log' for more details." >&2;}
25644 { (exit 77); exit 77; }; }
25645 else
25646 ac_cv_sizeof_unsigned_char=0
25647 fi
25648 fi
25649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25650 fi
25651 rm -f conftest.val
25652 fi
25653 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
25654 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
25655
25656
25657
25658 cat >>confdefs.h <<_ACEOF
25659 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
25660 _ACEOF
25661
25662
25663
25664
25665 { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
25666 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
25667
25668 # Check whether --with-dmalloc was given.
25669 if test "${with_dmalloc+set}" = set; then
25670 withval=$with_dmalloc; if test "$withval" = yes; then
25671 { echo "$as_me:$LINENO: result: yes" >&5
25672 echo "${ECHO_T}yes" >&6; }
25673
25674 cat >>confdefs.h <<\_ACEOF
25675 #define WITH_DMALLOC 1
25676 _ACEOF
25677
25678 LIBS="$LIBS -ldmalloc"
25679 LDFLAGS="$LDFLAGS -g"
25680 else
25681 { echo "$as_me:$LINENO: result: no" >&5
25682 echo "${ECHO_T}no" >&6; }
25683 fi
25684 else
25685 { echo "$as_me:$LINENO: result: no" >&5
25686 echo "${ECHO_T}no" >&6; }
25687 fi
25688
25689
25690 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25691 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25692 # Check whether --enable-maintainer-mode was given.
25693 if test "${enable_maintainer_mode+set}" = set; then
25694 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25695 else
25696 USE_MAINTAINER_MODE=no
25697 fi
25698
25699 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25700 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25701
25702
25703 if test $USE_MAINTAINER_MODE = yes; then
25704 MAINTAINER_MODE_TRUE=
25705 MAINTAINER_MODE_FALSE='#'
25706 else
25707 MAINTAINER_MODE_TRUE='#'
25708 MAINTAINER_MODE_FALSE=
25709 fi
25710
25711 MAINT=$MAINTAINER_MODE_TRUE
25712
25713
25714
25715
25716 # Check whether --with-CC was given.
25717 if test "${with_CC+set}" = set; then
25718 withval=$with_CC; if test "$withval" != "no" && test "$withval" != "yes" ; then
25719 CC="$withval"
25720 fi
25721
25722 fi
25723
25724
25725
25726 # Check whether --with-CFLAGS was given.
25727 if test "${with_CFLAGS+set}" = set; then
25728 withval=$with_CFLAGS; if test "$withval" != "no" && test "$withval" != "yes" ; then
25729 CFLAGS="$withval"
25730 fi
25731
25732 fi
25733
25734
25735
25736 # Check whether --with-CPPFLAGS was given.
25737 if test "${with_CPPFLAGS+set}" = set; then
25738 withval=$with_CPPFLAGS; if test "$withval" != "no" && test "$withval" != "yes" ; then
25739 CPPFLAGS="$withval"
25740 fi
25741
25742 fi
25743
25744
25745
25746 # Check whether --with-LDFLAGS was given.
25747 if test "${with_LDFLAGS+set}" = set; then
25748 withval=$with_LDFLAGS; if test "$withval" != "no" && test "$withval" != "yes" ; then
25749 LDFLAGS="$withval"
25750 fi
25751
25752 fi
25753
25754
25755 if test x$ac_cv_c_compiler_gnu = xyes; then
25756 if test x$opt_maintainer_mode = xyes; then
25757 CFLAGS=" -ggdb3 -O2 -Wall -Wpointer-arith"
25758 fi
25759
25760 if test x$opt_dmalloc_mode = xyes; then
25761
25762 { echo "$as_me:$LINENO: checking for main in -ldmalloc" >&5
25763 echo $ECHO_N "checking for main in -ldmalloc... $ECHO_C" >&6; }
25764 if test "${ac_cv_lib_dmalloc_main+set}" = set; then
25765 echo $ECHO_N "(cached) $ECHO_C" >&6
25766 else
25767 ac_check_lib_save_LIBS=$LIBS
25768 LIBS="-ldmalloc $LIBS"
25769 cat >conftest.$ac_ext <<_ACEOF
25770 /* confdefs.h. */
25771 _ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h. */
25775
25776
25777 int
25778 main ()
25779 {
25780 return main ();
25781 ;
25782 return 0;
25783 }
25784 _ACEOF
25785 rm -f conftest.$ac_objext conftest$ac_exeext
25786 if { (ac_try="$ac_link"
25787 case "(($ac_try" in
25788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25789 *) ac_try_echo=$ac_try;;
25790 esac
25791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25792 (eval "$ac_link") 2>conftest.er1
25793 ac_status=$?
25794 grep -v '^ *+' conftest.er1 >conftest.err
25795 rm -f conftest.er1
25796 cat conftest.err >&5
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); } && {
25799 test -z "$ac_c_werror_flag" ||
25800 test ! -s conftest.err
25801 } && test -s conftest$ac_exeext &&
25802 $as_test_x conftest$ac_exeext; then
25803 ac_cv_lib_dmalloc_main=yes
25804 else
25805 echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25807
25808 ac_cv_lib_dmalloc_main=no
25809 fi
25810
25811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25812 conftest$ac_exeext conftest.$ac_ext
25813 LIBS=$ac_check_lib_save_LIBS
25814 fi
25815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_main" >&5
25816 echo "${ECHO_T}$ac_cv_lib_dmalloc_main" >&6; }
25817 if test $ac_cv_lib_dmalloc_main = yes; then
25818 cat >>confdefs.h <<_ACEOF
25819 #define HAVE_LIBDMALLOC 1
25820 _ACEOF
25821
25822 LIBS="-ldmalloc $LIBS"
25823
25824 fi
25825
25826
25827 cat >>confdefs.h <<\_ACEOF
25828 #define USE_DMALLOC 1
25829 _ACEOF
25830
25831 fi
25832 fi
25833
25834 # Check whether --enable-md5 was given.
25835 if test "${enable_md5+set}" = set; then
25836 enableval=$enable_md5;
25837 else
25838
25839 cat >>confdefs.h <<\_ACEOF
25840 #define ENABLE_MD5 1
25841 _ACEOF
25842
25843 fi
25844
25845
25846 # Check whether --enable-sha1 was given.
25847 if test "${enable_sha1+set}" = set; then
25848 enableval=$enable_sha1;
25849 else
25850
25851 cat >>confdefs.h <<\_ACEOF
25852 #define ENABLE_SHA1 1
25853 _ACEOF
25854
25855 fi
25856
25857
25858 # Check whether --enable-md4 was given.
25859 if test "${enable_md4+set}" = set; then
25860 enableval=$enable_md4;
25861 else
25862
25863 cat >>confdefs.h <<\_ACEOF
25864 #define ENABLE_MD4 1
25865 _ACEOF
25866
25867 fi
25868
25869
25870 # Check whether --enable-md2 was given.
25871 if test "${enable_md2+set}" = set; then
25872 enableval=$enable_md2;
25873 else
25874
25875 cat >>confdefs.h <<\_ACEOF
25876 #define ENABLE_MD2 1
25877 _ACEOF
25878
25879 fi
25880
25881
25882 # Check whether --enable-tiger was given.
25883 if test "${enable_tiger+set}" = set; then
25884 enableval=$enable_tiger;
25885 else
25886
25887 cat >>confdefs.h <<\_ACEOF
25888 #define ENABLE_TIGER 1
25889 _ACEOF
25890
25891 fi
25892
25893
25894 # Check whether --enable-haval was given.
25895 if test "${enable_haval+set}" = set; then
25896 enableval=$enable_haval;
25897 else
25898
25899 cat >>confdefs.h <<\_ACEOF
25900 #define ENABLE_HAVAL 1
25901 _ACEOF
25902
25903 fi
25904
25905
25906 # Check whether --enable-crc32 was given.
25907 if test "${enable_crc32+set}" = set; then
25908 enableval=$enable_crc32;
25909 else
25910
25911 cat >>confdefs.h <<\_ACEOF
25912 #define ENABLE_CRC32 1
25913 _ACEOF
25914
25915 fi
25916
25917
25918 # Check whether --enable-adler32 was given.
25919 if test "${enable_adler32+set}" = set; then
25920 enableval=$enable_adler32;
25921 else
25922
25923 cat >>confdefs.h <<\_ACEOF
25924 #define ENABLE_ADLER32 1
25925 _ACEOF
25926
25927 fi
25928
25929
25930 # Check whether --enable-ripemd was given.
25931 if test "${enable_ripemd+set}" = set; then
25932 enableval=$enable_ripemd;
25933 else
25934
25935 cat >>confdefs.h <<\_ACEOF
25936 #define ENABLE_RIPEMD 1
25937 _ACEOF
25938
25939 fi
25940
25941
25942 # Check whether --enable-gost was given.
25943 if test "${enable_gost+set}" = set; then
25944 enableval=$enable_gost;
25945 else
25946
25947 cat >>confdefs.h <<\_ACEOF
25948 #define ENABLE_GOST 1
25949 _ACEOF
25950
25951 fi
25952
25953
25954 # Check whether --enable-sha256-sha224 was given.
25955 if test "${enable_sha256_sha224+set}" = set; then
25956 enableval=$enable_sha256_sha224;
25957 else
25958
25959 cat >>confdefs.h <<\_ACEOF
25960 #define ENABLE_SHA256_SHA224 1
25961 _ACEOF
25962
25963 fi
25964
25965
25966 # Check whether --enable-sha512-sha384 was given.
25967 if test "${enable_sha512_sha384+set}" = set; then
25968 enableval=$enable_sha512_sha384;
25969 else
25970
25971 cat >>confdefs.h <<\_ACEOF
25972 #define ENABLE_SHA512_SHA384 1
25973 _ACEOF
25974
25975 fi
25976
25977
25978 # Check whether --enable-snefru was given.
25979 if test "${enable_snefru+set}" = set; then
25980 enableval=$enable_snefru;
25981 else
25982
25983 cat >>confdefs.h <<\_ACEOF
25984 #define ENABLE_SNEFRU 1
25985 _ACEOF
25986
25987 fi
25988
25989
25990 # Check whether --enable-whirlpool was given.
25991 if test "${enable_whirlpool+set}" = set; then
25992 enableval=$enable_whirlpool;
25993 else
25994
25995 cat >>confdefs.h <<\_ACEOF
25996 #define ENABLE_WHIRLPOOL 1
25997 _ACEOF
25998
25999 fi
26000
26001
26002 ac_config_files="$ac_config_files Makefile mhash.spec include/Makefile doc/Makefile src/Makefile lib/Makefile"
26003
26004 cat >confcache <<\_ACEOF
26005 # This file is a shell script that caches the results of configure
26006 # tests run on this system so they can be shared between configure
26007 # scripts and configure runs, see configure's option --config-cache.
26008 # It is not useful on other systems. If it contains results you don't
26009 # want to keep, you may remove or edit it.
26010 #
26011 # config.status only pays attention to the cache file if you give it
26012 # the --recheck option to rerun configure.
26013 #
26014 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26015 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26016 # following values.
26017
26018 _ACEOF
26019
26020 # The following way of writing the cache mishandles newlines in values,
26021 # but we know of no workaround that is simple, portable, and efficient.
26022 # So, we kill variables containing newlines.
26023 # Ultrix sh set writes to stderr and can't be redirected directly,
26024 # and sets the high bit in the cache file unless we assign to the vars.
26025 (
26026 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26027 eval ac_val=\$$ac_var
26028 case $ac_val in #(
26029 *${as_nl}*)
26030 case $ac_var in #(
26031 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26032 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26033 esac
26034 case $ac_var in #(
26035 _ | IFS | as_nl) ;; #(
26036 *) $as_unset $ac_var ;;
26037 esac ;;
26038 esac
26039 done
26040
26041 (set) 2>&1 |
26042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26043 *${as_nl}ac_space=\ *)
26044 # `set' does not quote correctly, so add quotes (double-quote
26045 # substitution turns \\\\ into \\, and sed turns \\ into \).
26046 sed -n \
26047 "s/'/'\\\\''/g;
26048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26049 ;; #(
26050 *)
26051 # `set' quotes correctly as required by POSIX, so do not add quotes.
26052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26053 ;;
26054 esac |
26055 sort
26056 ) |
26057 sed '
26058 /^ac_cv_env_/b end
26059 t clear
26060 :clear
26061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26062 t end
26063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26064 :end' >>confcache
26065 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26066 if test -w "$cache_file"; then
26067 test "x$cache_file" != "x/dev/null" &&
26068 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26069 echo "$as_me: updating cache $cache_file" >&6;}
26070 cat confcache >$cache_file
26071 else
26072 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26073 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26074 fi
26075 fi
26076 rm -f confcache
26077
26078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26079 # Let make expand exec_prefix.
26080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26081
26082 DEFS=-DHAVE_CONFIG_H
26083
26084 ac_libobjs=
26085 ac_ltlibobjs=
26086 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26087 # 1. Remove the extension, and $U if already installed.
26088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26089 ac_i=`echo "$ac_i" | sed "$ac_script"`
26090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26091 # will be set to the directory where LIBOBJS objects are built.
26092 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26093 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26094 done
26095 LIBOBJS=$ac_libobjs
26096
26097 LTLIBOBJS=$ac_ltlibobjs
26098
26099
26100 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26101 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26102 Usually this means the macro was only invoked conditionally." >&5
26103 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26104 Usually this means the macro was only invoked conditionally." >&2;}
26105 { (exit 1); exit 1; }; }
26106 fi
26107 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26108 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26109 Usually this means the macro was only invoked conditionally." >&5
26110 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26111 Usually this means the macro was only invoked conditionally." >&2;}
26112 { (exit 1); exit 1; }; }
26113 fi
26114 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26115 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26116 Usually this means the macro was only invoked conditionally." >&5
26117 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26118 Usually this means the macro was only invoked conditionally." >&2;}
26119 { (exit 1); exit 1; }; }
26120 fi
26121 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26122 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26123 Usually this means the macro was only invoked conditionally." >&5
26124 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26125 Usually this means the macro was only invoked conditionally." >&2;}
26126 { (exit 1); exit 1; }; }
26127 fi
26128 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26129 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26130 Usually this means the macro was only invoked conditionally." >&5
26131 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26132 Usually this means the macro was only invoked conditionally." >&2;}
26133 { (exit 1); exit 1; }; }
26134 fi
26135
26136 : ${CONFIG_STATUS=./config.status}
26137 ac_clean_files_save=$ac_clean_files
26138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26139 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26140 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26141 cat >$CONFIG_STATUS <<_ACEOF
26142 #! $SHELL
26143 # Generated by $as_me.
26144 # Run this file to recreate the current configuration.
26145 # Compiler output produced by configure, useful for debugging
26146 # configure, is in config.log if it exists.
26147
26148 debug=false
26149 ac_cs_recheck=false
26150 ac_cs_silent=false
26151 SHELL=\${CONFIG_SHELL-$SHELL}
26152 _ACEOF
26153
26154 cat >>$CONFIG_STATUS <<\_ACEOF
26155 ## --------------------- ##
26156 ## M4sh Initialization. ##
26157 ## --------------------- ##
26158
26159 # Be more Bourne compatible
26160 DUALCASE=1; export DUALCASE # for MKS sh
26161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26162 emulate sh
26163 NULLCMD=:
26164 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26165 # is contrary to our usage. Disable this feature.
26166 alias -g '${1+"$@"}'='"$@"'
26167 setopt NO_GLOB_SUBST
26168 else
26169 case `(set -o) 2>/dev/null` in
26170 *posix*) set -o posix ;;
26171 esac
26172
26173 fi
26174
26175
26176
26177
26178 # PATH needs CR
26179 # Avoid depending upon Character Ranges.
26180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26183 as_cr_digits='0123456789'
26184 as_cr_alnum=$as_cr_Letters$as_cr_digits
26185
26186 # The user is always right.
26187 if test "${PATH_SEPARATOR+set}" != set; then
26188 echo "#! /bin/sh" >conf$$.sh
26189 echo "exit 0" >>conf$$.sh
26190 chmod +x conf$$.sh
26191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26192 PATH_SEPARATOR=';'
26193 else
26194 PATH_SEPARATOR=:
26195 fi
26196 rm -f conf$$.sh
26197 fi
26198
26199 # Support unset when possible.
26200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26201 as_unset=unset
26202 else
26203 as_unset=false
26204 fi
26205
26206
26207 # IFS
26208 # We need space, tab and new line, in precisely that order. Quoting is
26209 # there to prevent editors from complaining about space-tab.
26210 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26211 # splitting by setting IFS to empty value.)
26212 as_nl='
26213 '
26214 IFS=" "" $as_nl"
26215
26216 # Find who we are. Look in the path if we contain no directory separator.
26217 case $0 in
26218 *[\\/]* ) as_myself=$0 ;;
26219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26220 for as_dir in $PATH
26221 do
26222 IFS=$as_save_IFS
26223 test -z "$as_dir" && as_dir=.
26224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26225 done
26226 IFS=$as_save_IFS
26227
26228 ;;
26229 esac
26230 # We did not find ourselves, most probably we were run as `sh COMMAND'
26231 # in which case we are not to be found in the path.
26232 if test "x$as_myself" = x; then
26233 as_myself=$0
26234 fi
26235 if test ! -f "$as_myself"; then
26236 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26237 { (exit 1); exit 1; }
26238 fi
26239
26240 # Work around bugs in pre-3.0 UWIN ksh.
26241 for as_var in ENV MAIL MAILPATH
26242 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26243 done
26244 PS1='$ '
26245 PS2='> '
26246 PS4='+ '
26247
26248 # NLS nuisances.
26249 for as_var in \
26250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26252 LC_TELEPHONE LC_TIME
26253 do
26254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26255 eval $as_var=C; export $as_var
26256 else
26257 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26258 fi
26259 done
26260
26261 # Required to use basename.
26262 if expr a : '\(a\)' >/dev/null 2>&1 &&
26263 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26264 as_expr=expr
26265 else
26266 as_expr=false
26267 fi
26268
26269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26270 as_basename=basename
26271 else
26272 as_basename=false
26273 fi
26274
26275
26276 # Name of the executable.
26277 as_me=`$as_basename -- "$0" ||
26278 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26279 X"$0" : 'X\(//\)$' \| \
26280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26281 echo X/"$0" |
26282 sed '/^.*\/\([^/][^/]*\)\/*$/{
26283 s//\1/
26284 q
26285 }
26286 /^X\/\(\/\/\)$/{
26287 s//\1/
26288 q
26289 }
26290 /^X\/\(\/\).*/{
26291 s//\1/
26292 q
26293 }
26294 s/.*/./; q'`
26295
26296 # CDPATH.
26297 $as_unset CDPATH
26298
26299
26300
26301 as_lineno_1=$LINENO
26302 as_lineno_2=$LINENO
26303 test "x$as_lineno_1" != "x$as_lineno_2" &&
26304 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26305
26306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26307 # uniformly replaced by the line number. The first 'sed' inserts a
26308 # line-number line after each line using $LINENO; the second 'sed'
26309 # does the real work. The second script uses 'N' to pair each
26310 # line-number line with the line containing $LINENO, and appends
26311 # trailing '-' during substitution so that $LINENO is not a special
26312 # case at line end.
26313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26314 # scripts with optimization help from Paolo Bonzini. Blame Lee
26315 # E. McMahon (1931-1989) for sed's syntax. :-)
26316 sed -n '
26317 p
26318 /[$]LINENO/=
26319 ' <$as_myself |
26320 sed '
26321 s/[$]LINENO.*/&-/
26322 t lineno
26323 b
26324 :lineno
26325 N
26326 :loop
26327 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26328 t loop
26329 s/-\n.*//
26330 ' >$as_me.lineno &&
26331 chmod +x "$as_me.lineno" ||
26332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26333 { (exit 1); exit 1; }; }
26334
26335 # Don't try to exec as it changes $[0], causing all sort of problems
26336 # (the dirname of $[0] is not the place where we might find the
26337 # original and so on. Autoconf is especially sensitive to this).
26338 . "./$as_me.lineno"
26339 # Exit status is that of the last command.
26340 exit
26341 }
26342
26343
26344 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26345 as_dirname=dirname
26346 else
26347 as_dirname=false
26348 fi
26349
26350 ECHO_C= ECHO_N= ECHO_T=
26351 case `echo -n x` in
26352 -n*)
26353 case `echo 'x\c'` in
26354 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26355 *) ECHO_C='\c';;
26356 esac;;
26357 *)
26358 ECHO_N='-n';;
26359 esac
26360
26361 if expr a : '\(a\)' >/dev/null 2>&1 &&
26362 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26363 as_expr=expr
26364 else
26365 as_expr=false
26366 fi
26367
26368 rm -f conf$$ conf$$.exe conf$$.file
26369 if test -d conf$$.dir; then
26370 rm -f conf$$.dir/conf$$.file
26371 else
26372 rm -f conf$$.dir
26373 mkdir conf$$.dir
26374 fi
26375 echo >conf$$.file
26376 if ln -s conf$$.file conf$$ 2>/dev/null; then
26377 as_ln_s='ln -s'
26378 # ... but there are two gotchas:
26379 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26380 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26381 # In both cases, we have to default to `cp -p'.
26382 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26383 as_ln_s='cp -p'
26384 elif ln conf$$.file conf$$ 2>/dev/null; then
26385 as_ln_s=ln
26386 else
26387 as_ln_s='cp -p'
26388 fi
26389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26390 rmdir conf$$.dir 2>/dev/null
26391
26392 if mkdir -p . 2>/dev/null; then
26393 as_mkdir_p=:
26394 else
26395 test -d ./-p && rmdir ./-p
26396 as_mkdir_p=false
26397 fi
26398
26399 if test -x / >/dev/null 2>&1; then
26400 as_test_x='test -x'
26401 else
26402 if ls -dL / >/dev/null 2>&1; then
26403 as_ls_L_option=L
26404 else
26405 as_ls_L_option=
26406 fi
26407 as_test_x='
26408 eval sh -c '\''
26409 if test -d "$1"; then
26410 test -d "$1/.";
26411 else
26412 case $1 in
26413 -*)set "./$1";;
26414 esac;
26415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26416 ???[sx]*):;;*)false;;esac;fi
26417 '\'' sh
26418 '
26419 fi
26420 as_executable_p=$as_test_x
26421
26422 # Sed expression to map a string onto a valid CPP name.
26423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26424
26425 # Sed expression to map a string onto a valid variable name.
26426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26427
26428
26429 exec 6>&1
26430
26431 # Save the log message, to keep $[0] and so on meaningful, and to
26432 # report actual input values of CONFIG_FILES etc. instead of their
26433 # values after options handling.
26434 ac_log="
26435 This file was extended by MHASH $as_me 0.9.9, which was
26436 generated by GNU Autoconf 2.61. Invocation command line was
26437
26438 CONFIG_FILES = $CONFIG_FILES
26439 CONFIG_HEADERS = $CONFIG_HEADERS
26440 CONFIG_LINKS = $CONFIG_LINKS
26441 CONFIG_COMMANDS = $CONFIG_COMMANDS
26442 $ $0 $@
26443
26444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26445 "
26446
26447 _ACEOF
26448
26449 cat >>$CONFIG_STATUS <<_ACEOF
26450 # Files that config.status was made for.
26451 config_files="$ac_config_files"
26452 config_headers="$ac_config_headers"
26453 config_commands="$ac_config_commands"
26454
26455 _ACEOF
26456
26457 cat >>$CONFIG_STATUS <<\_ACEOF
26458 ac_cs_usage="\
26459 \`$as_me' instantiates files from templates according to the
26460 current configuration.
26461
26462 Usage: $0 [OPTIONS] [FILE]...
26463
26464 -h, --help print this help, then exit
26465 -V, --version print version number and configuration settings, then exit
26466 -q, --quiet do not print progress messages
26467 -d, --debug don't remove temporary files
26468 --recheck update $as_me by reconfiguring in the same conditions
26469 --file=FILE[:TEMPLATE]
26470 instantiate the configuration file FILE
26471 --header=FILE[:TEMPLATE]
26472 instantiate the configuration header FILE
26473
26474 Configuration files:
26475 $config_files
26476
26477 Configuration headers:
26478 $config_headers
26479
26480 Configuration commands:
26481 $config_commands
26482
26483 Report bugs to <[email protected]>."
26484
26485 _ACEOF
26486 cat >>$CONFIG_STATUS <<_ACEOF
26487 ac_cs_version="\\
26488 MHASH config.status 0.9.9
26489 configured by $0, generated by GNU Autoconf 2.61,
26490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26491
26492 Copyright (C) 2006 Free Software Foundation, Inc.
26493 This config.status script is free software; the Free Software Foundation
26494 gives unlimited permission to copy, distribute and modify it."
26495
26496 ac_pwd='$ac_pwd'
26497 srcdir='$srcdir'
26498 INSTALL='$INSTALL'
26499 _ACEOF
26500
26501 cat >>$CONFIG_STATUS <<\_ACEOF
26502 # If no file are specified by the user, then we need to provide default
26503 # value. By we need to know if files were specified by the user.
26504 ac_need_defaults=:
26505 while test $# != 0
26506 do
26507 case $1 in
26508 --*=*)
26509 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26511 ac_shift=:
26512 ;;
26513 *)
26514 ac_option=$1
26515 ac_optarg=$2
26516 ac_shift=shift
26517 ;;
26518 esac
26519
26520 case $ac_option in
26521 # Handling of the options.
26522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26523 ac_cs_recheck=: ;;
26524 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26525 echo "$ac_cs_version"; exit ;;
26526 --debug | --debu | --deb | --de | --d | -d )
26527 debug=: ;;
26528 --file | --fil | --fi | --f )
26529 $ac_shift
26530 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26531 ac_need_defaults=false;;
26532 --header | --heade | --head | --hea )
26533 $ac_shift
26534 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26535 ac_need_defaults=false;;
26536 --he | --h)
26537 # Conflict between --help and --header
26538 { echo "$as_me: error: ambiguous option: $1
26539 Try \`$0 --help' for more information." >&2
26540 { (exit 1); exit 1; }; };;
26541 --help | --hel | -h )
26542 echo "$ac_cs_usage"; exit ;;
26543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26545 ac_cs_silent=: ;;
26546
26547 # This is an error.
26548 -*) { echo "$as_me: error: unrecognized option: $1
26549 Try \`$0 --help' for more information." >&2
26550 { (exit 1); exit 1; }; } ;;
26551
26552 *) ac_config_targets="$ac_config_targets $1"
26553 ac_need_defaults=false ;;
26554
26555 esac
26556 shift
26557 done
26558
26559 ac_configure_extra_args=
26560
26561 if $ac_cs_silent; then
26562 exec 6>/dev/null
26563 ac_configure_extra_args="$ac_configure_extra_args --silent"
26564 fi
26565
26566 _ACEOF
26567 cat >>$CONFIG_STATUS <<_ACEOF
26568 if \$ac_cs_recheck; then
26569 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26570 CONFIG_SHELL=$SHELL
26571 export CONFIG_SHELL
26572 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26573 fi
26574
26575 _ACEOF
26576 cat >>$CONFIG_STATUS <<\_ACEOF
26577 exec 5>>config.log
26578 {
26579 echo
26580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26581 ## Running $as_me. ##
26582 _ASBOX
26583 echo "$ac_log"
26584 } >&5
26585
26586 _ACEOF
26587 cat >>$CONFIG_STATUS <<_ACEOF
26588 #
26589 # INIT-COMMANDS
26590 #
26591 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26592
26593 _ACEOF
26594
26595 cat >>$CONFIG_STATUS <<\_ACEOF
26596
26597 # Handling of arguments.
26598 for ac_config_target in $ac_config_targets
26599 do
26600 case $ac_config_target in
26601 "include/mutils/mhash_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/mutils/mhash_config.h" ;;
26602 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26603 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26604 "mhash.spec") CONFIG_FILES="$CONFIG_FILES mhash.spec" ;;
26605 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26606 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26607 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26608 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26609
26610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26611 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26612 { (exit 1); exit 1; }; };;
26613 esac
26614 done
26615
26616
26617 # If the user did not use the arguments to specify the items to instantiate,
26618 # then the envvar interface is used. Set only those that are not.
26619 # We use the long form for the default assignment because of an extremely
26620 # bizarre bug on SunOS 4.1.3.
26621 if $ac_need_defaults; then
26622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26625 fi
26626
26627 # Have a temporary directory for convenience. Make it in the build tree
26628 # simply because there is no reason against having it here, and in addition,
26629 # creating and moving files from /tmp can sometimes cause problems.
26630 # Hook for its removal unless debugging.
26631 # Note that there is a small window in which the directory will not be cleaned:
26632 # after its creation but before its name has been assigned to `$tmp'.
26633 $debug ||
26634 {
26635 tmp=
26636 trap 'exit_status=$?
26637 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26638 ' 0
26639 trap '{ (exit 1); exit 1; }' 1 2 13 15
26640 }
26641 # Create a (secure) tmp directory for tmp files.
26642
26643 {
26644 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26645 test -n "$tmp" && test -d "$tmp"
26646 } ||
26647 {
26648 tmp=./conf$$-$RANDOM
26649 (umask 077 && mkdir "$tmp")
26650 } ||
26651 {
26652 echo "$me: cannot create a temporary directory in ." >&2
26653 { (exit 1); exit 1; }
26654 }
26655
26656 #
26657 # Set up the sed scripts for CONFIG_FILES section.
26658 #
26659
26660 # No need to generate the scripts if there are no CONFIG_FILES.
26661 # This happens for instance when ./config.status config.h
26662 if test -n "$CONFIG_FILES"; then
26663
26664 _ACEOF
26665
26666
26667
26668 ac_delim='%!_!# '
26669 for ac_last_try in false false false false false :; do
26670 cat >conf$$subs.sed <<_ACEOF
26671 SHELL!$SHELL$ac_delim
26672 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26673 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26674 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26675 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26676 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26677 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26678 exec_prefix!$exec_prefix$ac_delim
26679 prefix!$prefix$ac_delim
26680 program_transform_name!$program_transform_name$ac_delim
26681 bindir!$bindir$ac_delim
26682 sbindir!$sbindir$ac_delim
26683 libexecdir!$libexecdir$ac_delim
26684 datarootdir!$datarootdir$ac_delim
26685 datadir!$datadir$ac_delim
26686 sysconfdir!$sysconfdir$ac_delim
26687 sharedstatedir!$sharedstatedir$ac_delim
26688 localstatedir!$localstatedir$ac_delim
26689 includedir!$includedir$ac_delim
26690 oldincludedir!$oldincludedir$ac_delim
26691 docdir!$docdir$ac_delim
26692 infodir!$infodir$ac_delim
26693 htmldir!$htmldir$ac_delim
26694 dvidir!$dvidir$ac_delim
26695 pdfdir!$pdfdir$ac_delim
26696 psdir!$psdir$ac_delim
26697 libdir!$libdir$ac_delim
26698 localedir!$localedir$ac_delim
26699 mandir!$mandir$ac_delim
26700 DEFS!$DEFS$ac_delim
26701 ECHO_C!$ECHO_C$ac_delim
26702 ECHO_N!$ECHO_N$ac_delim
26703 ECHO_T!$ECHO_T$ac_delim
26704 LIBS!$LIBS$ac_delim
26705 build_alias!$build_alias$ac_delim
26706 host_alias!$host_alias$ac_delim
26707 target_alias!$target_alias$ac_delim
26708 build!$build$ac_delim
26709 build_cpu!$build_cpu$ac_delim
26710 build_vendor!$build_vendor$ac_delim
26711 build_os!$build_os$ac_delim
26712 host!$host$ac_delim
26713 host_cpu!$host_cpu$ac_delim
26714 host_vendor!$host_vendor$ac_delim
26715 host_os!$host_os$ac_delim
26716 target!$target$ac_delim
26717 target_cpu!$target_cpu$ac_delim
26718 target_vendor!$target_vendor$ac_delim
26719 target_os!$target_os$ac_delim
26720 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26721 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26722 INSTALL_DATA!$INSTALL_DATA$ac_delim
26723 CYGPATH_W!$CYGPATH_W$ac_delim
26724 PACKAGE!$PACKAGE$ac_delim
26725 VERSION!$VERSION$ac_delim
26726 ACLOCAL!$ACLOCAL$ac_delim
26727 AUTOCONF!$AUTOCONF$ac_delim
26728 AUTOMAKE!$AUTOMAKE$ac_delim
26729 AUTOHEADER!$AUTOHEADER$ac_delim
26730 MAKEINFO!$MAKEINFO$ac_delim
26731 install_sh!$install_sh$ac_delim
26732 STRIP!$STRIP$ac_delim
26733 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26734 mkdir_p!$mkdir_p$ac_delim
26735 AWK!$AWK$ac_delim
26736 SET_MAKE!$SET_MAKE$ac_delim
26737 am__leading_dot!$am__leading_dot$ac_delim
26738 AMTAR!$AMTAR$ac_delim
26739 am__tar!$am__tar$ac_delim
26740 am__untar!$am__untar$ac_delim
26741 CC!$CC$ac_delim
26742 CFLAGS!$CFLAGS$ac_delim
26743 LDFLAGS!$LDFLAGS$ac_delim
26744 CPPFLAGS!$CPPFLAGS$ac_delim
26745 ac_ct_CC!$ac_ct_CC$ac_delim
26746 EXEEXT!$EXEEXT$ac_delim
26747 OBJEXT!$OBJEXT$ac_delim
26748 DEPDIR!$DEPDIR$ac_delim
26749 am__include!$am__include$ac_delim
26750 am__quote!$am__quote$ac_delim
26751 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26752 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26753 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26754 CCDEPMODE!$CCDEPMODE$ac_delim
26755 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26756 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26757 CPP!$CPP$ac_delim
26758 GREP!$GREP$ac_delim
26759 EGREP!$EGREP$ac_delim
26760 CCAS!$CCAS$ac_delim
26761 CCASFLAGS!$CCASFLAGS$ac_delim
26762 CXX!$CXX$ac_delim
26763 CXXFLAGS!$CXXFLAGS$ac_delim
26764 ac_ct_CXX!$ac_ct_CXX$ac_delim
26765 CXXDEPMODE!$CXXDEPMODE$ac_delim
26766 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26767 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26768 _ACEOF
26769
26770 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26771 break
26772 elif $ac_last_try; then
26773 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26774 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26775 { (exit 1); exit 1; }; }
26776 else
26777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26778 fi
26779 done
26780
26781 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26782 if test -n "$ac_eof"; then
26783 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26784 ac_eof=`expr $ac_eof + 1`
26785 fi
26786
26787 cat >>$CONFIG_STATUS <<_ACEOF
26788 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26790 _ACEOF
26791 sed '
26792 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26793 s/^/s,@/; s/!/@,|#_!!_#|/
26794 :n
26795 t n
26796 s/'"$ac_delim"'$/,g/; t
26797 s/$/\\/; p
26798 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26799 ' >>$CONFIG_STATUS <conf$$subs.sed
26800 rm -f conf$$subs.sed
26801 cat >>$CONFIG_STATUS <<_ACEOF
26802 CEOF$ac_eof
26803 _ACEOF
26804
26805
26806 ac_delim='%!_!# '
26807 for ac_last_try in false false false false false :; do
26808 cat >conf$$subs.sed <<_ACEOF
26809 LN_S!$LN_S$ac_delim
26810 ECHO!$ECHO$ac_delim
26811 AR!$AR$ac_delim
26812 RANLIB!$RANLIB$ac_delim
26813 DLLTOOL!$DLLTOOL$ac_delim
26814 AS!$AS$ac_delim
26815 OBJDUMP!$OBJDUMP$ac_delim
26816 CXXCPP!$CXXCPP$ac_delim
26817 F77!$F77$ac_delim
26818 FFLAGS!$FFLAGS$ac_delim
26819 ac_ct_F77!$ac_ct_F77$ac_delim
26820 LIBTOOL!$LIBTOOL$ac_delim
26821 LIBOBJS!$LIBOBJS$ac_delim
26822 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26823 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26824 MAINT!$MAINT$ac_delim
26825 LTLIBOBJS!$LTLIBOBJS$ac_delim
26826 _ACEOF
26827
26828 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
26829 break
26830 elif $ac_last_try; then
26831 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26832 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26833 { (exit 1); exit 1; }; }
26834 else
26835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26836 fi
26837 done
26838
26839 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26840 if test -n "$ac_eof"; then
26841 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26842 ac_eof=`expr $ac_eof + 1`
26843 fi
26844
26845 cat >>$CONFIG_STATUS <<_ACEOF
26846 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26848 _ACEOF
26849 sed '
26850 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26851 s/^/s,@/; s/!/@,|#_!!_#|/
26852 :n
26853 t n
26854 s/'"$ac_delim"'$/,g/; t
26855 s/$/\\/; p
26856 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26857 ' >>$CONFIG_STATUS <conf$$subs.sed
26858 rm -f conf$$subs.sed
26859 cat >>$CONFIG_STATUS <<_ACEOF
26860 :end
26861 s/|#_!!_#|//g
26862 CEOF$ac_eof
26863 _ACEOF
26864
26865
26866 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26867 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26868 # trailing colons and then remove the whole line if VPATH becomes empty
26869 # (actually we leave an empty line to preserve line numbers).
26870 if test "x$srcdir" = x.; then
26871 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26872 s/:*\$(srcdir):*/:/
26873 s/:*\${srcdir}:*/:/
26874 s/:*@srcdir@:*/:/
26875 s/^\([^=]*=[ ]*\):*/\1/
26876 s/:*$//
26877 s/^[^=]*=[ ]*$//
26878 }'
26879 fi
26880
26881 cat >>$CONFIG_STATUS <<\_ACEOF
26882 fi # test -n "$CONFIG_FILES"
26883
26884
26885 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26886 do
26887 case $ac_tag in
26888 :[FHLC]) ac_mode=$ac_tag; continue;;
26889 esac
26890 case $ac_mode$ac_tag in
26891 :[FHL]*:*);;
26892 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26893 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26894 { (exit 1); exit 1; }; };;
26895 :[FH]-) ac_tag=-:-;;
26896 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26897 esac
26898 ac_save_IFS=$IFS
26899 IFS=:
26900 set x $ac_tag
26901 IFS=$ac_save_IFS
26902 shift
26903 ac_file=$1
26904 shift
26905
26906 case $ac_mode in
26907 :L) ac_source=$1;;
26908 :[FH])
26909 ac_file_inputs=
26910 for ac_f
26911 do
26912 case $ac_f in
26913 -) ac_f="$tmp/stdin";;
26914 *) # Look for the file first in the build tree, then in the source tree
26915 # (if the path is not absolute). The absolute path cannot be DOS-style,
26916 # because $ac_f cannot contain `:'.
26917 test -f "$ac_f" ||
26918 case $ac_f in
26919 [\\/$]*) false;;
26920 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26921 esac ||
26922 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26923 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26924 { (exit 1); exit 1; }; };;
26925 esac
26926 ac_file_inputs="$ac_file_inputs $ac_f"
26927 done
26928
26929 # Let's still pretend it is `configure' which instantiates (i.e., don't
26930 # use $as_me), people would be surprised to read:
26931 # /* config.h. Generated by config.status. */
26932 configure_input="Generated from "`IFS=:
26933 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26934 if test x"$ac_file" != x-; then
26935 configure_input="$ac_file. $configure_input"
26936 { echo "$as_me:$LINENO: creating $ac_file" >&5
26937 echo "$as_me: creating $ac_file" >&6;}
26938 fi
26939
26940 case $ac_tag in
26941 *:-:* | *:-) cat >"$tmp/stdin";;
26942 esac
26943 ;;
26944 esac
26945
26946 ac_dir=`$as_dirname -- "$ac_file" ||
26947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26948 X"$ac_file" : 'X\(//\)[^/]' \| \
26949 X"$ac_file" : 'X\(//\)$' \| \
26950 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26951 echo X"$ac_file" |
26952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26953 s//\1/
26954 q
26955 }
26956 /^X\(\/\/\)[^/].*/{
26957 s//\1/
26958 q
26959 }
26960 /^X\(\/\/\)$/{
26961 s//\1/
26962 q
26963 }
26964 /^X\(\/\).*/{
26965 s//\1/
26966 q
26967 }
26968 s/.*/./; q'`
26969 { as_dir="$ac_dir"
26970 case $as_dir in #(
26971 -*) as_dir=./$as_dir;;
26972 esac
26973 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26974 as_dirs=
26975 while :; do
26976 case $as_dir in #(
26977 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26978 *) as_qdir=$as_dir;;
26979 esac
26980 as_dirs="'$as_qdir' $as_dirs"
26981 as_dir=`$as_dirname -- "$as_dir" ||
26982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26983 X"$as_dir" : 'X\(//\)[^/]' \| \
26984 X"$as_dir" : 'X\(//\)$' \| \
26985 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26986 echo X"$as_dir" |
26987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26988 s//\1/
26989 q
26990 }
26991 /^X\(\/\/\)[^/].*/{
26992 s//\1/
26993 q
26994 }
26995 /^X\(\/\/\)$/{
26996 s//\1/
26997 q
26998 }
26999 /^X\(\/\).*/{
27000 s//\1/
27001 q
27002 }
27003 s/.*/./; q'`
27004 test -d "$as_dir" && break
27005 done
27006 test -z "$as_dirs" || eval "mkdir $as_dirs"
27007 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27008 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27009 { (exit 1); exit 1; }; }; }
27010 ac_builddir=.
27011
27012 case "$ac_dir" in
27013 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27014 *)
27015 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27016 # A ".." for each directory in $ac_dir_suffix.
27017 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27018 case $ac_top_builddir_sub in
27019 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27020 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27021 esac ;;
27022 esac
27023 ac_abs_top_builddir=$ac_pwd
27024 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27025 # for backward compatibility:
27026 ac_top_builddir=$ac_top_build_prefix
27027
27028 case $srcdir in
27029 .) # We are building in place.
27030 ac_srcdir=.
27031 ac_top_srcdir=$ac_top_builddir_sub
27032 ac_abs_top_srcdir=$ac_pwd ;;
27033 [\\/]* | ?:[\\/]* ) # Absolute name.
27034 ac_srcdir=$srcdir$ac_dir_suffix;
27035 ac_top_srcdir=$srcdir
27036 ac_abs_top_srcdir=$srcdir ;;
27037 *) # Relative name.
27038 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27039 ac_top_srcdir=$ac_top_build_prefix$srcdir
27040 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27041 esac
27042 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27043
27044
27045 case $ac_mode in
27046 :F)
27047 #
27048 # CONFIG_FILE
27049 #
27050
27051 case $INSTALL in
27052 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27053 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27054 esac
27055 _ACEOF
27056
27057 cat >>$CONFIG_STATUS <<\_ACEOF
27058 # If the template does not know about datarootdir, expand it.
27059 # FIXME: This hack should be removed a few years after 2.60.
27060 ac_datarootdir_hack=; ac_datarootdir_seen=
27061
27062 case `sed -n '/datarootdir/ {
27063 p
27064 q
27065 }
27066 /@datadir@/p
27067 /@docdir@/p
27068 /@infodir@/p
27069 /@localedir@/p
27070 /@mandir@/p
27071 ' $ac_file_inputs` in
27072 *datarootdir*) ac_datarootdir_seen=yes;;
27073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27074 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27075 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27076 _ACEOF
27077 cat >>$CONFIG_STATUS <<_ACEOF
27078 ac_datarootdir_hack='
27079 s&@datadir@&$datadir&g
27080 s&@docdir@&$docdir&g
27081 s&@infodir@&$infodir&g
27082 s&@localedir@&$localedir&g
27083 s&@mandir@&$mandir&g
27084 s&\\\${datarootdir}&$datarootdir&g' ;;
27085 esac
27086 _ACEOF
27087
27088 # Neutralize VPATH when `$srcdir' = `.'.
27089 # Shell code in configure.ac might set extrasub.
27090 # FIXME: do we really want to maintain this feature?
27091 cat >>$CONFIG_STATUS <<_ACEOF
27092 sed "$ac_vpsub
27093 $extrasub
27094 _ACEOF
27095 cat >>$CONFIG_STATUS <<\_ACEOF
27096 :t
27097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27098 s&@configure_input@&$configure_input&;t t
27099 s&@top_builddir@&$ac_top_builddir_sub&;t t
27100 s&@srcdir@&$ac_srcdir&;t t
27101 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27102 s&@top_srcdir@&$ac_top_srcdir&;t t
27103 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27104 s&@builddir@&$ac_builddir&;t t
27105 s&@abs_builddir@&$ac_abs_builddir&;t t
27106 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27107 s&@INSTALL@&$ac_INSTALL&;t t
27108 $ac_datarootdir_hack
27109 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27110
27111 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27112 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27113 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27114 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27115 which seems to be undefined. Please make sure it is defined." >&5
27116 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27117 which seems to be undefined. Please make sure it is defined." >&2;}
27118
27119 rm -f "$tmp/stdin"
27120 case $ac_file in
27121 -) cat "$tmp/out"; rm -f "$tmp/out";;
27122 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27123 esac
27124 ;;
27125 :H)
27126 #
27127 # CONFIG_HEADER
27128 #
27129 _ACEOF
27130
27131 # Transform confdefs.h into a sed script `conftest.defines', that
27132 # substitutes the proper values into config.h.in to produce config.h.
27133 rm -f conftest.defines conftest.tail
27134 # First, append a space to every undef/define line, to ease matching.
27135 echo 's/$/ /' >conftest.defines
27136 # Then, protect against being on the right side of a sed subst, or in
27137 # an unquoted here document, in config.status. If some macros were
27138 # called several times there might be several #defines for the same
27139 # symbol, which is useless. But do not sort them, since the last
27140 # AC_DEFINE must be honored.
27141 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27142 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27143 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27144 # PARAMS is the parameter list in the macro definition--in most cases, it's
27145 # just an empty string.
27146 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27147 ac_dB='\\)[ (].*,\\1define\\2'
27148 ac_dC=' '
27149 ac_dD=' ,'
27150
27151 uniq confdefs.h |
27152 sed -n '
27153 t rset
27154 :rset
27155 s/^[ ]*#[ ]*define[ ][ ]*//
27156 t ok
27157 d
27158 :ok
27159 s/[\\&,]/\\&/g
27160 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27161 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27162 ' >>conftest.defines
27163
27164 # Remove the space that was appended to ease matching.
27165 # Then replace #undef with comments. This is necessary, for
27166 # example, in the case of _POSIX_SOURCE, which is predefined and required
27167 # on some systems where configure will not decide to define it.
27168 # (The regexp can be short, since the line contains either #define or #undef.)
27169 echo 's/ $//
27170 s,^[ #]*u.*,/* & */,' >>conftest.defines
27171
27172 # Break up conftest.defines:
27173 ac_max_sed_lines=50
27174
27175 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27176 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27177 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27178 # et cetera.
27179 ac_in='$ac_file_inputs'
27180 ac_out='"$tmp/out1"'
27181 ac_nxt='"$tmp/out2"'
27182
27183 while :
27184 do
27185 # Write a here document:
27186 cat >>$CONFIG_STATUS <<_ACEOF
27187 # First, check the format of the line:
27188 cat >"\$tmp/defines.sed" <<\\CEOF
27189 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27190 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27191 b
27192 :def
27193 _ACEOF
27194 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27195 echo 'CEOF
27196 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27197 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27198 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27199 grep . conftest.tail >/dev/null || break
27200 rm -f conftest.defines
27201 mv conftest.tail conftest.defines
27202 done
27203 rm -f conftest.defines conftest.tail
27204
27205 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27206 cat >>$CONFIG_STATUS <<\_ACEOF
27207 if test x"$ac_file" != x-; then
27208 echo "/* $configure_input */" >"$tmp/config.h"
27209 cat "$ac_result" >>"$tmp/config.h"
27210 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27211 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27212 echo "$as_me: $ac_file is unchanged" >&6;}
27213 else
27214 rm -f $ac_file
27215 mv "$tmp/config.h" $ac_file
27216 fi
27217 else
27218 echo "/* $configure_input */"
27219 cat "$ac_result"
27220 fi
27221 rm -f "$tmp/out12"
27222 # Compute $ac_file's index in $config_headers.
27223 _am_stamp_count=1
27224 for _am_header in $config_headers :; do
27225 case $_am_header in
27226 $ac_file | $ac_file:* )
27227 break ;;
27228 * )
27229 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27230 esac
27231 done
27232 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27233 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27234 X$ac_file : 'X\(//\)[^/]' \| \
27235 X$ac_file : 'X\(//\)$' \| \
27236 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27237 echo X$ac_file |
27238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27239 s//\1/
27240 q
27241 }
27242 /^X\(\/\/\)[^/].*/{
27243 s//\1/
27244 q
27245 }
27246 /^X\(\/\/\)$/{
27247 s//\1/
27248 q
27249 }
27250 /^X\(\/\).*/{
27251 s//\1/
27252 q
27253 }
27254 s/.*/./; q'`/stamp-h$_am_stamp_count
27255 ;;
27256
27257 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27258 echo "$as_me: executing $ac_file commands" >&6;}
27259 ;;
27260 esac
27261
27262
27263 case $ac_file$ac_mode in
27264 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27265 # Strip MF so we end up with the name of the file.
27266 mf=`echo "$mf" | sed -e 's/:.*$//'`
27267 # Check whether this is an Automake generated Makefile or not.
27268 # We used to match only the files named `Makefile.in', but
27269 # some people rename them; so instead we look at the file content.
27270 # Grep'ing the first line is not enough: some people post-process
27271 # each Makefile.in and add a new line on top of each file to say so.
27272 # So let's grep whole file.
27273 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27274 dirpart=`$as_dirname -- "$mf" ||
27275 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27276 X"$mf" : 'X\(//\)[^/]' \| \
27277 X"$mf" : 'X\(//\)$' \| \
27278 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27279 echo X"$mf" |
27280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27281 s//\1/
27282 q
27283 }
27284 /^X\(\/\/\)[^/].*/{
27285 s//\1/
27286 q
27287 }
27288 /^X\(\/\/\)$/{
27289 s//\1/
27290 q
27291 }
27292 /^X\(\/\).*/{
27293 s//\1/
27294 q
27295 }
27296 s/.*/./; q'`
27297 else
27298 continue
27299 fi
27300 # Extract the definition of DEPDIR, am__include, and am__quote
27301 # from the Makefile without running `make'.
27302 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27303 test -z "$DEPDIR" && continue
27304 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27305 test -z "am__include" && continue
27306 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27307 # When using ansi2knr, U may be empty or an underscore; expand it
27308 U=`sed -n 's/^U = //p' < "$mf"`
27309 # Find all dependency output files, they are included files with
27310 # $(DEPDIR) in their names. We invoke sed twice because it is the
27311 # simplest approach to changing $(DEPDIR) to its actual value in the
27312 # expansion.
27313 for file in `sed -n "
27314 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27315 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27316 # Make sure the directory exists.
27317 test -f "$dirpart/$file" && continue
27318 fdir=`$as_dirname -- "$file" ||
27319 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27320 X"$file" : 'X\(//\)[^/]' \| \
27321 X"$file" : 'X\(//\)$' \| \
27322 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27323 echo X"$file" |
27324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27325 s//\1/
27326 q
27327 }
27328 /^X\(\/\/\)[^/].*/{
27329 s//\1/
27330 q
27331 }
27332 /^X\(\/\/\)$/{
27333 s//\1/
27334 q
27335 }
27336 /^X\(\/\).*/{
27337 s//\1/
27338 q
27339 }
27340 s/.*/./; q'`
27341 { as_dir=$dirpart/$fdir
27342 case $as_dir in #(
27343 -*) as_dir=./$as_dir;;
27344 esac
27345 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27346 as_dirs=
27347 while :; do
27348 case $as_dir in #(
27349 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27350 *) as_qdir=$as_dir;;
27351 esac
27352 as_dirs="'$as_qdir' $as_dirs"
27353 as_dir=`$as_dirname -- "$as_dir" ||
27354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27355 X"$as_dir" : 'X\(//\)[^/]' \| \
27356 X"$as_dir" : 'X\(//\)$' \| \
27357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27358 echo X"$as_dir" |
27359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27360 s//\1/
27361 q
27362 }
27363 /^X\(\/\/\)[^/].*/{
27364 s//\1/
27365 q
27366 }
27367 /^X\(\/\/\)$/{
27368 s//\1/
27369 q
27370 }
27371 /^X\(\/\).*/{
27372 s//\1/
27373 q
27374 }
27375 s/.*/./; q'`
27376 test -d "$as_dir" && break
27377 done
27378 test -z "$as_dirs" || eval "mkdir $as_dirs"
27379 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27381 { (exit 1); exit 1; }; }; }
27382 # echo "creating $dirpart/$file"
27383 echo '# dummy' > "$dirpart/$file"
27384 done
27385 done
27386 ;;
27387
27388 esac
27389 done # for ac_tag
27390
27391
27392 { (exit 0); exit 0; }
27393 _ACEOF
27394 chmod +x $CONFIG_STATUS
27395 ac_clean_files=$ac_clean_files_save
27396
27397
27398 # configure is writing to config.log, and then calls config.status.
27399 # config.status does its own redirection, appending to config.log.
27400 # Unfortunately, on DOS this fails, as config.log is still kept open
27401 # by configure, so config.status won't be able to write to it; its
27402 # output is simply discarded. So we exec the FD to /dev/null,
27403 # effectively closing config.log, so it can be properly (re)opened and
27404 # appended to by config.status. When coming back to configure, we
27405 # need to make the FD available again.
27406 if test "$no_create" != yes; then
27407 ac_cs_success=:
27408 ac_config_status_args=
27409 test "$silent" = yes &&
27410 ac_config_status_args="$ac_config_status_args --quiet"
27411 exec 5>/dev/null
27412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27413 exec 5>>config.log
27414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27415 # would make configure fail if this is the last instruction.
27416 $ac_cs_success || { (exit 1); exit 1; }
27417 fi
27418