1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for rrdtool 1.2.26.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
252 fi
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
273 fi
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
336 fi
338 fi
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='rrdtool'
728 PACKAGE_TARNAME='rrdtool'
729 PACKAGE_VERSION='1.2.26'
730 PACKAGE_STRING='rrdtool 1.2.26'
731 PACKAGE_BUGREPORT=''
733 ac_default_prefix=/usr/local/rrdtool-$PACKAGE_VERSION
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='PERLFLAGS
771 SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 NUMVERS
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 RRDGRAPH_YLEGEND_ANGLE
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 CPP
860 GREP
861 EGREP
862 LN_S
863 ECHO
864 AR
865 RANLIB
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 RRD_DEFAULT_FONT
878 MULTITHREAD_CFLAGS
879 MULTITHREAD_LDFLAGS
880 acx_pthread_config
881 PTHREAD_CC
882 PTHREAD_LIBS
883 PTHREAD_CFLAGS
884 BUILD_MULTITHREAD_TRUE
885 BUILD_MULTITHREAD_FALSE
886 BUILD_RRDCGI_TRUE
887 BUILD_RRDCGI_FALSE
888 PKGCONFIG
889 CORE_LIBS
890 ALL_LIBS
891 PERL
892 PERLCC
893 PERLCCFLAGS
894 PERLLD
895 PERLLDFLAGS
896 PERL_CC
897 PERL_MAKE_OPTIONS
898 COMP_PERL
899 PERL_VERSION
900 RUBY
901 RUBY_MAKE_OPTIONS
902 COMP_RUBY
903 BUILD_TCL_TRUE
904 BUILD_TCL_FALSE
905 BUILD_TCL_SITE_TRUE
906 BUILD_TCL_SITE_FALSE
907 TCL_PREFIX
908 TCL_SHLIB_CFLAGS
909 TCL_SHLIB_LD
910 TCL_SHLIB_SUFFIX
911 TCL_PACKAGE_PATH
912 TCL_LD_SEARCH_FLAGS
913 TCL_STUB_LIB_SPEC
914 TCL_VERSION
915 TCL_PACKAGE_DIR
916 PYTHON
917 PYTHON_VERSION
918 PYTHON_PREFIX
919 PYTHON_EXEC_PREFIX
920 PYTHON_PLATFORM
921 pythondir
922 pkgpythondir
923 pyexecdir
924 pkgpyexecdir
925 PYTHON_INCLUDES
926 COMP_PYTHON
927 NROFF
928 TROFF
929 RRDDOCDIR
930 LIBOBJS
931 LTLIBOBJS'
932 ac_subst_files=''
933 ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 RRDGRAPH_YLEGEND_ANGLE
937 CC
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 CPP
943 CXX
944 CXXFLAGS
945 CCC
946 CXXCPP
947 F77
948 FFLAGS
949 PERLCC
950 PERLCCFLAGS
951 PERLLD
952 PERLLDFLAGS
953 RRDDOCDIR'
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1011 fi
1013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1020 case $ac_dashdash$ac_option in
1021 --)
1022 ac_dashdash=yes ;;
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1044 -datadir | --datadir | --datadi | --datad)
1045 ac_prev=datadir ;;
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1056 -disable-* | --disable-*)
1057 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1063 eval enable_$ac_feature=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1082 eval enable_$ac_feature=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1272 -with-* | --with-*)
1273 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1279 eval with_$ac_package=\$ac_optarg ;;
1281 -without-* | --without-*)
1282 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1288 eval with_$ac_package=no ;;
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1308 -*) { echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$0 --help' for more information." >&2
1310 { (exit 1); exit 1; }; }
1311 ;;
1313 *=*)
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318 { (exit 1); exit 1; }; }
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1322 *)
1323 # FIXME: should be removed in autoconf 3.0.
1324 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 ;;
1330 esac
1331 done
1333 if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 { echo "$as_me: error: missing argument to $ac_option" >&2
1336 { (exit 1); exit 1; }; }
1337 fi
1339 # Be sure to have absolute directory names.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1344 do
1345 eval ac_val=\$$ac_var
1346 case $ac_val in
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 esac
1350 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351 { (exit 1); exit 1; }; }
1352 done
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 test "$silent" = yes && exec 6>/dev/null
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 { echo "$as_me: error: Working directory cannot be determined" >&2
1382 { (exit 1); exit 1; }; }
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 { echo "$as_me: error: pwd does not report name of working directory" >&2
1385 { (exit 1); exit 1; }; }
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$0" ||
1393 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$0" : 'X\(//\)[^/]' \| \
1395 X"$0" : 'X\(//\)$' \| \
1396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1397 echo X"$0" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1418 fi
1419 else
1420 ac_srcdir_defaulted=no
1421 fi
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1425 { (exit 1); exit 1; }; }
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1430 { (exit 1); exit 1; }; }
1431 pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435 fi
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1449 #
1450 # Report the --help message.
1451 #
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456 \`configure' configures rrdtool 1.2.26 to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1465 Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 [PREFIX]
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/rrdtool]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1511 cat <<\_ACEOF
1513 Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of rrdtool 1.2.26:";;
1528 esac
1529 cat <<\_ACEOF
1531 Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --disable-rrdcgi disable building of rrdcgi
1535 --disable-mmap disable mmap in rrd_update, use seek+write instead
1536 --disable-pthread disable multithread support
1537 --disable-dependency-tracking speeds up one-time build
1538 --enable-dependency-tracking do not reject slow dependency extractors
1539 --enable-shared[=PKGS] build shared libraries [default=yes]
1540 --enable-static[=PKGS] build static libraries [default=yes]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1544 --disable-perl do not build the perl modules
1545 --enable-perl-site-install by default the rrdtool perl modules are installed
1546 together with rrdtool in $prefix/lib/perl. You have to
1547 put a 'use lib qw($prefix/lib/perl)' into your scripts
1548 when you want to use them. When you set this option
1549 the perl modules will get installed wherever
1550 your perl setup thinks it is best.
1551 --disable-ruby do not build the ruby modules
1552 --enable-ruby-site-install by default the rrdtool ruby modules are installed
1553 together with rrdtool in $prefix/lib/ruby. You have to
1554 add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1555 for ruby to find the RRD.so file.
1556 --disable-tcl do not build the tcl modules
1557 --enable-tcl-site install the tcl extension in the tcl tree
1558 --disable-python do not build the python modules
1560 Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-rrd-default-font=OPTIONS set the full path to your default font.
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-pic try to use only PIC/non-PIC objects [default=use
1566 both]
1567 --with-tags[=TAGS] include additional configurations [automatic]
1568 --with-perl-options=OPTIONS options to pass on command-line when
1569 generating Makefile from Makefile.PL. If you set this
1570 option, interesting things may happen unless you know
1571 what you are doing!
1572 --with-ruby-options=OPTIONS options to pass on command-line when
1573 generating Makefile from extconf.rb. If you set this
1574 option, interesting things may happen unless you know
1575 what you are doing!
1576 --with-tcllib=DIR location of the tclConfig.sh
1578 Some influential environment variables:
1579 RRDGRAPH_YLEGEND_ANGLE
1580 Vertical label angle: 90.0 (default) or 270.0
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 CXXCPP C++ preprocessor
1592 F77 Fortran 77 compiler command
1593 FFLAGS Fortran 77 compiler flags
1594 PERLCC [] C compiler for Perl modules
1595 PERLCCFLAGS [] CC flags for Perl modules
1596 PERLLD [same], [as], [PERLCC] Linker for Perl modules
1597 PERLLDFLAGS [] LD flags for Perl modules
1598 RRDDOCDIR [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 _ACEOF
1604 ac_status=$?
1605 fi
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" || continue
1611 ac_builddir=.
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1653 else
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1657 done
1658 fi
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662 cat <<\_ACEOF
1663 rrdtool configure 1.2.26
1664 generated by GNU Autoconf 2.61
1666 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1667 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673 cat >config.log <<_ACEOF
1674 This file contains any messages produced by compilers while
1675 running configure, to aid debugging if configure makes a mistake.
1677 It was created by rrdtool $as_me 1.2.26, which was
1678 generated by GNU Autoconf 2.61. Invocation command line was
1680 $ $0 $@
1682 _ACEOF
1683 exec 5>>config.log
1684 {
1685 cat <<_ASUNAME
1686 ## --------- ##
1687 ## Platform. ##
1688 ## --------- ##
1690 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1700 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1701 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1702 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1703 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 _ASUNAME
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 echo "PATH: $as_dir"
1715 done
1716 IFS=$as_save_IFS
1718 } >&5
1720 cat >&5 <<_ACEOF
1723 ## ----------- ##
1724 ## Core tests. ##
1725 ## ----------- ##
1727 _ACEOF
1730 # Keep a trace of the command line.
1731 # Strip out --no-create and --no-recursion so they do not pile up.
1732 # Strip out --silent because we don't want to record it for future runs.
1733 # Also quote any args containing shell meta-characters.
1734 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_configure_args=
1736 ac_configure_args0=
1737 ac_configure_args1=
1738 ac_must_keep_next=false
1739 for ac_pass in 1 2
1740 do
1741 for ac_arg
1742 do
1743 case $ac_arg in
1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1747 continue ;;
1748 *\'*)
1749 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 esac
1751 case $ac_pass in
1752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1753 2)
1754 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1755 if test $ac_must_keep_next = true; then
1756 ac_must_keep_next=false # Got value, back to normal.
1757 else
1758 case $ac_arg in
1759 *=* | --config-cache | -C | -disable-* | --disable-* \
1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762 | -with-* | --with-* | -without-* | --without-* | --x)
1763 case "$ac_configure_args0 " in
1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 esac
1766 ;;
1767 -* ) ac_must_keep_next=true ;;
1768 esac
1769 fi
1770 ac_configure_args="$ac_configure_args '$ac_arg'"
1771 ;;
1772 esac
1773 done
1774 done
1775 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778 # When interrupted or exit'd, cleanup temporary files, and complete
1779 # config.log. We remove comments because anyway the quotes in there
1780 # would cause problems or look ugly.
1781 # WARNING: Use '\'' to represent an apostrophe within the trap.
1782 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1783 trap 'exit_status=$?
1784 # Save into config.log some information that might help in debugging.
1785 {
1786 echo
1788 cat <<\_ASBOX
1789 ## ---------------- ##
1790 ## Cache variables. ##
1791 ## ---------------- ##
1792 _ASBOX
1793 echo
1794 # The following way of writing the cache mishandles newlines in values,
1795 (
1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in #(
1799 *${as_nl}*)
1800 case $ac_var in #(
1801 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1802 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1803 esac
1804 case $ac_var in #(
1805 _ | IFS | as_nl) ;; #(
1806 *) $as_unset $ac_var ;;
1807 esac ;;
1808 esac
1809 done
1810 (set) 2>&1 |
1811 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1812 *${as_nl}ac_space=\ *)
1813 sed -n \
1814 "s/'\''/'\''\\\\'\'''\''/g;
1815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1816 ;; #(
1817 *)
1818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 ;;
1820 esac |
1821 sort
1822 )
1823 echo
1825 cat <<\_ASBOX
1826 ## ----------------- ##
1827 ## Output variables. ##
1828 ## ----------------- ##
1829 _ASBOX
1830 echo
1831 for ac_var in $ac_subst_vars
1832 do
1833 eval ac_val=\$$ac_var
1834 case $ac_val in
1835 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 esac
1837 echo "$ac_var='\''$ac_val'\''"
1838 done | sort
1839 echo
1841 if test -n "$ac_subst_files"; then
1842 cat <<\_ASBOX
1843 ## ------------------- ##
1844 ## File substitutions. ##
1845 ## ------------------- ##
1846 _ASBOX
1847 echo
1848 for ac_var in $ac_subst_files
1849 do
1850 eval ac_val=\$$ac_var
1851 case $ac_val in
1852 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 esac
1854 echo "$ac_var='\''$ac_val'\''"
1855 done | sort
1856 echo
1857 fi
1859 if test -s confdefs.h; then
1860 cat <<\_ASBOX
1861 ## ----------- ##
1862 ## confdefs.h. ##
1863 ## ----------- ##
1864 _ASBOX
1865 echo
1866 cat confdefs.h
1867 echo
1868 fi
1869 test "$ac_signal" != 0 &&
1870 echo "$as_me: caught signal $ac_signal"
1871 echo "$as_me: exit $exit_status"
1872 } >&5
1873 rm -f core *.core core.conftest.* &&
1874 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1875 exit $exit_status
1876 ' 0
1877 for ac_signal in 1 2 13 15; do
1878 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1879 done
1880 ac_signal=0
1882 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1883 rm -f -r conftest* confdefs.h
1885 # Predefined preprocessor variables.
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_NAME "$PACKAGE_NAME"
1889 _ACEOF
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894 _ACEOF
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1899 _ACEOF
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_STRING "$PACKAGE_STRING"
1904 _ACEOF
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1909 _ACEOF
1912 # Let the site file select an alternate cache file if it wants to.
1913 # Prefer explicitly selected file to automatically selected ones.
1914 if test -n "$CONFIG_SITE"; then
1915 set x "$CONFIG_SITE"
1916 elif test "x$prefix" != xNONE; then
1917 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1918 else
1919 set x "$ac_default_prefix/share/config.site" \
1920 "$ac_default_prefix/etc/config.site"
1921 fi
1922 shift
1923 for ac_site_file
1924 do
1925 if test -r "$ac_site_file"; then
1926 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1929 . "$ac_site_file"
1930 fi
1931 done
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special
1935 # files actually), so we avoid doing that.
1936 if test -f "$cache_file"; then
1937 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 echo "$as_me: loading cache $cache_file" >&6;}
1939 case $cache_file in
1940 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941 *) . "./$cache_file";;
1942 esac
1943 fi
1944 else
1945 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 echo "$as_me: creating cache $cache_file" >&6;}
1947 >$cache_file
1948 fi
1950 # Check that the precious variables saved in the cache have kept the same
1951 # value.
1952 ac_cache_corrupted=false
1953 for ac_var in $ac_precious_vars; do
1954 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1955 eval ac_new_set=\$ac_env_${ac_var}_set
1956 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1957 eval ac_new_val=\$ac_env_${ac_var}_value
1958 case $ac_old_set,$ac_new_set in
1959 set,)
1960 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,set)
1964 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1965 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,);;
1968 *)
1969 if test "x$ac_old_val" != "x$ac_new_val"; then
1970 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1971 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1973 echo "$as_me: former value: $ac_old_val" >&2;}
1974 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1975 echo "$as_me: current value: $ac_new_val" >&2;}
1976 ac_cache_corrupted=:
1977 fi;;
1978 esac
1979 # Pass precious variables to config.status.
1980 if test "$ac_new_set" = set; then
1981 case $ac_new_val in
1982 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 *) ac_arg=$ac_var=$ac_new_val ;;
1984 esac
1985 case " $ac_configure_args " in
1986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1987 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1988 esac
1989 fi
1990 done
1991 if $ac_cache_corrupted; then
1992 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1993 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1994 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1995 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1996 { (exit 1); exit 1; }; }
1997 fi
2023 ac_ext=c
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030 NUMVERS=1.2026
2032 ac_aux_dir=
2033 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2034 if test -f "$ac_dir/install-sh"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/install-sh -c"
2037 break
2038 elif test -f "$ac_dir/install.sh"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install.sh -c"
2041 break
2042 elif test -f "$ac_dir/shtool"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/shtool install -c"
2045 break
2046 fi
2047 done
2048 if test -z "$ac_aux_dir"; then
2049 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2050 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2051 { (exit 1); exit 1; }; }
2052 fi
2054 # These three variables are undocumented and unsupported,
2055 # and are intended to be withdrawn in a future Autoconf release.
2056 # They can cause serious problems if a builder's source tree is in a directory
2057 # whose full name contains unusual characters.
2058 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2059 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2060 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067 { (exit 1); exit 1; }; }
2069 { echo "$as_me:$LINENO: checking build system type" >&5
2070 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080 { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084 { (exit 1); exit 1; }; }
2086 fi
2087 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 echo "${ECHO_T}$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2090 *-*-*) ;;
2091 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 echo "$as_me: error: invalid value of canonical build" >&2;}
2093 { (exit 1); exit 1; }; };;
2094 esac
2095 build=$ac_cv_build
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_build
2098 shift
2099 build_cpu=$1
2100 build_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 build_os=$*
2105 IFS=$ac_save_IFS
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2109 { echo "$as_me:$LINENO: checking host system type" >&5
2110 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test "x$host_alias" = x; then
2115 ac_cv_host=$ac_cv_build
2116 else
2117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120 { (exit 1); exit 1; }; }
2121 fi
2123 fi
2124 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 echo "${ECHO_T}$ac_cv_host" >&6; }
2126 case $ac_cv_host in
2127 *-*-*) ;;
2128 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 echo "$as_me: error: invalid value of canonical host" >&2;}
2130 { (exit 1); exit 1; }; };;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2146 { echo "$as_me:$LINENO: checking target system type" >&5
2147 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2148 if test "${ac_cv_target+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test "x$target_alias" = x; then
2152 ac_cv_target=$ac_cv_host
2153 else
2154 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2155 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2156 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2157 { (exit 1); exit 1; }; }
2158 fi
2160 fi
2161 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2162 echo "${ECHO_T}$ac_cv_target" >&6; }
2163 case $ac_cv_target in
2164 *-*-*) ;;
2165 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2166 echo "$as_me: error: invalid value of canonical target" >&2;}
2167 { (exit 1); exit 1; }; };;
2168 esac
2169 target=$ac_cv_target
2170 ac_save_IFS=$IFS; IFS='-'
2171 set x $ac_cv_target
2172 shift
2173 target_cpu=$1
2174 target_vendor=$2
2175 shift; shift
2176 # Remember, the first character of IFS is used to create $*,
2177 # except with old shells:
2178 target_os=$*
2179 IFS=$ac_save_IFS
2180 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2183 # The aliases save the names the user supplied, while $host etc.
2184 # will get canonicalized.
2185 test -n "$target_alias" &&
2186 test "$program_prefix$program_suffix$program_transform_name" = \
2187 NONENONEs,x,x, &&
2188 program_prefix=${target_alias}-
2189 am__api_version="1.9"
2190 # Find a good install program. We prefer a C program (faster),
2191 # so one script is as good as another. But avoid the broken or
2192 # incompatible versions:
2193 # SysV /etc/install, /usr/sbin/install
2194 # SunOS /usr/etc/install
2195 # IRIX /sbin/install
2196 # AIX /bin/install
2197 # AmigaOS /C/install, which installs bootblocks on floppy discs
2198 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2199 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2200 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2201 # OS/2's system install, which has a completely different semantic
2202 # ./install, which can be erroneously created by make from ./install.sh.
2203 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2204 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2205 if test -z "$INSTALL"; then
2206 if test "${ac_cv_path_install+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 # Account for people who put trailing slashes in PATH elements.
2215 case $as_dir/ in
2216 ./ | .// | /cC/* | \
2217 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2218 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2219 /usr/ucb/* ) ;;
2220 *)
2221 # OSF1 and SCO ODT 3.0 have their own names for install.
2222 # Don't use installbsd from OSF since it installs stuff as root
2223 # by default.
2224 for ac_prog in ginstall scoinst install; do
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2227 if test $ac_prog = install &&
2228 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2229 # AIX install. It has an incompatible calling convention.
2230 :
2231 elif test $ac_prog = install &&
2232 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2233 # program-specific install script used by HP pwplus--don't use.
2234 :
2235 else
2236 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2237 break 3
2238 fi
2239 fi
2240 done
2241 done
2242 ;;
2243 esac
2244 done
2245 IFS=$as_save_IFS
2248 fi
2249 if test "${ac_cv_path_install+set}" = set; then
2250 INSTALL=$ac_cv_path_install
2251 else
2252 # As a last resort, use the slow shell script. Don't cache a
2253 # value for INSTALL within a source directory, because that will
2254 # break other packages using the cache if that directory is
2255 # removed, or if the value is a relative name.
2256 INSTALL=$ac_install_sh
2257 fi
2258 fi
2259 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2260 echo "${ECHO_T}$INSTALL" >&6; }
2262 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2263 # It thinks the first close brace ends the variable substitution.
2264 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2266 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2268 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2270 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2271 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2272 # Just in case
2273 sleep 1
2274 echo timestamp > conftest.file
2275 # Do `set' in a subshell so we don't clobber the current shell's
2276 # arguments. Must try -L first in case configure is actually a
2277 # symlink; some systems play weird games with the mod time of symlinks
2278 # (eg FreeBSD returns the mod time of the symlink's containing
2279 # directory).
2280 if (
2281 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2282 if test "$*" = "X"; then
2283 # -L didn't work.
2284 set X `ls -t $srcdir/configure conftest.file`
2285 fi
2286 rm -f conftest.file
2287 if test "$*" != "X $srcdir/configure conftest.file" \
2288 && test "$*" != "X conftest.file $srcdir/configure"; then
2290 # If neither matched, then we have a broken ls. This can happen
2291 # if, for instance, CONFIG_SHELL is bash and it inherits a
2292 # broken ls alias from the environment. This has actually
2293 # happened. Such a system could not be considered "sane".
2294 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2295 alias in your environment" >&5
2296 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2297 alias in your environment" >&2;}
2298 { (exit 1); exit 1; }; }
2299 fi
2301 test "$2" = conftest.file
2302 )
2303 then
2304 # Ok.
2305 :
2306 else
2307 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2308 Check your system clock" >&5
2309 echo "$as_me: error: newly created file is older than distributed files!
2310 Check your system clock" >&2;}
2311 { (exit 1); exit 1; }; }
2312 fi
2313 { echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6; }
2315 test "$program_prefix" != NONE &&
2316 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2317 # Use a double $ so make ignores it.
2318 test "$program_suffix" != NONE &&
2319 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2320 # Double any \ or $. echo might interpret backslashes.
2321 # By default was `s,x,x', remove it if useless.
2322 cat <<\_ACEOF >conftest.sed
2323 s/[\\$]/&&/g;s/;s,x,x,$//
2324 _ACEOF
2325 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2326 rm -f conftest.sed
2328 # expand $ac_aux_dir to an absolute path
2329 am_aux_dir=`cd $ac_aux_dir && pwd`
2331 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2332 # Use eval to expand $SHELL
2333 if eval "$MISSING --run true"; then
2334 am_missing_run="$MISSING --run "
2335 else
2336 am_missing_run=
2337 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2338 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2339 fi
2341 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2342 # We used to keeping the `.' as first argument, in order to
2343 # allow $(mkdir_p) to be used without argument. As in
2344 # $(mkdir_p) $(somedir)
2345 # where $(somedir) is conditionally defined. However this is wrong
2346 # for two reasons:
2347 # 1. if the package is installed by a user who cannot write `.'
2348 # make install will fail,
2349 # 2. the above comment should most certainly read
2350 # $(mkdir_p) $(DESTDIR)$(somedir)
2351 # so it does not work when $(somedir) is undefined and
2352 # $(DESTDIR) is not.
2353 # To support the latter case, we have to write
2354 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2355 # so the `.' trick is pointless.
2356 mkdir_p='mkdir -p --'
2357 else
2358 # On NextStep and OpenStep, the `mkdir' command does not
2359 # recognize any option. It will interpret all options as
2360 # directories to create, and then abort because `.' already
2361 # exists.
2362 for d in ./-p ./--version;
2363 do
2364 test -d $d && rmdir $d
2365 done
2366 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2367 if test -f "$ac_aux_dir/mkinstalldirs"; then
2368 mkdir_p='$(mkinstalldirs)'
2369 else
2370 mkdir_p='$(install_sh) -d'
2371 fi
2372 fi
2374 for ac_prog in gawk mawk nawk awk
2375 do
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_AWK+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 if test -n "$AWK"; then
2384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_AWK="$ac_prog"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2401 fi
2402 fi
2403 AWK=$ac_cv_prog_AWK
2404 if test -n "$AWK"; then
2405 { echo "$as_me:$LINENO: result: $AWK" >&5
2406 echo "${ECHO_T}$AWK" >&6; }
2407 else
2408 { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410 fi
2413 test -n "$AWK" && break
2414 done
2416 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2417 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2418 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2419 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 cat >conftest.make <<\_ACEOF
2423 SHELL = /bin/sh
2424 all:
2425 @echo '@@@%%%=$(MAKE)=@@@%%%'
2426 _ACEOF
2427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2428 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2429 *@@@%%%=?*=@@@%%%*)
2430 eval ac_cv_prog_make_${ac_make}_set=yes;;
2431 *)
2432 eval ac_cv_prog_make_${ac_make}_set=no;;
2433 esac
2434 rm -f conftest.make
2435 fi
2436 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2437 { echo "$as_me:$LINENO: result: yes" >&5
2438 echo "${ECHO_T}yes" >&6; }
2439 SET_MAKE=
2440 else
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2443 SET_MAKE="MAKE=${MAKE-make}"
2444 fi
2446 rm -rf .tst 2>/dev/null
2447 mkdir .tst 2>/dev/null
2448 if test -d .tst; then
2449 am__leading_dot=.
2450 else
2451 am__leading_dot=_
2452 fi
2453 rmdir .tst 2>/dev/null
2455 # test to see if srcdir already configured
2456 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2457 test -f $srcdir/config.status; then
2458 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2459 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2460 { (exit 1); exit 1; }; }
2461 fi
2463 # test whether we have cygpath
2464 if test -z "$CYGPATH_W"; then
2465 if (cygpath --version) >/dev/null 2>/dev/null; then
2466 CYGPATH_W='cygpath -w'
2467 else
2468 CYGPATH_W=echo
2469 fi
2470 fi
2473 # Define the identity of the package.
2474 PACKAGE='rrdtool'
2475 VERSION='1.2.26'
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE "$PACKAGE"
2480 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define VERSION "$VERSION"
2485 _ACEOF
2487 # Some tools Automake needs.
2489 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2492 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2495 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2498 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2501 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2503 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2505 # Installed binaries are usually stripped using `strip' when the user
2506 # run `make install-strip'. However `strip' might not be the right
2507 # tool to use in cross-compilation environments, therefore Automake
2508 # will honor the `STRIP' environment variable to overrule this program.
2509 if test "$cross_compiling" != no; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}strip; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_STRIP+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518 if test -n "$STRIP"; then
2519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2536 fi
2537 fi
2538 STRIP=$ac_cv_prog_STRIP
2539 if test -n "$STRIP"; then
2540 { echo "$as_me:$LINENO: result: $STRIP" >&5
2541 echo "${ECHO_T}$STRIP" >&6; }
2542 else
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2545 fi
2548 fi
2549 if test -z "$ac_cv_prog_STRIP"; then
2550 ac_ct_STRIP=$STRIP
2551 # Extract the first word of "strip", so it can be a program name with args.
2552 set dummy strip; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 if test -n "$ac_ct_STRIP"; then
2559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_STRIP="strip"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2576 fi
2577 fi
2578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579 if test -n "$ac_ct_STRIP"; then
2580 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2581 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2582 else
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2585 fi
2587 if test "x$ac_ct_STRIP" = x; then
2588 STRIP=":"
2589 else
2590 case $cross_compiling:$ac_tool_warned in
2591 yes:)
2592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2593 whose name does not start with the host triplet. If you think this
2594 configuration is useful to you, please write to autoconf@gnu.org." >&5
2595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet. If you think this
2597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2598 ac_tool_warned=yes ;;
2599 esac
2600 STRIP=$ac_ct_STRIP
2601 fi
2602 else
2603 STRIP="$ac_cv_prog_STRIP"
2604 fi
2606 fi
2607 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2609 # We need awk for the "check" target. The system "awk" is bad on
2610 # some platforms.
2611 # Always define AMTAR for backward compatibility.
2613 AMTAR=${AMTAR-"${am_missing_run}tar"}
2615 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2621 ac_config_headers="$ac_config_headers rrd_config.h"
2643 cat >>confdefs.h <<_ACEOF
2644 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2645 _ACEOF
2648 # Check whether --enable-rrdcgi was given.
2649 if test "${enable_rrdcgi+set}" = set; then
2650 enableval=$enable_rrdcgi;
2651 else
2652 enable_rrdcgi=yes
2653 fi
2657 # Check whether --with-rrd-default-font was given.
2658 if test "${with_rrd_default_font+set}" = set; then
2659 withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2660 else
2662 if test -d ${WINDIR:-nodir}/cour.ttf ; then
2663 RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2664 else
2665 RRD_DEFAULT_FONT='$(fontsdir)/$(fonts_DATA)'
2666 fi
2668 fi
2671 # Check whether --enable-mmap was given.
2672 if test "${enable_mmap+set}" = set; then
2673 enableval=$enable_mmap;
2674 else
2675 enable_mmap=yes
2676 fi
2680 # Check whether --enable-pthread was given.
2681 if test "${enable_pthread+set}" = set; then
2682 enableval=$enable_pthread;
2683 else
2684 enable_pthread=yes
2685 fi
2691 case $TERM in
2692 # for the most important terminal types we directly know the sequences
2693 xterm|xterm*|vt220|vt220*)
2694 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2695 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2696 ;;
2697 vt100|vt100*|cygwin)
2698 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2699 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2700 ;;
2701 *)
2702 T_MD=''
2703 T_ME=''
2704 ;;
2705 esac
2706 { echo "$as_me:$LINENO: result: " >&5
2707 echo "${ECHO_T}" >&6; }
2708 { echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2709 echo "${ECHO_T}${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 { echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6; }
2750 else
2751 { echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6; }
2753 fi
2756 fi
2757 if test -z "$ac_cv_prog_CC"; then
2758 ac_ct_CC=$CC
2759 # Extract the first word of "gcc", so it can be a program name with args.
2760 set dummy gcc; ac_word=$2
2761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_CC="gcc"
2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2784 fi
2785 fi
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 echo "${ECHO_T}$ac_ct_CC" >&6; }
2790 else
2791 { echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6; }
2793 fi
2795 if test "x$ac_ct_CC" = x; then
2796 CC=""
2797 else
2798 case $cross_compiling:$ac_tool_warned in
2799 yes:)
2800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2801 whose name does not start with the host triplet. If you think this
2802 configuration is useful to you, please write to autoconf@gnu.org." >&5
2803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2804 whose name does not start with the host triplet. If you think this
2805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2806 ac_tool_warned=yes ;;
2807 esac
2808 CC=$ac_ct_CC
2809 fi
2810 else
2811 CC="$ac_cv_prog_CC"
2812 fi
2814 if test -z "$CC"; then
2815 if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}cc; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CC+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_CC="${ac_tool_prefix}cc"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2841 fi
2842 fi
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845 { echo "$as_me:$LINENO: result: $CC" >&5
2846 echo "${ECHO_T}$CC" >&6; }
2847 else
2848 { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2850 fi
2853 fi
2854 fi
2855 if test -z "$CC"; then
2856 # Extract the first word of "cc", so it can be a program name with args.
2857 set dummy cc; ac_word=$2
2858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2860 if test "${ac_cv_prog_CC+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 else
2866 ac_prog_rejected=no
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2875 ac_prog_rejected=yes
2876 continue
2877 fi
2878 ac_cv_prog_CC="cc"
2879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2886 if test $ac_prog_rejected = yes; then
2887 # We found a bogon in the path, so make sure we never use it.
2888 set dummy $ac_cv_prog_CC
2889 shift
2890 if test $# != 0; then
2891 # We chose a different compiler from the bogus one.
2892 # However, it has the same basename, so the bogon will be chosen
2893 # first if we set CC to just the basename; use the full file name.
2894 shift
2895 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896 fi
2897 fi
2898 fi
2899 fi
2900 CC=$ac_cv_prog_CC
2901 if test -n "$CC"; then
2902 { echo "$as_me:$LINENO: result: $CC" >&5
2903 echo "${ECHO_T}$CC" >&6; }
2904 else
2905 { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2907 fi
2910 fi
2911 if test -z "$CC"; then
2912 if test -n "$ac_tool_prefix"; then
2913 for ac_prog in cl.exe
2914 do
2915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2940 fi
2941 fi
2942 CC=$ac_cv_prog_CC
2943 if test -n "$CC"; then
2944 { echo "$as_me:$LINENO: result: $CC" >&5
2945 echo "${ECHO_T}$CC" >&6; }
2946 else
2947 { echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6; }
2949 fi
2952 test -n "$CC" && break
2953 done
2954 fi
2955 if test -z "$CC"; then
2956 ac_ct_CC=$CC
2957 for ac_prog in cl.exe
2958 do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2984 fi
2985 fi
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989 echo "${ECHO_T}$ac_ct_CC" >&6; }
2990 else
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2993 fi
2996 test -n "$ac_ct_CC" && break
2997 done
2999 if test "x$ac_ct_CC" = x; then
3000 CC=""
3001 else
3002 case $cross_compiling:$ac_tool_warned in
3003 yes:)
3004 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3005 whose name does not start with the host triplet. If you think this
3006 configuration is useful to you, please write to autoconf@gnu.org." >&5
3007 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3008 whose name does not start with the host triplet. If you think this
3009 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012 CC=$ac_ct_CC
3013 fi
3014 fi
3016 fi
3019 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: no acceptable C compiler found in \$PATH
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }
3025 # Provide some information about the compiler.
3026 echo "$as_me:$LINENO: checking for C compiler version" >&5
3027 ac_compiler=`set X $ac_compile; echo $2`
3028 { (ac_try="$ac_compiler --version >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler --version >&5") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try="$ac_compiler -v >&5"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -v >&5") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048 { (ac_try="$ac_compiler -V >&5"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compiler -V >&5") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 int
3067 main ()
3068 {
3070 ;
3071 return 0;
3072 }
3073 _ACEOF
3074 ac_clean_files_save=$ac_clean_files
3075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3076 # Try to create an executable without -o first, disregard a.out.
3077 # It will help us diagnose broken compilers, and finding out an intuition
3078 # of exeext.
3079 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3080 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3082 #
3083 # List of possible output files, starting from the most likely.
3084 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3085 # only as a last resort. b.out is created by i960 compilers.
3086 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3087 #
3088 # The IRIX 6 linker writes into existing files which may not be
3089 # executable, retaining their permissions. Remove them first so a
3090 # subsequent execution test works.
3091 ac_rmfiles=
3092 for ac_file in $ac_files
3093 do
3094 case $ac_file in
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3096 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3097 esac
3098 done
3099 rm -f $ac_rmfiles
3101 if { (ac_try="$ac_link_default"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_link_default") 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; then
3111 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3113 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3114 # so that the user can short-circuit this test for compilers unknown to
3115 # Autoconf.
3116 for ac_file in $ac_files ''
3117 do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3121 ;;
3122 [ab].out )
3123 # We found the default executable, but exeext='' is most
3124 # certainly right.
3125 break;;
3126 *.* )
3127 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3128 then :; else
3129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 fi
3131 # We set ac_cv_exeext here because the later test for it is not
3132 # safe: cross compilers may not add the suffix if given an `-o'
3133 # argument, so we may need to know it at that point already.
3134 # Even if this section looks crufty: it has the advantage of
3135 # actually working.
3136 break;;
3137 * )
3138 break;;
3139 esac
3140 done
3141 test "$ac_cv_exeext" = no && ac_cv_exeext=
3143 else
3144 ac_file=''
3145 fi
3147 { echo "$as_me:$LINENO: result: $ac_file" >&5
3148 echo "${ECHO_T}$ac_file" >&6; }
3149 if test -z "$ac_file"; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: C compiler cannot create executables
3156 See \`config.log' for more details." >&2;}
3157 { (exit 77); exit 77; }; }
3158 fi
3160 ac_exeext=$ac_cv_exeext
3162 # Check that the compiler produces executables we can run. If not, either
3163 # the compiler is broken, or we cross compile.
3164 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3165 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3166 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3167 # If not cross compiling, check that we can run a simple program.
3168 if test "$cross_compiling" != yes; then
3169 if { ac_try='./$ac_file'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 cross_compiling=no
3180 else
3181 if test "$cross_compiling" = maybe; then
3182 cross_compiling=yes
3183 else
3184 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3191 fi
3192 fi
3193 fi
3194 { echo "$as_me:$LINENO: result: yes" >&5
3195 echo "${ECHO_T}yes" >&6; }
3197 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3198 ac_clean_files=$ac_clean_files_save
3199 # Check that the compiler produces executables we can run. If not, either
3200 # the compiler is broken, or we cross compile.
3201 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3203 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3204 echo "${ECHO_T}$cross_compiling" >&6; }
3206 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3208 if { (ac_try="$ac_link"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_link") 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; then
3218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220 # work properly (i.e., refer to `conftest.exe'), while it won't with
3221 # `rm'.
3222 for ac_file in conftest.exe conftest conftest.*; do
3223 test -f "$ac_file" || continue
3224 case $ac_file in
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227 break;;
3228 * ) break;;
3229 esac
3230 done
3231 else
3232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3233 See \`config.log' for more details." >&5
3234 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3235 See \`config.log' for more details." >&2;}
3236 { (exit 1); exit 1; }; }
3237 fi
3239 rm -f conftest$ac_cv_exeext
3240 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3241 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3245 ac_exeext=$EXEEXT
3246 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3247 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3248 if test "${ac_cv_objext+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 cat >conftest.$ac_ext <<_ACEOF
3252 /* confdefs.h. */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3258 int
3259 main ()
3260 {
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.o conftest.obj
3267 if { (ac_try="$ac_compile"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; then
3277 for ac_file in conftest.o conftest.obj conftest.*; do
3278 test -f "$ac_file" || continue;
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282 break;;
3283 esac
3284 done
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3290 See \`config.log' for more details." >&5
3291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3292 See \`config.log' for more details." >&2;}
3293 { (exit 1); exit 1; }; }
3294 fi
3296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3297 fi
3298 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3299 echo "${ECHO_T}$ac_cv_objext" >&6; }
3300 OBJEXT=$ac_cv_objext
3301 ac_objext=$OBJEXT
3302 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3314 int
3315 main ()
3316 {
3317 #ifndef __GNUC__
3318 choke me
3319 #endif
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3342 ac_compiler_gnu=yes
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 ac_compiler_gnu=no
3348 fi
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353 fi
3354 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3356 GCC=`test $ac_compiler_gnu = yes && echo yes`
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_cc_g+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3366 ac_cv_prog_cc_g=no
3367 CFLAGS="-g"
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3375 int
3376 main ()
3377 {
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext
3384 if { (ac_try="$ac_compile"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 ac_cv_prog_cc_g=yes
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 CFLAGS=""
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3413 int
3414 main ()
3415 {
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
3438 :
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 ac_c_werror_flag=$ac_save_c_werror_flag
3444 CFLAGS="-g"
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3452 int
3453 main ()
3454 {
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (ac_try="$ac_compile"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_compile") 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } && {
3474 test -z "$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3476 } && test -s conftest.$ac_objext; then
3477 ac_cv_prog_cc_g=yes
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3483 fi
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 ac_c_werror_flag=$ac_save_c_werror_flag
3493 fi
3494 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3496 if test "$ac_test_CFLAGS" = set; then
3497 CFLAGS=$ac_save_CFLAGS
3498 elif test $ac_cv_prog_cc_g = yes; then
3499 if test "$GCC" = yes; then
3500 CFLAGS="-g -O2"
3501 else
3502 CFLAGS="-g"
3503 fi
3504 else
3505 if test "$GCC" = yes; then
3506 CFLAGS="-O2"
3507 else
3508 CFLAGS=
3509 fi
3510 fi
3511 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3512 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3513 if test "${ac_cv_prog_cc_c89+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 ac_cv_prog_cc_c89=no
3517 ac_save_CC=$CC
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <stdarg.h>
3525 #include <stdio.h>
3526 #include <sys/types.h>
3527 #include <sys/stat.h>
3528 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3529 struct buf { int x; };
3530 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3531 static char *e (p, i)
3532 char **p;
3533 int i;
3534 {
3535 return p[i];
3536 }
3537 static char *f (char * (*g) (char **, int), char **p, ...)
3538 {
3539 char *s;
3540 va_list v;
3541 va_start (v,p);
3542 s = g (p, va_arg (v,int));
3543 va_end (v);
3544 return s;
3545 }
3547 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3548 function prototypes and stuff, but not '\xHH' hex character constants.
3549 These don't provoke an error unfortunately, instead are silently treated
3550 as 'x'. The following induces an error, until -std is added to get
3551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3552 array size at least. It's necessary to write '\x00'==0 to get something
3553 that's true only with -std. */
3554 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3556 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3557 inside strings and character constants. */
3558 #define FOO(x) 'x'
3559 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3561 int test (int i, double x);
3562 struct s1 {int (*f) (int a);};
3563 struct s2 {int (*f) (double a);};
3564 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3565 int argc;
3566 char **argv;
3567 int
3568 main ()
3569 {
3570 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3577 do
3578 CC="$ac_save_CC $ac_arg"
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compile") 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && {
3593 test -z "$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest.$ac_objext; then
3596 ac_cv_prog_cc_c89=$ac_arg
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3602 fi
3604 rm -f core conftest.err conftest.$ac_objext
3605 test "x$ac_cv_prog_cc_c89" != "xno" && break
3606 done
3607 rm -f conftest.$ac_ext
3608 CC=$ac_save_CC
3610 fi
3611 # AC_CACHE_VAL
3612 case "x$ac_cv_prog_cc_c89" in
3613 x)
3614 { echo "$as_me:$LINENO: result: none needed" >&5
3615 echo "${ECHO_T}none needed" >&6; } ;;
3616 xno)
3617 { echo "$as_me:$LINENO: result: unsupported" >&5
3618 echo "${ECHO_T}unsupported" >&6; } ;;
3619 *)
3620 CC="$CC $ac_cv_prog_cc_c89"
3621 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3622 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3623 esac
3626 ac_ext=c
3627 ac_cpp='$CPP $CPPFLAGS'
3628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 DEPDIR="${am__leading_dot}deps"
3633 ac_config_commands="$ac_config_commands depfiles"
3636 am_make=${MAKE-make}
3637 cat > confinc << 'END'
3638 am__doit:
3639 @echo done
3640 .PHONY: am__doit
3641 END
3642 # If we don't find an include directive, just comment out the code.
3643 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3644 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3645 am__include="#"
3646 am__quote=
3647 _am_result=none
3648 # First try GNU make style include.
3649 echo "include confinc" > confmf
3650 # We grep out `Entering directory' and `Leaving directory'
3651 # messages which can occur if `w' ends up in MAKEFLAGS.
3652 # In particular we don't look at `^make:' because GNU make might
3653 # be invoked under some other name (usually "gmake"), in which
3654 # case it prints its new name instead of `make'.
3655 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3656 am__include=include
3657 am__quote=
3658 _am_result=GNU
3659 fi
3660 # Now try BSD make style include.
3661 if test "$am__include" = "#"; then
3662 echo '.include "confinc"' > confmf
3663 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3664 am__include=.include
3665 am__quote="\""
3666 _am_result=BSD
3667 fi
3668 fi
3671 { echo "$as_me:$LINENO: result: $_am_result" >&5
3672 echo "${ECHO_T}$_am_result" >&6; }
3673 rm -f confinc confmf
3675 # Check whether --enable-dependency-tracking was given.
3676 if test "${enable_dependency_tracking+set}" = set; then
3677 enableval=$enable_dependency_tracking;
3678 fi
3680 if test "x$enable_dependency_tracking" != xno; then
3681 am_depcomp="$ac_aux_dir/depcomp"
3682 AMDEPBACKSLASH='\'
3683 fi
3686 if test "x$enable_dependency_tracking" != xno; then
3687 AMDEP_TRUE=
3688 AMDEP_FALSE='#'
3689 else
3690 AMDEP_TRUE='#'
3691 AMDEP_FALSE=
3692 fi
3697 depcc="$CC" am_compiler_list=
3699 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3700 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3701 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3705 # We make a subdir and do the tests there. Otherwise we can end up
3706 # making bogus files that we don't know about and never remove. For
3707 # instance it was reported that on HP-UX the gcc test will end up
3708 # making a dummy file named `D' -- because `-MD' means `put the output
3709 # in D'.
3710 mkdir conftest.dir
3711 # Copy depcomp to subdir because otherwise we won't find it if we're
3712 # using a relative directory.
3713 cp "$am_depcomp" conftest.dir
3714 cd conftest.dir
3715 # We will build objects and dependencies in a subdirectory because
3716 # it helps to detect inapplicable dependency modes. For instance
3717 # both Tru64's cc and ICC support -MD to output dependencies as a
3718 # side effect of compilation, but ICC will put the dependencies in
3719 # the current directory while Tru64 will put them in the object
3720 # directory.
3721 mkdir sub
3723 am_cv_CC_dependencies_compiler_type=none
3724 if test "$am_compiler_list" = ""; then
3725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3726 fi
3727 for depmode in $am_compiler_list; do
3728 # Setup a source with many dependencies, because some compilers
3729 # like to wrap large dependency lists on column 80 (with \), and
3730 # we should not choose a depcomp mode which is confused by this.
3731 #
3732 # We need to recreate these files for each test, as the compiler may
3733 # overwrite some of them when testing with obscure command lines.
3734 # This happens at least with the AIX C compiler.
3735 : > sub/conftest.c
3736 for i in 1 2 3 4 5 6; do
3737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3738 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3739 # Solaris 8's {/usr,}/bin/sh.
3740 touch sub/conftst$i.h
3741 done
3742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3744 case $depmode in
3745 nosideeffect)
3746 # after this tag, mechanisms are not by side-effect, so they'll
3747 # only be used when explicitly requested
3748 if test "x$enable_dependency_tracking" = xyes; then
3749 continue
3750 else
3751 break
3752 fi
3753 ;;
3754 none) break ;;
3755 esac
3756 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3757 # mode. It turns out that the SunPro C++ compiler does not properly
3758 # handle `-M -o', and we need to detect this.
3759 if depmode=$depmode \
3760 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3761 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3762 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3763 >/dev/null 2>conftest.err &&
3764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3765 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3767 # icc doesn't choke on unknown options, it will just issue warnings
3768 # or remarks (even with -Werror). So we grep stderr for any message
3769 # that says an option was ignored or not supported.
3770 # When given -MP, icc 7.0 and 7.1 complain thusly:
3771 # icc: Command line warning: ignoring option '-M'; no argument required
3772 # The diagnosis changed in icc 8.0:
3773 # icc: Command line remark: option '-MP' not supported
3774 if (grep 'ignoring option' conftest.err ||
3775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3776 am_cv_CC_dependencies_compiler_type=$depmode
3777 break
3778 fi
3779 fi
3780 done
3782 cd ..
3783 rm -rf conftest.dir
3784 else
3785 am_cv_CC_dependencies_compiler_type=none
3786 fi
3788 fi
3789 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3790 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3791 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3795 if
3796 test "x$enable_dependency_tracking" != xno \
3797 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3798 am__fastdepCC_TRUE=
3799 am__fastdepCC_FALSE='#'
3800 else
3801 am__fastdepCC_TRUE='#'
3802 am__fastdepCC_FALSE=
3803 fi
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3812 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3813 # On Suns, sometimes $CPP names a directory.
3814 if test -n "$CPP" && test -d "$CPP"; then
3815 CPP=
3816 fi
3817 if test -z "$CPP"; then
3818 if test "${ac_cv_prog_CPP+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 # Double quotes because CPP needs to be expanded
3822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3823 do
3824 ac_preproc_ok=false
3825 for ac_c_preproc_warn_flag in '' yes
3826 do
3827 # Use a header file that comes with gcc, so configuring glibc
3828 # with a fresh cross-compiler works.
3829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830 # <limits.h> exists even on freestanding compilers.
3831 # On the NeXT, cc -E runs the code through the compiler's parser,
3832 # not just through cpp. "Syntax error" is here to catch this case.
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #ifdef __STDC__
3840 # include <limits.h>
3841 #else
3842 # include <assert.h>
3843 #endif
3844 Syntax error
3845 _ACEOF
3846 if { (ac_try="$ac_cpp conftest.$ac_ext"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null && {
3859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860 test ! -s conftest.err
3861 }; then
3862 :
3863 else
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 # Broken: fails on valid input.
3868 continue
3869 fi
3871 rm -f conftest.err conftest.$ac_ext
3873 # OK, works on sane cases. Now check whether nonexistent headers
3874 # can be detected and how.
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h. */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3881 #include <ac_nonexistent.h>
3882 _ACEOF
3883 if { (ac_try="$ac_cpp conftest.$ac_ext"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev/null && {
3896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 }; then
3899 # Broken: success on invalid input.
3900 continue
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Passes both tests.
3906 ac_preproc_ok=:
3907 break
3908 fi
3910 rm -f conftest.err conftest.$ac_ext
3912 done
3913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3914 rm -f conftest.err conftest.$ac_ext
3915 if $ac_preproc_ok; then
3916 break
3917 fi
3919 done
3920 ac_cv_prog_CPP=$CPP
3922 fi
3923 CPP=$ac_cv_prog_CPP
3924 else
3925 ac_cv_prog_CPP=$CPP
3926 fi
3927 { echo "$as_me:$LINENO: result: $CPP" >&5
3928 echo "${ECHO_T}$CPP" >&6; }
3929 ac_preproc_ok=false
3930 for ac_c_preproc_warn_flag in '' yes
3931 do
3932 # Use a header file that comes with gcc, so configuring glibc
3933 # with a fresh cross-compiler works.
3934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3935 # <limits.h> exists even on freestanding compilers.
3936 # On the NeXT, cc -E runs the code through the compiler's parser,
3937 # not just through cpp. "Syntax error" is here to catch this case.
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 #ifdef __STDC__
3945 # include <limits.h>
3946 #else
3947 # include <assert.h>
3948 #endif
3949 Syntax error
3950 _ACEOF
3951 if { (ac_try="$ac_cpp conftest.$ac_ext"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null && {
3964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 }; then
3967 :
3968 else
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 # Broken: fails on valid input.
3973 continue
3974 fi
3976 rm -f conftest.err conftest.$ac_ext
3978 # OK, works on sane cases. Now check whether nonexistent headers
3979 # can be detected and how.
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #include <ac_nonexistent.h>
3987 _ACEOF
3988 if { (ac_try="$ac_cpp conftest.$ac_ext"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } >/dev/null && {
4001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4002 test ! -s conftest.err
4003 }; then
4004 # Broken: success on invalid input.
4005 continue
4006 else
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 # Passes both tests.
4011 ac_preproc_ok=:
4012 break
4013 fi
4015 rm -f conftest.err conftest.$ac_ext
4017 done
4018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4019 rm -f conftest.err conftest.$ac_ext
4020 if $ac_preproc_ok; then
4021 :
4022 else
4023 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4024 See \`config.log' for more details." >&5
4025 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4026 See \`config.log' for more details." >&2;}
4027 { (exit 1); exit 1; }; }
4028 fi
4030 ac_ext=c
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 # Check whether --enable-shared was given.
4037 if test "${enable_shared+set}" = set; then
4038 enableval=$enable_shared; p=${PACKAGE-default}
4039 case $enableval in
4040 yes) enable_shared=yes ;;
4041 no) enable_shared=no ;;
4042 *)
4043 enable_shared=no
4044 # Look at the argument we got. We use all the common list separators.
4045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046 for pkg in $enableval; do
4047 IFS="$lt_save_ifs"
4048 if test "X$pkg" = "X$p"; then
4049 enable_shared=yes
4050 fi
4051 done
4052 IFS="$lt_save_ifs"
4053 ;;
4054 esac
4055 else
4056 enable_shared=yes
4057 fi
4060 # Check whether --enable-static was given.
4061 if test "${enable_static+set}" = set; then
4062 enableval=$enable_static; p=${PACKAGE-default}
4063 case $enableval in
4064 yes) enable_static=yes ;;
4065 no) enable_static=no ;;
4066 *)
4067 enable_static=no
4068 # Look at the argument we got. We use all the common list separators.
4069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4070 for pkg in $enableval; do
4071 IFS="$lt_save_ifs"
4072 if test "X$pkg" = "X$p"; then
4073 enable_static=yes
4074 fi
4075 done
4076 IFS="$lt_save_ifs"
4077 ;;
4078 esac
4079 else
4080 enable_static=yes
4081 fi
4084 # Check whether --enable-fast-install was given.
4085 if test "${enable_fast_install+set}" = set; then
4086 enableval=$enable_fast_install; p=${PACKAGE-default}
4087 case $enableval in
4088 yes) enable_fast_install=yes ;;
4089 no) enable_fast_install=no ;;
4090 *)
4091 enable_fast_install=no
4092 # Look at the argument we got. We use all the common list separators.
4093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094 for pkg in $enableval; do
4095 IFS="$lt_save_ifs"
4096 if test "X$pkg" = "X$p"; then
4097 enable_fast_install=yes
4098 fi
4099 done
4100 IFS="$lt_save_ifs"
4101 ;;
4102 esac
4103 else
4104 enable_fast_install=yes
4105 fi
4108 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4109 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4110 if test "${lt_cv_path_SED+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 # Loop through the user's path and test for sed and gsed.
4114 # Then use that list of sed's as ones to test for truncation.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for lt_ac_prog in sed gsed; do
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4123 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4124 fi
4125 done
4126 done
4127 done
4128 lt_ac_max=0
4129 lt_ac_count=0
4130 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4131 # along with /bin/sed that truncates output.
4132 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4133 test ! -f $lt_ac_sed && continue
4134 cat /dev/null > conftest.in
4135 lt_ac_count=0
4136 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4137 # Check for GNU sed and select it if it is found.
4138 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4139 lt_cv_path_SED=$lt_ac_sed
4140 break
4141 fi
4142 while true; do
4143 cat conftest.in conftest.in >conftest.tmp
4144 mv conftest.tmp conftest.in
4145 cp conftest.in conftest.nl
4146 echo >>conftest.nl
4147 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4148 cmp -s conftest.out conftest.nl || break
4149 # 10000 chars as input seems more than enough
4150 test $lt_ac_count -gt 10 && break
4151 lt_ac_count=`expr $lt_ac_count + 1`
4152 if test $lt_ac_count -gt $lt_ac_max; then
4153 lt_ac_max=$lt_ac_count
4154 lt_cv_path_SED=$lt_ac_sed
4155 fi
4156 done
4157 done
4159 fi
4161 SED=$lt_cv_path_SED
4162 { echo "$as_me:$LINENO: result: $SED" >&5
4163 echo "${ECHO_T}$SED" >&6; }
4165 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4166 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_GREP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 # Extract the first word of "grep ggrep" to use in msg output
4171 if test -z "$GREP"; then
4172 set dummy grep ggrep; ac_prog_name=$2
4173 if test "${ac_cv_path_GREP+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 ac_path_GREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in grep ggrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4186 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4187 # Check for GNU ac_path_GREP and select it if it is found.
4188 # Check for GNU $ac_path_GREP
4189 case `"$ac_path_GREP" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4192 *)
4193 ac_count=0
4194 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 echo 'GREP' >> "conftest.nl"
4201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 ac_count=`expr $ac_count + 1`
4204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_GREP="$ac_path_GREP"
4207 ac_path_GREP_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4216 $ac_path_GREP_found && break 3
4217 done
4218 done
4220 done
4221 IFS=$as_save_IFS
4224 fi
4226 GREP="$ac_cv_path_GREP"
4227 if test -z "$GREP"; then
4228 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4229 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4230 { (exit 1); exit 1; }; }
4231 fi
4233 else
4234 ac_cv_path_GREP=$GREP
4235 fi
4238 fi
4239 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4240 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4241 GREP="$ac_cv_path_GREP"
4244 { echo "$as_me:$LINENO: checking for egrep" >&5
4245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4246 if test "${ac_cv_path_EGREP+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4250 then ac_cv_path_EGREP="$GREP -E"
4251 else
4252 # Extract the first word of "egrep" to use in msg output
4253 if test -z "$EGREP"; then
4254 set dummy egrep; ac_prog_name=$2
4255 if test "${ac_cv_path_EGREP+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 ac_path_EGREP_found=false
4259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262 do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in egrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4268 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4269 # Check for GNU ac_path_EGREP and select it if it is found.
4270 # Check for GNU $ac_path_EGREP
4271 case `"$ac_path_EGREP" --version 2>&1` in
4272 *GNU*)
4273 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4274 *)
4275 ac_count=0
4276 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4277 while :
4278 do
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
4282 echo 'EGREP' >> "conftest.nl"
4283 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285 ac_count=`expr $ac_count + 1`
4286 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_EGREP="$ac_path_EGREP"
4289 ac_path_EGREP_max=$ac_count
4290 fi
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4293 done
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 esac
4298 $ac_path_EGREP_found && break 3
4299 done
4300 done
4302 done
4303 IFS=$as_save_IFS
4306 fi
4308 EGREP="$ac_cv_path_EGREP"
4309 if test -z "$EGREP"; then
4310 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4311 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4312 { (exit 1); exit 1; }; }
4313 fi
4315 else
4316 ac_cv_path_EGREP=$EGREP
4317 fi
4320 fi
4321 fi
4322 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4323 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4324 EGREP="$ac_cv_path_EGREP"
4328 # Check whether --with-gnu-ld was given.
4329 if test "${with_gnu_ld+set}" = set; then
4330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4331 else
4332 with_gnu_ld=no
4333 fi
4335 ac_prog=ld
4336 if test "$GCC" = yes; then
4337 # Check if gcc -print-prog-name=ld gives a path.
4338 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4339 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4340 case $host in
4341 *-*-mingw*)
4342 # gcc leaves a trailing carriage return which upsets mingw
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4344 *)
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4346 esac
4347 case $ac_prog in
4348 # Accept absolute paths.
4349 [\\/]* | ?:[\\/]*)
4350 re_direlt='/[^/][^/]*/\.\./'
4351 # Canonicalize the pathname of ld
4352 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4353 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4354 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4355 done
4356 test -z "$LD" && LD="$ac_prog"
4357 ;;
4358 "")
4359 # If it fails, then pretend we aren't using GCC.
4360 ac_prog=ld
4361 ;;
4362 *)
4363 # If it is relative, then search for the first ld in PATH.
4364 with_gnu_ld=unknown
4365 ;;
4366 esac
4367 elif test "$with_gnu_ld" = yes; then
4368 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4369 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4370 else
4371 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4372 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4373 fi
4374 if test "${lt_cv_path_LD+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 if test -z "$LD"; then
4378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4379 for ac_dir in $PATH; do
4380 IFS="$lt_save_ifs"
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4383 lt_cv_path_LD="$ac_dir/$ac_prog"
4384 # Check to see if the program is GNU ld. I'd rather use --version,
4385 # but apparently some variants of GNU ld only accept -v.
4386 # Break only if it was the GNU/non-GNU ld that we prefer.
4387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389 test "$with_gnu_ld" != no && break
4390 ;;
4391 *)
4392 test "$with_gnu_ld" != yes && break
4393 ;;
4394 esac
4395 fi
4396 done
4397 IFS="$lt_save_ifs"
4398 else
4399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4400 fi
4401 fi
4403 LD="$lt_cv_path_LD"
4404 if test -n "$LD"; then
4405 { echo "$as_me:$LINENO: result: $LD" >&5
4406 echo "${ECHO_T}$LD" >&6; }
4407 else
4408 { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4410 fi
4411 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4412 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4413 { (exit 1); exit 1; }; }
4414 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4415 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4416 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4420 case `$LD -v 2>&1 </dev/null` in
4421 *GNU* | *'with BFD'*)
4422 lt_cv_prog_gnu_ld=yes
4423 ;;
4424 *)
4425 lt_cv_prog_gnu_ld=no
4426 ;;
4427 esac
4428 fi
4429 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4430 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4431 with_gnu_ld=$lt_cv_prog_gnu_ld
4434 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4435 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4436 if test "${lt_cv_ld_reload_flag+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 lt_cv_ld_reload_flag='-r'
4440 fi
4441 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4442 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4443 reload_flag=$lt_cv_ld_reload_flag
4444 case $reload_flag in
4445 "" | " "*) ;;
4446 *) reload_flag=" $reload_flag" ;;
4447 esac
4448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4449 case $host_os in
4450 darwin*)
4451 if test "$GCC" = yes; then
4452 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4453 else
4454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4455 fi
4456 ;;
4457 esac
4459 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4460 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4461 if test "${lt_cv_path_NM+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 if test -n "$NM"; then
4465 # Let the user override the test.
4466 lt_cv_path_NM="$NM"
4467 else
4468 lt_nm_to_check="${ac_tool_prefix}nm"
4469 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4470 lt_nm_to_check="$lt_nm_to_check nm"
4471 fi
4472 for lt_tmp_nm in $lt_nm_to_check; do
4473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4474 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4475 IFS="$lt_save_ifs"
4476 test -z "$ac_dir" && ac_dir=.
4477 tmp_nm="$ac_dir/$lt_tmp_nm"
4478 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4479 # Check to see if the nm accepts a BSD-compat flag.
4480 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4481 # nm: unknown option "B" ignored
4482 # Tru64's nm complains that /dev/null is an invalid object file
4483 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4484 */dev/null* | *'Invalid file or object type'*)
4485 lt_cv_path_NM="$tmp_nm -B"
4486 break
4487 ;;
4488 *)
4489 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4490 */dev/null*)
4491 lt_cv_path_NM="$tmp_nm -p"
4492 break
4493 ;;
4494 *)
4495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4496 continue # so that we can try to find one that supports BSD flags
4497 ;;
4498 esac
4499 ;;
4500 esac
4501 fi
4502 done
4503 IFS="$lt_save_ifs"
4504 done
4505 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4506 fi
4507 fi
4508 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4509 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4510 NM="$lt_cv_path_NM"
4512 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4513 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4514 LN_S=$as_ln_s
4515 if test "$LN_S" = "ln -s"; then
4516 { echo "$as_me:$LINENO: result: yes" >&5
4517 echo "${ECHO_T}yes" >&6; }
4518 else
4519 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4520 echo "${ECHO_T}no, using $LN_S" >&6; }
4521 fi
4523 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4524 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4525 if test "${lt_cv_deplibs_check_method+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 lt_cv_file_magic_cmd='$MAGIC_CMD'
4529 lt_cv_file_magic_test_file=
4530 lt_cv_deplibs_check_method='unknown'
4531 # Need to set the preceding variable on all platforms that support
4532 # interlibrary dependencies.
4533 # 'none' -- dependencies not supported.
4534 # `unknown' -- same as none, but documents that we really don't know.
4535 # 'pass_all' -- all dependencies passed with no checks.
4536 # 'test_compile' -- check by making test program.
4537 # 'file_magic [[regex]]' -- check by looking for files in library path
4538 # which responds to the $file_magic_cmd with a given extended regex.
4539 # If you have `file' or equivalent on your system and you're not sure
4540 # whether `pass_all' will *always* work, you probably want this one.
4542 case $host_os in
4543 aix4* | aix5*)
4544 lt_cv_deplibs_check_method=pass_all
4545 ;;
4547 beos*)
4548 lt_cv_deplibs_check_method=pass_all
4549 ;;
4551 bsdi[45]*)
4552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4553 lt_cv_file_magic_cmd='/usr/bin/file -L'
4554 lt_cv_file_magic_test_file=/shlib/libc.so
4555 ;;
4557 cygwin*)
4558 # func_win32_libid is a shell function defined in ltmain.sh
4559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4560 lt_cv_file_magic_cmd='func_win32_libid'
4561 ;;
4563 mingw* | pw32*)
4564 # Base MSYS/MinGW do not provide the 'file' command needed by
4565 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4566 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4567 lt_cv_file_magic_cmd='$OBJDUMP -f'
4568 ;;
4570 darwin* | rhapsody*)
4571 lt_cv_deplibs_check_method=pass_all
4572 ;;
4574 freebsd* | dragonfly*)
4575 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4576 case $host_cpu in
4577 i*86 )
4578 # Not sure whether the presence of OpenBSD here was a mistake.
4579 # Let's accept both of them until this is cleared up.
4580 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4581 lt_cv_file_magic_cmd=/usr/bin/file
4582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4583 ;;
4584 esac
4585 else
4586 lt_cv_deplibs_check_method=pass_all
4587 fi
4588 ;;
4590 gnu*)
4591 lt_cv_deplibs_check_method=pass_all
4592 ;;
4594 hpux10.20* | hpux11*)
4595 lt_cv_file_magic_cmd=/usr/bin/file
4596 case $host_cpu in
4597 ia64*)
4598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4599 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4600 ;;
4601 hppa*64*)
4602 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]'
4603 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4604 ;;
4605 *)
4606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4607 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4608 ;;
4609 esac
4610 ;;
4612 interix3*)
4613 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4615 ;;
4617 irix5* | irix6* | nonstopux*)
4618 case $LD in
4619 *-32|*"-32 ") libmagic=32-bit;;
4620 *-n32|*"-n32 ") libmagic=N32;;
4621 *-64|*"-64 ") libmagic=64-bit;;
4622 *) libmagic=never-match;;
4623 esac
4624 lt_cv_deplibs_check_method=pass_all
4625 ;;
4627 # This must be Linux ELF.
4628 linux* | k*bsd*-gnu)
4629 lt_cv_deplibs_check_method=pass_all
4630 ;;
4632 netbsd* | netbsdelf*-gnu)
4633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4635 else
4636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4637 fi
4638 ;;
4640 newos6*)
4641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4642 lt_cv_file_magic_cmd=/usr/bin/file
4643 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4644 ;;
4646 nto-qnx*)
4647 lt_cv_deplibs_check_method=unknown
4648 ;;
4650 openbsd*)
4651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4653 else
4654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4655 fi
4656 ;;
4658 osf3* | osf4* | osf5*)
4659 lt_cv_deplibs_check_method=pass_all
4660 ;;
4662 solaris*)
4663 lt_cv_deplibs_check_method=pass_all
4664 ;;
4666 sysv4 | sysv4.3*)
4667 case $host_vendor in
4668 motorola)
4669 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]'
4670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4671 ;;
4672 ncr)
4673 lt_cv_deplibs_check_method=pass_all
4674 ;;
4675 sequent)
4676 lt_cv_file_magic_cmd='/bin/file'
4677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4678 ;;
4679 sni)
4680 lt_cv_file_magic_cmd='/bin/file'
4681 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4682 lt_cv_file_magic_test_file=/lib/libc.so
4683 ;;
4684 siemens)
4685 lt_cv_deplibs_check_method=pass_all
4686 ;;
4687 pc)
4688 lt_cv_deplibs_check_method=pass_all
4689 ;;
4690 esac
4691 ;;
4693 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4694 lt_cv_deplibs_check_method=pass_all
4695 ;;
4696 esac
4698 fi
4699 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4700 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4701 file_magic_cmd=$lt_cv_file_magic_cmd
4702 deplibs_check_method=$lt_cv_deplibs_check_method
4703 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4708 # If no C compiler was specified, use CC.
4709 LTCC=${LTCC-"$CC"}
4711 # If no C compiler flags were specified, use CFLAGS.
4712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4714 # Allow CC to be a program name with arguments.
4715 compiler=$CC
4718 # Check whether --enable-libtool-lock was given.
4719 if test "${enable_libtool_lock+set}" = set; then
4720 enableval=$enable_libtool_lock;
4721 fi
4723 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4725 # Some flags need to be propagated to the compiler or linker for good
4726 # libtool support.
4727 case $host in
4728 ia64-*-hpux*)
4729 # Find out which ABI we are using.
4730 echo 'int i;' > conftest.$ac_ext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; then
4736 case `/usr/bin/file conftest.$ac_objext` in
4737 *ELF-32*)
4738 HPUX_IA64_MODE="32"
4739 ;;
4740 *ELF-64*)
4741 HPUX_IA64_MODE="64"
4742 ;;
4743 esac
4744 fi
4745 rm -rf conftest*
4746 ;;
4747 *-*-irix6*)
4748 # Find out which ABI we are using.
4749 echo '#line 4749 "configure"' > conftest.$ac_ext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; then
4755 if test "$lt_cv_prog_gnu_ld" = yes; then
4756 case `/usr/bin/file conftest.$ac_objext` in
4757 *32-bit*)
4758 LD="${LD-ld} -melf32bsmip"
4759 ;;
4760 *N32*)
4761 LD="${LD-ld} -melf32bmipn32"
4762 ;;
4763 *64-bit*)
4764 LD="${LD-ld} -melf64bmip"
4765 ;;
4766 esac
4767 else
4768 case `/usr/bin/file conftest.$ac_objext` in
4769 *32-bit*)
4770 LD="${LD-ld} -32"
4771 ;;
4772 *N32*)
4773 LD="${LD-ld} -n32"
4774 ;;
4775 *64-bit*)
4776 LD="${LD-ld} -64"
4777 ;;
4778 esac
4779 fi
4780 fi
4781 rm -rf conftest*
4782 ;;
4784 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4785 # Find out which ABI we are using.
4786 echo 'int i;' > conftest.$ac_ext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; then
4792 case `/usr/bin/file conftest.o` in
4793 *32-bit*)
4794 case $host in
4795 x86_64-*linux*)
4796 LD="${LD-ld} -m elf_i386"
4797 ;;
4798 ppc64-*linux*|powerpc64-*linux*)
4799 LD="${LD-ld} -m elf32ppclinux"
4800 ;;
4801 s390x-*linux*)
4802 LD="${LD-ld} -m elf_s390"
4803 ;;
4804 sparc64-*linux*)
4805 LD="${LD-ld} -m elf32_sparc"
4806 ;;
4807 esac
4808 ;;
4809 *64-bit*)
4810 case $host in
4811 x86_64-*linux*)
4812 LD="${LD-ld} -m elf_x86_64"
4813 ;;
4814 ppc*-*linux*|powerpc*-*linux*)
4815 LD="${LD-ld} -m elf64ppc"
4816 ;;
4817 s390*-*linux*)
4818 LD="${LD-ld} -m elf64_s390"
4819 ;;
4820 sparc*-*linux*)
4821 LD="${LD-ld} -m elf64_sparc"
4822 ;;
4823 esac
4824 ;;
4825 esac
4826 fi
4827 rm -rf conftest*
4828 ;;
4830 *-*-sco3.2v5*)
4831 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832 SAVE_CFLAGS="$CFLAGS"
4833 CFLAGS="$CFLAGS -belf"
4834 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4836 if test "${lt_cv_cc_needs_belf+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4852 int
4853 main ()
4854 {
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (ac_try="$ac_link"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_link") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest$ac_exeext &&
4877 $as_test_x conftest$ac_exeext; then
4878 lt_cv_cc_needs_belf=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 lt_cv_cc_needs_belf=no
4884 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4887 conftest$ac_exeext conftest.$ac_ext
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 fi
4895 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4896 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899 CFLAGS="$SAVE_CFLAGS"
4900 fi
4901 ;;
4902 sparc*-*solaris*)
4903 # Find out which ABI we are using.
4904 echo 'int i;' > conftest.$ac_ext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; then
4910 case `/usr/bin/file conftest.o` in
4911 *64-bit*)
4912 case $lt_cv_prog_gnu_ld in
4913 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4914 *) LD="${LD-ld} -64" ;;
4915 esac
4916 ;;
4917 esac
4918 fi
4919 rm -rf conftest*
4920 ;;
4923 esac
4925 need_locks="$enable_libtool_lock"
4929 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4931 if test "${ac_cv_header_stdc+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #include <stdlib.h>
4941 #include <stdarg.h>
4942 #include <string.h>
4943 #include <float.h>
4945 int
4946 main ()
4947 {
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compile") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && {
4967 test -z "$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest.$ac_objext; then
4970 ac_cv_header_stdc=yes
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 ac_cv_header_stdc=no
4976 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 if test $ac_cv_header_stdc = yes; then
4981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 #include <string.h>
4990 _ACEOF
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992 $EGREP "memchr" >/dev/null 2>&1; then
4993 :
4994 else
4995 ac_cv_header_stdc=no
4996 fi
4997 rm -f conftest*
4999 fi
5001 if test $ac_cv_header_stdc = yes; then
5002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 #include <stdlib.h>
5011 _ACEOF
5012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5013 $EGREP "free" >/dev/null 2>&1; then
5014 :
5015 else
5016 ac_cv_header_stdc=no
5017 fi
5018 rm -f conftest*
5020 fi
5022 if test $ac_cv_header_stdc = yes; then
5023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5024 if test "$cross_compiling" = yes; then
5025 :
5026 else
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 #include <ctype.h>
5034 #include <stdlib.h>
5035 #if ((' ' & 0x0FF) == 0x020)
5036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5038 #else
5039 # define ISLOWER(c) \
5040 (('a' <= (c) && (c) <= 'i') \
5041 || ('j' <= (c) && (c) <= 'r') \
5042 || ('s' <= (c) && (c) <= 'z'))
5043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5044 #endif
5046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5047 int
5048 main ()
5049 {
5050 int i;
5051 for (i = 0; i < 256; i++)
5052 if (XOR (islower (i), ISLOWER (i))
5053 || toupper (i) != TOUPPER (i))
5054 return 2;
5055 return 0;
5056 }
5057 _ACEOF
5058 rm -f conftest$ac_exeext
5059 if { (ac_try="$ac_link"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_link") 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5069 { (case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072 esac
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_try") 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 :
5079 else
5080 echo "$as_me: program exited with status $ac_status" >&5
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 ( exit $ac_status )
5085 ac_cv_header_stdc=no
5086 fi
5087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5088 fi
5091 fi
5092 fi
5093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5095 if test $ac_cv_header_stdc = yes; then
5097 cat >>confdefs.h <<\_ACEOF
5098 #define STDC_HEADERS 1
5099 _ACEOF
5101 fi
5103 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5113 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5114 inttypes.h stdint.h unistd.h
5115 do
5116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5130 #include <$ac_header>
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5134 case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_compile") 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && {
5146 test -z "$ac_c_werror_flag" ||
5147 test ! -s conftest.err
5148 } && test -s conftest.$ac_objext; then
5149 eval "$as_ac_Header=yes"
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 eval "$as_ac_Header=no"
5155 fi
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 fi
5159 ac_res=`eval echo '${'$as_ac_Header'}'`
5160 { echo "$as_me:$LINENO: result: $ac_res" >&5
5161 echo "${ECHO_T}$ac_res" >&6; }
5162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5163 cat >>confdefs.h <<_ACEOF
5164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5165 _ACEOF
5167 fi
5169 done
5173 for ac_header in dlfcn.h
5174 do
5175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 fi
5182 ac_res=`eval echo '${'$as_ac_Header'}'`
5183 { echo "$as_me:$LINENO: result: $ac_res" >&5
5184 echo "${ECHO_T}$ac_res" >&6; }
5185 else
5186 # Is the header compilable?
5187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 $ac_includes_default
5196 #include <$ac_header>
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_compile") 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && {
5212 test -z "$ac_c_werror_flag" ||
5213 test ! -s conftest.err
5214 } && test -s conftest.$ac_objext; then
5215 ac_header_compiler=yes
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 ac_header_compiler=no
5221 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5225 echo "${ECHO_T}$ac_header_compiler" >&6; }
5227 # Is the header present?
5228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #include <$ac_header>
5237 _ACEOF
5238 if { (ac_try="$ac_cpp conftest.$ac_ext"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null && {
5251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5253 }; then
5254 ac_header_preproc=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_header_preproc=no
5260 fi
5262 rm -f conftest.err conftest.$ac_ext
5263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5264 echo "${ECHO_T}$ac_header_preproc" >&6; }
5266 # So? What about this header?
5267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5268 yes:no: )
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5273 ac_header_preproc=yes
5274 ;;
5275 no:yes:* )
5276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5289 ;;
5290 esac
5291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 eval "$as_ac_Header=\$ac_header_preproc"
5297 fi
5298 ac_res=`eval echo '${'$as_ac_Header'}'`
5299 { echo "$as_me:$LINENO: result: $ac_res" >&5
5300 echo "${ECHO_T}$ac_res" >&6; }
5302 fi
5303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5304 cat >>confdefs.h <<_ACEOF
5305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5306 _ACEOF
5308 fi
5310 done
5312 ac_ext=cpp
5313 ac_cpp='$CXXCPP $CPPFLAGS'
5314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317 if test -z "$CXX"; then
5318 if test -n "$CCC"; then
5319 CXX=$CCC
5320 else
5321 if test -n "$ac_tool_prefix"; then
5322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5323 do
5324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5328 if test "${ac_cv_prog_CXX+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331 if test -n "$CXX"; then
5332 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5349 fi
5350 fi
5351 CXX=$ac_cv_prog_CXX
5352 if test -n "$CXX"; then
5353 { echo "$as_me:$LINENO: result: $CXX" >&5
5354 echo "${ECHO_T}$CXX" >&6; }
5355 else
5356 { echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6; }
5358 fi
5361 test -n "$CXX" && break
5362 done
5363 fi
5364 if test -z "$CXX"; then
5365 ac_ct_CXX=$CXX
5366 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5367 do
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5372 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375 if test -n "$ac_ct_CXX"; then
5376 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_ac_ct_CXX="$ac_prog"
5386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5393 fi
5394 fi
5395 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5396 if test -n "$ac_ct_CXX"; then
5397 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5398 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5399 else
5400 { echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6; }
5402 fi
5405 test -n "$ac_ct_CXX" && break
5406 done
5408 if test "x$ac_ct_CXX" = x; then
5409 CXX="g++"
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5414 whose name does not start with the host triplet. If you think this
5415 configuration is useful to you, please write to autoconf@gnu.org." >&5
5416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5417 whose name does not start with the host triplet. If you think this
5418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5419 ac_tool_warned=yes ;;
5420 esac
5421 CXX=$ac_ct_CXX
5422 fi
5423 fi
5425 fi
5426 fi
5427 # Provide some information about the compiler.
5428 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5429 ac_compiler=`set X $ac_compile; echo $2`
5430 { (ac_try="$ac_compiler --version >&5"
5431 case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434 esac
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_compiler --version >&5") 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }
5440 { (ac_try="$ac_compiler -v >&5"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compiler -v >&5") 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }
5450 { (ac_try="$ac_compiler -V >&5"
5451 case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_compiler -V >&5") 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }
5461 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5462 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5463 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 int
5474 main ()
5475 {
5476 #ifndef __GNUC__
5477 choke me
5478 #endif
5480 ;
5481 return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_compiler_gnu=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_compiler_gnu=no
5507 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5512 fi
5513 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5514 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5515 GXX=`test $ac_compiler_gnu = yes && echo yes`
5516 ac_test_CXXFLAGS=${CXXFLAGS+set}
5517 ac_save_CXXFLAGS=$CXXFLAGS
5518 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5519 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5520 if test "${ac_cv_prog_cxx_g+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5524 ac_cxx_werror_flag=yes
5525 ac_cv_prog_cxx_g=no
5526 CXXFLAGS="-g"
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5534 int
5535 main ()
5536 {
5538 ;
5539 return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_cxx_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_cv_prog_cxx_g=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 CXXFLAGS=""
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5572 int
5573 main ()
5574 {
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_cxx_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
5597 :
5598 else
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5603 CXXFLAGS="-g"
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5611 int
5612 main ()
5613 {
5615 ;
5616 return 0;
5617 }
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5621 case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_cxx_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_prog_cxx_g=yes
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5642 fi
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5652 fi
5653 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5654 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5655 if test "$ac_test_CXXFLAGS" = set; then
5656 CXXFLAGS=$ac_save_CXXFLAGS
5657 elif test $ac_cv_prog_cxx_g = yes; then
5658 if test "$GXX" = yes; then
5659 CXXFLAGS="-g -O2"
5660 else
5661 CXXFLAGS="-g"
5662 fi
5663 else
5664 if test "$GXX" = yes; then
5665 CXXFLAGS="-O2"
5666 else
5667 CXXFLAGS=
5668 fi
5669 fi
5670 ac_ext=cpp
5671 ac_cpp='$CXXCPP $CPPFLAGS'
5672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5676 depcc="$CXX" am_compiler_list=
5678 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5679 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5680 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5684 # We make a subdir and do the tests there. Otherwise we can end up
5685 # making bogus files that we don't know about and never remove. For
5686 # instance it was reported that on HP-UX the gcc test will end up
5687 # making a dummy file named `D' -- because `-MD' means `put the output
5688 # in D'.
5689 mkdir conftest.dir
5690 # Copy depcomp to subdir because otherwise we won't find it if we're
5691 # using a relative directory.
5692 cp "$am_depcomp" conftest.dir
5693 cd conftest.dir
5694 # We will build objects and dependencies in a subdirectory because
5695 # it helps to detect inapplicable dependency modes. For instance
5696 # both Tru64's cc and ICC support -MD to output dependencies as a
5697 # side effect of compilation, but ICC will put the dependencies in
5698 # the current directory while Tru64 will put them in the object
5699 # directory.
5700 mkdir sub
5702 am_cv_CXX_dependencies_compiler_type=none
5703 if test "$am_compiler_list" = ""; then
5704 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5705 fi
5706 for depmode in $am_compiler_list; do
5707 # Setup a source with many dependencies, because some compilers
5708 # like to wrap large dependency lists on column 80 (with \), and
5709 # we should not choose a depcomp mode which is confused by this.
5710 #
5711 # We need to recreate these files for each test, as the compiler may
5712 # overwrite some of them when testing with obscure command lines.
5713 # This happens at least with the AIX C compiler.
5714 : > sub/conftest.c
5715 for i in 1 2 3 4 5 6; do
5716 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5717 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5718 # Solaris 8's {/usr,}/bin/sh.
5719 touch sub/conftst$i.h
5720 done
5721 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5723 case $depmode in
5724 nosideeffect)
5725 # after this tag, mechanisms are not by side-effect, so they'll
5726 # only be used when explicitly requested
5727 if test "x$enable_dependency_tracking" = xyes; then
5728 continue
5729 else
5730 break
5731 fi
5732 ;;
5733 none) break ;;
5734 esac
5735 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5736 # mode. It turns out that the SunPro C++ compiler does not properly
5737 # handle `-M -o', and we need to detect this.
5738 if depmode=$depmode \
5739 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5741 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5742 >/dev/null 2>conftest.err &&
5743 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5744 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5745 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5746 # icc doesn't choke on unknown options, it will just issue warnings
5747 # or remarks (even with -Werror). So we grep stderr for any message
5748 # that says an option was ignored or not supported.
5749 # When given -MP, icc 7.0 and 7.1 complain thusly:
5750 # icc: Command line warning: ignoring option '-M'; no argument required
5751 # The diagnosis changed in icc 8.0:
5752 # icc: Command line remark: option '-MP' not supported
5753 if (grep 'ignoring option' conftest.err ||
5754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5755 am_cv_CXX_dependencies_compiler_type=$depmode
5756 break
5757 fi
5758 fi
5759 done
5761 cd ..
5762 rm -rf conftest.dir
5763 else
5764 am_cv_CXX_dependencies_compiler_type=none
5765 fi
5767 fi
5768 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5769 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5770 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5774 if
5775 test "x$enable_dependency_tracking" != xno \
5776 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5777 am__fastdepCXX_TRUE=
5778 am__fastdepCXX_FALSE='#'
5779 else
5780 am__fastdepCXX_TRUE='#'
5781 am__fastdepCXX_FALSE=
5782 fi
5787 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5788 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5789 (test "X$CXX" != "Xg++"))) ; then
5790 ac_ext=cpp
5791 ac_cpp='$CXXCPP $CPPFLAGS'
5792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5795 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5796 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5797 if test -z "$CXXCPP"; then
5798 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 # Double quotes because CXXCPP needs to be expanded
5802 for CXXCPP in "$CXX -E" "/lib/cpp"
5803 do
5804 ac_preproc_ok=false
5805 for ac_cxx_preproc_warn_flag in '' yes
5806 do
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 #ifdef __STDC__
5820 # include <limits.h>
5821 #else
5822 # include <assert.h>
5823 #endif
5824 Syntax error
5825 _ACEOF
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5827 case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } >/dev/null && {
5839 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5840 test ! -s conftest.err
5841 }; then
5842 :
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 # Broken: fails on valid input.
5848 continue
5849 fi
5851 rm -f conftest.err conftest.$ac_ext
5853 # OK, works on sane cases. Now check whether nonexistent headers
5854 # can be detected and how.
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <ac_nonexistent.h>
5862 _ACEOF
5863 if { (ac_try="$ac_cpp conftest.$ac_ext"
5864 case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } >/dev/null && {
5876 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5877 test ! -s conftest.err
5878 }; then
5879 # Broken: success on invalid input.
5880 continue
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 # Passes both tests.
5886 ac_preproc_ok=:
5887 break
5888 fi
5890 rm -f conftest.err conftest.$ac_ext
5892 done
5893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5894 rm -f conftest.err conftest.$ac_ext
5895 if $ac_preproc_ok; then
5896 break
5897 fi
5899 done
5900 ac_cv_prog_CXXCPP=$CXXCPP
5902 fi
5903 CXXCPP=$ac_cv_prog_CXXCPP
5904 else
5905 ac_cv_prog_CXXCPP=$CXXCPP
5906 fi
5907 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5908 echo "${ECHO_T}$CXXCPP" >&6; }
5909 ac_preproc_ok=false
5910 for ac_cxx_preproc_warn_flag in '' yes
5911 do
5912 # Use a header file that comes with gcc, so configuring glibc
5913 # with a fresh cross-compiler works.
5914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5915 # <limits.h> exists even on freestanding compilers.
5916 # On the NeXT, cc -E runs the code through the compiler's parser,
5917 # not just through cpp. "Syntax error" is here to catch this case.
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #ifdef __STDC__
5925 # include <limits.h>
5926 #else
5927 # include <assert.h>
5928 #endif
5929 Syntax error
5930 _ACEOF
5931 if { (ac_try="$ac_cpp conftest.$ac_ext"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } >/dev/null && {
5944 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5945 test ! -s conftest.err
5946 }; then
5947 :
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 # Broken: fails on valid input.
5953 continue
5954 fi
5956 rm -f conftest.err conftest.$ac_ext
5958 # OK, works on sane cases. Now check whether nonexistent headers
5959 # can be detected and how.
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <ac_nonexistent.h>
5967 _ACEOF
5968 if { (ac_try="$ac_cpp conftest.$ac_ext"
5969 case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972 esac
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5975 ac_status=$?
5976 grep -v '^ *+' conftest.er1 >conftest.err
5977 rm -f conftest.er1
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } >/dev/null && {
5981 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5982 test ! -s conftest.err
5983 }; then
5984 # Broken: success on invalid input.
5985 continue
5986 else
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5990 # Passes both tests.
5991 ac_preproc_ok=:
5992 break
5993 fi
5995 rm -f conftest.err conftest.$ac_ext
5997 done
5998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5999 rm -f conftest.err conftest.$ac_ext
6000 if $ac_preproc_ok; then
6001 :
6002 else
6003 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6004 See \`config.log' for more details." >&5
6005 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6006 See \`config.log' for more details." >&2;}
6007 { (exit 1); exit 1; }; }
6008 fi
6010 ac_ext=cpp
6011 ac_cpp='$CXXCPP $CPPFLAGS'
6012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6016 fi
6019 ac_ext=f
6020 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6021 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6023 if test -n "$ac_tool_prefix"; then
6024 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
6025 do
6026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030 if test "${ac_cv_prog_F77+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 if test -n "$F77"; then
6034 ac_cv_prog_F77="$F77" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6051 fi
6052 fi
6053 F77=$ac_cv_prog_F77
6054 if test -n "$F77"; then
6055 { echo "$as_me:$LINENO: result: $F77" >&5
6056 echo "${ECHO_T}$F77" >&6; }
6057 else
6058 { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6060 fi
6063 test -n "$F77" && break
6064 done
6065 fi
6066 if test -z "$F77"; then
6067 ac_ct_F77=$F77
6068 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
6069 do
6070 # Extract the first word of "$ac_prog", so it can be a program name with args.
6071 set dummy $ac_prog; ac_word=$2
6072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6074 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077 if test -n "$ac_ct_F77"; then
6078 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_prog_ac_ct_F77="$ac_prog"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6090 fi
6091 done
6092 done
6093 IFS=$as_save_IFS
6095 fi
6096 fi
6097 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6098 if test -n "$ac_ct_F77"; then
6099 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6100 echo "${ECHO_T}$ac_ct_F77" >&6; }
6101 else
6102 { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6104 fi
6107 test -n "$ac_ct_F77" && break
6108 done
6110 if test "x$ac_ct_F77" = x; then
6111 F77=""
6112 else
6113 case $cross_compiling:$ac_tool_warned in
6114 yes:)
6115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6116 whose name does not start with the host triplet. If you think this
6117 configuration is useful to you, please write to autoconf@gnu.org." >&5
6118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6119 whose name does not start with the host triplet. If you think this
6120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6121 ac_tool_warned=yes ;;
6122 esac
6123 F77=$ac_ct_F77
6124 fi
6125 fi
6128 # Provide some information about the compiler.
6129 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6130 ac_compiler=`set X $ac_compile; echo $2`
6131 { (ac_try="$ac_compiler --version >&5"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compiler --version >&5") 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }
6141 { (ac_try="$ac_compiler -v >&5"
6142 case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compiler -v >&5") 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }
6151 { (ac_try="$ac_compiler -V >&5"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_compiler -V >&5") 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }
6161 rm -f a.out
6163 # If we don't use `.F' as extension, the preprocessor is not run on the
6164 # input file. (Note that this only needs to work for GNU compilers.)
6165 ac_save_ext=$ac_ext
6166 ac_ext=F
6167 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6168 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6169 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 program main
6174 #ifndef __GNUC__
6175 choke me
6176 #endif
6178 end
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (ac_try="$ac_compile"
6182 case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && {
6194 test -z "$ac_f77_werror_flag" ||
6195 test ! -s conftest.err
6196 } && test -s conftest.$ac_objext; then
6197 ac_compiler_gnu=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 ac_compiler_gnu=no
6203 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6208 fi
6209 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6210 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6211 ac_ext=$ac_save_ext
6212 ac_test_FFLAGS=${FFLAGS+set}
6213 ac_save_FFLAGS=$FFLAGS
6214 FFLAGS=
6215 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6216 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6217 if test "${ac_cv_prog_f77_g+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220 FFLAGS=-g
6221 cat >conftest.$ac_ext <<_ACEOF
6222 program main
6224 end
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (ac_try="$ac_compile"
6228 case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_f77_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 ac_cv_prog_f77_g=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_cv_prog_f77_g=no
6249 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 fi
6254 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6255 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6256 if test "$ac_test_FFLAGS" = set; then
6257 FFLAGS=$ac_save_FFLAGS
6258 elif test $ac_cv_prog_f77_g = yes; then
6259 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6260 FFLAGS="-g -O2"
6261 else
6262 FFLAGS="-g"
6263 fi
6264 else
6265 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6266 FFLAGS="-O2"
6267 else
6268 FFLAGS=
6269 fi
6270 fi
6272 G77=`test $ac_compiler_gnu = yes && echo yes`
6273 ac_ext=c
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6283 # find the maximum length of command line arguments
6284 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6285 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6286 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 i=0
6290 teststring="ABCD"
6292 case $build_os in
6293 msdosdjgpp*)
6294 # On DJGPP, this test can blow up pretty badly due to problems in libc
6295 # (any single argument exceeding 2000 bytes causes a buffer overrun
6296 # during glob expansion). Even if it were fixed, the result of this
6297 # check would be larger than it should be.
6298 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6299 ;;
6301 gnu*)
6302 # Under GNU Hurd, this test is not required because there is
6303 # no limit to the length of command line arguments.
6304 # Libtool will interpret -1 as no limit whatsoever
6305 lt_cv_sys_max_cmd_len=-1;
6306 ;;
6308 cygwin* | mingw*)
6309 # On Win9x/ME, this test blows up -- it succeeds, but takes
6310 # about 5 minutes as the teststring grows exponentially.
6311 # Worse, since 9x/ME are not pre-emptively multitasking,
6312 # you end up with a "frozen" computer, even though with patience
6313 # the test eventually succeeds (with a max line length of 256k).
6314 # Instead, let's just punt: use the minimum linelength reported by
6315 # all of the supported platforms: 8192 (on NT/2K/XP).
6316 lt_cv_sys_max_cmd_len=8192;
6317 ;;
6319 amigaos*)
6320 # On AmigaOS with pdksh, this test takes hours, literally.
6321 # So we just punt and use a minimum line length of 8192.
6322 lt_cv_sys_max_cmd_len=8192;
6323 ;;
6325 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6326 # This has been around since 386BSD, at least. Likely further.
6327 if test -x /sbin/sysctl; then
6328 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6329 elif test -x /usr/sbin/sysctl; then
6330 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6331 else
6332 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6333 fi
6334 # And add a safety zone
6335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6337 ;;
6339 interix*)
6340 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6341 lt_cv_sys_max_cmd_len=196608
6342 ;;
6344 osf*)
6345 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6346 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6347 # nice to cause kernel panics so lets avoid the loop below.
6348 # First set a reasonable default.
6349 lt_cv_sys_max_cmd_len=16384
6350 #
6351 if test -x /sbin/sysconfig; then
6352 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6353 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6354 esac
6355 fi
6356 ;;
6357 sco3.2v5*)
6358 lt_cv_sys_max_cmd_len=102400
6359 ;;
6360 sysv5* | sco5v6* | sysv4.2uw2*)
6361 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6362 if test -n "$kargmax"; then
6363 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6364 else
6365 lt_cv_sys_max_cmd_len=32768
6366 fi
6367 ;;
6368 *)
6369 # If test is not a shell built-in, we'll probably end up computing a
6370 # maximum length that is only half of the actual maximum length, but
6371 # we can't tell.
6372 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6373 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6374 = "XX$teststring") >/dev/null 2>&1 &&
6375 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6376 lt_cv_sys_max_cmd_len=$new_result &&
6377 test $i != 17 # 1/2 MB should be enough
6378 do
6379 i=`expr $i + 1`
6380 teststring=$teststring$teststring
6381 done
6382 teststring=
6383 # Add a significant safety factor because C++ compilers can tack on massive
6384 # amounts of additional arguments before passing them to the linker.
6385 # It appears as though 1/2 is a usable value.
6386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6387 ;;
6388 esac
6390 fi
6392 if test -n $lt_cv_sys_max_cmd_len ; then
6393 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6394 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6395 else
6396 { echo "$as_me:$LINENO: result: none" >&5
6397 echo "${ECHO_T}none" >&6; }
6398 fi
6403 # Check for command to grab the raw symbol name followed by C symbol from nm.
6404 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6405 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6406 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6410 # These are sane defaults that work on at least a few old systems.
6411 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6413 # Character class describing NM global symbol codes.
6414 symcode='[BCDEGRST]'
6416 # Regexp to match symbols that can be accessed directly from C.
6417 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6419 # Transform an extracted symbol line into a proper C declaration
6420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6422 # Transform an extracted symbol line into symbol name and symbol address
6423 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'"
6425 # Define system-specific variables.
6426 case $host_os in
6427 aix*)
6428 symcode='[BCDT]'
6429 ;;
6430 cygwin* | mingw* | pw32*)
6431 symcode='[ABCDGISTW]'
6432 ;;
6433 hpux*) # Its linker distinguishes data from code symbols
6434 if test "$host_cpu" = ia64; then
6435 symcode='[ABCDEGRST]'
6436 fi
6437 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6438 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'"
6439 ;;
6440 linux* | k*bsd*-gnu)
6441 if test "$host_cpu" = ia64; then
6442 symcode='[ABCDGIRSTW]'
6443 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6444 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'"
6445 fi
6446 ;;
6447 irix* | nonstopux*)
6448 symcode='[BCDEGRST]'
6449 ;;
6450 osf*)
6451 symcode='[BCDEGQRST]'
6452 ;;
6453 solaris*)
6454 symcode='[BDRT]'
6455 ;;
6456 sco3.2v5*)
6457 symcode='[DT]'
6458 ;;
6459 sysv4.2uw2*)
6460 symcode='[DT]'
6461 ;;
6462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6463 symcode='[ABDT]'
6464 ;;
6465 sysv4)
6466 symcode='[DFNSTU]'
6467 ;;
6468 esac
6470 # Handle CRLF in mingw tool chain
6471 opt_cr=
6472 case $build_os in
6473 mingw*)
6474 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6475 ;;
6476 esac
6478 # If we're using GNU nm, then use its standard symbol codes.
6479 case `$NM -V 2>&1` in
6480 *GNU* | *'with BFD'*)
6481 symcode='[ABCDGIRSTW]' ;;
6482 esac
6484 # Try without a prefix undercore, then with it.
6485 for ac_symprfx in "" "_"; do
6487 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6488 symxfrm="\\1 $ac_symprfx\\2 \\2"
6490 # Write the raw and C identifiers.
6491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6493 # Check to see that the pipe works correctly.
6494 pipe_works=no
6496 rm -f conftest*
6497 cat > conftest.$ac_ext <<EOF
6498 #ifdef __cplusplus
6499 extern "C" {
6500 #endif
6501 char nm_test_var;
6502 void nm_test_func(){}
6503 #ifdef __cplusplus
6504 }
6505 #endif
6506 int main(){nm_test_var='a';nm_test_func();return(0);}
6507 EOF
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; then
6514 # Now try to grab the symbols.
6515 nlist=conftest.nm
6516 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6517 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && test -s "$nlist"; then
6521 # Try sorting and uniquifying the output.
6522 if sort "$nlist" | uniq > "$nlist"T; then
6523 mv -f "$nlist"T "$nlist"
6524 else
6525 rm -f "$nlist"T
6526 fi
6528 # Make sure that we snagged all the symbols we need.
6529 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6530 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6531 cat <<EOF > conftest.$ac_ext
6532 #ifdef __cplusplus
6533 extern "C" {
6534 #endif
6536 EOF
6537 # Now generate the symbol file.
6538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6540 cat <<EOF >> conftest.$ac_ext
6541 #if defined (__STDC__) && __STDC__
6542 # define lt_ptr_t void *
6543 #else
6544 # define lt_ptr_t char *
6545 # define const
6546 #endif
6548 /* The mapping between symbol names and symbols. */
6549 const struct {
6550 const char *name;
6551 lt_ptr_t address;
6552 }
6553 lt_preloaded_symbols[] =
6554 {
6555 EOF
6556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6557 cat <<\EOF >> conftest.$ac_ext
6558 {0, (lt_ptr_t) 0}
6559 };
6561 #ifdef __cplusplus
6562 }
6563 #endif
6564 EOF
6565 # Now try linking the two files.
6566 mv conftest.$ac_objext conftstm.$ac_objext
6567 lt_save_LIBS="$LIBS"
6568 lt_save_CFLAGS="$CFLAGS"
6569 LIBS="conftstm.$ac_objext"
6570 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6576 pipe_works=yes
6577 fi
6578 LIBS="$lt_save_LIBS"
6579 CFLAGS="$lt_save_CFLAGS"
6580 else
6581 echo "cannot find nm_test_func in $nlist" >&5
6582 fi
6583 else
6584 echo "cannot find nm_test_var in $nlist" >&5
6585 fi
6586 else
6587 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6588 fi
6589 else
6590 echo "$progname: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6592 fi
6593 rm -f conftest* conftst*
6595 # Do not use the global_symbol_pipe unless it works.
6596 if test "$pipe_works" = yes; then
6597 break
6598 else
6599 lt_cv_sys_global_symbol_pipe=
6600 fi
6601 done
6603 fi
6605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6606 lt_cv_sys_global_symbol_to_cdecl=
6607 fi
6608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6609 { echo "$as_me:$LINENO: result: failed" >&5
6610 echo "${ECHO_T}failed" >&6; }
6611 else
6612 { echo "$as_me:$LINENO: result: ok" >&5
6613 echo "${ECHO_T}ok" >&6; }
6614 fi
6616 { echo "$as_me:$LINENO: checking for objdir" >&5
6617 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6618 if test "${lt_cv_objdir+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 rm -f .libs 2>/dev/null
6622 mkdir .libs 2>/dev/null
6623 if test -d .libs; then
6624 lt_cv_objdir=.libs
6625 else
6626 # MS-DOS does not allow filenames that begin with a dot.
6627 lt_cv_objdir=_libs
6628 fi
6629 rmdir .libs 2>/dev/null
6630 fi
6631 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6632 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6633 objdir=$lt_cv_objdir
6639 case $host_os in
6640 aix3*)
6641 # AIX sometimes has problems with the GCC collect2 program. For some
6642 # reason, if we set the COLLECT_NAMES environment variable, the problems
6643 # vanish in a puff of smoke.
6644 if test "X${COLLECT_NAMES+set}" != Xset; then
6645 COLLECT_NAMES=
6646 export COLLECT_NAMES
6647 fi
6648 ;;
6649 esac
6651 # Sed substitution that helps us do robust quoting. It backslashifies
6652 # metacharacters that are still active within double-quoted strings.
6653 Xsed='sed -e 1s/^X//'
6654 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6656 # Same as above, but do not quote variable references.
6657 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6659 # Sed substitution to delay expansion of an escaped shell variable in a
6660 # double_quote_subst'ed string.
6661 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6663 # Sed substitution to avoid accidental globbing in evaled expressions
6664 no_glob_subst='s/\*/\\\*/g'
6666 # Constants:
6667 rm="rm -f"
6669 # Global variables:
6670 default_ofile=libtool
6671 can_build_shared=yes
6673 # All known linkers require a `.a' archive for static linking (except MSVC,
6674 # which needs '.lib').
6675 libext=a
6676 ltmain="$ac_aux_dir/ltmain.sh"
6677 ofile="$default_ofile"
6678 with_gnu_ld="$lt_cv_prog_gnu_ld"
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}ar; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_prog_AR+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 if test -n "$AR"; then
6689 ac_cv_prog_AR="$AR" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_AR="${ac_tool_prefix}ar"
6699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6706 fi
6707 fi
6708 AR=$ac_cv_prog_AR
6709 if test -n "$AR"; then
6710 { echo "$as_me:$LINENO: result: $AR" >&5
6711 echo "${ECHO_T}$AR" >&6; }
6712 else
6713 { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6715 fi
6718 fi
6719 if test -z "$ac_cv_prog_AR"; then
6720 ac_ct_AR=$AR
6721 # Extract the first word of "ar", so it can be a program name with args.
6722 set dummy ar; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728 if test -n "$ac_ct_AR"; then
6729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_ac_ct_AR="ar"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6746 fi
6747 fi
6748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6749 if test -n "$ac_ct_AR"; then
6750 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6751 echo "${ECHO_T}$ac_ct_AR" >&6; }
6752 else
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755 fi
6757 if test "x$ac_ct_AR" = x; then
6758 AR="false"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&5
6765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet. If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770 AR=$ac_ct_AR
6771 fi
6772 else
6773 AR="$ac_cv_prog_AR"
6774 fi
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_RANLIB+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784 if test -n "$RANLIB"; then
6785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6802 fi
6803 fi
6804 RANLIB=$ac_cv_prog_RANLIB
6805 if test -n "$RANLIB"; then
6806 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6807 echo "${ECHO_T}$RANLIB" >&6; }
6808 else
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6811 fi
6814 fi
6815 if test -z "$ac_cv_prog_RANLIB"; then
6816 ac_ct_RANLIB=$RANLIB
6817 # Extract the first word of "ranlib", so it can be a program name with args.
6818 set dummy ranlib; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 if test -n "$ac_ct_RANLIB"; then
6825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_RANLIB="ranlib"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6842 fi
6843 fi
6844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6845 if test -n "$ac_ct_RANLIB"; then
6846 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6847 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6848 else
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6851 fi
6853 if test "x$ac_ct_RANLIB" = x; then
6854 RANLIB=":"
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet. If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 RANLIB=$ac_ct_RANLIB
6867 fi
6868 else
6869 RANLIB="$ac_cv_prog_RANLIB"
6870 fi
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}strip; ac_word=$2
6875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877 if test "${ac_cv_prog_STRIP+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 if test -n "$STRIP"; then
6881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6898 fi
6899 fi
6900 STRIP=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902 { echo "$as_me:$LINENO: result: $STRIP" >&5
6903 echo "${ECHO_T}$STRIP" >&6; }
6904 else
6905 { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6907 fi
6910 fi
6911 if test -z "$ac_cv_prog_STRIP"; then
6912 ac_ct_STRIP=$STRIP
6913 # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 if test -n "$ac_ct_STRIP"; then
6921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_STRIP="strip"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6938 fi
6939 fi
6940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6941 if test -n "$ac_ct_STRIP"; then
6942 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6943 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6944 else
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6947 fi
6949 if test "x$ac_ct_STRIP" = x; then
6950 STRIP=":"
6951 else
6952 case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6955 whose name does not start with the host triplet. If you think this
6956 configuration is useful to you, please write to autoconf@gnu.org." >&5
6957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6958 whose name does not start with the host triplet. If you think this
6959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962 STRIP=$ac_ct_STRIP
6963 fi
6964 else
6965 STRIP="$ac_cv_prog_STRIP"
6966 fi
6969 old_CC="$CC"
6970 old_CFLAGS="$CFLAGS"
6972 # Set sane defaults for various variables
6973 test -z "$AR" && AR=ar
6974 test -z "$AR_FLAGS" && AR_FLAGS=cru
6975 test -z "$AS" && AS=as
6976 test -z "$CC" && CC=cc
6977 test -z "$LTCC" && LTCC=$CC
6978 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6979 test -z "$DLLTOOL" && DLLTOOL=dlltool
6980 test -z "$LD" && LD=ld
6981 test -z "$LN_S" && LN_S="ln -s"
6982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6983 test -z "$NM" && NM=nm
6984 test -z "$SED" && SED=sed
6985 test -z "$OBJDUMP" && OBJDUMP=objdump
6986 test -z "$RANLIB" && RANLIB=:
6987 test -z "$STRIP" && STRIP=:
6988 test -z "$ac_objext" && ac_objext=o
6990 # Determine commands to create old-style static archives.
6991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6992 old_postinstall_cmds='chmod 644 $oldlib'
6993 old_postuninstall_cmds=
6995 if test -n "$RANLIB"; then
6996 case $host_os in
6997 openbsd*)
6998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6999 ;;
7000 *)
7001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7002 ;;
7003 esac
7004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7005 fi
7007 for cc_temp in $compiler""; do
7008 case $cc_temp in
7009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7011 \-*) ;;
7012 *) break;;
7013 esac
7014 done
7015 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7018 # Only perform the check for file, if the check method requires it
7019 case $deplibs_check_method in
7020 file_magic*)
7021 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7022 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7023 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7024 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 case $MAGIC_CMD in
7028 [\\/*] | ?:[\\/]*)
7029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7030 ;;
7031 *)
7032 lt_save_MAGIC_CMD="$MAGIC_CMD"
7033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7034 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7035 for ac_dir in $ac_dummy; do
7036 IFS="$lt_save_ifs"
7037 test -z "$ac_dir" && ac_dir=.
7038 if test -f $ac_dir/${ac_tool_prefix}file; then
7039 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7040 if test -n "$file_magic_test_file"; then
7041 case $deplibs_check_method in
7042 "file_magic "*)
7043 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7046 $EGREP "$file_magic_regex" > /dev/null; then
7047 :
7048 else
7049 cat <<EOF 1>&2
7051 *** Warning: the command libtool uses to detect shared libraries,
7052 *** $file_magic_cmd, produces output that libtool cannot recognize.
7053 *** The result is that libtool may fail to recognize shared libraries
7054 *** as such. This will affect the creation of libtool libraries that
7055 *** depend on shared libraries, but programs linked with such libtool
7056 *** libraries will work regardless of this problem. Nevertheless, you
7057 *** may want to report the problem to your system manager and/or to
7058 *** bug-libtool@gnu.org
7060 EOF
7061 fi ;;
7062 esac
7063 fi
7064 break
7065 fi
7066 done
7067 IFS="$lt_save_ifs"
7068 MAGIC_CMD="$lt_save_MAGIC_CMD"
7069 ;;
7070 esac
7071 fi
7073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7074 if test -n "$MAGIC_CMD"; then
7075 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7076 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7077 else
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7080 fi
7082 if test -z "$lt_cv_path_MAGIC_CMD"; then
7083 if test -n "$ac_tool_prefix"; then
7084 { echo "$as_me:$LINENO: checking for file" >&5
7085 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7086 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 case $MAGIC_CMD in
7090 [\\/*] | ?:[\\/]*)
7091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 lt_save_MAGIC_CMD="$MAGIC_CMD"
7095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7097 for ac_dir in $ac_dummy; do
7098 IFS="$lt_save_ifs"
7099 test -z "$ac_dir" && ac_dir=.
7100 if test -f $ac_dir/file; then
7101 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7102 if test -n "$file_magic_test_file"; then
7103 case $deplibs_check_method in
7104 "file_magic "*)
7105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7108 $EGREP "$file_magic_regex" > /dev/null; then
7109 :
7110 else
7111 cat <<EOF 1>&2
7113 *** Warning: the command libtool uses to detect shared libraries,
7114 *** $file_magic_cmd, produces output that libtool cannot recognize.
7115 *** The result is that libtool may fail to recognize shared libraries
7116 *** as such. This will affect the creation of libtool libraries that
7117 *** depend on shared libraries, but programs linked with such libtool
7118 *** libraries will work regardless of this problem. Nevertheless, you
7119 *** may want to report the problem to your system manager and/or to
7120 *** bug-libtool@gnu.org
7122 EOF
7123 fi ;;
7124 esac
7125 fi
7126 break
7127 fi
7128 done
7129 IFS="$lt_save_ifs"
7130 MAGIC_CMD="$lt_save_MAGIC_CMD"
7131 ;;
7132 esac
7133 fi
7135 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7136 if test -n "$MAGIC_CMD"; then
7137 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7138 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7139 else
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7142 fi
7144 else
7145 MAGIC_CMD=:
7146 fi
7147 fi
7149 fi
7150 ;;
7151 esac
7153 enable_dlopen=no
7154 enable_win32_dll=no
7156 # Check whether --enable-libtool-lock was given.
7157 if test "${enable_libtool_lock+set}" = set; then
7158 enableval=$enable_libtool_lock;
7159 fi
7161 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7164 # Check whether --with-pic was given.
7165 if test "${with_pic+set}" = set; then
7166 withval=$with_pic; pic_mode="$withval"
7167 else
7168 pic_mode=default
7169 fi
7171 test -z "$pic_mode" && pic_mode=default
7173 # Use C for the default configuration in the libtool script
7174 tagname=
7175 lt_save_CC="$CC"
7176 ac_ext=c
7177 ac_cpp='$CPP $CPPFLAGS'
7178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183 # Source file extension for C test sources.
7184 ac_ext=c
7186 # Object file extension for compiled C test sources.
7187 objext=o
7188 objext=$objext
7190 # Code to be used in simple compile tests
7191 lt_simple_compile_test_code="int some_variable = 0;\n"
7193 # Code to be used in simple link tests
7194 lt_simple_link_test_code='int main(){return(0);}\n'
7197 # If no C compiler was specified, use CC.
7198 LTCC=${LTCC-"$CC"}
7200 # If no C compiler flags were specified, use CFLAGS.
7201 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7203 # Allow CC to be a program name with arguments.
7204 compiler=$CC
7207 # save warnings/boilerplate of simple test code
7208 ac_outfile=conftest.$ac_objext
7209 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7210 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7211 _lt_compiler_boilerplate=`cat conftest.err`
7212 $rm conftest*
7214 ac_outfile=conftest.$ac_objext
7215 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7216 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7217 _lt_linker_boilerplate=`cat conftest.err`
7218 $rm conftest*
7222 lt_prog_compiler_no_builtin_flag=
7224 if test "$GCC" = yes; then
7225 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7228 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7229 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7230 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 lt_cv_prog_compiler_rtti_exceptions=no
7234 ac_outfile=conftest.$ac_objext
7235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7236 lt_compiler_flag="-fno-rtti -fno-exceptions"
7237 # Insert the option either (1) after the last *FLAGS variable, or
7238 # (2) before a word containing "conftest.", or (3) at the end.
7239 # Note that $ac_compile itself does not contain backslashes and begins
7240 # with a dollar sign (not a hyphen), so the echo should work correctly.
7241 # The option is referenced via a variable to avoid confusing sed.
7242 lt_compile=`echo "$ac_compile" | $SED \
7243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7245 -e 's:$: $lt_compiler_flag:'`
7246 (eval echo "\"\$as_me:7246: $lt_compile\"" >&5)
7247 (eval "$lt_compile" 2>conftest.err)
7248 ac_status=$?
7249 cat conftest.err >&5
7250 echo "$as_me:7250: \$? = $ac_status" >&5
7251 if (exit $ac_status) && test -s "$ac_outfile"; then
7252 # The compiler can only warn and ignore the option if not recognized
7253 # So say no if there are warnings other than the usual output.
7254 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7257 lt_cv_prog_compiler_rtti_exceptions=yes
7258 fi
7259 fi
7260 $rm conftest*
7262 fi
7263 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7264 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7266 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7267 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7268 else
7269 :
7270 fi
7272 fi
7274 lt_prog_compiler_wl=
7275 lt_prog_compiler_pic=
7276 lt_prog_compiler_static=
7278 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7279 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7281 if test "$GCC" = yes; then
7282 lt_prog_compiler_wl='-Wl,'
7283 lt_prog_compiler_static='-static'
7285 case $host_os in
7286 aix*)
7287 # All AIX code is PIC.
7288 if test "$host_cpu" = ia64; then
7289 # AIX 5 now supports IA64 processor
7290 lt_prog_compiler_static='-Bstatic'
7291 fi
7292 ;;
7294 amigaos*)
7295 # FIXME: we need at least 68020 code to build shared libraries, but
7296 # adding the `-m68020' flag to GCC prevents building anything better,
7297 # like `-m68040'.
7298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7299 ;;
7301 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7302 # PIC is the default for these OSes.
7303 ;;
7305 mingw* | pw32* | os2*)
7306 # This hack is so that the source file can tell whether it is being
7307 # built for inclusion in a dll (and should export symbols for example).
7308 lt_prog_compiler_pic='-DDLL_EXPORT'
7309 ;;
7311 darwin* | rhapsody*)
7312 # PIC is the default on this platform
7313 # Common symbols not allowed in MH_DYLIB files
7314 lt_prog_compiler_pic='-fno-common'
7315 ;;
7317 interix3*)
7318 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7319 # Instead, we relocate shared libraries at runtime.
7320 ;;
7322 msdosdjgpp*)
7323 # Just because we use GCC doesn't mean we suddenly get shared libraries
7324 # on systems that don't support them.
7325 lt_prog_compiler_can_build_shared=no
7326 enable_shared=no
7327 ;;
7329 sysv4*MP*)
7330 if test -d /usr/nec; then
7331 lt_prog_compiler_pic=-Kconform_pic
7332 fi
7333 ;;
7335 hpux*)
7336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7337 # not for PA HP-UX.
7338 case $host_cpu in
7339 hppa*64*|ia64*)
7340 # +Z the default
7341 ;;
7342 *)
7343 lt_prog_compiler_pic='-fPIC'
7344 ;;
7345 esac
7346 ;;
7348 *)
7349 lt_prog_compiler_pic='-fPIC'
7350 ;;
7351 esac
7352 else
7353 # PORTME Check for flag to pass linker flags through the system compiler.
7354 case $host_os in
7355 aix*)
7356 lt_prog_compiler_wl='-Wl,'
7357 if test "$host_cpu" = ia64; then
7358 # AIX 5 now supports IA64 processor
7359 lt_prog_compiler_static='-Bstatic'
7360 else
7361 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7362 fi
7363 ;;
7364 darwin*)
7365 # PIC is the default on this platform
7366 # Common symbols not allowed in MH_DYLIB files
7367 case $cc_basename in
7368 xlc*)
7369 lt_prog_compiler_pic='-qnocommon'
7370 lt_prog_compiler_wl='-Wl,'
7371 ;;
7372 esac
7373 ;;
7375 mingw* | pw32* | os2*)
7376 # This hack is so that the source file can tell whether it is being
7377 # built for inclusion in a dll (and should export symbols for example).
7378 lt_prog_compiler_pic='-DDLL_EXPORT'
7379 ;;
7381 hpux9* | hpux10* | hpux11*)
7382 lt_prog_compiler_wl='-Wl,'
7383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7384 # not for PA HP-UX.
7385 case $host_cpu in
7386 hppa*64*|ia64*)
7387 # +Z the default
7388 ;;
7389 *)
7390 lt_prog_compiler_pic='+Z'
7391 ;;
7392 esac
7393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7394 lt_prog_compiler_static='${wl}-a ${wl}archive'
7395 ;;
7397 irix5* | irix6* | nonstopux*)
7398 lt_prog_compiler_wl='-Wl,'
7399 # PIC (with -KPIC) is the default.
7400 lt_prog_compiler_static='-non_shared'
7401 ;;
7403 newsos6)
7404 lt_prog_compiler_pic='-KPIC'
7405 lt_prog_compiler_static='-Bstatic'
7406 ;;
7408 linux* | k*bsd*-gnu)
7409 case $cc_basename in
7410 icc* | ecc*)
7411 lt_prog_compiler_wl='-Wl,'
7412 lt_prog_compiler_pic='-KPIC'
7413 lt_prog_compiler_static='-static'
7414 ;;
7415 pgcc* | pgf77* | pgf90* | pgf95*)
7416 # Portland Group compilers (*not* the Pentium gcc compiler,
7417 # which looks to be a dead project)
7418 lt_prog_compiler_wl='-Wl,'
7419 lt_prog_compiler_pic='-fpic'
7420 lt_prog_compiler_static='-Bstatic'
7421 ;;
7422 ccc*)
7423 lt_prog_compiler_wl='-Wl,'
7424 # All Alpha code is PIC.
7425 lt_prog_compiler_static='-non_shared'
7426 ;;
7427 esac
7428 ;;
7430 osf3* | osf4* | osf5*)
7431 lt_prog_compiler_wl='-Wl,'
7432 # All OSF/1 code is PIC.
7433 lt_prog_compiler_static='-non_shared'
7434 ;;
7436 solaris*)
7437 lt_prog_compiler_pic='-KPIC'
7438 lt_prog_compiler_static='-Bstatic'
7439 case $cc_basename in
7440 f77* | f90* | f95*)
7441 lt_prog_compiler_wl='-Qoption ld ';;
7442 *)
7443 lt_prog_compiler_wl='-Wl,';;
7444 esac
7445 ;;
7447 sunos4*)
7448 lt_prog_compiler_wl='-Qoption ld '
7449 lt_prog_compiler_pic='-PIC'
7450 lt_prog_compiler_static='-Bstatic'
7451 ;;
7453 sysv4 | sysv4.2uw2* | sysv4.3*)
7454 lt_prog_compiler_wl='-Wl,'
7455 lt_prog_compiler_pic='-KPIC'
7456 lt_prog_compiler_static='-Bstatic'
7457 ;;
7459 sysv4*MP*)
7460 if test -d /usr/nec ;then
7461 lt_prog_compiler_pic='-Kconform_pic'
7462 lt_prog_compiler_static='-Bstatic'
7463 fi
7464 ;;
7466 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7467 lt_prog_compiler_wl='-Wl,'
7468 lt_prog_compiler_pic='-KPIC'
7469 lt_prog_compiler_static='-Bstatic'
7470 ;;
7472 unicos*)
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_can_build_shared=no
7475 ;;
7477 uts4*)
7478 lt_prog_compiler_pic='-pic'
7479 lt_prog_compiler_static='-Bstatic'
7480 ;;
7482 *)
7483 lt_prog_compiler_can_build_shared=no
7484 ;;
7485 esac
7486 fi
7488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7489 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7491 #
7492 # Check to make sure the PIC flag actually works.
7493 #
7494 if test -n "$lt_prog_compiler_pic"; then
7496 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7497 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7498 if test "${lt_prog_compiler_pic_works+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 lt_prog_compiler_pic_works=no
7502 ac_outfile=conftest.$ac_objext
7503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7504 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7505 # Insert the option either (1) after the last *FLAGS variable, or
7506 # (2) before a word containing "conftest.", or (3) at the end.
7507 # Note that $ac_compile itself does not contain backslashes and begins
7508 # with a dollar sign (not a hyphen), so the echo should work correctly.
7509 # The option is referenced via a variable to avoid confusing sed.
7510 lt_compile=`echo "$ac_compile" | $SED \
7511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7513 -e 's:$: $lt_compiler_flag:'`
7514 (eval echo "\"\$as_me:7514: $lt_compile\"" >&5)
7515 (eval "$lt_compile" 2>conftest.err)
7516 ac_status=$?
7517 cat conftest.err >&5
7518 echo "$as_me:7518: \$? = $ac_status" >&5
7519 if (exit $ac_status) && test -s "$ac_outfile"; then
7520 # The compiler can only warn and ignore the option if not recognized
7521 # So say no if there are warnings other than the usual output.
7522 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7525 lt_prog_compiler_pic_works=yes
7526 fi
7527 fi
7528 $rm conftest*
7530 fi
7531 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7532 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7534 if test x"$lt_prog_compiler_pic_works" = xyes; then
7535 case $lt_prog_compiler_pic in
7536 "" | " "*) ;;
7537 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7538 esac
7539 else
7540 lt_prog_compiler_pic=
7541 lt_prog_compiler_can_build_shared=no
7542 fi
7544 fi
7545 case $host_os in
7546 # For platforms which do not support PIC, -DPIC is meaningless:
7547 *djgpp*)
7548 lt_prog_compiler_pic=
7549 ;;
7550 *)
7551 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7552 ;;
7553 esac
7555 #
7556 # Check to make sure the static flag actually works.
7557 #
7558 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7559 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7560 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7561 if test "${lt_prog_compiler_static_works+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 lt_prog_compiler_static_works=no
7565 save_LDFLAGS="$LDFLAGS"
7566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7567 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7569 # The linker can only warn and ignore the option if not recognized
7570 # So say no if there are warnings
7571 if test -s conftest.err; then
7572 # Append any errors to the config.log.
7573 cat conftest.err 1>&5
7574 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7576 if diff conftest.exp conftest.er2 >/dev/null; then
7577 lt_prog_compiler_static_works=yes
7578 fi
7579 else
7580 lt_prog_compiler_static_works=yes
7581 fi
7582 fi
7583 $rm conftest*
7584 LDFLAGS="$save_LDFLAGS"
7586 fi
7587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7588 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7590 if test x"$lt_prog_compiler_static_works" = xyes; then
7591 :
7592 else
7593 lt_prog_compiler_static=
7594 fi
7597 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7598 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7599 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602 lt_cv_prog_compiler_c_o=no
7603 $rm -r conftest 2>/dev/null
7604 mkdir conftest
7605 cd conftest
7606 mkdir out
7607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7609 lt_compiler_flag="-o out/conftest2.$ac_objext"
7610 # Insert the option either (1) after the last *FLAGS variable, or
7611 # (2) before a word containing "conftest.", or (3) at the end.
7612 # Note that $ac_compile itself does not contain backslashes and begins
7613 # with a dollar sign (not a hyphen), so the echo should work correctly.
7614 lt_compile=`echo "$ac_compile" | $SED \
7615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617 -e 's:$: $lt_compiler_flag:'`
7618 (eval echo "\"\$as_me:7618: $lt_compile\"" >&5)
7619 (eval "$lt_compile" 2>out/conftest.err)
7620 ac_status=$?
7621 cat out/conftest.err >&5
7622 echo "$as_me:7622: \$? = $ac_status" >&5
7623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7624 then
7625 # The compiler can only warn and ignore the option if not recognized
7626 # So say no if there are warnings
7627 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7630 lt_cv_prog_compiler_c_o=yes
7631 fi
7632 fi
7633 chmod u+w . 2>&5
7634 $rm conftest*
7635 # SGI C++ compiler will create directory out/ii_files/ for
7636 # template instantiation
7637 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7638 $rm out/* && rmdir out
7639 cd ..
7640 rmdir conftest
7641 $rm conftest*
7643 fi
7644 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7645 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7648 hard_links="nottested"
7649 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7650 # do not overwrite the value of need_locks provided by the user
7651 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7652 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7653 hard_links=yes
7654 $rm conftest*
7655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7656 touch conftest.a
7657 ln conftest.a conftest.b 2>&5 || hard_links=no
7658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7659 { echo "$as_me:$LINENO: result: $hard_links" >&5
7660 echo "${ECHO_T}$hard_links" >&6; }
7661 if test "$hard_links" = no; then
7662 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7663 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7664 need_locks=warn
7665 fi
7666 else
7667 need_locks=no
7668 fi
7670 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7671 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7673 runpath_var=
7674 allow_undefined_flag=
7675 enable_shared_with_static_runtimes=no
7676 archive_cmds=
7677 archive_expsym_cmds=
7678 old_archive_From_new_cmds=
7679 old_archive_from_expsyms_cmds=
7680 export_dynamic_flag_spec=
7681 whole_archive_flag_spec=
7682 thread_safe_flag_spec=
7683 hardcode_libdir_flag_spec=
7684 hardcode_libdir_flag_spec_ld=
7685 hardcode_libdir_separator=
7686 hardcode_direct=no
7687 hardcode_minus_L=no
7688 hardcode_shlibpath_var=unsupported
7689 link_all_deplibs=unknown
7690 hardcode_automatic=no
7691 module_cmds=
7692 module_expsym_cmds=
7693 always_export_symbols=no
7694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7695 # include_expsyms should be a list of space-separated symbols to be *always*
7696 # included in the symbol list
7697 include_expsyms=
7698 # exclude_expsyms can be an extended regexp of symbols to exclude
7699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7701 # as well as any symbol that contains `d'.
7702 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7704 # platforms (ab)use it in PIC code, but their linkers get confused if
7705 # the symbol is explicitly referenced. Since portable code cannot
7706 # rely on this symbol name, it's probably fine to never include it in
7707 # preloaded symbol tables.
7708 extract_expsyms_cmds=
7709 # Just being paranoid about ensuring that cc_basename is set.
7710 for cc_temp in $compiler""; do
7711 case $cc_temp in
7712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7714 \-*) ;;
7715 *) break;;
7716 esac
7717 done
7718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7720 case $host_os in
7721 cygwin* | mingw* | pw32*)
7722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7723 # When not using gcc, we currently assume that we are using
7724 # Microsoft Visual C++.
7725 if test "$GCC" != yes; then
7726 with_gnu_ld=no
7727 fi
7728 ;;
7729 interix*)
7730 # we just hope/assume this is gcc and not c89 (= MSVC++)
7731 with_gnu_ld=yes
7732 ;;
7733 openbsd*)
7734 with_gnu_ld=no
7735 ;;
7736 esac
7738 ld_shlibs=yes
7739 if test "$with_gnu_ld" = yes; then
7740 # If archive_cmds runs LD, not CC, wlarc should be empty
7741 wlarc='${wl}'
7743 # Set some defaults for GNU ld with shared library support. These
7744 # are reset later if shared libraries are not supported. Putting them
7745 # here allows them to be overridden if necessary.
7746 runpath_var=LD_RUN_PATH
7747 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7748 export_dynamic_flag_spec='${wl}--export-dynamic'
7749 # ancient GNU ld didn't support --whole-archive et. al.
7750 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7751 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7752 else
7753 whole_archive_flag_spec=
7754 fi
7755 supports_anon_versioning=no
7756 case `$LD -v 2>/dev/null` in
7757 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7760 *\ 2.11.*) ;; # other 2.11 versions
7761 *) supports_anon_versioning=yes ;;
7762 esac
7764 # See if GNU ld supports shared libraries.
7765 case $host_os in
7766 aix3* | aix4* | aix5*)
7767 # On AIX/PPC, the GNU linker is very broken
7768 if test "$host_cpu" != ia64; then
7769 ld_shlibs=no
7770 cat <<EOF 1>&2
7772 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7773 *** to be unable to reliably create shared libraries on AIX.
7774 *** Therefore, libtool is disabling shared libraries support. If you
7775 *** really care for shared libraries, you may want to modify your PATH
7776 *** so that a non-GNU linker is found, and then restart.
7778 EOF
7779 fi
7780 ;;
7782 amigaos*)
7783 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)'
7784 hardcode_libdir_flag_spec='-L$libdir'
7785 hardcode_minus_L=yes
7787 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7788 # that the semantics of dynamic libraries on AmigaOS, at least up
7789 # to version 4, is to share data among multiple programs linked
7790 # with the same dynamic library. Since this doesn't match the
7791 # behavior of shared libraries on other platforms, we can't use
7792 # them.
7793 ld_shlibs=no
7794 ;;
7796 beos*)
7797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7798 allow_undefined_flag=unsupported
7799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7800 # support --undefined. This deserves some investigation. FIXME
7801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7802 else
7803 ld_shlibs=no
7804 fi
7805 ;;
7807 cygwin* | mingw* | pw32*)
7808 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7809 # as there is no search path for DLLs.
7810 hardcode_libdir_flag_spec='-L$libdir'
7811 allow_undefined_flag=unsupported
7812 always_export_symbols=no
7813 enable_shared_with_static_runtimes=yes
7814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7816 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7818 # If the export-symbols file already is a .def file (1st line
7819 # is EXPORTS), use it as is; otherwise, prepend...
7820 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7821 cp $export_symbols $output_objdir/$soname.def;
7822 else
7823 echo EXPORTS > $output_objdir/$soname.def;
7824 cat $export_symbols >> $output_objdir/$soname.def;
7825 fi~
7826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7827 else
7828 ld_shlibs=no
7829 fi
7830 ;;
7832 interix3*)
7833 hardcode_direct=no
7834 hardcode_shlibpath_var=no
7835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7836 export_dynamic_flag_spec='${wl}-E'
7837 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7838 # Instead, shared libraries are loaded at an image base (0x10000000 by
7839 # default) and relocated if they conflict, which is a slow very memory
7840 # consuming and fragmenting process. To avoid this, we pick a random,
7841 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7842 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7844 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'
7845 ;;
7847 linux* | k*bsd*-gnu)
7848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7849 tmp_addflag=
7850 case $cc_basename,$host_cpu in
7851 pgcc*) # Portland Group C compiler
7852 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'
7853 tmp_addflag=' $pic_flag'
7854 ;;
7855 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7856 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'
7857 tmp_addflag=' $pic_flag -Mnomain' ;;
7858 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7859 tmp_addflag=' -i_dynamic' ;;
7860 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7861 tmp_addflag=' -i_dynamic -nofor_main' ;;
7862 ifc* | ifort*) # Intel Fortran compiler
7863 tmp_addflag=' -nofor_main' ;;
7864 esac
7865 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7867 if test $supports_anon_versioning = yes; then
7868 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7870 $echo "local: *; };" >> $output_objdir/$libname.ver~
7871 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7872 fi
7873 link_all_deplibs=no
7874 else
7875 ld_shlibs=no
7876 fi
7877 ;;
7879 netbsd* | netbsdelf*-gnu)
7880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7881 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7882 wlarc=
7883 else
7884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7886 fi
7887 ;;
7889 solaris*)
7890 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7891 ld_shlibs=no
7892 cat <<EOF 1>&2
7894 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7895 *** create shared libraries on Solaris systems. Therefore, libtool
7896 *** is disabling shared libraries support. We urge you to upgrade GNU
7897 *** binutils to release 2.9.1 or newer. Another option is to modify
7898 *** your PATH or compiler configuration so that the native linker is
7899 *** used, and then restart.
7901 EOF
7902 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7905 else
7906 ld_shlibs=no
7907 fi
7908 ;;
7910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7911 case `$LD -v 2>&1` in
7912 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7913 ld_shlibs=no
7914 cat <<_LT_EOF 1>&2
7916 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7917 *** reliably create shared libraries on SCO systems. Therefore, libtool
7918 *** is disabling shared libraries support. We urge you to upgrade GNU
7919 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7920 *** your PATH or compiler configuration so that the native linker is
7921 *** used, and then restart.
7923 _LT_EOF
7924 ;;
7925 *)
7926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7927 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7930 else
7931 ld_shlibs=no
7932 fi
7933 ;;
7934 esac
7935 ;;
7937 sunos4*)
7938 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7939 wlarc=
7940 hardcode_direct=yes
7941 hardcode_shlibpath_var=no
7942 ;;
7944 *)
7945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7948 else
7949 ld_shlibs=no
7950 fi
7951 ;;
7952 esac
7954 if test "$ld_shlibs" = no; then
7955 runpath_var=
7956 hardcode_libdir_flag_spec=
7957 export_dynamic_flag_spec=
7958 whole_archive_flag_spec=
7959 fi
7960 else
7961 # PORTME fill in a description of your system's linker (not GNU ld)
7962 case $host_os in
7963 aix3*)
7964 allow_undefined_flag=unsupported
7965 always_export_symbols=yes
7966 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'
7967 # Note: this linker hardcodes the directories in LIBPATH if there
7968 # are no directories specified by -L.
7969 hardcode_minus_L=yes
7970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7971 # Neither direct hardcoding nor static linking is supported with a
7972 # broken collect2.
7973 hardcode_direct=unsupported
7974 fi
7975 ;;
7977 aix4* | aix5*)
7978 if test "$host_cpu" = ia64; then
7979 # On IA64, the linker does run time linking by default, so we don't
7980 # have to do anything special.
7981 aix_use_runtimelinking=no
7982 exp_sym_flag='-Bexport'
7983 no_entry_flag=""
7984 else
7985 # If we're using GNU nm, then we don't want the "-C" option.
7986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7987 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7988 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'
7989 else
7990 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'
7991 fi
7992 aix_use_runtimelinking=no
7994 # Test if we are trying to use run time linking or normal
7995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7996 # need to do runtime linking.
7997 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7998 for ld_flag in $LDFLAGS; do
7999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8000 aix_use_runtimelinking=yes
8001 break
8002 fi
8003 done
8004 ;;
8005 esac
8007 exp_sym_flag='-bexport'
8008 no_entry_flag='-bnoentry'
8009 fi
8011 # When large executables or shared objects are built, AIX ld can
8012 # have problems creating the table of contents. If linking a library
8013 # or program results in "error TOC overflow" add -mminimal-toc to
8014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8017 archive_cmds=''
8018 hardcode_direct=yes
8019 hardcode_libdir_separator=':'
8020 link_all_deplibs=yes
8022 if test "$GCC" = yes; then
8023 case $host_os in aix4.[012]|aix4.[012].*)
8024 # We only want to do this on AIX 4.2 and lower, the check
8025 # below for broken collect2 doesn't work under 4.3+
8026 collect2name=`${CC} -print-prog-name=collect2`
8027 if test -f "$collect2name" && \
8028 strings "$collect2name" | grep resolve_lib_name >/dev/null
8029 then
8030 # We have reworked collect2
8031 hardcode_direct=yes
8032 else
8033 # We have old collect2
8034 hardcode_direct=unsupported
8035 # It fails to find uninstalled libraries when the uninstalled
8036 # path is not listed in the libpath. Setting hardcode_minus_L
8037 # to unsupported forces relinking
8038 hardcode_minus_L=yes
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_libdir_separator=
8041 fi
8042 ;;
8043 esac
8044 shared_flag='-shared'
8045 if test "$aix_use_runtimelinking" = yes; then
8046 shared_flag="$shared_flag "'${wl}-G'
8047 fi
8048 else
8049 # not using gcc
8050 if test "$host_cpu" = ia64; then
8051 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8052 # chokes on -Wl,-G. The following line is correct:
8053 shared_flag='-G'
8054 else
8055 if test "$aix_use_runtimelinking" = yes; then
8056 shared_flag='${wl}-G'
8057 else
8058 shared_flag='${wl}-bM:SRE'
8059 fi
8060 fi
8061 fi
8063 # It seems that -bexpall does not export symbols beginning with
8064 # underscore (_), so it is better to generate a list of symbols to export.
8065 always_export_symbols=yes
8066 if test "$aix_use_runtimelinking" = yes; then
8067 # Warning - without using the other runtime loading flags (-brtl),
8068 # -berok will link without error, but may produce a broken library.
8069 allow_undefined_flag='-berok'
8070 # Determine the default libpath from the value encoded in an empty executable.
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8078 int
8079 main ()
8080 {
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8088 case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_link") 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest$ac_exeext &&
8103 $as_test_x conftest$ac_exeext; then
8105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8106 }'`
8107 # Check for a 64-bit object if we didn't find anything.
8108 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; }
8109 }'`; fi
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8115 fi
8117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8118 conftest$ac_exeext conftest.$ac_ext
8119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8122 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"
8123 else
8124 if test "$host_cpu" = ia64; then
8125 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8126 allow_undefined_flag="-z nodefs"
8127 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"
8128 else
8129 # Determine the default libpath from the value encoded in an empty executable.
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8137 int
8138 main ()
8139 {
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (ac_try="$ac_link"
8147 case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_link") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest$ac_exeext &&
8162 $as_test_x conftest$ac_exeext; then
8164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8165 }'`
8166 # Check for a 64-bit object if we didn't find anything.
8167 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; }
8168 }'`; fi
8169 else
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8174 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8177 conftest$ac_exeext conftest.$ac_ext
8178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8181 # Warning - without using the other run time loading flags,
8182 # -berok will link without error, but may produce a broken library.
8183 no_undefined_flag=' ${wl}-bernotok'
8184 allow_undefined_flag=' ${wl}-berok'
8185 # Exported symbols can be pulled into shared objects from archives
8186 whole_archive_flag_spec='$convenience'
8187 archive_cmds_need_lc=yes
8188 # This is similar to how AIX traditionally builds its shared libraries.
8189 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'
8190 fi
8191 fi
8192 ;;
8194 amigaos*)
8195 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)'
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 hardcode_minus_L=yes
8198 # see comment about different semantics on the GNU ld section
8199 ld_shlibs=no
8200 ;;
8202 bsdi[45]*)
8203 export_dynamic_flag_spec=-rdynamic
8204 ;;
8206 cygwin* | mingw* | pw32*)
8207 # When not using gcc, we currently assume that we are using
8208 # Microsoft Visual C++.
8209 # hardcode_libdir_flag_spec is actually meaningless, as there is
8210 # no search path for DLLs.
8211 hardcode_libdir_flag_spec=' '
8212 allow_undefined_flag=unsupported
8213 # Tell ltmain to make .lib files, not .a files.
8214 libext=lib
8215 # Tell ltmain to make .dll files, not .so files.
8216 shrext_cmds=".dll"
8217 # FIXME: Setting linknames here is a bad hack.
8218 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8219 # The linker will automatically build a .lib file if we build a DLL.
8220 old_archive_From_new_cmds='true'
8221 # FIXME: Should let the user specify the lib program.
8222 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8223 fix_srcfile_path='`cygpath -w "$srcfile"`'
8224 enable_shared_with_static_runtimes=yes
8225 ;;
8227 darwin* | rhapsody*)
8228 case $host_os in
8229 rhapsody* | darwin1.[012])
8230 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8231 ;;
8232 *) # Darwin 1.3 on
8233 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8234 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8235 else
8236 case ${MACOSX_DEPLOYMENT_TARGET} in
8237 10.[012])
8238 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8239 ;;
8240 10.*)
8241 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8242 ;;
8243 esac
8244 fi
8245 ;;
8246 esac
8247 archive_cmds_need_lc=no
8248 hardcode_direct=no
8249 hardcode_automatic=yes
8250 hardcode_shlibpath_var=unsupported
8251 whole_archive_flag_spec=''
8252 link_all_deplibs=yes
8253 if test "$GCC" = yes ; then
8254 output_verbose_link_cmd='echo'
8255 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8256 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8258 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}'
8259 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}'
8260 else
8261 case $cc_basename in
8262 xlc*)
8263 output_verbose_link_cmd='echo'
8264 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8265 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8266 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8267 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}'
8268 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}'
8269 ;;
8270 *)
8271 ld_shlibs=no
8272 ;;
8273 esac
8274 fi
8275 ;;
8277 dgux*)
8278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_libdir_flag_spec='-L$libdir'
8280 hardcode_shlibpath_var=no
8281 ;;
8283 freebsd1*)
8284 ld_shlibs=no
8285 ;;
8287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8288 # support. Future versions do this automatically, but an explicit c++rt0.o
8289 # does not break anything, and helps significantly (at the cost of a little
8290 # extra space).
8291 freebsd2.2*)
8292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8293 hardcode_libdir_flag_spec='-R$libdir'
8294 hardcode_direct=yes
8295 hardcode_shlibpath_var=no
8296 ;;
8298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8299 freebsd2*)
8300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8301 hardcode_direct=yes
8302 hardcode_minus_L=yes
8303 hardcode_shlibpath_var=no
8304 ;;
8306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8307 freebsd* | dragonfly*)
8308 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8309 hardcode_libdir_flag_spec='-R$libdir'
8310 hardcode_direct=yes
8311 hardcode_shlibpath_var=no
8312 ;;
8314 hpux9*)
8315 if test "$GCC" = yes; then
8316 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'
8317 else
8318 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'
8319 fi
8320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8321 hardcode_libdir_separator=:
8322 hardcode_direct=yes
8324 # hardcode_minus_L: Not really in the search PATH,
8325 # but as the default location of the library.
8326 hardcode_minus_L=yes
8327 export_dynamic_flag_spec='${wl}-E'
8328 ;;
8330 hpux10*)
8331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8332 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8333 else
8334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8335 fi
8336 if test "$with_gnu_ld" = no; then
8337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8338 hardcode_libdir_separator=:
8340 hardcode_direct=yes
8341 export_dynamic_flag_spec='${wl}-E'
8343 # hardcode_minus_L: Not really in the search PATH,
8344 # but as the default location of the library.
8345 hardcode_minus_L=yes
8346 fi
8347 ;;
8349 hpux11*)
8350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8351 case $host_cpu in
8352 hppa*64*)
8353 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8354 ;;
8355 ia64*)
8356 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8357 ;;
8358 *)
8359 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8360 ;;
8361 esac
8362 else
8363 case $host_cpu in
8364 hppa*64*)
8365 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8366 ;;
8367 ia64*)
8368 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8369 ;;
8370 *)
8371 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8372 ;;
8373 esac
8374 fi
8375 if test "$with_gnu_ld" = no; then
8376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8377 hardcode_libdir_separator=:
8379 case $host_cpu in
8380 hppa*64*|ia64*)
8381 hardcode_libdir_flag_spec_ld='+b $libdir'
8382 hardcode_direct=no
8383 hardcode_shlibpath_var=no
8384 ;;
8385 *)
8386 hardcode_direct=yes
8387 export_dynamic_flag_spec='${wl}-E'
8389 # hardcode_minus_L: Not really in the search PATH,
8390 # but as the default location of the library.
8391 hardcode_minus_L=yes
8392 ;;
8393 esac
8394 fi
8395 ;;
8397 irix5* | irix6* | nonstopux*)
8398 if test "$GCC" = yes; then
8399 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'
8400 else
8401 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'
8402 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8403 fi
8404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8405 hardcode_libdir_separator=:
8406 link_all_deplibs=yes
8407 ;;
8409 netbsd* | netbsdelf*-gnu)
8410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8412 else
8413 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8414 fi
8415 hardcode_libdir_flag_spec='-R$libdir'
8416 hardcode_direct=yes
8417 hardcode_shlibpath_var=no
8418 ;;
8420 newsos6)
8421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422 hardcode_direct=yes
8423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8424 hardcode_libdir_separator=:
8425 hardcode_shlibpath_var=no
8426 ;;
8428 openbsd*)
8429 hardcode_direct=yes
8430 hardcode_shlibpath_var=no
8431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8435 export_dynamic_flag_spec='${wl}-E'
8436 else
8437 case $host_os in
8438 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8440 hardcode_libdir_flag_spec='-R$libdir'
8441 ;;
8442 *)
8443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8445 ;;
8446 esac
8447 fi
8448 ;;
8450 os2*)
8451 hardcode_libdir_flag_spec='-L$libdir'
8452 hardcode_minus_L=yes
8453 allow_undefined_flag=unsupported
8454 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'
8455 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8456 ;;
8458 osf3*)
8459 if test "$GCC" = yes; then
8460 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8461 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'
8462 else
8463 allow_undefined_flag=' -expect_unresolved \*'
8464 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'
8465 fi
8466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8467 hardcode_libdir_separator=:
8468 ;;
8470 osf4* | osf5*) # as osf3* with the addition of -msym flag
8471 if test "$GCC" = yes; then
8472 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8473 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'
8474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8475 else
8476 allow_undefined_flag=' -expect_unresolved \*'
8477 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'
8478 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8479 $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'
8481 # Both c and cxx compiler support -rpath directly
8482 hardcode_libdir_flag_spec='-rpath $libdir'
8483 fi
8484 hardcode_libdir_separator=:
8485 ;;
8487 solaris*)
8488 no_undefined_flag=' -z text'
8489 if test "$GCC" = yes; then
8490 wlarc='${wl}'
8491 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8492 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8494 else
8495 wlarc=''
8496 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8499 fi
8500 hardcode_libdir_flag_spec='-R$libdir'
8501 hardcode_shlibpath_var=no
8502 case $host_os in
8503 solaris2.[0-5] | solaris2.[0-5].*) ;;
8504 *)
8505 # The compiler driver will combine linker options so we
8506 # cannot just pass the convience library names through
8507 # without $wl, iff we do not link with $LD.
8508 # Luckily, gcc supports the same syntax we need for Sun Studio.
8509 # Supported since Solaris 2.6 (maybe 2.5.1?)
8510 case $wlarc in
8511 '')
8512 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8513 *)
8514 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' ;;
8515 esac ;;
8516 esac
8517 link_all_deplibs=yes
8518 ;;
8520 sunos4*)
8521 if test "x$host_vendor" = xsequent; then
8522 # Use $CC to link under sequent, because it throws in some extra .o
8523 # files that make .init and .fini sections work.
8524 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8525 else
8526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8527 fi
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 hardcode_direct=yes
8530 hardcode_minus_L=yes
8531 hardcode_shlibpath_var=no
8532 ;;
8534 sysv4)
8535 case $host_vendor in
8536 sni)
8537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538 hardcode_direct=yes # is this really true???
8539 ;;
8540 siemens)
8541 ## LD is ld it makes a PLAMLIB
8542 ## CC just makes a GrossModule.
8543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8544 reload_cmds='$CC -r -o $output$reload_objs'
8545 hardcode_direct=no
8546 ;;
8547 motorola)
8548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8550 ;;
8551 esac
8552 runpath_var='LD_RUN_PATH'
8553 hardcode_shlibpath_var=no
8554 ;;
8556 sysv4.3*)
8557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558 hardcode_shlibpath_var=no
8559 export_dynamic_flag_spec='-Bexport'
8560 ;;
8562 sysv4*MP*)
8563 if test -d /usr/nec; then
8564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8565 hardcode_shlibpath_var=no
8566 runpath_var=LD_RUN_PATH
8567 hardcode_runpath_var=yes
8568 ld_shlibs=yes
8569 fi
8570 ;;
8572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8573 no_undefined_flag='${wl}-z,text'
8574 archive_cmds_need_lc=no
8575 hardcode_shlibpath_var=no
8576 runpath_var='LD_RUN_PATH'
8578 if test "$GCC" = yes; then
8579 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8580 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8581 else
8582 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584 fi
8585 ;;
8587 sysv5* | sco3.2v5* | sco5v6*)
8588 # Note: We can NOT use -z defs as we might desire, because we do not
8589 # link with -lc, and that would cause any symbols used from libc to
8590 # always be unresolved, which means just about no library would
8591 # ever link correctly. If we're not using GNU ld we use -z text
8592 # though, which does catch some bad symbols but isn't as heavy-handed
8593 # as -z defs.
8594 no_undefined_flag='${wl}-z,text'
8595 allow_undefined_flag='${wl}-z,nodefs'
8596 archive_cmds_need_lc=no
8597 hardcode_shlibpath_var=no
8598 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8599 hardcode_libdir_separator=':'
8600 link_all_deplibs=yes
8601 export_dynamic_flag_spec='${wl}-Bexport'
8602 runpath_var='LD_RUN_PATH'
8604 if test "$GCC" = yes; then
8605 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8607 else
8608 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 fi
8611 ;;
8613 uts4*)
8614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615 hardcode_libdir_flag_spec='-L$libdir'
8616 hardcode_shlibpath_var=no
8617 ;;
8619 *)
8620 ld_shlibs=no
8621 ;;
8622 esac
8623 fi
8625 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8626 echo "${ECHO_T}$ld_shlibs" >&6; }
8627 test "$ld_shlibs" = no && can_build_shared=no
8629 #
8630 # Do we need to explicitly link libc?
8631 #
8632 case "x$archive_cmds_need_lc" in
8633 x|xyes)
8634 # Assume -lc should be added
8635 archive_cmds_need_lc=yes
8637 if test "$enable_shared" = yes && test "$GCC" = yes; then
8638 case $archive_cmds in
8639 *'~'*)
8640 # FIXME: we may have to deal with multi-command sequences.
8641 ;;
8642 '$CC '*)
8643 # Test whether the compiler implicitly links with -lc since on some
8644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8645 # to ld, don't add -lc before -lgcc.
8646 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8648 $rm conftest*
8649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } 2>conftest.err; then
8656 soname=conftest
8657 lib=conftest
8658 libobjs=conftest.$ac_objext
8659 deplibs=
8660 wl=$lt_prog_compiler_wl
8661 pic_flag=$lt_prog_compiler_pic
8662 compiler_flags=-v
8663 linker_flags=-v
8664 verstring=
8665 output_objdir=.
8666 libname=conftest
8667 lt_save_allow_undefined_flag=$allow_undefined_flag
8668 allow_undefined_flag=
8669 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8670 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }
8674 then
8675 archive_cmds_need_lc=no
8676 else
8677 archive_cmds_need_lc=yes
8678 fi
8679 allow_undefined_flag=$lt_save_allow_undefined_flag
8680 else
8681 cat conftest.err 1>&5
8682 fi
8683 $rm conftest*
8684 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8685 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8686 ;;
8687 esac
8688 fi
8689 ;;
8690 esac
8692 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8694 library_names_spec=
8695 libname_spec='lib$name'
8696 soname_spec=
8697 shrext_cmds=".so"
8698 postinstall_cmds=
8699 postuninstall_cmds=
8700 finish_cmds=
8701 finish_eval=
8702 shlibpath_var=
8703 shlibpath_overrides_runpath=unknown
8704 version_type=none
8705 dynamic_linker="$host_os ld.so"
8706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8707 if test "$GCC" = yes; then
8708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8709 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8710 # if the path contains ";" then we assume it to be the separator
8711 # otherwise default to the standard path separator (i.e. ":") - it is
8712 # assumed that no part of a normal pathname contains ";" but that should
8713 # okay in the real world where ";" in dirpaths is itself problematic.
8714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8715 else
8716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8717 fi
8718 else
8719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8720 fi
8721 need_lib_prefix=unknown
8722 hardcode_into_libs=no
8724 # when you set need_version to no, make sure it does not cause -set_version
8725 # flags to be left without arguments
8726 need_version=unknown
8728 case $host_os in
8729 aix3*)
8730 version_type=linux
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8732 shlibpath_var=LIBPATH
8734 # AIX 3 has no versioning support, so we append a major version to the name.
8735 soname_spec='${libname}${release}${shared_ext}$major'
8736 ;;
8738 aix4* | aix5*)
8739 version_type=linux
8740 need_lib_prefix=no
8741 need_version=no
8742 hardcode_into_libs=yes
8743 if test "$host_cpu" = ia64; then
8744 # AIX 5 supports IA64
8745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8746 shlibpath_var=LD_LIBRARY_PATH
8747 else
8748 # With GCC up to 2.95.x, collect2 would create an import file
8749 # for dependence libraries. The import file would start with
8750 # the line `#! .'. This would cause the generated library to
8751 # depend on `.', always an invalid library. This was fixed in
8752 # development snapshots of GCC prior to 3.0.
8753 case $host_os in
8754 aix4 | aix4.[01] | aix4.[01].*)
8755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8756 echo ' yes '
8757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8758 :
8759 else
8760 can_build_shared=no
8761 fi
8762 ;;
8763 esac
8764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8765 # soname into executable. Probably we can add versioning support to
8766 # collect2, so additional links can be useful in future.
8767 if test "$aix_use_runtimelinking" = yes; then
8768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8769 # instead of lib<name>.a to let people know that these are not
8770 # typical AIX shared libraries.
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772 else
8773 # We preserve .a as extension for shared libraries through AIX4.2
8774 # and later when we are not doing run time linking.
8775 library_names_spec='${libname}${release}.a $libname.a'
8776 soname_spec='${libname}${release}${shared_ext}$major'
8777 fi
8778 shlibpath_var=LIBPATH
8779 fi
8780 ;;
8782 amigaos*)
8783 library_names_spec='$libname.ixlibrary $libname.a'
8784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8785 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'
8786 ;;
8788 beos*)
8789 library_names_spec='${libname}${shared_ext}'
8790 dynamic_linker="$host_os ld.so"
8791 shlibpath_var=LIBRARY_PATH
8792 ;;
8794 bsdi[45]*)
8795 version_type=linux
8796 need_version=no
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8798 soname_spec='${libname}${release}${shared_ext}$major'
8799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8803 # the default ld.so.conf also contains /usr/contrib/lib and
8804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8805 # libtool to hard-code these into programs
8806 ;;
8808 cygwin* | mingw* | pw32*)
8809 version_type=windows
8810 shrext_cmds=".dll"
8811 need_version=no
8812 need_lib_prefix=no
8814 case $GCC,$host_os in
8815 yes,cygwin* | yes,mingw* | yes,pw32*)
8816 library_names_spec='$libname.dll.a'
8817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8818 postinstall_cmds='base_file=`basename \${file}`~
8819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8820 dldir=$destdir/`dirname \$dlpath`~
8821 test -d \$dldir || mkdir -p \$dldir~
8822 $install_prog $dir/$dlname \$dldir/$dlname~
8823 chmod a+x \$dldir/$dlname'
8824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8825 dlpath=$dir/\$dldll~
8826 $rm \$dlpath'
8827 shlibpath_overrides_runpath=yes
8829 case $host_os in
8830 cygwin*)
8831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8833 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8834 ;;
8835 mingw*)
8836 # MinGW DLLs use traditional 'lib' prefix
8837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8839 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8840 # It is most probably a Windows format PATH printed by
8841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8842 # path with ; separators, and with drive letters. We can handle the
8843 # drive letters (cygwin fileutils understands them), so leave them,
8844 # especially as we might pass files found there to a mingw objdump,
8845 # which wouldn't understand a cygwinified path. Ahh.
8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8847 else
8848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8849 fi
8850 ;;
8851 pw32*)
8852 # pw32 DLLs use 'pw' prefix rather than 'lib'
8853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8854 ;;
8855 esac
8856 ;;
8858 *)
8859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8860 ;;
8861 esac
8862 dynamic_linker='Win32 ld.exe'
8863 # FIXME: first we should search . and the directory the executable is in
8864 shlibpath_var=PATH
8865 ;;
8867 darwin* | rhapsody*)
8868 dynamic_linker="$host_os dyld"
8869 version_type=darwin
8870 need_lib_prefix=no
8871 need_version=no
8872 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8873 soname_spec='${libname}${release}${major}$shared_ext'
8874 shlibpath_overrides_runpath=yes
8875 shlibpath_var=DYLD_LIBRARY_PATH
8876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8877 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8878 if test "$GCC" = yes; then
8879 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"`
8880 else
8881 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8882 fi
8883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8884 ;;
8886 dgux*)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 ;;
8895 freebsd1*)
8896 dynamic_linker=no
8897 ;;
8899 freebsd* | dragonfly*)
8900 # DragonFly does not have aout. When/if they implement a new
8901 # versioning mechanism, adjust this.
8902 if test -x /usr/bin/objformat; then
8903 objformat=`/usr/bin/objformat`
8904 else
8905 case $host_os in
8906 freebsd[123]*) objformat=aout ;;
8907 *) objformat=elf ;;
8908 esac
8909 fi
8910 version_type=freebsd-$objformat
8911 case $version_type in
8912 freebsd-elf*)
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 need_version=no
8915 need_lib_prefix=no
8916 ;;
8917 freebsd-*)
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8919 need_version=yes
8920 ;;
8921 esac
8922 shlibpath_var=LD_LIBRARY_PATH
8923 case $host_os in
8924 freebsd2*)
8925 shlibpath_overrides_runpath=yes
8926 ;;
8927 freebsd3.[01]* | freebsdelf3.[01]*)
8928 shlibpath_overrides_runpath=yes
8929 hardcode_into_libs=yes
8930 ;;
8931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8933 shlibpath_overrides_runpath=no
8934 hardcode_into_libs=yes
8935 ;;
8936 freebsd*) # from 4.6 on
8937 shlibpath_overrides_runpath=yes
8938 hardcode_into_libs=yes
8939 ;;
8940 esac
8941 ;;
8943 gnu*)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 hardcode_into_libs=yes
8951 ;;
8953 hpux9* | hpux10* | hpux11*)
8954 # Give a soname corresponding to the major version so that dld.sl refuses to
8955 # link against other versions.
8956 version_type=sunos
8957 need_lib_prefix=no
8958 need_version=no
8959 case $host_cpu in
8960 ia64*)
8961 shrext_cmds='.so'
8962 hardcode_into_libs=yes
8963 dynamic_linker="$host_os dld.so"
8964 shlibpath_var=LD_LIBRARY_PATH
8965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 if test "X$HPUX_IA64_MODE" = X32; then
8969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8970 else
8971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8972 fi
8973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8974 ;;
8975 hppa*64*)
8976 shrext_cmds='.sl'
8977 hardcode_into_libs=yes
8978 dynamic_linker="$host_os dld.sl"
8979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8985 ;;
8986 *)
8987 shrext_cmds='.sl'
8988 dynamic_linker="$host_os dld.sl"
8989 shlibpath_var=SHLIB_PATH
8990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 ;;
8994 esac
8995 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8996 postinstall_cmds='chmod 555 $lib'
8997 ;;
8999 interix3*)
9000 version_type=linux
9001 need_lib_prefix=no
9002 need_version=no
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=no
9008 hardcode_into_libs=yes
9009 ;;
9011 irix5* | irix6* | nonstopux*)
9012 case $host_os in
9013 nonstopux*) version_type=nonstopux ;;
9014 *)
9015 if test "$lt_cv_prog_gnu_ld" = yes; then
9016 version_type=linux
9017 else
9018 version_type=irix
9019 fi ;;
9020 esac
9021 need_lib_prefix=no
9022 need_version=no
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9025 case $host_os in
9026 irix5* | nonstopux*)
9027 libsuff= shlibsuff=
9028 ;;
9029 *)
9030 case $LD in # libtool.m4 will add one of these switches to LD
9031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9032 libsuff= shlibsuff= libmagic=32-bit;;
9033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9034 libsuff=32 shlibsuff=N32 libmagic=N32;;
9035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9037 *) libsuff= shlibsuff= libmagic=never-match;;
9038 esac
9039 ;;
9040 esac
9041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9042 shlibpath_overrides_runpath=no
9043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9045 hardcode_into_libs=yes
9046 ;;
9048 # No shared lib support for Linux oldld, aout, or coff.
9049 linux*oldld* | linux*aout* | linux*coff*)
9050 dynamic_linker=no
9051 ;;
9053 # This must be Linux ELF.
9054 linux* | k*bsd*-gnu)
9055 version_type=linux
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=no
9063 # This implies no fast_install, which is unacceptable.
9064 # Some rework will be needed to allow for fast_install
9065 # before this can be enabled.
9066 hardcode_into_libs=yes
9068 # Append ld.so.conf contents to the search path
9069 if test -f /etc/ld.so.conf; then
9070 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' ' '`
9071 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9072 fi
9074 # We used to test for /lib/ld.so.1 and disable shared libraries on
9075 # powerpc, because MkLinux only supported shared libraries with the
9076 # GNU dynamic linker. Since this was broken with cross compilers,
9077 # most powerpc-linux boxes support dynamic linking these days and
9078 # people can always --disable-shared, the test was removed, and we
9079 # assume the GNU/Linux dynamic linker is in use.
9080 dynamic_linker='GNU/Linux ld.so'
9081 ;;
9083 netbsdelf*-gnu)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=no
9091 hardcode_into_libs=yes
9092 dynamic_linker='NetBSD ld.elf_so'
9093 ;;
9095 netbsd*)
9096 version_type=sunos
9097 need_lib_prefix=no
9098 need_version=no
9099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9102 dynamic_linker='NetBSD (a.out) ld.so'
9103 else
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 dynamic_linker='NetBSD ld.elf_so'
9107 fi
9108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=yes
9110 hardcode_into_libs=yes
9111 ;;
9113 newsos6)
9114 version_type=linux
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=yes
9118 ;;
9120 nto-qnx*)
9121 version_type=linux
9122 need_lib_prefix=no
9123 need_version=no
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 ;;
9130 openbsd*)
9131 version_type=sunos
9132 sys_lib_dlsearch_path_spec="/usr/lib"
9133 need_lib_prefix=no
9134 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9135 case $host_os in
9136 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9137 *) need_version=no ;;
9138 esac
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9143 case $host_os in
9144 openbsd2.[89] | openbsd2.[89].*)
9145 shlibpath_overrides_runpath=no
9146 ;;
9147 *)
9148 shlibpath_overrides_runpath=yes
9149 ;;
9150 esac
9151 else
9152 shlibpath_overrides_runpath=yes
9153 fi
9154 ;;
9156 os2*)
9157 libname_spec='$name'
9158 shrext_cmds=".dll"
9159 need_lib_prefix=no
9160 library_names_spec='$libname${shared_ext} $libname.a'
9161 dynamic_linker='OS/2 ld.exe'
9162 shlibpath_var=LIBPATH
9163 ;;
9165 osf3* | osf4* | osf5*)
9166 version_type=osf
9167 need_lib_prefix=no
9168 need_version=no
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9174 ;;
9176 solaris*)
9177 version_type=linux
9178 need_lib_prefix=no
9179 need_version=no
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 shlibpath_overrides_runpath=yes
9184 hardcode_into_libs=yes
9185 # ldd complains unless libraries are executable
9186 postinstall_cmds='chmod +x $lib'
9187 ;;
9189 sunos4*)
9190 version_type=sunos
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 shlibpath_overrides_runpath=yes
9195 if test "$with_gnu_ld" = yes; then
9196 need_lib_prefix=no
9197 fi
9198 need_version=yes
9199 ;;
9201 sysv4 | sysv4.3*)
9202 version_type=linux
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 case $host_vendor in
9207 sni)
9208 shlibpath_overrides_runpath=no
9209 need_lib_prefix=no
9210 export_dynamic_flag_spec='${wl}-Blargedynsym'
9211 runpath_var=LD_RUN_PATH
9212 ;;
9213 siemens)
9214 need_lib_prefix=no
9215 ;;
9216 motorola)
9217 need_lib_prefix=no
9218 need_version=no
9219 shlibpath_overrides_runpath=no
9220 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9221 ;;
9222 esac
9223 ;;
9225 sysv4*MP*)
9226 if test -d /usr/nec ;then
9227 version_type=linux
9228 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9229 soname_spec='$libname${shared_ext}.$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 fi
9232 ;;
9234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9235 version_type=freebsd-elf
9236 need_lib_prefix=no
9237 need_version=no
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 hardcode_into_libs=yes
9242 if test "$with_gnu_ld" = yes; then
9243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9244 shlibpath_overrides_runpath=no
9245 else
9246 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9247 shlibpath_overrides_runpath=yes
9248 case $host_os in
9249 sco3.2v5*)
9250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9251 ;;
9252 esac
9253 fi
9254 sys_lib_dlsearch_path_spec='/usr/lib'
9255 ;;
9257 uts4*)
9258 version_type=linux
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 ;;
9264 *)
9265 dynamic_linker=no
9266 ;;
9267 esac
9268 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9269 echo "${ECHO_T}$dynamic_linker" >&6; }
9270 test "$dynamic_linker" = no && can_build_shared=no
9272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9273 if test "$GCC" = yes; then
9274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9275 fi
9277 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9278 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9279 hardcode_action=
9280 if test -n "$hardcode_libdir_flag_spec" || \
9281 test -n "$runpath_var" || \
9282 test "X$hardcode_automatic" = "Xyes" ; then
9284 # We can hardcode non-existant directories.
9285 if test "$hardcode_direct" != no &&
9286 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9287 # have to relink, otherwise we might link with an installed library
9288 # when we should be linking with a yet-to-be-installed one
9289 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9290 test "$hardcode_minus_L" != no; then
9291 # Linking always hardcodes the temporary library directory.
9292 hardcode_action=relink
9293 else
9294 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9295 hardcode_action=immediate
9296 fi
9297 else
9298 # We cannot hardcode anything, or else we can only hardcode existing
9299 # directories.
9300 hardcode_action=unsupported
9301 fi
9302 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9303 echo "${ECHO_T}$hardcode_action" >&6; }
9305 if test "$hardcode_action" = relink; then
9306 # Fast installation is not supported
9307 enable_fast_install=no
9308 elif test "$shlibpath_overrides_runpath" = yes ||
9309 test "$enable_shared" = no; then
9310 # Fast installation is not necessary
9311 enable_fast_install=needless
9312 fi
9314 striplib=
9315 old_striplib=
9316 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9317 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9318 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9319 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9320 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9321 { echo "$as_me:$LINENO: result: yes" >&5
9322 echo "${ECHO_T}yes" >&6; }
9323 else
9324 # FIXME - insert some real tests, host_os isn't really good enough
9325 case $host_os in
9326 darwin*)
9327 if test -n "$STRIP" ; then
9328 striplib="$STRIP -x"
9329 { echo "$as_me:$LINENO: result: yes" >&5
9330 echo "${ECHO_T}yes" >&6; }
9331 else
9332 { echo "$as_me:$LINENO: result: no" >&5
9333 echo "${ECHO_T}no" >&6; }
9334 fi
9335 ;;
9336 *)
9337 { echo "$as_me:$LINENO: result: no" >&5
9338 echo "${ECHO_T}no" >&6; }
9339 ;;
9340 esac
9341 fi
9343 if test "x$enable_dlopen" != xyes; then
9344 enable_dlopen=unknown
9345 enable_dlopen_self=unknown
9346 enable_dlopen_self_static=unknown
9347 else
9348 lt_cv_dlopen=no
9349 lt_cv_dlopen_libs=
9351 case $host_os in
9352 beos*)
9353 lt_cv_dlopen="load_add_on"
9354 lt_cv_dlopen_libs=
9355 lt_cv_dlopen_self=yes
9356 ;;
9358 mingw* | pw32*)
9359 lt_cv_dlopen="LoadLibrary"
9360 lt_cv_dlopen_libs=
9361 ;;
9363 cygwin*)
9364 lt_cv_dlopen="dlopen"
9365 lt_cv_dlopen_libs=
9366 ;;
9368 darwin*)
9369 # if libdl is installed we need to link against it
9370 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9371 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9372 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375 ac_check_lib_save_LIBS=$LIBS
9376 LIBS="-ldl $LIBS"
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h. */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9384 /* Override any GCC internal prototype to avoid an error.
9385 Use char because int might match the return type of a GCC
9386 builtin and then its argument prototype would still apply. */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 char dlopen ();
9391 int
9392 main ()
9393 {
9394 return dlopen ();
9395 ;
9396 return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (ac_try="$ac_link"
9401 case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_link") 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && {
9413 test -z "$ac_c_werror_flag" ||
9414 test ! -s conftest.err
9415 } && test -s conftest$ac_exeext &&
9416 $as_test_x conftest$ac_exeext; then
9417 ac_cv_lib_dl_dlopen=yes
9418 else
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_cv_lib_dl_dlopen=no
9423 fi
9425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9426 conftest$ac_exeext conftest.$ac_ext
9427 LIBS=$ac_check_lib_save_LIBS
9428 fi
9429 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9430 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9431 if test $ac_cv_lib_dl_dlopen = yes; then
9432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9433 else
9435 lt_cv_dlopen="dyld"
9436 lt_cv_dlopen_libs=
9437 lt_cv_dlopen_self=yes
9439 fi
9441 ;;
9443 *)
9444 { echo "$as_me:$LINENO: checking for shl_load" >&5
9445 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9446 if test "${ac_cv_func_shl_load+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449 cat >conftest.$ac_ext <<_ACEOF
9450 /* confdefs.h. */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9455 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9457 #define shl_load innocuous_shl_load
9459 /* System header to define __stub macros and hopefully few prototypes,
9460 which can conflict with char shl_load (); below.
9461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9462 <limits.h> exists even on freestanding compilers. */
9464 #ifdef __STDC__
9465 # include <limits.h>
9466 #else
9467 # include <assert.h>
9468 #endif
9470 #undef shl_load
9472 /* Override any GCC internal prototype to avoid an error.
9473 Use char because int might match the return type of a GCC
9474 builtin and then its argument prototype would still apply. */
9475 #ifdef __cplusplus
9476 extern "C"
9477 #endif
9478 char shl_load ();
9479 /* The GNU C library defines this for functions which it implements
9480 to always fail with ENOSYS. Some functions are actually named
9481 something starting with __ and the normal name is an alias. */
9482 #if defined __stub_shl_load || defined __stub___shl_load
9483 choke me
9484 #endif
9486 int
9487 main ()
9488 {
9489 return shl_load ();
9490 ;
9491 return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9496 case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_link") 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && {
9508 test -z "$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9510 } && test -s conftest$ac_exeext &&
9511 $as_test_x conftest$ac_exeext; then
9512 ac_cv_func_shl_load=yes
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_func_shl_load=no
9518 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521 conftest$ac_exeext conftest.$ac_ext
9522 fi
9523 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9524 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9525 if test $ac_cv_func_shl_load = yes; then
9526 lt_cv_dlopen="shl_load"
9527 else
9528 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9529 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9530 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 ac_check_lib_save_LIBS=$LIBS
9534 LIBS="-ldld $LIBS"
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9542 /* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 char shl_load ();
9549 int
9550 main ()
9551 {
9552 return shl_load ();
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (ac_try="$ac_link"
9559 case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562 esac
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_link") 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && {
9571 test -z "$ac_c_werror_flag" ||
9572 test ! -s conftest.err
9573 } && test -s conftest$ac_exeext &&
9574 $as_test_x conftest$ac_exeext; then
9575 ac_cv_lib_dld_shl_load=yes
9576 else
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 ac_cv_lib_dld_shl_load=no
9581 fi
9583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9584 conftest$ac_exeext conftest.$ac_ext
9585 LIBS=$ac_check_lib_save_LIBS
9586 fi
9587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9588 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9589 if test $ac_cv_lib_dld_shl_load = yes; then
9590 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9591 else
9592 { echo "$as_me:$LINENO: checking for dlopen" >&5
9593 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9594 if test "${ac_cv_func_dlopen+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9605 #define dlopen innocuous_dlopen
9607 /* System header to define __stub macros and hopefully few prototypes,
9608 which can conflict with char dlopen (); below.
9609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9610 <limits.h> exists even on freestanding compilers. */
9612 #ifdef __STDC__
9613 # include <limits.h>
9614 #else
9615 # include <assert.h>
9616 #endif
9618 #undef dlopen
9620 /* Override any GCC internal prototype to avoid an error.
9621 Use char because int might match the return type of a GCC
9622 builtin and then its argument prototype would still apply. */
9623 #ifdef __cplusplus
9624 extern "C"
9625 #endif
9626 char dlopen ();
9627 /* The GNU C library defines this for functions which it implements
9628 to always fail with ENOSYS. Some functions are actually named
9629 something starting with __ and the normal name is an alias. */
9630 #if defined __stub_dlopen || defined __stub___dlopen
9631 choke me
9632 #endif
9634 int
9635 main ()
9636 {
9637 return dlopen ();
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (ac_try="$ac_link"
9644 case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_link") 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && {
9656 test -z "$ac_c_werror_flag" ||
9657 test ! -s conftest.err
9658 } && test -s conftest$ac_exeext &&
9659 $as_test_x conftest$ac_exeext; then
9660 ac_cv_func_dlopen=yes
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_func_dlopen=no
9666 fi
9668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9669 conftest$ac_exeext conftest.$ac_ext
9670 fi
9671 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9672 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9673 if test $ac_cv_func_dlopen = yes; then
9674 lt_cv_dlopen="dlopen"
9675 else
9676 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9677 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9678 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681 ac_check_lib_save_LIBS=$LIBS
9682 LIBS="-ldl $LIBS"
9683 cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h. */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9690 /* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 char dlopen ();
9697 int
9698 main ()
9699 {
9700 return dlopen ();
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (ac_try="$ac_link"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest$ac_exeext &&
9722 $as_test_x conftest$ac_exeext; then
9723 ac_cv_lib_dl_dlopen=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_lib_dl_dlopen=no
9729 fi
9731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732 conftest$ac_exeext conftest.$ac_ext
9733 LIBS=$ac_check_lib_save_LIBS
9734 fi
9735 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9736 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9737 if test $ac_cv_lib_dl_dlopen = yes; then
9738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9739 else
9740 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9741 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9742 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 ac_check_lib_save_LIBS=$LIBS
9746 LIBS="-lsvld $LIBS"
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char dlopen ();
9761 int
9762 main ()
9763 {
9764 return dlopen ();
9765 ;
9766 return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9771 case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } && {
9783 test -z "$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 } && test -s conftest$ac_exeext &&
9786 $as_test_x conftest$ac_exeext; then
9787 ac_cv_lib_svld_dlopen=yes
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_cv_lib_svld_dlopen=no
9793 fi
9795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9796 conftest$ac_exeext conftest.$ac_ext
9797 LIBS=$ac_check_lib_save_LIBS
9798 fi
9799 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9800 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9801 if test $ac_cv_lib_svld_dlopen = yes; then
9802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9803 else
9804 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9805 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9806 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 ac_check_lib_save_LIBS=$LIBS
9810 LIBS="-ldld $LIBS"
9811 cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h. */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 char dld_link ();
9825 int
9826 main ()
9827 {
9828 return dld_link ();
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext &&
9850 $as_test_x conftest$ac_exeext; then
9851 ac_cv_lib_dld_dld_link=yes
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_cv_lib_dld_dld_link=no
9857 fi
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860 conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9862 fi
9863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9864 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9865 if test $ac_cv_lib_dld_dld_link = yes; then
9866 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9867 fi
9870 fi
9873 fi
9876 fi
9879 fi
9882 fi
9884 ;;
9885 esac
9887 if test "x$lt_cv_dlopen" != xno; then
9888 enable_dlopen=yes
9889 else
9890 enable_dlopen=no
9891 fi
9893 case $lt_cv_dlopen in
9894 dlopen)
9895 save_CPPFLAGS="$CPPFLAGS"
9896 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9898 save_LDFLAGS="$LDFLAGS"
9899 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9901 save_LIBS="$LIBS"
9902 LIBS="$lt_cv_dlopen_libs $LIBS"
9904 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9905 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9906 if test "${lt_cv_dlopen_self+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 if test "$cross_compiling" = yes; then :
9910 lt_cv_dlopen_self=cross
9911 else
9912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9913 lt_status=$lt_dlunknown
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9915 "configure"
9916 #include "confdefs.h"
9918 #if HAVE_DLFCN_H
9919 #include <dlfcn.h>
9920 #endif
9922 #include <stdio.h>
9924 #ifdef RTLD_GLOBAL
9925 # define LT_DLGLOBAL RTLD_GLOBAL
9926 #else
9927 # ifdef DL_GLOBAL
9928 # define LT_DLGLOBAL DL_GLOBAL
9929 # else
9930 # define LT_DLGLOBAL 0
9931 # endif
9932 #endif
9934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9935 find out it does not work in some platform. */
9936 #ifndef LT_DLLAZY_OR_NOW
9937 # ifdef RTLD_LAZY
9938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9939 # else
9940 # ifdef DL_LAZY
9941 # define LT_DLLAZY_OR_NOW DL_LAZY
9942 # else
9943 # ifdef RTLD_NOW
9944 # define LT_DLLAZY_OR_NOW RTLD_NOW
9945 # else
9946 # ifdef DL_NOW
9947 # define LT_DLLAZY_OR_NOW DL_NOW
9948 # else
9949 # define LT_DLLAZY_OR_NOW 0
9950 # endif
9951 # endif
9952 # endif
9953 # endif
9954 #endif
9956 #ifdef __cplusplus
9957 extern "C" void exit (int);
9958 #endif
9960 void fnord() { int i=42;}
9961 int main ()
9962 {
9963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9964 int status = $lt_dlunknown;
9966 if (self)
9967 {
9968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9969 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9970 /* dlclose (self); */
9971 }
9972 else
9973 puts (dlerror ());
9975 exit (status);
9976 }
9977 EOF
9978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9983 (./conftest; exit; ) >&5 2>/dev/null
9984 lt_status=$?
9985 case x$lt_status in
9986 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9987 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9988 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9989 esac
9990 else :
9991 # compilation failed
9992 lt_cv_dlopen_self=no
9993 fi
9994 fi
9995 rm -fr conftest*
9998 fi
9999 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10000 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10002 if test "x$lt_cv_dlopen_self" = xyes; then
10003 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10004 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10005 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10006 if test "${lt_cv_dlopen_self_static+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 if test "$cross_compiling" = yes; then :
10010 lt_cv_dlopen_self_static=cross
10011 else
10012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10013 lt_status=$lt_dlunknown
10014 cat > conftest.$ac_ext <<EOF
10015 #line 10015 "configure"
10016 #include "confdefs.h"
10018 #if HAVE_DLFCN_H
10019 #include <dlfcn.h>
10020 #endif
10022 #include <stdio.h>
10024 #ifdef RTLD_GLOBAL
10025 # define LT_DLGLOBAL RTLD_GLOBAL
10026 #else
10027 # ifdef DL_GLOBAL
10028 # define LT_DLGLOBAL DL_GLOBAL
10029 # else
10030 # define LT_DLGLOBAL 0
10031 # endif
10032 #endif
10034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10035 find out it does not work in some platform. */
10036 #ifndef LT_DLLAZY_OR_NOW
10037 # ifdef RTLD_LAZY
10038 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10039 # else
10040 # ifdef DL_LAZY
10041 # define LT_DLLAZY_OR_NOW DL_LAZY
10042 # else
10043 # ifdef RTLD_NOW
10044 # define LT_DLLAZY_OR_NOW RTLD_NOW
10045 # else
10046 # ifdef DL_NOW
10047 # define LT_DLLAZY_OR_NOW DL_NOW
10048 # else
10049 # define LT_DLLAZY_OR_NOW 0
10050 # endif
10051 # endif
10052 # endif
10053 # endif
10054 #endif
10056 #ifdef __cplusplus
10057 extern "C" void exit (int);
10058 #endif
10060 void fnord() { int i=42;}
10061 int main ()
10062 {
10063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10064 int status = $lt_dlunknown;
10066 if (self)
10067 {
10068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10069 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10070 /* dlclose (self); */
10071 }
10072 else
10073 puts (dlerror ());
10075 exit (status);
10076 }
10077 EOF
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10083 (./conftest; exit; ) >&5 2>/dev/null
10084 lt_status=$?
10085 case x$lt_status in
10086 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10087 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10088 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10089 esac
10090 else :
10091 # compilation failed
10092 lt_cv_dlopen_self_static=no
10093 fi
10094 fi
10095 rm -fr conftest*
10098 fi
10099 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10100 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10101 fi
10103 CPPFLAGS="$save_CPPFLAGS"
10104 LDFLAGS="$save_LDFLAGS"
10105 LIBS="$save_LIBS"
10106 ;;
10107 esac
10109 case $lt_cv_dlopen_self in
10110 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10111 *) enable_dlopen_self=unknown ;;
10112 esac
10114 case $lt_cv_dlopen_self_static in
10115 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10116 *) enable_dlopen_self_static=unknown ;;
10117 esac
10118 fi
10121 # Report which library types will actually be built
10122 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10123 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10124 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10125 echo "${ECHO_T}$can_build_shared" >&6; }
10127 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10128 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10129 test "$can_build_shared" = "no" && enable_shared=no
10131 # On AIX, shared libraries and static libraries use the same namespace, and
10132 # are all built from PIC.
10133 case $host_os in
10134 aix3*)
10135 test "$enable_shared" = yes && enable_static=no
10136 if test -n "$RANLIB"; then
10137 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10138 postinstall_cmds='$RANLIB $lib'
10139 fi
10140 ;;
10142 aix4* | aix5*)
10143 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10144 test "$enable_shared" = yes && enable_static=no
10145 fi
10146 ;;
10147 esac
10148 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10149 echo "${ECHO_T}$enable_shared" >&6; }
10151 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10152 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10153 # Make sure either enable_shared or enable_static is yes.
10154 test "$enable_shared" = yes || enable_static=yes
10155 { echo "$as_me:$LINENO: result: $enable_static" >&5
10156 echo "${ECHO_T}$enable_static" >&6; }
10158 # The else clause should only fire when bootstrapping the
10159 # libtool distribution, otherwise you forgot to ship ltmain.sh
10160 # with your package, and you will get complaints that there are
10161 # no rules to generate ltmain.sh.
10162 if test -f "$ltmain"; then
10163 # See if we are running on zsh, and set the options which allow our commands through
10164 # without removal of \ escapes.
10165 if test -n "${ZSH_VERSION+set}" ; then
10166 setopt NO_GLOB_SUBST
10167 fi
10168 # Now quote all the things that may contain metacharacters while being
10169 # careful not to overquote the AC_SUBSTed values. We take copies of the
10170 # variables and quote the copies for generation of the libtool script.
10171 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10172 SED SHELL STRIP \
10173 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10174 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10175 deplibs_check_method reload_flag reload_cmds need_locks \
10176 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10177 lt_cv_sys_global_symbol_to_c_name_address \
10178 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10179 old_postinstall_cmds old_postuninstall_cmds \
10180 compiler \
10181 CC \
10182 LD \
10183 lt_prog_compiler_wl \
10184 lt_prog_compiler_pic \
10185 lt_prog_compiler_static \
10186 lt_prog_compiler_no_builtin_flag \
10187 export_dynamic_flag_spec \
10188 thread_safe_flag_spec \
10189 whole_archive_flag_spec \
10190 enable_shared_with_static_runtimes \
10191 old_archive_cmds \
10192 old_archive_from_new_cmds \
10193 predep_objects \
10194 postdep_objects \
10195 predeps \
10196 postdeps \
10197 compiler_lib_search_path \
10198 archive_cmds \
10199 archive_expsym_cmds \
10200 postinstall_cmds \
10201 postuninstall_cmds \
10202 old_archive_from_expsyms_cmds \
10203 allow_undefined_flag \
10204 no_undefined_flag \
10205 export_symbols_cmds \
10206 hardcode_libdir_flag_spec \
10207 hardcode_libdir_flag_spec_ld \
10208 hardcode_libdir_separator \
10209 hardcode_automatic \
10210 module_cmds \
10211 module_expsym_cmds \
10212 lt_cv_prog_compiler_c_o \
10213 exclude_expsyms \
10214 include_expsyms; do
10216 case $var in
10217 old_archive_cmds | \
10218 old_archive_from_new_cmds | \
10219 archive_cmds | \
10220 archive_expsym_cmds | \
10221 module_cmds | \
10222 module_expsym_cmds | \
10223 old_archive_from_expsyms_cmds | \
10224 export_symbols_cmds | \
10225 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10226 postinstall_cmds | postuninstall_cmds | \
10227 old_postinstall_cmds | old_postuninstall_cmds | \
10228 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10229 # Double-quote double-evaled strings.
10230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10231 ;;
10232 *)
10233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10234 ;;
10235 esac
10236 done
10238 case $lt_echo in
10239 *'\$0 --fallback-echo"')
10240 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10241 ;;
10242 esac
10244 cfgfile="${ofile}T"
10245 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10246 $rm -f "$cfgfile"
10247 { echo "$as_me:$LINENO: creating $ofile" >&5
10248 echo "$as_me: creating $ofile" >&6;}
10250 cat <<__EOF__ >> "$cfgfile"
10251 #! $SHELL
10253 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10254 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10255 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10256 #
10257 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10258 # Free Software Foundation, Inc.
10259 #
10260 # This file is part of GNU Libtool:
10261 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10262 #
10263 # This program is free software; you can redistribute it and/or modify
10264 # it under the terms of the GNU General Public License as published by
10265 # the Free Software Foundation; either version 2 of the License, or
10266 # (at your option) any later version.
10267 #
10268 # This program is distributed in the hope that it will be useful, but
10269 # WITHOUT ANY WARRANTY; without even the implied warranty of
10270 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10271 # General Public License for more details.
10272 #
10273 # You should have received a copy of the GNU General Public License
10274 # along with this program; if not, write to the Free Software
10275 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10276 #
10277 # As a special exception to the GNU General Public License, if you
10278 # distribute this file as part of a program that contains a
10279 # configuration script generated by Autoconf, you may include it under
10280 # the same distribution terms that you use for the rest of that program.
10282 # A sed program that does not truncate output.
10283 SED=$lt_SED
10285 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10286 Xsed="$SED -e 1s/^X//"
10288 # The HP-UX ksh and POSIX shell print the target directory to stdout
10289 # if CDPATH is set.
10290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10292 # The names of the tagged configurations supported by this script.
10293 available_tags=
10295 # ### BEGIN LIBTOOL CONFIG
10297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10299 # Shell to use when invoking shell scripts.
10300 SHELL=$lt_SHELL
10302 # Whether or not to build shared libraries.
10303 build_libtool_libs=$enable_shared
10305 # Whether or not to build static libraries.
10306 build_old_libs=$enable_static
10308 # Whether or not to add -lc for building shared libraries.
10309 build_libtool_need_lc=$archive_cmds_need_lc
10311 # Whether or not to disallow shared libs when runtime libs are static
10312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10314 # Whether or not to optimize for fast installation.
10315 fast_install=$enable_fast_install
10317 # The host system.
10318 host_alias=$host_alias
10319 host=$host
10320 host_os=$host_os
10322 # The build system.
10323 build_alias=$build_alias
10324 build=$build
10325 build_os=$build_os
10327 # An echo program that does not interpret backslashes.
10328 echo=$lt_echo
10330 # The archiver.
10331 AR=$lt_AR
10332 AR_FLAGS=$lt_AR_FLAGS
10334 # A C compiler.
10335 LTCC=$lt_LTCC
10337 # LTCC compiler flags.
10338 LTCFLAGS=$lt_LTCFLAGS
10340 # A language-specific compiler.
10341 CC=$lt_compiler
10343 # Is the compiler the GNU C compiler?
10344 with_gcc=$GCC
10346 # An ERE matcher.
10347 EGREP=$lt_EGREP
10349 # The linker used to build libraries.
10350 LD=$lt_LD
10352 # Whether we need hard or soft links.
10353 LN_S=$lt_LN_S
10355 # A BSD-compatible nm program.
10356 NM=$lt_NM
10358 # A symbol stripping program
10359 STRIP=$lt_STRIP
10361 # Used to examine libraries when file_magic_cmd begins "file"
10362 MAGIC_CMD=$MAGIC_CMD
10364 # Used on cygwin: DLL creation program.
10365 DLLTOOL="$DLLTOOL"
10367 # Used on cygwin: object dumper.
10368 OBJDUMP="$OBJDUMP"
10370 # Used on cygwin: assembler.
10371 AS="$AS"
10373 # The name of the directory that contains temporary libtool files.
10374 objdir=$objdir
10376 # How to create reloadable object files.
10377 reload_flag=$lt_reload_flag
10378 reload_cmds=$lt_reload_cmds
10380 # How to pass a linker flag through the compiler.
10381 wl=$lt_lt_prog_compiler_wl
10383 # Object file suffix (normally "o").
10384 objext="$ac_objext"
10386 # Old archive suffix (normally "a").
10387 libext="$libext"
10389 # Shared library suffix (normally ".so").
10390 shrext_cmds='$shrext_cmds'
10392 # Executable file suffix (normally "").
10393 exeext="$exeext"
10395 # Additional compiler flags for building library objects.
10396 pic_flag=$lt_lt_prog_compiler_pic
10397 pic_mode=$pic_mode
10399 # What is the maximum length of a command?
10400 max_cmd_len=$lt_cv_sys_max_cmd_len
10402 # Does compiler simultaneously support -c and -o options?
10403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10405 # Must we lock files when doing compilation?
10406 need_locks=$lt_need_locks
10408 # Do we need the lib prefix for modules?
10409 need_lib_prefix=$need_lib_prefix
10411 # Do we need a version for libraries?
10412 need_version=$need_version
10414 # Whether dlopen is supported.
10415 dlopen_support=$enable_dlopen
10417 # Whether dlopen of programs is supported.
10418 dlopen_self=$enable_dlopen_self
10420 # Whether dlopen of statically linked programs is supported.
10421 dlopen_self_static=$enable_dlopen_self_static
10423 # Compiler flag to prevent dynamic linking.
10424 link_static_flag=$lt_lt_prog_compiler_static
10426 # Compiler flag to turn off builtin functions.
10427 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10429 # Compiler flag to allow reflexive dlopens.
10430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10432 # Compiler flag to generate shared objects directly from archives.
10433 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10435 # Compiler flag to generate thread-safe objects.
10436 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10438 # Library versioning type.
10439 version_type=$version_type
10441 # Format of library name prefix.
10442 libname_spec=$lt_libname_spec
10444 # List of archive names. First name is the real one, the rest are links.
10445 # The last name is the one that the linker finds with -lNAME.
10446 library_names_spec=$lt_library_names_spec
10448 # The coded name of the library, if different from the real name.
10449 soname_spec=$lt_soname_spec
10451 # Commands used to build and install an old-style archive.
10452 RANLIB=$lt_RANLIB
10453 old_archive_cmds=$lt_old_archive_cmds
10454 old_postinstall_cmds=$lt_old_postinstall_cmds
10455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10457 # Create an old-style archive from a shared archive.
10458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10460 # Create a temporary old-style archive to link instead of a shared archive.
10461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10463 # Commands used to build and install a shared archive.
10464 archive_cmds=$lt_archive_cmds
10465 archive_expsym_cmds=$lt_archive_expsym_cmds
10466 postinstall_cmds=$lt_postinstall_cmds
10467 postuninstall_cmds=$lt_postuninstall_cmds
10469 # Commands used to build a loadable module (assumed same as above if empty)
10470 module_cmds=$lt_module_cmds
10471 module_expsym_cmds=$lt_module_expsym_cmds
10473 # Commands to strip libraries.
10474 old_striplib=$lt_old_striplib
10475 striplib=$lt_striplib
10477 # Dependencies to place before the objects being linked to create a
10478 # shared library.
10479 predep_objects=$lt_predep_objects
10481 # Dependencies to place after the objects being linked to create a
10482 # shared library.
10483 postdep_objects=$lt_postdep_objects
10485 # Dependencies to place before the objects being linked to create a
10486 # shared library.
10487 predeps=$lt_predeps
10489 # Dependencies to place after the objects being linked to create a
10490 # shared library.
10491 postdeps=$lt_postdeps
10493 # The library search path used internally by the compiler when linking
10494 # a shared library.
10495 compiler_lib_search_path=$lt_compiler_lib_search_path
10497 # Method to check whether dependent libraries are shared objects.
10498 deplibs_check_method=$lt_deplibs_check_method
10500 # Command to use when deplibs_check_method == file_magic.
10501 file_magic_cmd=$lt_file_magic_cmd
10503 # Flag that allows shared libraries with undefined symbols to be built.
10504 allow_undefined_flag=$lt_allow_undefined_flag
10506 # Flag that forces no undefined symbols.
10507 no_undefined_flag=$lt_no_undefined_flag
10509 # Commands used to finish a libtool library installation in a directory.
10510 finish_cmds=$lt_finish_cmds
10512 # Same as above, but a single script fragment to be evaled but not shown.
10513 finish_eval=$lt_finish_eval
10515 # Take the output of nm and produce a listing of raw symbols and C names.
10516 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10518 # Transform the output of nm in a proper C declaration
10519 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10521 # Transform the output of nm in a C name address pair
10522 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10524 # This is the shared library runtime path variable.
10525 runpath_var=$runpath_var
10527 # This is the shared library path variable.
10528 shlibpath_var=$shlibpath_var
10530 # Is shlibpath searched before the hard-coded library search path?
10531 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10533 # How to hardcode a shared library path into an executable.
10534 hardcode_action=$hardcode_action
10536 # Whether we should hardcode library paths into libraries.
10537 hardcode_into_libs=$hardcode_into_libs
10539 # Flag to hardcode \$libdir into a binary during linking.
10540 # This must work even if \$libdir does not exist.
10541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10543 # If ld is used when linking, flag to hardcode \$libdir into
10544 # a binary during linking. This must work even if \$libdir does
10545 # not exist.
10546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10548 # Whether we need a single -rpath flag with a separated argument.
10549 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10551 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10552 # resulting binary.
10553 hardcode_direct=$hardcode_direct
10555 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10556 # resulting binary.
10557 hardcode_minus_L=$hardcode_minus_L
10559 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10560 # the resulting binary.
10561 hardcode_shlibpath_var=$hardcode_shlibpath_var
10563 # Set to yes if building a shared library automatically hardcodes DIR into the library
10564 # and all subsequent libraries and executables linked against it.
10565 hardcode_automatic=$hardcode_automatic
10567 # Variables whose values should be saved in libtool wrapper scripts and
10568 # restored at relink time.
10569 variables_saved_for_relink="$variables_saved_for_relink"
10571 # Whether libtool must link a program against all its dependency libraries.
10572 link_all_deplibs=$link_all_deplibs
10574 # Compile-time system search path for libraries
10575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10577 # Run-time system search path for libraries
10578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10580 # Fix the shell variable \$srcfile for the compiler.
10581 fix_srcfile_path="$fix_srcfile_path"
10583 # Set to yes if exported symbols are required.
10584 always_export_symbols=$always_export_symbols
10586 # The commands to list exported symbols.
10587 export_symbols_cmds=$lt_export_symbols_cmds
10589 # The commands to extract the exported symbol list from a shared archive.
10590 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10592 # Symbols that should not be listed in the preloaded symbols.
10593 exclude_expsyms=$lt_exclude_expsyms
10595 # Symbols that must always be exported.
10596 include_expsyms=$lt_include_expsyms
10598 # ### END LIBTOOL CONFIG
10600 __EOF__
10603 case $host_os in
10604 aix3*)
10605 cat <<\EOF >> "$cfgfile"
10607 # AIX sometimes has problems with the GCC collect2 program. For some
10608 # reason, if we set the COLLECT_NAMES environment variable, the problems
10609 # vanish in a puff of smoke.
10610 if test "X${COLLECT_NAMES+set}" != Xset; then
10611 COLLECT_NAMES=
10612 export COLLECT_NAMES
10613 fi
10614 EOF
10615 ;;
10616 esac
10618 # We use sed instead of cat because bash on DJGPP gets confused if
10619 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10620 # text mode, it properly converts lines to CR/LF. This bash problem
10621 # is reportedly fixed, but why not run on old versions too?
10622 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10624 mv -f "$cfgfile" "$ofile" || \
10625 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10626 chmod +x "$ofile"
10628 else
10629 # If there is no Makefile yet, we rely on a make rule to execute
10630 # `config.status --recheck' to rerun these tests and create the
10631 # libtool script then.
10632 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10633 if test -f "$ltmain_in"; then
10634 test -f Makefile && make "$ltmain"
10635 fi
10636 fi
10639 ac_ext=c
10640 ac_cpp='$CPP $CPPFLAGS'
10641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10645 CC="$lt_save_CC"
10648 # Check whether --with-tags was given.
10649 if test "${with_tags+set}" = set; then
10650 withval=$with_tags; tagnames="$withval"
10651 fi
10654 if test -f "$ltmain" && test -n "$tagnames"; then
10655 if test ! -f "${ofile}"; then
10656 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10657 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10658 fi
10660 if test -z "$LTCC"; then
10661 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10662 if test -z "$LTCC"; then
10663 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10664 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10665 else
10666 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10667 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10668 fi
10669 fi
10670 if test -z "$LTCFLAGS"; then
10671 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10672 fi
10674 # Extract list of available tagged configurations in $ofile.
10675 # Note that this assumes the entire list is on one line.
10676 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10679 for tagname in $tagnames; do
10680 IFS="$lt_save_ifs"
10681 # Check whether tagname contains only valid characters
10682 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10683 "") ;;
10684 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10685 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10686 { (exit 1); exit 1; }; }
10687 ;;
10688 esac
10690 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10691 then
10692 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10693 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10694 { (exit 1); exit 1; }; }
10695 fi
10697 # Update the list of available tags.
10698 if test -n "$tagname"; then
10699 echo appending configuration tag \"$tagname\" to $ofile
10701 case $tagname in
10702 CXX)
10703 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10704 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10705 (test "X$CXX" != "Xg++"))) ; then
10706 ac_ext=cpp
10707 ac_cpp='$CXXCPP $CPPFLAGS'
10708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10715 archive_cmds_need_lc_CXX=no
10716 allow_undefined_flag_CXX=
10717 always_export_symbols_CXX=no
10718 archive_expsym_cmds_CXX=
10719 export_dynamic_flag_spec_CXX=
10720 hardcode_direct_CXX=no
10721 hardcode_libdir_flag_spec_CXX=
10722 hardcode_libdir_flag_spec_ld_CXX=
10723 hardcode_libdir_separator_CXX=
10724 hardcode_minus_L_CXX=no
10725 hardcode_shlibpath_var_CXX=unsupported
10726 hardcode_automatic_CXX=no
10727 module_cmds_CXX=
10728 module_expsym_cmds_CXX=
10729 link_all_deplibs_CXX=unknown
10730 old_archive_cmds_CXX=$old_archive_cmds
10731 no_undefined_flag_CXX=
10732 whole_archive_flag_spec_CXX=
10733 enable_shared_with_static_runtimes_CXX=no
10735 # Dependencies to place before and after the object being linked:
10736 predep_objects_CXX=
10737 postdep_objects_CXX=
10738 predeps_CXX=
10739 postdeps_CXX=
10740 compiler_lib_search_path_CXX=
10742 # Source file extension for C++ test sources.
10743 ac_ext=cpp
10745 # Object file extension for compiled C++ test sources.
10746 objext=o
10747 objext_CXX=$objext
10749 # Code to be used in simple compile tests
10750 lt_simple_compile_test_code="int some_variable = 0;\n"
10752 # Code to be used in simple link tests
10753 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10755 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10757 # If no C compiler was specified, use CC.
10758 LTCC=${LTCC-"$CC"}
10760 # If no C compiler flags were specified, use CFLAGS.
10761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10763 # Allow CC to be a program name with arguments.
10764 compiler=$CC
10767 # save warnings/boilerplate of simple test code
10768 ac_outfile=conftest.$ac_objext
10769 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10771 _lt_compiler_boilerplate=`cat conftest.err`
10772 $rm conftest*
10774 ac_outfile=conftest.$ac_objext
10775 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10777 _lt_linker_boilerplate=`cat conftest.err`
10778 $rm conftest*
10781 # Allow CC to be a program name with arguments.
10782 lt_save_CC=$CC
10783 lt_save_LD=$LD
10784 lt_save_GCC=$GCC
10785 GCC=$GXX
10786 lt_save_with_gnu_ld=$with_gnu_ld
10787 lt_save_path_LD=$lt_cv_path_LD
10788 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10789 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10790 else
10791 $as_unset lt_cv_prog_gnu_ld
10792 fi
10793 if test -n "${lt_cv_path_LDCXX+set}"; then
10794 lt_cv_path_LD=$lt_cv_path_LDCXX
10795 else
10796 $as_unset lt_cv_path_LD
10797 fi
10798 test -z "${LDCXX+set}" || LD=$LDCXX
10799 CC=${CXX-"c++"}
10800 compiler=$CC
10801 compiler_CXX=$CC
10802 for cc_temp in $compiler""; do
10803 case $cc_temp in
10804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10806 \-*) ;;
10807 *) break;;
10808 esac
10809 done
10810 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10813 # We don't want -fno-exception wen compiling C++ code, so set the
10814 # no_builtin_flag separately
10815 if test "$GXX" = yes; then
10816 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10817 else
10818 lt_prog_compiler_no_builtin_flag_CXX=
10819 fi
10821 if test "$GXX" = yes; then
10822 # Set up default GNU C++ configuration
10825 # Check whether --with-gnu-ld was given.
10826 if test "${with_gnu_ld+set}" = set; then
10827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10828 else
10829 with_gnu_ld=no
10830 fi
10832 ac_prog=ld
10833 if test "$GCC" = yes; then
10834 # Check if gcc -print-prog-name=ld gives a path.
10835 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10836 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10837 case $host in
10838 *-*-mingw*)
10839 # gcc leaves a trailing carriage return which upsets mingw
10840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10841 *)
10842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10843 esac
10844 case $ac_prog in
10845 # Accept absolute paths.
10846 [\\/]* | ?:[\\/]*)
10847 re_direlt='/[^/][^/]*/\.\./'
10848 # Canonicalize the pathname of ld
10849 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10850 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10851 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10852 done
10853 test -z "$LD" && LD="$ac_prog"
10854 ;;
10855 "")
10856 # If it fails, then pretend we aren't using GCC.
10857 ac_prog=ld
10858 ;;
10859 *)
10860 # If it is relative, then search for the first ld in PATH.
10861 with_gnu_ld=unknown
10862 ;;
10863 esac
10864 elif test "$with_gnu_ld" = yes; then
10865 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10866 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10867 else
10868 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10869 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10870 fi
10871 if test "${lt_cv_path_LD+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874 if test -z "$LD"; then
10875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10876 for ac_dir in $PATH; do
10877 IFS="$lt_save_ifs"
10878 test -z "$ac_dir" && ac_dir=.
10879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10880 lt_cv_path_LD="$ac_dir/$ac_prog"
10881 # Check to see if the program is GNU ld. I'd rather use --version,
10882 # but apparently some variants of GNU ld only accept -v.
10883 # Break only if it was the GNU/non-GNU ld that we prefer.
10884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10885 *GNU* | *'with BFD'*)
10886 test "$with_gnu_ld" != no && break
10887 ;;
10888 *)
10889 test "$with_gnu_ld" != yes && break
10890 ;;
10891 esac
10892 fi
10893 done
10894 IFS="$lt_save_ifs"
10895 else
10896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10897 fi
10898 fi
10900 LD="$lt_cv_path_LD"
10901 if test -n "$LD"; then
10902 { echo "$as_me:$LINENO: result: $LD" >&5
10903 echo "${ECHO_T}$LD" >&6; }
10904 else
10905 { echo "$as_me:$LINENO: result: no" >&5
10906 echo "${ECHO_T}no" >&6; }
10907 fi
10908 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10909 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10910 { (exit 1); exit 1; }; }
10911 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10912 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10913 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10917 case `$LD -v 2>&1 </dev/null` in
10918 *GNU* | *'with BFD'*)
10919 lt_cv_prog_gnu_ld=yes
10920 ;;
10921 *)
10922 lt_cv_prog_gnu_ld=no
10923 ;;
10924 esac
10925 fi
10926 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10927 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10928 with_gnu_ld=$lt_cv_prog_gnu_ld
10932 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10933 # archiving commands below assume that GNU ld is being used.
10934 if test "$with_gnu_ld" = yes; then
10935 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10936 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10938 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10939 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10941 # If archive_cmds runs LD, not CC, wlarc should be empty
10942 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10943 # investigate it a little bit more. (MM)
10944 wlarc='${wl}'
10946 # ancient GNU ld didn't support --whole-archive et. al.
10947 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10948 grep 'no-whole-archive' > /dev/null; then
10949 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10950 else
10951 whole_archive_flag_spec_CXX=
10952 fi
10953 else
10954 with_gnu_ld=no
10955 wlarc=
10957 # A generic and very simple default shared library creation
10958 # command for GNU C++ for the case where it uses the native
10959 # linker, instead of GNU ld. If possible, this setting should
10960 # overridden to take advantage of the native linker features on
10961 # the platform it is being used on.
10962 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10963 fi
10965 # Commands to make compiler produce verbose output that lists
10966 # what "hidden" libraries, object files and flags are used when
10967 # linking a shared library.
10968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10970 else
10971 GXX=no
10972 with_gnu_ld=no
10973 wlarc=
10974 fi
10976 # PORTME: fill in a description of your system's C++ link characteristics
10977 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10978 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10979 ld_shlibs_CXX=yes
10980 case $host_os in
10981 aix3*)
10982 # FIXME: insert proper C++ library support
10983 ld_shlibs_CXX=no
10984 ;;
10985 aix4* | aix5*)
10986 if test "$host_cpu" = ia64; then
10987 # On IA64, the linker does run time linking by default, so we don't
10988 # have to do anything special.
10989 aix_use_runtimelinking=no
10990 exp_sym_flag='-Bexport'
10991 no_entry_flag=""
10992 else
10993 aix_use_runtimelinking=no
10995 # Test if we are trying to use run time linking or normal
10996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10997 # need to do runtime linking.
10998 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10999 for ld_flag in $LDFLAGS; do
11000 case $ld_flag in
11001 *-brtl*)
11002 aix_use_runtimelinking=yes
11003 break
11004 ;;
11005 esac
11006 done
11007 ;;
11008 esac
11010 exp_sym_flag='-bexport'
11011 no_entry_flag='-bnoentry'
11012 fi
11014 # When large executables or shared objects are built, AIX ld can
11015 # have problems creating the table of contents. If linking a library
11016 # or program results in "error TOC overflow" add -mminimal-toc to
11017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11020 archive_cmds_CXX=''
11021 hardcode_direct_CXX=yes
11022 hardcode_libdir_separator_CXX=':'
11023 link_all_deplibs_CXX=yes
11025 if test "$GXX" = yes; then
11026 case $host_os in aix4.[012]|aix4.[012].*)
11027 # We only want to do this on AIX 4.2 and lower, the check
11028 # below for broken collect2 doesn't work under 4.3+
11029 collect2name=`${CC} -print-prog-name=collect2`
11030 if test -f "$collect2name" && \
11031 strings "$collect2name" | grep resolve_lib_name >/dev/null
11032 then
11033 # We have reworked collect2
11034 hardcode_direct_CXX=yes
11035 else
11036 # We have old collect2
11037 hardcode_direct_CXX=unsupported
11038 # It fails to find uninstalled libraries when the uninstalled
11039 # path is not listed in the libpath. Setting hardcode_minus_L
11040 # to unsupported forces relinking
11041 hardcode_minus_L_CXX=yes
11042 hardcode_libdir_flag_spec_CXX='-L$libdir'
11043 hardcode_libdir_separator_CXX=
11044 fi
11045 ;;
11046 esac
11047 shared_flag='-shared'
11048 if test "$aix_use_runtimelinking" = yes; then
11049 shared_flag="$shared_flag "'${wl}-G'
11050 fi
11051 else
11052 # not using gcc
11053 if test "$host_cpu" = ia64; then
11054 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11055 # chokes on -Wl,-G. The following line is correct:
11056 shared_flag='-G'
11057 else
11058 if test "$aix_use_runtimelinking" = yes; then
11059 shared_flag='${wl}-G'
11060 else
11061 shared_flag='${wl}-bM:SRE'
11062 fi
11063 fi
11064 fi
11066 # It seems that -bexpall does not export symbols beginning with
11067 # underscore (_), so it is better to generate a list of symbols to export.
11068 always_export_symbols_CXX=yes
11069 if test "$aix_use_runtimelinking" = yes; then
11070 # Warning - without using the other runtime loading flags (-brtl),
11071 # -berok will link without error, but may produce a broken library.
11072 allow_undefined_flag_CXX='-berok'
11073 # Determine the default libpath from the value encoded in an empty executable.
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11081 int
11082 main ()
11083 {
11085 ;
11086 return 0;
11087 }
11088 _ACEOF
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && {
11103 test -z "$ac_cxx_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest$ac_exeext &&
11106 $as_test_x conftest$ac_exeext; then
11108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11109 }'`
11110 # Check for a 64-bit object if we didn't find anything.
11111 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; }
11112 }'`; fi
11113 else
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11118 fi
11120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11121 conftest$ac_exeext conftest.$ac_ext
11122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11124 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11126 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"
11127 else
11128 if test "$host_cpu" = ia64; then
11129 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11130 allow_undefined_flag_CXX="-z nodefs"
11131 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"
11132 else
11133 # Determine the default libpath from the value encoded in an empty executable.
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11141 int
11142 main ()
11143 {
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_link") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_cxx_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest$ac_exeext &&
11166 $as_test_x conftest$ac_exeext; then
11168 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11169 }'`
11170 # Check for a 64-bit object if we didn't find anything.
11171 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; }
11172 }'`; fi
11173 else
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11178 fi
11180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11181 conftest$ac_exeext conftest.$ac_ext
11182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11184 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11185 # Warning - without using the other run time loading flags,
11186 # -berok will link without error, but may produce a broken library.
11187 no_undefined_flag_CXX=' ${wl}-bernotok'
11188 allow_undefined_flag_CXX=' ${wl}-berok'
11189 # Exported symbols can be pulled into shared objects from archives
11190 whole_archive_flag_spec_CXX='$convenience'
11191 archive_cmds_need_lc_CXX=yes
11192 # This is similar to how AIX traditionally builds its shared libraries.
11193 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'
11194 fi
11195 fi
11196 ;;
11198 beos*)
11199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11200 allow_undefined_flag_CXX=unsupported
11201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11202 # support --undefined. This deserves some investigation. FIXME
11203 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11204 else
11205 ld_shlibs_CXX=no
11206 fi
11207 ;;
11209 chorus*)
11210 case $cc_basename in
11211 *)
11212 # FIXME: insert proper C++ library support
11213 ld_shlibs_CXX=no
11214 ;;
11215 esac
11216 ;;
11218 cygwin* | mingw* | pw32*)
11219 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11220 # as there is no search path for DLLs.
11221 hardcode_libdir_flag_spec_CXX='-L$libdir'
11222 allow_undefined_flag_CXX=unsupported
11223 always_export_symbols_CXX=no
11224 enable_shared_with_static_runtimes_CXX=yes
11226 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11227 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'
11228 # If the export-symbols file already is a .def file (1st line
11229 # is EXPORTS), use it as is; otherwise, prepend...
11230 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11231 cp $export_symbols $output_objdir/$soname.def;
11232 else
11233 echo EXPORTS > $output_objdir/$soname.def;
11234 cat $export_symbols >> $output_objdir/$soname.def;
11235 fi~
11236 $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'
11237 else
11238 ld_shlibs_CXX=no
11239 fi
11240 ;;
11241 darwin* | rhapsody*)
11242 case $host_os in
11243 rhapsody* | darwin1.[012])
11244 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11245 ;;
11246 *) # Darwin 1.3 on
11247 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11248 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11249 else
11250 case ${MACOSX_DEPLOYMENT_TARGET} in
11251 10.[012])
11252 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11253 ;;
11254 10.*)
11255 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11256 ;;
11257 esac
11258 fi
11259 ;;
11260 esac
11261 archive_cmds_need_lc_CXX=no
11262 hardcode_direct_CXX=no
11263 hardcode_automatic_CXX=yes
11264 hardcode_shlibpath_var_CXX=unsupported
11265 whole_archive_flag_spec_CXX=''
11266 link_all_deplibs_CXX=yes
11268 if test "$GXX" = yes ; then
11269 lt_int_apple_cc_single_mod=no
11270 output_verbose_link_cmd='echo'
11271 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11272 lt_int_apple_cc_single_mod=yes
11273 fi
11274 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11275 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11276 else
11277 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'
11278 fi
11279 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11281 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11282 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}'
11283 else
11284 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}'
11285 fi
11286 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}'
11287 else
11288 case $cc_basename in
11289 xlc*)
11290 output_verbose_link_cmd='echo'
11291 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'
11292 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11293 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11294 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}'
11295 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}'
11296 ;;
11297 *)
11298 ld_shlibs_CXX=no
11299 ;;
11300 esac
11301 fi
11302 ;;
11304 dgux*)
11305 case $cc_basename in
11306 ec++*)
11307 # FIXME: insert proper C++ library support
11308 ld_shlibs_CXX=no
11309 ;;
11310 ghcx*)
11311 # Green Hills C++ Compiler
11312 # FIXME: insert proper C++ library support
11313 ld_shlibs_CXX=no
11314 ;;
11315 *)
11316 # FIXME: insert proper C++ library support
11317 ld_shlibs_CXX=no
11318 ;;
11319 esac
11320 ;;
11321 freebsd[12]*)
11322 # C++ shared libraries reported to be fairly broken before switch to ELF
11323 ld_shlibs_CXX=no
11324 ;;
11325 freebsd-elf*)
11326 archive_cmds_need_lc_CXX=no
11327 ;;
11328 freebsd* | dragonfly*)
11329 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11330 # conventions
11331 ld_shlibs_CXX=yes
11332 ;;
11333 gnu*)
11334 ;;
11335 hpux9*)
11336 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11337 hardcode_libdir_separator_CXX=:
11338 export_dynamic_flag_spec_CXX='${wl}-E'
11339 hardcode_direct_CXX=yes
11340 hardcode_minus_L_CXX=yes # Not in the search PATH,
11341 # but as the default
11342 # location of the library.
11344 case $cc_basename in
11345 CC*)
11346 # FIXME: insert proper C++ library support
11347 ld_shlibs_CXX=no
11348 ;;
11349 aCC*)
11350 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'
11351 # Commands to make compiler produce verbose output that lists
11352 # what "hidden" libraries, object files and flags are used when
11353 # linking a shared library.
11354 #
11355 # There doesn't appear to be a way to prevent this compiler from
11356 # explicitly linking system object files so we need to strip them
11357 # from the output so that they don't get included in the library
11358 # dependencies.
11359 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'
11360 ;;
11361 *)
11362 if test "$GXX" = yes; then
11363 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'
11364 else
11365 # FIXME: insert proper C++ library support
11366 ld_shlibs_CXX=no
11367 fi
11368 ;;
11369 esac
11370 ;;
11371 hpux10*|hpux11*)
11372 if test $with_gnu_ld = no; then
11373 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11374 hardcode_libdir_separator_CXX=:
11376 case $host_cpu in
11377 hppa*64*|ia64*)
11378 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11379 ;;
11380 *)
11381 export_dynamic_flag_spec_CXX='${wl}-E'
11382 ;;
11383 esac
11384 fi
11385 case $host_cpu in
11386 hppa*64*|ia64*)
11387 hardcode_direct_CXX=no
11388 hardcode_shlibpath_var_CXX=no
11389 ;;
11390 *)
11391 hardcode_direct_CXX=yes
11392 hardcode_minus_L_CXX=yes # Not in the search PATH,
11393 # but as the default
11394 # location of the library.
11395 ;;
11396 esac
11398 case $cc_basename in
11399 CC*)
11400 # FIXME: insert proper C++ library support
11401 ld_shlibs_CXX=no
11402 ;;
11403 aCC*)
11404 case $host_cpu in
11405 hppa*64*)
11406 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11407 ;;
11408 ia64*)
11409 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11410 ;;
11411 *)
11412 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11413 ;;
11414 esac
11415 # Commands to make compiler produce verbose output that lists
11416 # what "hidden" libraries, object files and flags are used when
11417 # linking a shared library.
11418 #
11419 # There doesn't appear to be a way to prevent this compiler from
11420 # explicitly linking system object files so we need to strip them
11421 # from the output so that they don't get included in the library
11422 # dependencies.
11423 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'
11424 ;;
11425 *)
11426 if test "$GXX" = yes; then
11427 if test $with_gnu_ld = no; then
11428 case $host_cpu in
11429 hppa*64*)
11430 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11431 ;;
11432 ia64*)
11433 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11434 ;;
11435 *)
11436 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'
11437 ;;
11438 esac
11439 fi
11440 else
11441 # FIXME: insert proper C++ library support
11442 ld_shlibs_CXX=no
11443 fi
11444 ;;
11445 esac
11446 ;;
11447 interix3*)
11448 hardcode_direct_CXX=no
11449 hardcode_shlibpath_var_CXX=no
11450 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11451 export_dynamic_flag_spec_CXX='${wl}-E'
11452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11453 # Instead, shared libraries are loaded at an image base (0x10000000 by
11454 # default) and relocated if they conflict, which is a slow very memory
11455 # consuming and fragmenting process. To avoid this, we pick a random,
11456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11458 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'
11459 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'
11460 ;;
11461 irix5* | irix6*)
11462 case $cc_basename in
11463 CC*)
11464 # SGI C++
11465 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'
11467 # Archives containing C++ object files must be created using
11468 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11469 # necessary to make sure instantiated templates are included
11470 # in the archive.
11471 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11472 ;;
11473 *)
11474 if test "$GXX" = yes; then
11475 if test "$with_gnu_ld" = no; then
11476 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'
11477 else
11478 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'
11479 fi
11480 fi
11481 link_all_deplibs_CXX=yes
11482 ;;
11483 esac
11484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11485 hardcode_libdir_separator_CXX=:
11486 ;;
11487 linux* | k*bsd*-gnu)
11488 case $cc_basename in
11489 KCC*)
11490 # Kuck and Associates, Inc. (KAI) C++ Compiler
11492 # KCC will only create a shared library if the output file
11493 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11494 # to its proper name (with version) after linking.
11495 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'
11496 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'
11497 # Commands to make compiler produce verbose output that lists
11498 # what "hidden" libraries, object files and flags are used when
11499 # linking a shared library.
11500 #
11501 # There doesn't appear to be a way to prevent this compiler from
11502 # explicitly linking system object files so we need to strip them
11503 # from the output so that they don't get included in the library
11504 # dependencies.
11505 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'
11507 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11508 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11510 # Archives containing C++ object files must be created using
11511 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11512 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11513 ;;
11514 icpc*)
11515 # Intel C++
11516 with_gnu_ld=yes
11517 # version 8.0 and above of icpc choke on multiply defined symbols
11518 # if we add $predep_objects and $postdep_objects, however 7.1 and
11519 # earlier do not add the objects themselves.
11520 case `$CC -V 2>&1` in
11521 *"Version 7."*)
11522 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11523 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'
11524 ;;
11525 *) # Version 8.0 or newer
11526 tmp_idyn=
11527 case $host_cpu in
11528 ia64*) tmp_idyn=' -i_dynamic';;
11529 esac
11530 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11531 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'
11532 ;;
11533 esac
11534 archive_cmds_need_lc_CXX=no
11535 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11537 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11538 ;;
11539 pgCC*)
11540 # Portland Group C++ compiler
11541 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11542 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'
11544 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11546 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'
11547 ;;
11548 cxx*)
11549 # Compaq C++
11550 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11551 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'
11553 runpath_var=LD_RUN_PATH
11554 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11555 hardcode_libdir_separator_CXX=:
11557 # Commands to make compiler produce verbose output that lists
11558 # what "hidden" libraries, object files and flags are used when
11559 # linking a shared library.
11560 #
11561 # There doesn't appear to be a way to prevent this compiler from
11562 # explicitly linking system object files so we need to strip them
11563 # from the output so that they don't get included in the library
11564 # dependencies.
11565 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'
11566 ;;
11567 esac
11568 ;;
11569 lynxos*)
11570 # FIXME: insert proper C++ library support
11571 ld_shlibs_CXX=no
11572 ;;
11573 m88k*)
11574 # FIXME: insert proper C++ library support
11575 ld_shlibs_CXX=no
11576 ;;
11577 mvs*)
11578 case $cc_basename in
11579 cxx*)
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11582 ;;
11583 *)
11584 # FIXME: insert proper C++ library support
11585 ld_shlibs_CXX=no
11586 ;;
11587 esac
11588 ;;
11589 netbsd* | netbsdelf*-gnu)
11590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11591 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11592 wlarc=
11593 hardcode_libdir_flag_spec_CXX='-R$libdir'
11594 hardcode_direct_CXX=yes
11595 hardcode_shlibpath_var_CXX=no
11596 fi
11597 # Workaround some broken pre-1.5 toolchains
11598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11599 ;;
11600 openbsd2*)
11601 # C++ shared libraries are fairly broken
11602 ld_shlibs_CXX=no
11603 ;;
11604 openbsd*)
11605 hardcode_direct_CXX=yes
11606 hardcode_shlibpath_var_CXX=no
11607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11610 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11611 export_dynamic_flag_spec_CXX='${wl}-E'
11612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11613 fi
11614 output_verbose_link_cmd='echo'
11615 ;;
11616 osf3*)
11617 case $cc_basename in
11618 KCC*)
11619 # Kuck and Associates, Inc. (KAI) C++ Compiler
11621 # KCC will only create a shared library if the output file
11622 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11623 # to its proper name (with version) after linking.
11624 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'
11626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11627 hardcode_libdir_separator_CXX=:
11629 # Archives containing C++ object files must be created using
11630 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11631 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11633 ;;
11634 RCC*)
11635 # Rational C++ 2.4.1
11636 # FIXME: insert proper C++ library support
11637 ld_shlibs_CXX=no
11638 ;;
11639 cxx*)
11640 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11641 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'
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11644 hardcode_libdir_separator_CXX=:
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11649 #
11650 # There doesn't appear to be a way to prevent this compiler from
11651 # explicitly linking system object files so we need to strip them
11652 # from the output so that they don't get included in the library
11653 # dependencies.
11654 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'
11655 ;;
11656 *)
11657 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11659 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'
11661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11662 hardcode_libdir_separator_CXX=:
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11669 else
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11672 fi
11673 ;;
11674 esac
11675 ;;
11676 osf4* | osf5*)
11677 case $cc_basename in
11678 KCC*)
11679 # Kuck and Associates, Inc. (KAI) C++ Compiler
11681 # KCC will only create a shared library if the output file
11682 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11683 # to its proper name (with version) after linking.
11684 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'
11686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11687 hardcode_libdir_separator_CXX=:
11689 # Archives containing C++ object files must be created using
11690 # the KAI C++ compiler.
11691 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11692 ;;
11693 RCC*)
11694 # Rational C++ 2.4.1
11695 # FIXME: insert proper C++ library support
11696 ld_shlibs_CXX=no
11697 ;;
11698 cxx*)
11699 allow_undefined_flag_CXX=' -expect_unresolved \*'
11700 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'
11701 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11702 echo "-hidden">> $lib.exp~
11703 $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~
11704 $rm $lib.exp'
11706 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11707 hardcode_libdir_separator_CXX=:
11709 # Commands to make compiler produce verbose output that lists
11710 # what "hidden" libraries, object files and flags are used when
11711 # linking a shared library.
11712 #
11713 # There doesn't appear to be a way to prevent this compiler from
11714 # explicitly linking system object files so we need to strip them
11715 # from the output so that they don't get included in the library
11716 # dependencies.
11717 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'
11718 ;;
11719 *)
11720 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11722 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'
11724 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11725 hardcode_libdir_separator_CXX=:
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11732 else
11733 # FIXME: insert proper C++ library support
11734 ld_shlibs_CXX=no
11735 fi
11736 ;;
11737 esac
11738 ;;
11739 psos*)
11740 # FIXME: insert proper C++ library support
11741 ld_shlibs_CXX=no
11742 ;;
11743 sunos4*)
11744 case $cc_basename in
11745 CC*)
11746 # Sun C++ 4.x
11747 # FIXME: insert proper C++ library support
11748 ld_shlibs_CXX=no
11749 ;;
11750 lcc*)
11751 # Lucid
11752 # FIXME: insert proper C++ library support
11753 ld_shlibs_CXX=no
11754 ;;
11755 *)
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11758 ;;
11759 esac
11760 ;;
11761 solaris*)
11762 case $cc_basename in
11763 CC*)
11764 # Sun C++ 4.2, 5.x and Centerline C++
11765 archive_cmds_need_lc_CXX=yes
11766 no_undefined_flag_CXX=' -zdefs'
11767 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11768 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11769 $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'
11771 hardcode_libdir_flag_spec_CXX='-R$libdir'
11772 hardcode_shlibpath_var_CXX=no
11773 case $host_os in
11774 solaris2.[0-5] | solaris2.[0-5].*) ;;
11775 *)
11776 # The C++ compiler is used as linker so we must use $wl
11777 # flag to pass the commands to the underlying system
11778 # linker. We must also pass each convience library through
11779 # to the system linker between allextract/defaultextract.
11780 # The C++ compiler will combine linker options so we
11781 # cannot just pass the convience library names through
11782 # without $wl.
11783 # Supported since Solaris 2.6 (maybe 2.5.1?)
11784 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'
11785 ;;
11786 esac
11787 link_all_deplibs_CXX=yes
11789 output_verbose_link_cmd='echo'
11791 # Archives containing C++ object files must be created using
11792 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11793 # necessary to make sure instantiated templates are included
11794 # in the archive.
11795 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11796 ;;
11797 gcx*)
11798 # Green Hills C++ Compiler
11799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11801 # The C++ compiler must be used to create the archive.
11802 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11803 ;;
11804 *)
11805 # GNU C++ compiler with Solaris linker
11806 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11807 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11808 if $CC --version | grep -v '^2\.7' > /dev/null; then
11809 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11810 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11811 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11813 # Commands to make compiler produce verbose output that lists
11814 # what "hidden" libraries, object files and flags are used when
11815 # linking a shared library.
11816 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11817 else
11818 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11819 # platform.
11820 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11821 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11822 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11824 # Commands to make compiler produce verbose output that lists
11825 # what "hidden" libraries, object files and flags are used when
11826 # linking a shared library.
11827 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11828 fi
11830 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11831 fi
11832 ;;
11833 esac
11834 ;;
11835 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11836 no_undefined_flag_CXX='${wl}-z,text'
11837 archive_cmds_need_lc_CXX=no
11838 hardcode_shlibpath_var_CXX=no
11839 runpath_var='LD_RUN_PATH'
11841 case $cc_basename in
11842 CC*)
11843 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845 ;;
11846 *)
11847 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11848 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11849 ;;
11850 esac
11851 ;;
11852 sysv5* | sco3.2v5* | sco5v6*)
11853 # Note: We can NOT use -z defs as we might desire, because we do not
11854 # link with -lc, and that would cause any symbols used from libc to
11855 # always be unresolved, which means just about no library would
11856 # ever link correctly. If we're not using GNU ld we use -z text
11857 # though, which does catch some bad symbols but isn't as heavy-handed
11858 # as -z defs.
11859 # For security reasons, it is highly recommended that you always
11860 # use absolute paths for naming shared libraries, and exclude the
11861 # DT_RUNPATH tag from executables and libraries. But doing so
11862 # requires that you compile everything twice, which is a pain.
11863 # So that behaviour is only enabled if SCOABSPATH is set to a
11864 # non-empty value in the environment. Most likely only useful for
11865 # creating official distributions of packages.
11866 # This is a hack until libtool officially supports absolute path
11867 # names for shared libraries.
11868 no_undefined_flag_CXX='${wl}-z,text'
11869 allow_undefined_flag_CXX='${wl}-z,nodefs'
11870 archive_cmds_need_lc_CXX=no
11871 hardcode_shlibpath_var_CXX=no
11872 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11873 hardcode_libdir_separator_CXX=':'
11874 link_all_deplibs_CXX=yes
11875 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11876 runpath_var='LD_RUN_PATH'
11878 case $cc_basename in
11879 CC*)
11880 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 ;;
11883 *)
11884 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11886 ;;
11887 esac
11888 ;;
11889 tandem*)
11890 case $cc_basename in
11891 NCC*)
11892 # NonStop-UX NCC 3.20
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11895 ;;
11896 *)
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11899 ;;
11900 esac
11901 ;;
11902 vxworks*)
11903 # FIXME: insert proper C++ library support
11904 ld_shlibs_CXX=no
11905 ;;
11906 *)
11907 # FIXME: insert proper C++ library support
11908 ld_shlibs_CXX=no
11909 ;;
11910 esac
11911 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11912 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11913 test "$ld_shlibs_CXX" = no && can_build_shared=no
11915 GCC_CXX="$GXX"
11916 LD_CXX="$LD"
11919 cat > conftest.$ac_ext <<EOF
11920 class Foo
11921 {
11922 public:
11923 Foo (void) { a = 0; }
11924 private:
11925 int a;
11926 };
11927 EOF
11929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930 (eval $ac_compile) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; then
11934 # Parse the compiler output and extract the necessary
11935 # objects, libraries and library flags.
11937 # Sentinel used to keep track of whether or not we are before
11938 # the conftest object file.
11939 pre_test_object_deps_done=no
11941 # The `*' in the case matches for architectures that use `case' in
11942 # $output_verbose_cmd can trigger glob expansion during the loop
11943 # eval without this substitution.
11944 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11946 for p in `eval $output_verbose_link_cmd`; do
11947 case $p in
11949 -L* | -R* | -l*)
11950 # Some compilers place space between "-{L,R}" and the path.
11951 # Remove the space.
11952 if test $p = "-L" \
11953 || test $p = "-R"; then
11954 prev=$p
11955 continue
11956 else
11957 prev=
11958 fi
11960 if test "$pre_test_object_deps_done" = no; then
11961 case $p in
11962 -L* | -R*)
11963 # Internal compiler library paths should come after those
11964 # provided the user. The postdeps already come after the
11965 # user supplied libs so there is no need to process them.
11966 if test -z "$compiler_lib_search_path_CXX"; then
11967 compiler_lib_search_path_CXX="${prev}${p}"
11968 else
11969 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11970 fi
11971 ;;
11972 # The "-l" case would never come before the object being
11973 # linked, so don't bother handling this case.
11974 esac
11975 else
11976 if test -z "$postdeps_CXX"; then
11977 postdeps_CXX="${prev}${p}"
11978 else
11979 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11980 fi
11981 fi
11982 ;;
11984 *.$objext)
11985 # This assumes that the test object file only shows up
11986 # once in the compiler output.
11987 if test "$p" = "conftest.$objext"; then
11988 pre_test_object_deps_done=yes
11989 continue
11990 fi
11992 if test "$pre_test_object_deps_done" = no; then
11993 if test -z "$predep_objects_CXX"; then
11994 predep_objects_CXX="$p"
11995 else
11996 predep_objects_CXX="$predep_objects_CXX $p"
11997 fi
11998 else
11999 if test -z "$postdep_objects_CXX"; then
12000 postdep_objects_CXX="$p"
12001 else
12002 postdep_objects_CXX="$postdep_objects_CXX $p"
12003 fi
12004 fi
12005 ;;
12007 *) ;; # Ignore the rest.
12009 esac
12010 done
12012 # Clean up.
12013 rm -f a.out a.exe
12014 else
12015 echo "libtool.m4: error: problem compiling CXX test program"
12016 fi
12018 $rm -f confest.$objext
12020 # PORTME: override above test on systems where it is broken
12021 case $host_os in
12022 interix3*)
12023 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12024 # hack all around it, let's just trust "g++" to DTRT.
12025 predep_objects_CXX=
12026 postdep_objects_CXX=
12027 postdeps_CXX=
12028 ;;
12030 solaris*)
12031 case $cc_basename in
12032 CC*)
12033 # Adding this requires a known-good setup of shared libraries for
12034 # Sun compiler versions before 5.6, else PIC objects from an old
12035 # archive will be linked into the output, leading to subtle bugs.
12036 postdeps_CXX='-lCstd -lCrun'
12037 ;;
12038 esac
12039 ;;
12040 esac
12043 case " $postdeps_CXX " in
12044 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12045 esac
12047 lt_prog_compiler_wl_CXX=
12048 lt_prog_compiler_pic_CXX=
12049 lt_prog_compiler_static_CXX=
12051 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12052 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12054 # C++ specific cases for pic, static, wl, etc.
12055 if test "$GXX" = yes; then
12056 lt_prog_compiler_wl_CXX='-Wl,'
12057 lt_prog_compiler_static_CXX='-static'
12059 case $host_os in
12060 aix*)
12061 # All AIX code is PIC.
12062 if test "$host_cpu" = ia64; then
12063 # AIX 5 now supports IA64 processor
12064 lt_prog_compiler_static_CXX='-Bstatic'
12065 fi
12066 ;;
12067 amigaos*)
12068 # FIXME: we need at least 68020 code to build shared libraries, but
12069 # adding the `-m68020' flag to GCC prevents building anything better,
12070 # like `-m68040'.
12071 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12072 ;;
12073 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12074 # PIC is the default for these OSes.
12075 ;;
12076 mingw* | os2* | pw32*)
12077 # This hack is so that the source file can tell whether it is being
12078 # built for inclusion in a dll (and should export symbols for example).
12079 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12080 ;;
12081 darwin* | rhapsody*)
12082 # PIC is the default on this platform
12083 # Common symbols not allowed in MH_DYLIB files
12084 lt_prog_compiler_pic_CXX='-fno-common'
12085 ;;
12086 *djgpp*)
12087 # DJGPP does not support shared libraries at all
12088 lt_prog_compiler_pic_CXX=
12089 ;;
12090 interix3*)
12091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12092 # Instead, we relocate shared libraries at runtime.
12093 ;;
12094 sysv4*MP*)
12095 if test -d /usr/nec; then
12096 lt_prog_compiler_pic_CXX=-Kconform_pic
12097 fi
12098 ;;
12099 hpux*)
12100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12101 # not for PA HP-UX.
12102 case $host_cpu in
12103 hppa*64*|ia64*)
12104 ;;
12105 *)
12106 lt_prog_compiler_pic_CXX='-fPIC'
12107 ;;
12108 esac
12109 ;;
12110 *)
12111 lt_prog_compiler_pic_CXX='-fPIC'
12112 ;;
12113 esac
12114 else
12115 case $host_os in
12116 aix4* | aix5*)
12117 # All AIX code is PIC.
12118 if test "$host_cpu" = ia64; then
12119 # AIX 5 now supports IA64 processor
12120 lt_prog_compiler_static_CXX='-Bstatic'
12121 else
12122 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12123 fi
12124 ;;
12125 chorus*)
12126 case $cc_basename in
12127 cxch68*)
12128 # Green Hills C++ Compiler
12129 # _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"
12130 ;;
12131 esac
12132 ;;
12133 darwin*)
12134 # PIC is the default on this platform
12135 # Common symbols not allowed in MH_DYLIB files
12136 case $cc_basename in
12137 xlc*)
12138 lt_prog_compiler_pic_CXX='-qnocommon'
12139 lt_prog_compiler_wl_CXX='-Wl,'
12140 ;;
12141 esac
12142 ;;
12143 dgux*)
12144 case $cc_basename in
12145 ec++*)
12146 lt_prog_compiler_pic_CXX='-KPIC'
12147 ;;
12148 ghcx*)
12149 # Green Hills C++ Compiler
12150 lt_prog_compiler_pic_CXX='-pic'
12151 ;;
12152 *)
12153 ;;
12154 esac
12155 ;;
12156 freebsd* | dragonfly*)
12157 # FreeBSD uses GNU C++
12158 ;;
12159 hpux9* | hpux10* | hpux11*)
12160 case $cc_basename in
12161 CC*)
12162 lt_prog_compiler_wl_CXX='-Wl,'
12163 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12164 if test "$host_cpu" != ia64; then
12165 lt_prog_compiler_pic_CXX='+Z'
12166 fi
12167 ;;
12168 aCC*)
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12171 case $host_cpu in
12172 hppa*64*|ia64*)
12173 # +Z the default
12174 ;;
12175 *)
12176 lt_prog_compiler_pic_CXX='+Z'
12177 ;;
12178 esac
12179 ;;
12180 *)
12181 ;;
12182 esac
12183 ;;
12184 interix*)
12185 # This is c89, which is MS Visual C++ (no shared libs)
12186 # Anyone wants to do a port?
12187 ;;
12188 irix5* | irix6* | nonstopux*)
12189 case $cc_basename in
12190 CC*)
12191 lt_prog_compiler_wl_CXX='-Wl,'
12192 lt_prog_compiler_static_CXX='-non_shared'
12193 # CC pic flag -KPIC is the default.
12194 ;;
12195 *)
12196 ;;
12197 esac
12198 ;;
12199 linux* | k*bsd*-gnu)
12200 case $cc_basename in
12201 KCC*)
12202 # KAI C++ Compiler
12203 lt_prog_compiler_wl_CXX='--backend -Wl,'
12204 lt_prog_compiler_pic_CXX='-fPIC'
12205 ;;
12206 icpc* | ecpc*)
12207 # Intel C++
12208 lt_prog_compiler_wl_CXX='-Wl,'
12209 lt_prog_compiler_pic_CXX='-KPIC'
12210 lt_prog_compiler_static_CXX='-static'
12211 ;;
12212 pgCC*)
12213 # Portland Group C++ compiler.
12214 lt_prog_compiler_wl_CXX='-Wl,'
12215 lt_prog_compiler_pic_CXX='-fpic'
12216 lt_prog_compiler_static_CXX='-Bstatic'
12217 ;;
12218 cxx*)
12219 # Compaq C++
12220 # Make sure the PIC flag is empty. It appears that all Alpha
12221 # Linux and Compaq Tru64 Unix objects are PIC.
12222 lt_prog_compiler_pic_CXX=
12223 lt_prog_compiler_static_CXX='-non_shared'
12224 ;;
12225 *)
12226 ;;
12227 esac
12228 ;;
12229 lynxos*)
12230 ;;
12231 m88k*)
12232 ;;
12233 mvs*)
12234 case $cc_basename in
12235 cxx*)
12236 lt_prog_compiler_pic_CXX='-W c,exportall'
12237 ;;
12238 *)
12239 ;;
12240 esac
12241 ;;
12242 netbsd* | netbsdelf*-gnu)
12243 ;;
12244 osf3* | osf4* | osf5*)
12245 case $cc_basename in
12246 KCC*)
12247 lt_prog_compiler_wl_CXX='--backend -Wl,'
12248 ;;
12249 RCC*)
12250 # Rational C++ 2.4.1
12251 lt_prog_compiler_pic_CXX='-pic'
12252 ;;
12253 cxx*)
12254 # Digital/Compaq C++
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 # Make sure the PIC flag is empty. It appears that all Alpha
12257 # Linux and Compaq Tru64 Unix objects are PIC.
12258 lt_prog_compiler_pic_CXX=
12259 lt_prog_compiler_static_CXX='-non_shared'
12260 ;;
12261 *)
12262 ;;
12263 esac
12264 ;;
12265 psos*)
12266 ;;
12267 solaris*)
12268 case $cc_basename in
12269 CC*)
12270 # Sun C++ 4.2, 5.x and Centerline C++
12271 lt_prog_compiler_pic_CXX='-KPIC'
12272 lt_prog_compiler_static_CXX='-Bstatic'
12273 lt_prog_compiler_wl_CXX='-Qoption ld '
12274 ;;
12275 gcx*)
12276 # Green Hills C++ Compiler
12277 lt_prog_compiler_pic_CXX='-PIC'
12278 ;;
12279 *)
12280 ;;
12281 esac
12282 ;;
12283 sunos4*)
12284 case $cc_basename in
12285 CC*)
12286 # Sun C++ 4.x
12287 lt_prog_compiler_pic_CXX='-pic'
12288 lt_prog_compiler_static_CXX='-Bstatic'
12289 ;;
12290 lcc*)
12291 # Lucid
12292 lt_prog_compiler_pic_CXX='-pic'
12293 ;;
12294 *)
12295 ;;
12296 esac
12297 ;;
12298 tandem*)
12299 case $cc_basename in
12300 NCC*)
12301 # NonStop-UX NCC 3.20
12302 lt_prog_compiler_pic_CXX='-KPIC'
12303 ;;
12304 *)
12305 ;;
12306 esac
12307 ;;
12308 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12309 case $cc_basename in
12310 CC*)
12311 lt_prog_compiler_wl_CXX='-Wl,'
12312 lt_prog_compiler_pic_CXX='-KPIC'
12313 lt_prog_compiler_static_CXX='-Bstatic'
12314 ;;
12315 esac
12316 ;;
12317 vxworks*)
12318 ;;
12319 *)
12320 lt_prog_compiler_can_build_shared_CXX=no
12321 ;;
12322 esac
12323 fi
12325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12326 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12328 #
12329 # Check to make sure the PIC flag actually works.
12330 #
12331 if test -n "$lt_prog_compiler_pic_CXX"; then
12333 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12335 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338 lt_prog_compiler_pic_works_CXX=no
12339 ac_outfile=conftest.$ac_objext
12340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12341 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12342 # Insert the option either (1) after the last *FLAGS variable, or
12343 # (2) before a word containing "conftest.", or (3) at the end.
12344 # Note that $ac_compile itself does not contain backslashes and begins
12345 # with a dollar sign (not a hyphen), so the echo should work correctly.
12346 # The option is referenced via a variable to avoid confusing sed.
12347 lt_compile=`echo "$ac_compile" | $SED \
12348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12350 -e 's:$: $lt_compiler_flag:'`
12351 (eval echo "\"\$as_me:12351: $lt_compile\"" >&5)
12352 (eval "$lt_compile" 2>conftest.err)
12353 ac_status=$?
12354 cat conftest.err >&5
12355 echo "$as_me:12355: \$? = $ac_status" >&5
12356 if (exit $ac_status) && test -s "$ac_outfile"; then
12357 # The compiler can only warn and ignore the option if not recognized
12358 # So say no if there are warnings other than the usual output.
12359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12362 lt_prog_compiler_pic_works_CXX=yes
12363 fi
12364 fi
12365 $rm conftest*
12367 fi
12368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12369 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12371 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12372 case $lt_prog_compiler_pic_CXX in
12373 "" | " "*) ;;
12374 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12375 esac
12376 else
12377 lt_prog_compiler_pic_CXX=
12378 lt_prog_compiler_can_build_shared_CXX=no
12379 fi
12381 fi
12382 case $host_os in
12383 # For platforms which do not support PIC, -DPIC is meaningless:
12384 *djgpp*)
12385 lt_prog_compiler_pic_CXX=
12386 ;;
12387 *)
12388 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12389 ;;
12390 esac
12392 #
12393 # Check to make sure the static flag actually works.
12394 #
12395 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12396 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12398 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 lt_prog_compiler_static_works_CXX=no
12402 save_LDFLAGS="$LDFLAGS"
12403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12404 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12406 # The linker can only warn and ignore the option if not recognized
12407 # So say no if there are warnings
12408 if test -s conftest.err; then
12409 # Append any errors to the config.log.
12410 cat conftest.err 1>&5
12411 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12413 if diff conftest.exp conftest.er2 >/dev/null; then
12414 lt_prog_compiler_static_works_CXX=yes
12415 fi
12416 else
12417 lt_prog_compiler_static_works_CXX=yes
12418 fi
12419 fi
12420 $rm conftest*
12421 LDFLAGS="$save_LDFLAGS"
12423 fi
12424 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12425 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12427 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12428 :
12429 else
12430 lt_prog_compiler_static_CXX=
12431 fi
12434 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12436 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439 lt_cv_prog_compiler_c_o_CXX=no
12440 $rm -r conftest 2>/dev/null
12441 mkdir conftest
12442 cd conftest
12443 mkdir out
12444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12446 lt_compiler_flag="-o out/conftest2.$ac_objext"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 lt_compile=`echo "$ac_compile" | $SED \
12452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12454 -e 's:$: $lt_compiler_flag:'`
12455 (eval echo "\"\$as_me:12455: $lt_compile\"" >&5)
12456 (eval "$lt_compile" 2>out/conftest.err)
12457 ac_status=$?
12458 cat out/conftest.err >&5
12459 echo "$as_me:12459: \$? = $ac_status" >&5
12460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12461 then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings
12464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12467 lt_cv_prog_compiler_c_o_CXX=yes
12468 fi
12469 fi
12470 chmod u+w . 2>&5
12471 $rm conftest*
12472 # SGI C++ compiler will create directory out/ii_files/ for
12473 # template instantiation
12474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12475 $rm out/* && rmdir out
12476 cd ..
12477 rmdir conftest
12478 $rm conftest*
12480 fi
12481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12485 hard_links="nottested"
12486 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12487 # do not overwrite the value of need_locks provided by the user
12488 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12490 hard_links=yes
12491 $rm conftest*
12492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12493 touch conftest.a
12494 ln conftest.a conftest.b 2>&5 || hard_links=no
12495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12496 { echo "$as_me:$LINENO: result: $hard_links" >&5
12497 echo "${ECHO_T}$hard_links" >&6; }
12498 if test "$hard_links" = no; then
12499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12501 need_locks=warn
12502 fi
12503 else
12504 need_locks=no
12505 fi
12507 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12510 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12511 case $host_os in
12512 aix4* | aix5*)
12513 # If we're using GNU nm, then we don't want the "-C" option.
12514 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12515 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12516 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'
12517 else
12518 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'
12519 fi
12520 ;;
12521 pw32*)
12522 export_symbols_cmds_CXX="$ltdll_cmds"
12523 ;;
12524 cygwin* | mingw*)
12525 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'
12526 ;;
12527 linux* | k*bsd*-gnu)
12528 link_all_deplibs_CXX=no
12529 ;;
12530 *)
12531 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12532 ;;
12533 esac
12535 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12536 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12537 test "$ld_shlibs_CXX" = no && can_build_shared=no
12539 #
12540 # Do we need to explicitly link libc?
12541 #
12542 case "x$archive_cmds_need_lc_CXX" in
12543 x|xyes)
12544 # Assume -lc should be added
12545 archive_cmds_need_lc_CXX=yes
12547 if test "$enable_shared" = yes && test "$GCC" = yes; then
12548 case $archive_cmds_CXX in
12549 *'~'*)
12550 # FIXME: we may have to deal with multi-command sequences.
12551 ;;
12552 '$CC '*)
12553 # Test whether the compiler implicitly links with -lc since on some
12554 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12555 # to ld, don't add -lc before -lgcc.
12556 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12557 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12558 $rm conftest*
12559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } 2>conftest.err; then
12566 soname=conftest
12567 lib=conftest
12568 libobjs=conftest.$ac_objext
12569 deplibs=
12570 wl=$lt_prog_compiler_wl_CXX
12571 pic_flag=$lt_prog_compiler_pic_CXX
12572 compiler_flags=-v
12573 linker_flags=-v
12574 verstring=
12575 output_objdir=.
12576 libname=conftest
12577 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12578 allow_undefined_flag_CXX=
12579 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12580 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }
12584 then
12585 archive_cmds_need_lc_CXX=no
12586 else
12587 archive_cmds_need_lc_CXX=yes
12588 fi
12589 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12590 else
12591 cat conftest.err 1>&5
12592 fi
12593 $rm conftest*
12594 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12595 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12596 ;;
12597 esac
12598 fi
12599 ;;
12600 esac
12602 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12603 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12604 library_names_spec=
12605 libname_spec='lib$name'
12606 soname_spec=
12607 shrext_cmds=".so"
12608 postinstall_cmds=
12609 postuninstall_cmds=
12610 finish_cmds=
12611 finish_eval=
12612 shlibpath_var=
12613 shlibpath_overrides_runpath=unknown
12614 version_type=none
12615 dynamic_linker="$host_os ld.so"
12616 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12617 if test "$GCC" = yes; then
12618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12619 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12620 # if the path contains ";" then we assume it to be the separator
12621 # otherwise default to the standard path separator (i.e. ":") - it is
12622 # assumed that no part of a normal pathname contains ";" but that should
12623 # okay in the real world where ";" in dirpaths is itself problematic.
12624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12625 else
12626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12627 fi
12628 else
12629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12630 fi
12631 need_lib_prefix=unknown
12632 hardcode_into_libs=no
12634 # when you set need_version to no, make sure it does not cause -set_version
12635 # flags to be left without arguments
12636 need_version=unknown
12638 case $host_os in
12639 aix3*)
12640 version_type=linux
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12642 shlibpath_var=LIBPATH
12644 # AIX 3 has no versioning support, so we append a major version to the name.
12645 soname_spec='${libname}${release}${shared_ext}$major'
12646 ;;
12648 aix4* | aix5*)
12649 version_type=linux
12650 need_lib_prefix=no
12651 need_version=no
12652 hardcode_into_libs=yes
12653 if test "$host_cpu" = ia64; then
12654 # AIX 5 supports IA64
12655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 else
12658 # With GCC up to 2.95.x, collect2 would create an import file
12659 # for dependence libraries. The import file would start with
12660 # the line `#! .'. This would cause the generated library to
12661 # depend on `.', always an invalid library. This was fixed in
12662 # development snapshots of GCC prior to 3.0.
12663 case $host_os in
12664 aix4 | aix4.[01] | aix4.[01].*)
12665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12666 echo ' yes '
12667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12668 :
12669 else
12670 can_build_shared=no
12671 fi
12672 ;;
12673 esac
12674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12675 # soname into executable. Probably we can add versioning support to
12676 # collect2, so additional links can be useful in future.
12677 if test "$aix_use_runtimelinking" = yes; then
12678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12679 # instead of lib<name>.a to let people know that these are not
12680 # typical AIX shared libraries.
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682 else
12683 # We preserve .a as extension for shared libraries through AIX4.2
12684 # and later when we are not doing run time linking.
12685 library_names_spec='${libname}${release}.a $libname.a'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 fi
12688 shlibpath_var=LIBPATH
12689 fi
12690 ;;
12692 amigaos*)
12693 library_names_spec='$libname.ixlibrary $libname.a'
12694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12695 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'
12696 ;;
12698 beos*)
12699 library_names_spec='${libname}${shared_ext}'
12700 dynamic_linker="$host_os ld.so"
12701 shlibpath_var=LIBRARY_PATH
12702 ;;
12704 bsdi[45]*)
12705 version_type=linux
12706 need_version=no
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12708 soname_spec='${libname}${release}${shared_ext}$major'
12709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12713 # the default ld.so.conf also contains /usr/contrib/lib and
12714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12715 # libtool to hard-code these into programs
12716 ;;
12718 cygwin* | mingw* | pw32*)
12719 version_type=windows
12720 shrext_cmds=".dll"
12721 need_version=no
12722 need_lib_prefix=no
12724 case $GCC,$host_os in
12725 yes,cygwin* | yes,mingw* | yes,pw32*)
12726 library_names_spec='$libname.dll.a'
12727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12728 postinstall_cmds='base_file=`basename \${file}`~
12729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12730 dldir=$destdir/`dirname \$dlpath`~
12731 test -d \$dldir || mkdir -p \$dldir~
12732 $install_prog $dir/$dlname \$dldir/$dlname~
12733 chmod a+x \$dldir/$dlname'
12734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12735 dlpath=$dir/\$dldll~
12736 $rm \$dlpath'
12737 shlibpath_overrides_runpath=yes
12739 case $host_os in
12740 cygwin*)
12741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12743 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12744 ;;
12745 mingw*)
12746 # MinGW DLLs use traditional 'lib' prefix
12747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12749 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12750 # It is most probably a Windows format PATH printed by
12751 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12752 # path with ; separators, and with drive letters. We can handle the
12753 # drive letters (cygwin fileutils understands them), so leave them,
12754 # especially as we might pass files found there to a mingw objdump,
12755 # which wouldn't understand a cygwinified path. Ahh.
12756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12757 else
12758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12759 fi
12760 ;;
12761 pw32*)
12762 # pw32 DLLs use 'pw' prefix rather than 'lib'
12763 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12764 ;;
12765 esac
12766 ;;
12768 *)
12769 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12770 ;;
12771 esac
12772 dynamic_linker='Win32 ld.exe'
12773 # FIXME: first we should search . and the directory the executable is in
12774 shlibpath_var=PATH
12775 ;;
12777 darwin* | rhapsody*)
12778 dynamic_linker="$host_os dyld"
12779 version_type=darwin
12780 need_lib_prefix=no
12781 need_version=no
12782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12783 soname_spec='${libname}${release}${major}$shared_ext'
12784 shlibpath_overrides_runpath=yes
12785 shlibpath_var=DYLD_LIBRARY_PATH
12786 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12787 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12788 if test "$GCC" = yes; then
12789 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"`
12790 else
12791 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12792 fi
12793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12794 ;;
12796 dgux*)
12797 version_type=linux
12798 need_lib_prefix=no
12799 need_version=no
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 ;;
12805 freebsd1*)
12806 dynamic_linker=no
12807 ;;
12809 freebsd* | dragonfly*)
12810 # DragonFly does not have aout. When/if they implement a new
12811 # versioning mechanism, adjust this.
12812 if test -x /usr/bin/objformat; then
12813 objformat=`/usr/bin/objformat`
12814 else
12815 case $host_os in
12816 freebsd[123]*) objformat=aout ;;
12817 *) objformat=elf ;;
12818 esac
12819 fi
12820 version_type=freebsd-$objformat
12821 case $version_type in
12822 freebsd-elf*)
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12824 need_version=no
12825 need_lib_prefix=no
12826 ;;
12827 freebsd-*)
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12829 need_version=yes
12830 ;;
12831 esac
12832 shlibpath_var=LD_LIBRARY_PATH
12833 case $host_os in
12834 freebsd2*)
12835 shlibpath_overrides_runpath=yes
12836 ;;
12837 freebsd3.[01]* | freebsdelf3.[01]*)
12838 shlibpath_overrides_runpath=yes
12839 hardcode_into_libs=yes
12840 ;;
12841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12843 shlibpath_overrides_runpath=no
12844 hardcode_into_libs=yes
12845 ;;
12846 freebsd*) # from 4.6 on
12847 shlibpath_overrides_runpath=yes
12848 hardcode_into_libs=yes
12849 ;;
12850 esac
12851 ;;
12853 gnu*)
12854 version_type=linux
12855 need_lib_prefix=no
12856 need_version=no
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12858 soname_spec='${libname}${release}${shared_ext}$major'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 hardcode_into_libs=yes
12861 ;;
12863 hpux9* | hpux10* | hpux11*)
12864 # Give a soname corresponding to the major version so that dld.sl refuses to
12865 # link against other versions.
12866 version_type=sunos
12867 need_lib_prefix=no
12868 need_version=no
12869 case $host_cpu in
12870 ia64*)
12871 shrext_cmds='.so'
12872 hardcode_into_libs=yes
12873 dynamic_linker="$host_os dld.so"
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 if test "X$HPUX_IA64_MODE" = X32; then
12879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12880 else
12881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12882 fi
12883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12884 ;;
12885 hppa*64*)
12886 shrext_cmds='.sl'
12887 hardcode_into_libs=yes
12888 dynamic_linker="$host_os dld.sl"
12889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12895 ;;
12896 *)
12897 shrext_cmds='.sl'
12898 dynamic_linker="$host_os dld.sl"
12899 shlibpath_var=SHLIB_PATH
12900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902 soname_spec='${libname}${release}${shared_ext}$major'
12903 ;;
12904 esac
12905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12906 postinstall_cmds='chmod 555 $lib'
12907 ;;
12909 interix3*)
12910 version_type=linux
12911 need_lib_prefix=no
12912 need_version=no
12913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12914 soname_spec='${libname}${release}${shared_ext}$major'
12915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 shlibpath_overrides_runpath=no
12918 hardcode_into_libs=yes
12919 ;;
12921 irix5* | irix6* | nonstopux*)
12922 case $host_os in
12923 nonstopux*) version_type=nonstopux ;;
12924 *)
12925 if test "$lt_cv_prog_gnu_ld" = yes; then
12926 version_type=linux
12927 else
12928 version_type=irix
12929 fi ;;
12930 esac
12931 need_lib_prefix=no
12932 need_version=no
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12935 case $host_os in
12936 irix5* | nonstopux*)
12937 libsuff= shlibsuff=
12938 ;;
12939 *)
12940 case $LD in # libtool.m4 will add one of these switches to LD
12941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12942 libsuff= shlibsuff= libmagic=32-bit;;
12943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12944 libsuff=32 shlibsuff=N32 libmagic=N32;;
12945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12947 *) libsuff= shlibsuff= libmagic=never-match;;
12948 esac
12949 ;;
12950 esac
12951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12952 shlibpath_overrides_runpath=no
12953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12955 hardcode_into_libs=yes
12956 ;;
12958 # No shared lib support for Linux oldld, aout, or coff.
12959 linux*oldld* | linux*aout* | linux*coff*)
12960 dynamic_linker=no
12961 ;;
12963 # This must be Linux ELF.
12964 linux* | k*bsd*-gnu)
12965 version_type=linux
12966 need_lib_prefix=no
12967 need_version=no
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 shlibpath_overrides_runpath=no
12973 # This implies no fast_install, which is unacceptable.
12974 # Some rework will be needed to allow for fast_install
12975 # before this can be enabled.
12976 hardcode_into_libs=yes
12978 # Append ld.so.conf contents to the search path
12979 if test -f /etc/ld.so.conf; then
12980 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' ' '`
12981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12982 fi
12984 # We used to test for /lib/ld.so.1 and disable shared libraries on
12985 # powerpc, because MkLinux only supported shared libraries with the
12986 # GNU dynamic linker. Since this was broken with cross compilers,
12987 # most powerpc-linux boxes support dynamic linking these days and
12988 # people can always --disable-shared, the test was removed, and we
12989 # assume the GNU/Linux dynamic linker is in use.
12990 dynamic_linker='GNU/Linux ld.so'
12991 ;;
12993 netbsdelf*-gnu)
12994 version_type=linux
12995 need_lib_prefix=no
12996 need_version=no
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 shlibpath_var=LD_LIBRARY_PATH
13000 shlibpath_overrides_runpath=no
13001 hardcode_into_libs=yes
13002 dynamic_linker='NetBSD ld.elf_so'
13003 ;;
13005 netbsd*)
13006 version_type=sunos
13007 need_lib_prefix=no
13008 need_version=no
13009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13012 dynamic_linker='NetBSD (a.out) ld.so'
13013 else
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13015 soname_spec='${libname}${release}${shared_ext}$major'
13016 dynamic_linker='NetBSD ld.elf_so'
13017 fi
13018 shlibpath_var=LD_LIBRARY_PATH
13019 shlibpath_overrides_runpath=yes
13020 hardcode_into_libs=yes
13021 ;;
13023 newsos6)
13024 version_type=linux
13025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=yes
13028 ;;
13030 nto-qnx*)
13031 version_type=linux
13032 need_lib_prefix=no
13033 need_version=no
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13035 soname_spec='${libname}${release}${shared_ext}$major'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 shlibpath_overrides_runpath=yes
13038 ;;
13040 openbsd*)
13041 version_type=sunos
13042 sys_lib_dlsearch_path_spec="/usr/lib"
13043 need_lib_prefix=no
13044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13045 case $host_os in
13046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13047 *) need_version=no ;;
13048 esac
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13053 case $host_os in
13054 openbsd2.[89] | openbsd2.[89].*)
13055 shlibpath_overrides_runpath=no
13056 ;;
13057 *)
13058 shlibpath_overrides_runpath=yes
13059 ;;
13060 esac
13061 else
13062 shlibpath_overrides_runpath=yes
13063 fi
13064 ;;
13066 os2*)
13067 libname_spec='$name'
13068 shrext_cmds=".dll"
13069 need_lib_prefix=no
13070 library_names_spec='$libname${shared_ext} $libname.a'
13071 dynamic_linker='OS/2 ld.exe'
13072 shlibpath_var=LIBPATH
13073 ;;
13075 osf3* | osf4* | osf5*)
13076 version_type=osf
13077 need_lib_prefix=no
13078 need_version=no
13079 soname_spec='${libname}${release}${shared_ext}$major'
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13084 ;;
13086 solaris*)
13087 version_type=linux
13088 need_lib_prefix=no
13089 need_version=no
13090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13091 soname_spec='${libname}${release}${shared_ext}$major'
13092 shlibpath_var=LD_LIBRARY_PATH
13093 shlibpath_overrides_runpath=yes
13094 hardcode_into_libs=yes
13095 # ldd complains unless libraries are executable
13096 postinstall_cmds='chmod +x $lib'
13097 ;;
13099 sunos4*)
13100 version_type=sunos
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 shlibpath_overrides_runpath=yes
13105 if test "$with_gnu_ld" = yes; then
13106 need_lib_prefix=no
13107 fi
13108 need_version=yes
13109 ;;
13111 sysv4 | sysv4.3*)
13112 version_type=linux
13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13114 soname_spec='${libname}${release}${shared_ext}$major'
13115 shlibpath_var=LD_LIBRARY_PATH
13116 case $host_vendor in
13117 sni)
13118 shlibpath_overrides_runpath=no
13119 need_lib_prefix=no
13120 export_dynamic_flag_spec='${wl}-Blargedynsym'
13121 runpath_var=LD_RUN_PATH
13122 ;;
13123 siemens)
13124 need_lib_prefix=no
13125 ;;
13126 motorola)
13127 need_lib_prefix=no
13128 need_version=no
13129 shlibpath_overrides_runpath=no
13130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13131 ;;
13132 esac
13133 ;;
13135 sysv4*MP*)
13136 if test -d /usr/nec ;then
13137 version_type=linux
13138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13139 soname_spec='$libname${shared_ext}.$major'
13140 shlibpath_var=LD_LIBRARY_PATH
13141 fi
13142 ;;
13144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13145 version_type=freebsd-elf
13146 need_lib_prefix=no
13147 need_version=no
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13149 soname_spec='${libname}${release}${shared_ext}$major'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 hardcode_into_libs=yes
13152 if test "$with_gnu_ld" = yes; then
13153 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13154 shlibpath_overrides_runpath=no
13155 else
13156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13157 shlibpath_overrides_runpath=yes
13158 case $host_os in
13159 sco3.2v5*)
13160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13161 ;;
13162 esac
13163 fi
13164 sys_lib_dlsearch_path_spec='/usr/lib'
13165 ;;
13167 uts4*)
13168 version_type=linux
13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13170 soname_spec='${libname}${release}${shared_ext}$major'
13171 shlibpath_var=LD_LIBRARY_PATH
13172 ;;
13174 *)
13175 dynamic_linker=no
13176 ;;
13177 esac
13178 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13179 echo "${ECHO_T}$dynamic_linker" >&6; }
13180 test "$dynamic_linker" = no && can_build_shared=no
13182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13183 if test "$GCC" = yes; then
13184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13185 fi
13187 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13188 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13189 hardcode_action_CXX=
13190 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13191 test -n "$runpath_var_CXX" || \
13192 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13194 # We can hardcode non-existant directories.
13195 if test "$hardcode_direct_CXX" != no &&
13196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13197 # have to relink, otherwise we might link with an installed library
13198 # when we should be linking with a yet-to-be-installed one
13199 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13200 test "$hardcode_minus_L_CXX" != no; then
13201 # Linking always hardcodes the temporary library directory.
13202 hardcode_action_CXX=relink
13203 else
13204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13205 hardcode_action_CXX=immediate
13206 fi
13207 else
13208 # We cannot hardcode anything, or else we can only hardcode existing
13209 # directories.
13210 hardcode_action_CXX=unsupported
13211 fi
13212 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13213 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13215 if test "$hardcode_action_CXX" = relink; then
13216 # Fast installation is not supported
13217 enable_fast_install=no
13218 elif test "$shlibpath_overrides_runpath" = yes ||
13219 test "$enable_shared" = no; then
13220 # Fast installation is not necessary
13221 enable_fast_install=needless
13222 fi
13225 # The else clause should only fire when bootstrapping the
13226 # libtool distribution, otherwise you forgot to ship ltmain.sh
13227 # with your package, and you will get complaints that there are
13228 # no rules to generate ltmain.sh.
13229 if test -f "$ltmain"; then
13230 # See if we are running on zsh, and set the options which allow our commands through
13231 # without removal of \ escapes.
13232 if test -n "${ZSH_VERSION+set}" ; then
13233 setopt NO_GLOB_SUBST
13234 fi
13235 # Now quote all the things that may contain metacharacters while being
13236 # careful not to overquote the AC_SUBSTed values. We take copies of the
13237 # variables and quote the copies for generation of the libtool script.
13238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13239 SED SHELL STRIP \
13240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13242 deplibs_check_method reload_flag reload_cmds need_locks \
13243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13244 lt_cv_sys_global_symbol_to_c_name_address \
13245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13246 old_postinstall_cmds old_postuninstall_cmds \
13247 compiler_CXX \
13248 CC_CXX \
13249 LD_CXX \
13250 lt_prog_compiler_wl_CXX \
13251 lt_prog_compiler_pic_CXX \
13252 lt_prog_compiler_static_CXX \
13253 lt_prog_compiler_no_builtin_flag_CXX \
13254 export_dynamic_flag_spec_CXX \
13255 thread_safe_flag_spec_CXX \
13256 whole_archive_flag_spec_CXX \
13257 enable_shared_with_static_runtimes_CXX \
13258 old_archive_cmds_CXX \
13259 old_archive_from_new_cmds_CXX \
13260 predep_objects_CXX \
13261 postdep_objects_CXX \
13262 predeps_CXX \
13263 postdeps_CXX \
13264 compiler_lib_search_path_CXX \
13265 archive_cmds_CXX \
13266 archive_expsym_cmds_CXX \
13267 postinstall_cmds_CXX \
13268 postuninstall_cmds_CXX \
13269 old_archive_from_expsyms_cmds_CXX \
13270 allow_undefined_flag_CXX \
13271 no_undefined_flag_CXX \
13272 export_symbols_cmds_CXX \
13273 hardcode_libdir_flag_spec_CXX \
13274 hardcode_libdir_flag_spec_ld_CXX \
13275 hardcode_libdir_separator_CXX \
13276 hardcode_automatic_CXX \
13277 module_cmds_CXX \
13278 module_expsym_cmds_CXX \
13279 lt_cv_prog_compiler_c_o_CXX \
13280 exclude_expsyms_CXX \
13281 include_expsyms_CXX; do
13283 case $var in
13284 old_archive_cmds_CXX | \
13285 old_archive_from_new_cmds_CXX | \
13286 archive_cmds_CXX | \
13287 archive_expsym_cmds_CXX | \
13288 module_cmds_CXX | \
13289 module_expsym_cmds_CXX | \
13290 old_archive_from_expsyms_cmds_CXX | \
13291 export_symbols_cmds_CXX | \
13292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13293 postinstall_cmds | postuninstall_cmds | \
13294 old_postinstall_cmds | old_postuninstall_cmds | \
13295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13296 # Double-quote double-evaled strings.
13297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13298 ;;
13299 *)
13300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13301 ;;
13302 esac
13303 done
13305 case $lt_echo in
13306 *'\$0 --fallback-echo"')
13307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13308 ;;
13309 esac
13311 cfgfile="$ofile"
13313 cat <<__EOF__ >> "$cfgfile"
13314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13318 # Shell to use when invoking shell scripts.
13319 SHELL=$lt_SHELL
13321 # Whether or not to build shared libraries.
13322 build_libtool_libs=$enable_shared
13324 # Whether or not to build static libraries.
13325 build_old_libs=$enable_static
13327 # Whether or not to add -lc for building shared libraries.
13328 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13330 # Whether or not to disallow shared libs when runtime libs are static
13331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13333 # Whether or not to optimize for fast installation.
13334 fast_install=$enable_fast_install
13336 # The host system.
13337 host_alias=$host_alias
13338 host=$host
13339 host_os=$host_os
13341 # The build system.
13342 build_alias=$build_alias
13343 build=$build
13344 build_os=$build_os
13346 # An echo program that does not interpret backslashes.
13347 echo=$lt_echo
13349 # The archiver.
13350 AR=$lt_AR
13351 AR_FLAGS=$lt_AR_FLAGS
13353 # A C compiler.
13354 LTCC=$lt_LTCC
13356 # LTCC compiler flags.
13357 LTCFLAGS=$lt_LTCFLAGS
13359 # A language-specific compiler.
13360 CC=$lt_compiler_CXX
13362 # Is the compiler the GNU C compiler?
13363 with_gcc=$GCC_CXX
13365 # An ERE matcher.
13366 EGREP=$lt_EGREP
13368 # The linker used to build libraries.
13369 LD=$lt_LD_CXX
13371 # Whether we need hard or soft links.
13372 LN_S=$lt_LN_S
13374 # A BSD-compatible nm program.
13375 NM=$lt_NM
13377 # A symbol stripping program
13378 STRIP=$lt_STRIP
13380 # Used to examine libraries when file_magic_cmd begins "file"
13381 MAGIC_CMD=$MAGIC_CMD
13383 # Used on cygwin: DLL creation program.
13384 DLLTOOL="$DLLTOOL"
13386 # Used on cygwin: object dumper.
13387 OBJDUMP="$OBJDUMP"
13389 # Used on cygwin: assembler.
13390 AS="$AS"
13392 # The name of the directory that contains temporary libtool files.
13393 objdir=$objdir
13395 # How to create reloadable object files.
13396 reload_flag=$lt_reload_flag
13397 reload_cmds=$lt_reload_cmds
13399 # How to pass a linker flag through the compiler.
13400 wl=$lt_lt_prog_compiler_wl_CXX
13402 # Object file suffix (normally "o").
13403 objext="$ac_objext"
13405 # Old archive suffix (normally "a").
13406 libext="$libext"
13408 # Shared library suffix (normally ".so").
13409 shrext_cmds='$shrext_cmds'
13411 # Executable file suffix (normally "").
13412 exeext="$exeext"
13414 # Additional compiler flags for building library objects.
13415 pic_flag=$lt_lt_prog_compiler_pic_CXX
13416 pic_mode=$pic_mode
13418 # What is the maximum length of a command?
13419 max_cmd_len=$lt_cv_sys_max_cmd_len
13421 # Does compiler simultaneously support -c and -o options?
13422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13424 # Must we lock files when doing compilation?
13425 need_locks=$lt_need_locks
13427 # Do we need the lib prefix for modules?
13428 need_lib_prefix=$need_lib_prefix
13430 # Do we need a version for libraries?
13431 need_version=$need_version
13433 # Whether dlopen is supported.
13434 dlopen_support=$enable_dlopen
13436 # Whether dlopen of programs is supported.
13437 dlopen_self=$enable_dlopen_self
13439 # Whether dlopen of statically linked programs is supported.
13440 dlopen_self_static=$enable_dlopen_self_static
13442 # Compiler flag to prevent dynamic linking.
13443 link_static_flag=$lt_lt_prog_compiler_static_CXX
13445 # Compiler flag to turn off builtin functions.
13446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13448 # Compiler flag to allow reflexive dlopens.
13449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13451 # Compiler flag to generate shared objects directly from archives.
13452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13454 # Compiler flag to generate thread-safe objects.
13455 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13457 # Library versioning type.
13458 version_type=$version_type
13460 # Format of library name prefix.
13461 libname_spec=$lt_libname_spec
13463 # List of archive names. First name is the real one, the rest are links.
13464 # The last name is the one that the linker finds with -lNAME.
13465 library_names_spec=$lt_library_names_spec
13467 # The coded name of the library, if different from the real name.
13468 soname_spec=$lt_soname_spec
13470 # Commands used to build and install an old-style archive.
13471 RANLIB=$lt_RANLIB
13472 old_archive_cmds=$lt_old_archive_cmds_CXX
13473 old_postinstall_cmds=$lt_old_postinstall_cmds
13474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13476 # Create an old-style archive from a shared archive.
13477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13479 # Create a temporary old-style archive to link instead of a shared archive.
13480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13482 # Commands used to build and install a shared archive.
13483 archive_cmds=$lt_archive_cmds_CXX
13484 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13485 postinstall_cmds=$lt_postinstall_cmds
13486 postuninstall_cmds=$lt_postuninstall_cmds
13488 # Commands used to build a loadable module (assumed same as above if empty)
13489 module_cmds=$lt_module_cmds_CXX
13490 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13492 # Commands to strip libraries.
13493 old_striplib=$lt_old_striplib
13494 striplib=$lt_striplib
13496 # Dependencies to place before the objects being linked to create a
13497 # shared library.
13498 predep_objects=$lt_predep_objects_CXX
13500 # Dependencies to place after the objects being linked to create a
13501 # shared library.
13502 postdep_objects=$lt_postdep_objects_CXX
13504 # Dependencies to place before the objects being linked to create a
13505 # shared library.
13506 predeps=$lt_predeps_CXX
13508 # Dependencies to place after the objects being linked to create a
13509 # shared library.
13510 postdeps=$lt_postdeps_CXX
13512 # The library search path used internally by the compiler when linking
13513 # a shared library.
13514 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13516 # Method to check whether dependent libraries are shared objects.
13517 deplibs_check_method=$lt_deplibs_check_method
13519 # Command to use when deplibs_check_method == file_magic.
13520 file_magic_cmd=$lt_file_magic_cmd
13522 # Flag that allows shared libraries with undefined symbols to be built.
13523 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13525 # Flag that forces no undefined symbols.
13526 no_undefined_flag=$lt_no_undefined_flag_CXX
13528 # Commands used to finish a libtool library installation in a directory.
13529 finish_cmds=$lt_finish_cmds
13531 # Same as above, but a single script fragment to be evaled but not shown.
13532 finish_eval=$lt_finish_eval
13534 # Take the output of nm and produce a listing of raw symbols and C names.
13535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13537 # Transform the output of nm in a proper C declaration
13538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13540 # Transform the output of nm in a C name address pair
13541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13543 # This is the shared library runtime path variable.
13544 runpath_var=$runpath_var
13546 # This is the shared library path variable.
13547 shlibpath_var=$shlibpath_var
13549 # Is shlibpath searched before the hard-coded library search path?
13550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13552 # How to hardcode a shared library path into an executable.
13553 hardcode_action=$hardcode_action_CXX
13555 # Whether we should hardcode library paths into libraries.
13556 hardcode_into_libs=$hardcode_into_libs
13558 # Flag to hardcode \$libdir into a binary during linking.
13559 # This must work even if \$libdir does not exist.
13560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13562 # If ld is used when linking, flag to hardcode \$libdir into
13563 # a binary during linking. This must work even if \$libdir does
13564 # not exist.
13565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13567 # Whether we need a single -rpath flag with a separated argument.
13568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13571 # resulting binary.
13572 hardcode_direct=$hardcode_direct_CXX
13574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13575 # resulting binary.
13576 hardcode_minus_L=$hardcode_minus_L_CXX
13578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13579 # the resulting binary.
13580 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13582 # Set to yes if building a shared library automatically hardcodes DIR into the library
13583 # and all subsequent libraries and executables linked against it.
13584 hardcode_automatic=$hardcode_automatic_CXX
13586 # Variables whose values should be saved in libtool wrapper scripts and
13587 # restored at relink time.
13588 variables_saved_for_relink="$variables_saved_for_relink"
13590 # Whether libtool must link a program against all its dependency libraries.
13591 link_all_deplibs=$link_all_deplibs_CXX
13593 # Compile-time system search path for libraries
13594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13596 # Run-time system search path for libraries
13597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13599 # Fix the shell variable \$srcfile for the compiler.
13600 fix_srcfile_path="$fix_srcfile_path_CXX"
13602 # Set to yes if exported symbols are required.
13603 always_export_symbols=$always_export_symbols_CXX
13605 # The commands to list exported symbols.
13606 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13608 # The commands to extract the exported symbol list from a shared archive.
13609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13611 # Symbols that should not be listed in the preloaded symbols.
13612 exclude_expsyms=$lt_exclude_expsyms_CXX
13614 # Symbols that must always be exported.
13615 include_expsyms=$lt_include_expsyms_CXX
13617 # ### END LIBTOOL TAG CONFIG: $tagname
13619 __EOF__
13622 else
13623 # If there is no Makefile yet, we rely on a make rule to execute
13624 # `config.status --recheck' to rerun these tests and create the
13625 # libtool script then.
13626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13627 if test -f "$ltmain_in"; then
13628 test -f Makefile && make "$ltmain"
13629 fi
13630 fi
13633 ac_ext=c
13634 ac_cpp='$CPP $CPPFLAGS'
13635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13639 CC=$lt_save_CC
13640 LDCXX=$LD
13641 LD=$lt_save_LD
13642 GCC=$lt_save_GCC
13643 with_gnu_ldcxx=$with_gnu_ld
13644 with_gnu_ld=$lt_save_with_gnu_ld
13645 lt_cv_path_LDCXX=$lt_cv_path_LD
13646 lt_cv_path_LD=$lt_save_path_LD
13647 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13648 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13650 else
13651 tagname=""
13652 fi
13653 ;;
13655 F77)
13656 if test -n "$F77" && test "X$F77" != "Xno"; then
13658 ac_ext=f
13659 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13660 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13661 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13664 archive_cmds_need_lc_F77=no
13665 allow_undefined_flag_F77=
13666 always_export_symbols_F77=no
13667 archive_expsym_cmds_F77=
13668 export_dynamic_flag_spec_F77=
13669 hardcode_direct_F77=no
13670 hardcode_libdir_flag_spec_F77=
13671 hardcode_libdir_flag_spec_ld_F77=
13672 hardcode_libdir_separator_F77=
13673 hardcode_minus_L_F77=no
13674 hardcode_automatic_F77=no
13675 module_cmds_F77=
13676 module_expsym_cmds_F77=
13677 link_all_deplibs_F77=unknown
13678 old_archive_cmds_F77=$old_archive_cmds
13679 no_undefined_flag_F77=
13680 whole_archive_flag_spec_F77=
13681 enable_shared_with_static_runtimes_F77=no
13683 # Source file extension for f77 test sources.
13684 ac_ext=f
13686 # Object file extension for compiled f77 test sources.
13687 objext=o
13688 objext_F77=$objext
13690 # Code to be used in simple compile tests
13691 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13693 # Code to be used in simple link tests
13694 lt_simple_link_test_code=" program t\n end\n"
13696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13698 # If no C compiler was specified, use CC.
13699 LTCC=${LTCC-"$CC"}
13701 # If no C compiler flags were specified, use CFLAGS.
13702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13704 # Allow CC to be a program name with arguments.
13705 compiler=$CC
13708 # save warnings/boilerplate of simple test code
13709 ac_outfile=conftest.$ac_objext
13710 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13712 _lt_compiler_boilerplate=`cat conftest.err`
13713 $rm conftest*
13715 ac_outfile=conftest.$ac_objext
13716 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13718 _lt_linker_boilerplate=`cat conftest.err`
13719 $rm conftest*
13722 # Allow CC to be a program name with arguments.
13723 lt_save_CC="$CC"
13724 CC=${F77-"f77"}
13725 compiler=$CC
13726 compiler_F77=$CC
13727 for cc_temp in $compiler""; do
13728 case $cc_temp in
13729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13731 \-*) ;;
13732 *) break;;
13733 esac
13734 done
13735 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13738 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13739 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13740 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13741 echo "${ECHO_T}$can_build_shared" >&6; }
13743 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13744 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13745 test "$can_build_shared" = "no" && enable_shared=no
13747 # On AIX, shared libraries and static libraries use the same namespace, and
13748 # are all built from PIC.
13749 case $host_os in
13750 aix3*)
13751 test "$enable_shared" = yes && enable_static=no
13752 if test -n "$RANLIB"; then
13753 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13754 postinstall_cmds='$RANLIB $lib'
13755 fi
13756 ;;
13757 aix4* | aix5*)
13758 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13759 test "$enable_shared" = yes && enable_static=no
13760 fi
13761 ;;
13762 esac
13763 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13764 echo "${ECHO_T}$enable_shared" >&6; }
13766 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13767 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13768 # Make sure either enable_shared or enable_static is yes.
13769 test "$enable_shared" = yes || enable_static=yes
13770 { echo "$as_me:$LINENO: result: $enable_static" >&5
13771 echo "${ECHO_T}$enable_static" >&6; }
13773 GCC_F77="$G77"
13774 LD_F77="$LD"
13776 lt_prog_compiler_wl_F77=
13777 lt_prog_compiler_pic_F77=
13778 lt_prog_compiler_static_F77=
13780 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13781 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13783 if test "$GCC" = yes; then
13784 lt_prog_compiler_wl_F77='-Wl,'
13785 lt_prog_compiler_static_F77='-static'
13787 case $host_os in
13788 aix*)
13789 # All AIX code is PIC.
13790 if test "$host_cpu" = ia64; then
13791 # AIX 5 now supports IA64 processor
13792 lt_prog_compiler_static_F77='-Bstatic'
13793 fi
13794 ;;
13796 amigaos*)
13797 # FIXME: we need at least 68020 code to build shared libraries, but
13798 # adding the `-m68020' flag to GCC prevents building anything better,
13799 # like `-m68040'.
13800 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13801 ;;
13803 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13804 # PIC is the default for these OSes.
13805 ;;
13807 mingw* | pw32* | os2*)
13808 # This hack is so that the source file can tell whether it is being
13809 # built for inclusion in a dll (and should export symbols for example).
13810 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13811 ;;
13813 darwin* | rhapsody*)
13814 # PIC is the default on this platform
13815 # Common symbols not allowed in MH_DYLIB files
13816 lt_prog_compiler_pic_F77='-fno-common'
13817 ;;
13819 interix3*)
13820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13821 # Instead, we relocate shared libraries at runtime.
13822 ;;
13824 msdosdjgpp*)
13825 # Just because we use GCC doesn't mean we suddenly get shared libraries
13826 # on systems that don't support them.
13827 lt_prog_compiler_can_build_shared_F77=no
13828 enable_shared=no
13829 ;;
13831 sysv4*MP*)
13832 if test -d /usr/nec; then
13833 lt_prog_compiler_pic_F77=-Kconform_pic
13834 fi
13835 ;;
13837 hpux*)
13838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13839 # not for PA HP-UX.
13840 case $host_cpu in
13841 hppa*64*|ia64*)
13842 # +Z the default
13843 ;;
13844 *)
13845 lt_prog_compiler_pic_F77='-fPIC'
13846 ;;
13847 esac
13848 ;;
13850 *)
13851 lt_prog_compiler_pic_F77='-fPIC'
13852 ;;
13853 esac
13854 else
13855 # PORTME Check for flag to pass linker flags through the system compiler.
13856 case $host_os in
13857 aix*)
13858 lt_prog_compiler_wl_F77='-Wl,'
13859 if test "$host_cpu" = ia64; then
13860 # AIX 5 now supports IA64 processor
13861 lt_prog_compiler_static_F77='-Bstatic'
13862 else
13863 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13864 fi
13865 ;;
13866 darwin*)
13867 # PIC is the default on this platform
13868 # Common symbols not allowed in MH_DYLIB files
13869 case $cc_basename in
13870 xlc*)
13871 lt_prog_compiler_pic_F77='-qnocommon'
13872 lt_prog_compiler_wl_F77='-Wl,'
13873 ;;
13874 esac
13875 ;;
13877 mingw* | pw32* | os2*)
13878 # This hack is so that the source file can tell whether it is being
13879 # built for inclusion in a dll (and should export symbols for example).
13880 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13881 ;;
13883 hpux9* | hpux10* | hpux11*)
13884 lt_prog_compiler_wl_F77='-Wl,'
13885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13886 # not for PA HP-UX.
13887 case $host_cpu in
13888 hppa*64*|ia64*)
13889 # +Z the default
13890 ;;
13891 *)
13892 lt_prog_compiler_pic_F77='+Z'
13893 ;;
13894 esac
13895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13896 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13897 ;;
13899 irix5* | irix6* | nonstopux*)
13900 lt_prog_compiler_wl_F77='-Wl,'
13901 # PIC (with -KPIC) is the default.
13902 lt_prog_compiler_static_F77='-non_shared'
13903 ;;
13905 newsos6)
13906 lt_prog_compiler_pic_F77='-KPIC'
13907 lt_prog_compiler_static_F77='-Bstatic'
13908 ;;
13910 linux* | k*bsd*-gnu)
13911 case $cc_basename in
13912 icc* | ecc*)
13913 lt_prog_compiler_wl_F77='-Wl,'
13914 lt_prog_compiler_pic_F77='-KPIC'
13915 lt_prog_compiler_static_F77='-static'
13916 ;;
13917 pgcc* | pgf77* | pgf90* | pgf95*)
13918 # Portland Group compilers (*not* the Pentium gcc compiler,
13919 # which looks to be a dead project)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 lt_prog_compiler_pic_F77='-fpic'
13922 lt_prog_compiler_static_F77='-Bstatic'
13923 ;;
13924 ccc*)
13925 lt_prog_compiler_wl_F77='-Wl,'
13926 # All Alpha code is PIC.
13927 lt_prog_compiler_static_F77='-non_shared'
13928 ;;
13929 esac
13930 ;;
13932 osf3* | osf4* | osf5*)
13933 lt_prog_compiler_wl_F77='-Wl,'
13934 # All OSF/1 code is PIC.
13935 lt_prog_compiler_static_F77='-non_shared'
13936 ;;
13938 solaris*)
13939 lt_prog_compiler_pic_F77='-KPIC'
13940 lt_prog_compiler_static_F77='-Bstatic'
13941 case $cc_basename in
13942 f77* | f90* | f95*)
13943 lt_prog_compiler_wl_F77='-Qoption ld ';;
13944 *)
13945 lt_prog_compiler_wl_F77='-Wl,';;
13946 esac
13947 ;;
13949 sunos4*)
13950 lt_prog_compiler_wl_F77='-Qoption ld '
13951 lt_prog_compiler_pic_F77='-PIC'
13952 lt_prog_compiler_static_F77='-Bstatic'
13953 ;;
13955 sysv4 | sysv4.2uw2* | sysv4.3*)
13956 lt_prog_compiler_wl_F77='-Wl,'
13957 lt_prog_compiler_pic_F77='-KPIC'
13958 lt_prog_compiler_static_F77='-Bstatic'
13959 ;;
13961 sysv4*MP*)
13962 if test -d /usr/nec ;then
13963 lt_prog_compiler_pic_F77='-Kconform_pic'
13964 lt_prog_compiler_static_F77='-Bstatic'
13965 fi
13966 ;;
13968 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969 lt_prog_compiler_wl_F77='-Wl,'
13970 lt_prog_compiler_pic_F77='-KPIC'
13971 lt_prog_compiler_static_F77='-Bstatic'
13972 ;;
13974 unicos*)
13975 lt_prog_compiler_wl_F77='-Wl,'
13976 lt_prog_compiler_can_build_shared_F77=no
13977 ;;
13979 uts4*)
13980 lt_prog_compiler_pic_F77='-pic'
13981 lt_prog_compiler_static_F77='-Bstatic'
13982 ;;
13984 *)
13985 lt_prog_compiler_can_build_shared_F77=no
13986 ;;
13987 esac
13988 fi
13990 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13991 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13993 #
13994 # Check to make sure the PIC flag actually works.
13995 #
13996 if test -n "$lt_prog_compiler_pic_F77"; then
13998 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13999 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14000 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 lt_prog_compiler_pic_works_F77=no
14004 ac_outfile=conftest.$ac_objext
14005 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14006 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14007 # Insert the option either (1) after the last *FLAGS variable, or
14008 # (2) before a word containing "conftest.", or (3) at the end.
14009 # Note that $ac_compile itself does not contain backslashes and begins
14010 # with a dollar sign (not a hyphen), so the echo should work correctly.
14011 # The option is referenced via a variable to avoid confusing sed.
14012 lt_compile=`echo "$ac_compile" | $SED \
14013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015 -e 's:$: $lt_compiler_flag:'`
14016 (eval echo "\"\$as_me:14016: $lt_compile\"" >&5)
14017 (eval "$lt_compile" 2>conftest.err)
14018 ac_status=$?
14019 cat conftest.err >&5
14020 echo "$as_me:14020: \$? = $ac_status" >&5
14021 if (exit $ac_status) && test -s "$ac_outfile"; then
14022 # The compiler can only warn and ignore the option if not recognized
14023 # So say no if there are warnings other than the usual output.
14024 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14027 lt_prog_compiler_pic_works_F77=yes
14028 fi
14029 fi
14030 $rm conftest*
14032 fi
14033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14034 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14036 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14037 case $lt_prog_compiler_pic_F77 in
14038 "" | " "*) ;;
14039 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14040 esac
14041 else
14042 lt_prog_compiler_pic_F77=
14043 lt_prog_compiler_can_build_shared_F77=no
14044 fi
14046 fi
14047 case $host_os in
14048 # For platforms which do not support PIC, -DPIC is meaningless:
14049 *djgpp*)
14050 lt_prog_compiler_pic_F77=
14051 ;;
14052 *)
14053 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14054 ;;
14055 esac
14057 #
14058 # Check to make sure the static flag actually works.
14059 #
14060 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14061 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14062 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14063 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 lt_prog_compiler_static_works_F77=no
14067 save_LDFLAGS="$LDFLAGS"
14068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14069 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14071 # The linker can only warn and ignore the option if not recognized
14072 # So say no if there are warnings
14073 if test -s conftest.err; then
14074 # Append any errors to the config.log.
14075 cat conftest.err 1>&5
14076 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14078 if diff conftest.exp conftest.er2 >/dev/null; then
14079 lt_prog_compiler_static_works_F77=yes
14080 fi
14081 else
14082 lt_prog_compiler_static_works_F77=yes
14083 fi
14084 fi
14085 $rm conftest*
14086 LDFLAGS="$save_LDFLAGS"
14088 fi
14089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14090 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14092 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14093 :
14094 else
14095 lt_prog_compiler_static_F77=
14096 fi
14099 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14101 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104 lt_cv_prog_compiler_c_o_F77=no
14105 $rm -r conftest 2>/dev/null
14106 mkdir conftest
14107 cd conftest
14108 mkdir out
14109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14111 lt_compiler_flag="-o out/conftest2.$ac_objext"
14112 # Insert the option either (1) after the last *FLAGS variable, or
14113 # (2) before a word containing "conftest.", or (3) at the end.
14114 # Note that $ac_compile itself does not contain backslashes and begins
14115 # with a dollar sign (not a hyphen), so the echo should work correctly.
14116 lt_compile=`echo "$ac_compile" | $SED \
14117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14119 -e 's:$: $lt_compiler_flag:'`
14120 (eval echo "\"\$as_me:14120: $lt_compile\"" >&5)
14121 (eval "$lt_compile" 2>out/conftest.err)
14122 ac_status=$?
14123 cat out/conftest.err >&5
14124 echo "$as_me:14124: \$? = $ac_status" >&5
14125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14126 then
14127 # The compiler can only warn and ignore the option if not recognized
14128 # So say no if there are warnings
14129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14132 lt_cv_prog_compiler_c_o_F77=yes
14133 fi
14134 fi
14135 chmod u+w . 2>&5
14136 $rm conftest*
14137 # SGI C++ compiler will create directory out/ii_files/ for
14138 # template instantiation
14139 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14140 $rm out/* && rmdir out
14141 cd ..
14142 rmdir conftest
14143 $rm conftest*
14145 fi
14146 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14150 hard_links="nottested"
14151 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14152 # do not overwrite the value of need_locks provided by the user
14153 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14154 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14155 hard_links=yes
14156 $rm conftest*
14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158 touch conftest.a
14159 ln conftest.a conftest.b 2>&5 || hard_links=no
14160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14161 { echo "$as_me:$LINENO: result: $hard_links" >&5
14162 echo "${ECHO_T}$hard_links" >&6; }
14163 if test "$hard_links" = no; then
14164 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14165 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14166 need_locks=warn
14167 fi
14168 else
14169 need_locks=no
14170 fi
14172 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14173 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14175 runpath_var=
14176 allow_undefined_flag_F77=
14177 enable_shared_with_static_runtimes_F77=no
14178 archive_cmds_F77=
14179 archive_expsym_cmds_F77=
14180 old_archive_From_new_cmds_F77=
14181 old_archive_from_expsyms_cmds_F77=
14182 export_dynamic_flag_spec_F77=
14183 whole_archive_flag_spec_F77=
14184 thread_safe_flag_spec_F77=
14185 hardcode_libdir_flag_spec_F77=
14186 hardcode_libdir_flag_spec_ld_F77=
14187 hardcode_libdir_separator_F77=
14188 hardcode_direct_F77=no
14189 hardcode_minus_L_F77=no
14190 hardcode_shlibpath_var_F77=unsupported
14191 link_all_deplibs_F77=unknown
14192 hardcode_automatic_F77=no
14193 module_cmds_F77=
14194 module_expsym_cmds_F77=
14195 always_export_symbols_F77=no
14196 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14197 # include_expsyms should be a list of space-separated symbols to be *always*
14198 # included in the symbol list
14199 include_expsyms_F77=
14200 # exclude_expsyms can be an extended regexp of symbols to exclude
14201 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14202 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14203 # as well as any symbol that contains `d'.
14204 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14205 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14206 # platforms (ab)use it in PIC code, but their linkers get confused if
14207 # the symbol is explicitly referenced. Since portable code cannot
14208 # rely on this symbol name, it's probably fine to never include it in
14209 # preloaded symbol tables.
14210 extract_expsyms_cmds=
14211 # Just being paranoid about ensuring that cc_basename is set.
14212 for cc_temp in $compiler""; do
14213 case $cc_temp in
14214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14216 \-*) ;;
14217 *) break;;
14218 esac
14219 done
14220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14222 case $host_os in
14223 cygwin* | mingw* | pw32*)
14224 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14225 # When not using gcc, we currently assume that we are using
14226 # Microsoft Visual C++.
14227 if test "$GCC" != yes; then
14228 with_gnu_ld=no
14229 fi
14230 ;;
14231 interix*)
14232 # we just hope/assume this is gcc and not c89 (= MSVC++)
14233 with_gnu_ld=yes
14234 ;;
14235 openbsd*)
14236 with_gnu_ld=no
14237 ;;
14238 esac
14240 ld_shlibs_F77=yes
14241 if test "$with_gnu_ld" = yes; then
14242 # If archive_cmds runs LD, not CC, wlarc should be empty
14243 wlarc='${wl}'
14245 # Set some defaults for GNU ld with shared library support. These
14246 # are reset later if shared libraries are not supported. Putting them
14247 # here allows them to be overridden if necessary.
14248 runpath_var=LD_RUN_PATH
14249 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14250 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14251 # ancient GNU ld didn't support --whole-archive et. al.
14252 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14253 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14254 else
14255 whole_archive_flag_spec_F77=
14256 fi
14257 supports_anon_versioning=no
14258 case `$LD -v 2>/dev/null` in
14259 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14260 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14261 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14262 *\ 2.11.*) ;; # other 2.11 versions
14263 *) supports_anon_versioning=yes ;;
14264 esac
14266 # See if GNU ld supports shared libraries.
14267 case $host_os in
14268 aix3* | aix4* | aix5*)
14269 # On AIX/PPC, the GNU linker is very broken
14270 if test "$host_cpu" != ia64; then
14271 ld_shlibs_F77=no
14272 cat <<EOF 1>&2
14274 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14275 *** to be unable to reliably create shared libraries on AIX.
14276 *** Therefore, libtool is disabling shared libraries support. If you
14277 *** really care for shared libraries, you may want to modify your PATH
14278 *** so that a non-GNU linker is found, and then restart.
14280 EOF
14281 fi
14282 ;;
14284 amigaos*)
14285 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)'
14286 hardcode_libdir_flag_spec_F77='-L$libdir'
14287 hardcode_minus_L_F77=yes
14289 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14290 # that the semantics of dynamic libraries on AmigaOS, at least up
14291 # to version 4, is to share data among multiple programs linked
14292 # with the same dynamic library. Since this doesn't match the
14293 # behavior of shared libraries on other platforms, we can't use
14294 # them.
14295 ld_shlibs_F77=no
14296 ;;
14298 beos*)
14299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300 allow_undefined_flag_F77=unsupported
14301 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14302 # support --undefined. This deserves some investigation. FIXME
14303 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304 else
14305 ld_shlibs_F77=no
14306 fi
14307 ;;
14309 cygwin* | mingw* | pw32*)
14310 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14311 # as there is no search path for DLLs.
14312 hardcode_libdir_flag_spec_F77='-L$libdir'
14313 allow_undefined_flag_F77=unsupported
14314 always_export_symbols_F77=no
14315 enable_shared_with_static_runtimes_F77=yes
14316 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14318 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14320 # If the export-symbols file already is a .def file (1st line
14321 # is EXPORTS), use it as is; otherwise, prepend...
14322 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14323 cp $export_symbols $output_objdir/$soname.def;
14324 else
14325 echo EXPORTS > $output_objdir/$soname.def;
14326 cat $export_symbols >> $output_objdir/$soname.def;
14327 fi~
14328 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14329 else
14330 ld_shlibs_F77=no
14331 fi
14332 ;;
14334 interix3*)
14335 hardcode_direct_F77=no
14336 hardcode_shlibpath_var_F77=no
14337 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14338 export_dynamic_flag_spec_F77='${wl}-E'
14339 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14340 # Instead, shared libraries are loaded at an image base (0x10000000 by
14341 # default) and relocated if they conflict, which is a slow very memory
14342 # consuming and fragmenting process. To avoid this, we pick a random,
14343 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14344 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14345 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'
14346 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'
14347 ;;
14349 linux* | k*bsd*-gnu)
14350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14351 tmp_addflag=
14352 case $cc_basename,$host_cpu in
14353 pgcc*) # Portland Group C compiler
14354 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'
14355 tmp_addflag=' $pic_flag'
14356 ;;
14357 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14358 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'
14359 tmp_addflag=' $pic_flag -Mnomain' ;;
14360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14361 tmp_addflag=' -i_dynamic' ;;
14362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14363 tmp_addflag=' -i_dynamic -nofor_main' ;;
14364 ifc* | ifort*) # Intel Fortran compiler
14365 tmp_addflag=' -nofor_main' ;;
14366 esac
14367 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369 if test $supports_anon_versioning = yes; then
14370 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14372 $echo "local: *; };" >> $output_objdir/$libname.ver~
14373 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14374 fi
14375 link_all_deplibs_F77=no
14376 else
14377 ld_shlibs_F77=no
14378 fi
14379 ;;
14381 netbsd* | netbsdelf*-gnu)
14382 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14383 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14384 wlarc=
14385 else
14386 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14387 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14388 fi
14389 ;;
14391 solaris*)
14392 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14393 ld_shlibs_F77=no
14394 cat <<EOF 1>&2
14396 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14397 *** create shared libraries on Solaris systems. Therefore, libtool
14398 *** is disabling shared libraries support. We urge you to upgrade GNU
14399 *** binutils to release 2.9.1 or newer. Another option is to modify
14400 *** your PATH or compiler configuration so that the native linker is
14401 *** used, and then restart.
14403 EOF
14404 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14405 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14406 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14407 else
14408 ld_shlibs_F77=no
14409 fi
14410 ;;
14412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14413 case `$LD -v 2>&1` in
14414 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14415 ld_shlibs_F77=no
14416 cat <<_LT_EOF 1>&2
14418 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14419 *** reliably create shared libraries on SCO systems. Therefore, libtool
14420 *** is disabling shared libraries support. We urge you to upgrade GNU
14421 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14422 *** your PATH or compiler configuration so that the native linker is
14423 *** used, and then restart.
14425 _LT_EOF
14426 ;;
14427 *)
14428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14429 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14430 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14431 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14432 else
14433 ld_shlibs_F77=no
14434 fi
14435 ;;
14436 esac
14437 ;;
14439 sunos4*)
14440 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441 wlarc=
14442 hardcode_direct_F77=yes
14443 hardcode_shlibpath_var_F77=no
14444 ;;
14446 *)
14447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14448 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14449 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14450 else
14451 ld_shlibs_F77=no
14452 fi
14453 ;;
14454 esac
14456 if test "$ld_shlibs_F77" = no; then
14457 runpath_var=
14458 hardcode_libdir_flag_spec_F77=
14459 export_dynamic_flag_spec_F77=
14460 whole_archive_flag_spec_F77=
14461 fi
14462 else
14463 # PORTME fill in a description of your system's linker (not GNU ld)
14464 case $host_os in
14465 aix3*)
14466 allow_undefined_flag_F77=unsupported
14467 always_export_symbols_F77=yes
14468 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'
14469 # Note: this linker hardcodes the directories in LIBPATH if there
14470 # are no directories specified by -L.
14471 hardcode_minus_L_F77=yes
14472 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14473 # Neither direct hardcoding nor static linking is supported with a
14474 # broken collect2.
14475 hardcode_direct_F77=unsupported
14476 fi
14477 ;;
14479 aix4* | aix5*)
14480 if test "$host_cpu" = ia64; then
14481 # On IA64, the linker does run time linking by default, so we don't
14482 # have to do anything special.
14483 aix_use_runtimelinking=no
14484 exp_sym_flag='-Bexport'
14485 no_entry_flag=""
14486 else
14487 # If we're using GNU nm, then we don't want the "-C" option.
14488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14489 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14490 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'
14491 else
14492 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'
14493 fi
14494 aix_use_runtimelinking=no
14496 # Test if we are trying to use run time linking or normal
14497 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14498 # need to do runtime linking.
14499 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14500 for ld_flag in $LDFLAGS; do
14501 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14502 aix_use_runtimelinking=yes
14503 break
14504 fi
14505 done
14506 ;;
14507 esac
14509 exp_sym_flag='-bexport'
14510 no_entry_flag='-bnoentry'
14511 fi
14513 # When large executables or shared objects are built, AIX ld can
14514 # have problems creating the table of contents. If linking a library
14515 # or program results in "error TOC overflow" add -mminimal-toc to
14516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14519 archive_cmds_F77=''
14520 hardcode_direct_F77=yes
14521 hardcode_libdir_separator_F77=':'
14522 link_all_deplibs_F77=yes
14524 if test "$GCC" = yes; then
14525 case $host_os in aix4.[012]|aix4.[012].*)
14526 # We only want to do this on AIX 4.2 and lower, the check
14527 # below for broken collect2 doesn't work under 4.3+
14528 collect2name=`${CC} -print-prog-name=collect2`
14529 if test -f "$collect2name" && \
14530 strings "$collect2name" | grep resolve_lib_name >/dev/null
14531 then
14532 # We have reworked collect2
14533 hardcode_direct_F77=yes
14534 else
14535 # We have old collect2
14536 hardcode_direct_F77=unsupported
14537 # It fails to find uninstalled libraries when the uninstalled
14538 # path is not listed in the libpath. Setting hardcode_minus_L
14539 # to unsupported forces relinking
14540 hardcode_minus_L_F77=yes
14541 hardcode_libdir_flag_spec_F77='-L$libdir'
14542 hardcode_libdir_separator_F77=
14543 fi
14544 ;;
14545 esac
14546 shared_flag='-shared'
14547 if test "$aix_use_runtimelinking" = yes; then
14548 shared_flag="$shared_flag "'${wl}-G'
14549 fi
14550 else
14551 # not using gcc
14552 if test "$host_cpu" = ia64; then
14553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14554 # chokes on -Wl,-G. The following line is correct:
14555 shared_flag='-G'
14556 else
14557 if test "$aix_use_runtimelinking" = yes; then
14558 shared_flag='${wl}-G'
14559 else
14560 shared_flag='${wl}-bM:SRE'
14561 fi
14562 fi
14563 fi
14565 # It seems that -bexpall does not export symbols beginning with
14566 # underscore (_), so it is better to generate a list of symbols to export.
14567 always_export_symbols_F77=yes
14568 if test "$aix_use_runtimelinking" = yes; then
14569 # Warning - without using the other runtime loading flags (-brtl),
14570 # -berok will link without error, but may produce a broken library.
14571 allow_undefined_flag_F77='-berok'
14572 # Determine the default libpath from the value encoded in an empty executable.
14573 cat >conftest.$ac_ext <<_ACEOF
14574 program main
14576 end
14577 _ACEOF
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (ac_try="$ac_link"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_link") 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } && {
14592 test -z "$ac_f77_werror_flag" ||
14593 test ! -s conftest.err
14594 } && test -s conftest$ac_exeext &&
14595 $as_test_x conftest$ac_exeext; then
14597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14598 }'`
14599 # Check for a 64-bit object if we didn't find anything.
14600 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; }
14601 }'`; fi
14602 else
14603 echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14607 fi
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14613 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14614 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"
14615 else
14616 if test "$host_cpu" = ia64; then
14617 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14618 allow_undefined_flag_F77="-z nodefs"
14619 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"
14620 else
14621 # Determine the default libpath from the value encoded in an empty executable.
14622 cat >conftest.$ac_ext <<_ACEOF
14623 program main
14625 end
14626 _ACEOF
14627 rm -f conftest.$ac_objext conftest$ac_exeext
14628 if { (ac_try="$ac_link"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_link") 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } && {
14641 test -z "$ac_f77_werror_flag" ||
14642 test ! -s conftest.err
14643 } && test -s conftest$ac_exeext &&
14644 $as_test_x conftest$ac_exeext; then
14646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14647 }'`
14648 # Check for a 64-bit object if we didn't find anything.
14649 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; }
14650 }'`; fi
14651 else
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14656 fi
14658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14659 conftest$ac_exeext conftest.$ac_ext
14660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14662 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14663 # Warning - without using the other run time loading flags,
14664 # -berok will link without error, but may produce a broken library.
14665 no_undefined_flag_F77=' ${wl}-bernotok'
14666 allow_undefined_flag_F77=' ${wl}-berok'
14667 # Exported symbols can be pulled into shared objects from archives
14668 whole_archive_flag_spec_F77='$convenience'
14669 archive_cmds_need_lc_F77=yes
14670 # This is similar to how AIX traditionally builds its shared libraries.
14671 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'
14672 fi
14673 fi
14674 ;;
14676 amigaos*)
14677 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)'
14678 hardcode_libdir_flag_spec_F77='-L$libdir'
14679 hardcode_minus_L_F77=yes
14680 # see comment about different semantics on the GNU ld section
14681 ld_shlibs_F77=no
14682 ;;
14684 bsdi[45]*)
14685 export_dynamic_flag_spec_F77=-rdynamic
14686 ;;
14688 cygwin* | mingw* | pw32*)
14689 # When not using gcc, we currently assume that we are using
14690 # Microsoft Visual C++.
14691 # hardcode_libdir_flag_spec is actually meaningless, as there is
14692 # no search path for DLLs.
14693 hardcode_libdir_flag_spec_F77=' '
14694 allow_undefined_flag_F77=unsupported
14695 # Tell ltmain to make .lib files, not .a files.
14696 libext=lib
14697 # Tell ltmain to make .dll files, not .so files.
14698 shrext_cmds=".dll"
14699 # FIXME: Setting linknames here is a bad hack.
14700 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14701 # The linker will automatically build a .lib file if we build a DLL.
14702 old_archive_From_new_cmds_F77='true'
14703 # FIXME: Should let the user specify the lib program.
14704 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14705 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14706 enable_shared_with_static_runtimes_F77=yes
14707 ;;
14709 darwin* | rhapsody*)
14710 case $host_os in
14711 rhapsody* | darwin1.[012])
14712 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14713 ;;
14714 *) # Darwin 1.3 on
14715 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14716 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14717 else
14718 case ${MACOSX_DEPLOYMENT_TARGET} in
14719 10.[012])
14720 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14721 ;;
14722 10.*)
14723 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14724 ;;
14725 esac
14726 fi
14727 ;;
14728 esac
14729 archive_cmds_need_lc_F77=no
14730 hardcode_direct_F77=no
14731 hardcode_automatic_F77=yes
14732 hardcode_shlibpath_var_F77=unsupported
14733 whole_archive_flag_spec_F77=''
14734 link_all_deplibs_F77=yes
14735 if test "$GCC" = yes ; then
14736 output_verbose_link_cmd='echo'
14737 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14738 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14740 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}'
14741 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}'
14742 else
14743 case $cc_basename in
14744 xlc*)
14745 output_verbose_link_cmd='echo'
14746 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14747 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14749 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}'
14750 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}'
14751 ;;
14752 *)
14753 ld_shlibs_F77=no
14754 ;;
14755 esac
14756 fi
14757 ;;
14759 dgux*)
14760 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_libdir_flag_spec_F77='-L$libdir'
14762 hardcode_shlibpath_var_F77=no
14763 ;;
14765 freebsd1*)
14766 ld_shlibs_F77=no
14767 ;;
14769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14770 # support. Future versions do this automatically, but an explicit c++rt0.o
14771 # does not break anything, and helps significantly (at the cost of a little
14772 # extra space).
14773 freebsd2.2*)
14774 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14775 hardcode_libdir_flag_spec_F77='-R$libdir'
14776 hardcode_direct_F77=yes
14777 hardcode_shlibpath_var_F77=no
14778 ;;
14780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14781 freebsd2*)
14782 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct_F77=yes
14784 hardcode_minus_L_F77=yes
14785 hardcode_shlibpath_var_F77=no
14786 ;;
14788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14789 freebsd* | dragonfly*)
14790 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14791 hardcode_libdir_flag_spec_F77='-R$libdir'
14792 hardcode_direct_F77=yes
14793 hardcode_shlibpath_var_F77=no
14794 ;;
14796 hpux9*)
14797 if test "$GCC" = yes; then
14798 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'
14799 else
14800 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'
14801 fi
14802 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14803 hardcode_libdir_separator_F77=:
14804 hardcode_direct_F77=yes
14806 # hardcode_minus_L: Not really in the search PATH,
14807 # but as the default location of the library.
14808 hardcode_minus_L_F77=yes
14809 export_dynamic_flag_spec_F77='${wl}-E'
14810 ;;
14812 hpux10*)
14813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14814 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14815 else
14816 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14817 fi
14818 if test "$with_gnu_ld" = no; then
14819 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14820 hardcode_libdir_separator_F77=:
14822 hardcode_direct_F77=yes
14823 export_dynamic_flag_spec_F77='${wl}-E'
14825 # hardcode_minus_L: Not really in the search PATH,
14826 # but as the default location of the library.
14827 hardcode_minus_L_F77=yes
14828 fi
14829 ;;
14831 hpux11*)
14832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14833 case $host_cpu in
14834 hppa*64*)
14835 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14836 ;;
14837 ia64*)
14838 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14839 ;;
14840 *)
14841 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14842 ;;
14843 esac
14844 else
14845 case $host_cpu in
14846 hppa*64*)
14847 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 ;;
14849 ia64*)
14850 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14851 ;;
14852 *)
14853 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14854 ;;
14855 esac
14856 fi
14857 if test "$with_gnu_ld" = no; then
14858 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14859 hardcode_libdir_separator_F77=:
14861 case $host_cpu in
14862 hppa*64*|ia64*)
14863 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14864 hardcode_direct_F77=no
14865 hardcode_shlibpath_var_F77=no
14866 ;;
14867 *)
14868 hardcode_direct_F77=yes
14869 export_dynamic_flag_spec_F77='${wl}-E'
14871 # hardcode_minus_L: Not really in the search PATH,
14872 # but as the default location of the library.
14873 hardcode_minus_L_F77=yes
14874 ;;
14875 esac
14876 fi
14877 ;;
14879 irix5* | irix6* | nonstopux*)
14880 if test "$GCC" = yes; then
14881 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'
14882 else
14883 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'
14884 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14885 fi
14886 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14887 hardcode_libdir_separator_F77=:
14888 link_all_deplibs_F77=yes
14889 ;;
14891 netbsd* | netbsdelf*-gnu)
14892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14893 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14894 else
14895 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14896 fi
14897 hardcode_libdir_flag_spec_F77='-R$libdir'
14898 hardcode_direct_F77=yes
14899 hardcode_shlibpath_var_F77=no
14900 ;;
14902 newsos6)
14903 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_direct_F77=yes
14905 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14906 hardcode_libdir_separator_F77=:
14907 hardcode_shlibpath_var_F77=no
14908 ;;
14910 openbsd*)
14911 hardcode_direct_F77=yes
14912 hardcode_shlibpath_var_F77=no
14913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14914 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14915 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14916 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14917 export_dynamic_flag_spec_F77='${wl}-E'
14918 else
14919 case $host_os in
14920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14921 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14922 hardcode_libdir_flag_spec_F77='-R$libdir'
14923 ;;
14924 *)
14925 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14926 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14927 ;;
14928 esac
14929 fi
14930 ;;
14932 os2*)
14933 hardcode_libdir_flag_spec_F77='-L$libdir'
14934 hardcode_minus_L_F77=yes
14935 allow_undefined_flag_F77=unsupported
14936 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'
14937 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14938 ;;
14940 osf3*)
14941 if test "$GCC" = yes; then
14942 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14943 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'
14944 else
14945 allow_undefined_flag_F77=' -expect_unresolved \*'
14946 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'
14947 fi
14948 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14949 hardcode_libdir_separator_F77=:
14950 ;;
14952 osf4* | osf5*) # as osf3* with the addition of -msym flag
14953 if test "$GCC" = yes; then
14954 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14955 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'
14956 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14957 else
14958 allow_undefined_flag_F77=' -expect_unresolved \*'
14959 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'
14960 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~
14961 $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'
14963 # Both c and cxx compiler support -rpath directly
14964 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14965 fi
14966 hardcode_libdir_separator_F77=:
14967 ;;
14969 solaris*)
14970 no_undefined_flag_F77=' -z text'
14971 if test "$GCC" = yes; then
14972 wlarc='${wl}'
14973 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14974 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14975 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14976 else
14977 wlarc=''
14978 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14979 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14981 fi
14982 hardcode_libdir_flag_spec_F77='-R$libdir'
14983 hardcode_shlibpath_var_F77=no
14984 case $host_os in
14985 solaris2.[0-5] | solaris2.[0-5].*) ;;
14986 *)
14987 # The compiler driver will combine linker options so we
14988 # cannot just pass the convience library names through
14989 # without $wl, iff we do not link with $LD.
14990 # Luckily, gcc supports the same syntax we need for Sun Studio.
14991 # Supported since Solaris 2.6 (maybe 2.5.1?)
14992 case $wlarc in
14993 '')
14994 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14995 *)
14996 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' ;;
14997 esac ;;
14998 esac
14999 link_all_deplibs_F77=yes
15000 ;;
15002 sunos4*)
15003 if test "x$host_vendor" = xsequent; then
15004 # Use $CC to link under sequent, because it throws in some extra .o
15005 # files that make .init and .fini sections work.
15006 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15007 else
15008 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15009 fi
15010 hardcode_libdir_flag_spec_F77='-L$libdir'
15011 hardcode_direct_F77=yes
15012 hardcode_minus_L_F77=yes
15013 hardcode_shlibpath_var_F77=no
15014 ;;
15016 sysv4)
15017 case $host_vendor in
15018 sni)
15019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_direct_F77=yes # is this really true???
15021 ;;
15022 siemens)
15023 ## LD is ld it makes a PLAMLIB
15024 ## CC just makes a GrossModule.
15025 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15026 reload_cmds_F77='$CC -r -o $output$reload_objs'
15027 hardcode_direct_F77=no
15028 ;;
15029 motorola)
15030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15031 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15032 ;;
15033 esac
15034 runpath_var='LD_RUN_PATH'
15035 hardcode_shlibpath_var_F77=no
15036 ;;
15038 sysv4.3*)
15039 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15040 hardcode_shlibpath_var_F77=no
15041 export_dynamic_flag_spec_F77='-Bexport'
15042 ;;
15044 sysv4*MP*)
15045 if test -d /usr/nec; then
15046 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047 hardcode_shlibpath_var_F77=no
15048 runpath_var=LD_RUN_PATH
15049 hardcode_runpath_var=yes
15050 ld_shlibs_F77=yes
15051 fi
15052 ;;
15054 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15055 no_undefined_flag_F77='${wl}-z,text'
15056 archive_cmds_need_lc_F77=no
15057 hardcode_shlibpath_var_F77=no
15058 runpath_var='LD_RUN_PATH'
15060 if test "$GCC" = yes; then
15061 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15063 else
15064 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15066 fi
15067 ;;
15069 sysv5* | sco3.2v5* | sco5v6*)
15070 # Note: We can NOT use -z defs as we might desire, because we do not
15071 # link with -lc, and that would cause any symbols used from libc to
15072 # always be unresolved, which means just about no library would
15073 # ever link correctly. If we're not using GNU ld we use -z text
15074 # though, which does catch some bad symbols but isn't as heavy-handed
15075 # as -z defs.
15076 no_undefined_flag_F77='${wl}-z,text'
15077 allow_undefined_flag_F77='${wl}-z,nodefs'
15078 archive_cmds_need_lc_F77=no
15079 hardcode_shlibpath_var_F77=no
15080 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15081 hardcode_libdir_separator_F77=':'
15082 link_all_deplibs_F77=yes
15083 export_dynamic_flag_spec_F77='${wl}-Bexport'
15084 runpath_var='LD_RUN_PATH'
15086 if test "$GCC" = yes; then
15087 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 else
15090 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15091 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 fi
15093 ;;
15095 uts4*)
15096 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15097 hardcode_libdir_flag_spec_F77='-L$libdir'
15098 hardcode_shlibpath_var_F77=no
15099 ;;
15101 *)
15102 ld_shlibs_F77=no
15103 ;;
15104 esac
15105 fi
15107 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15108 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15109 test "$ld_shlibs_F77" = no && can_build_shared=no
15111 #
15112 # Do we need to explicitly link libc?
15113 #
15114 case "x$archive_cmds_need_lc_F77" in
15115 x|xyes)
15116 # Assume -lc should be added
15117 archive_cmds_need_lc_F77=yes
15119 if test "$enable_shared" = yes && test "$GCC" = yes; then
15120 case $archive_cmds_F77 in
15121 *'~'*)
15122 # FIXME: we may have to deal with multi-command sequences.
15123 ;;
15124 '$CC '*)
15125 # Test whether the compiler implicitly links with -lc since on some
15126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15127 # to ld, don't add -lc before -lgcc.
15128 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15129 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15130 $rm conftest*
15131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15134 (eval $ac_compile) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } 2>conftest.err; then
15138 soname=conftest
15139 lib=conftest
15140 libobjs=conftest.$ac_objext
15141 deplibs=
15142 wl=$lt_prog_compiler_wl_F77
15143 pic_flag=$lt_prog_compiler_pic_F77
15144 compiler_flags=-v
15145 linker_flags=-v
15146 verstring=
15147 output_objdir=.
15148 libname=conftest
15149 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15150 allow_undefined_flag_F77=
15151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15152 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }
15156 then
15157 archive_cmds_need_lc_F77=no
15158 else
15159 archive_cmds_need_lc_F77=yes
15160 fi
15161 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15162 else
15163 cat conftest.err 1>&5
15164 fi
15165 $rm conftest*
15166 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15167 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15168 ;;
15169 esac
15170 fi
15171 ;;
15172 esac
15174 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15176 library_names_spec=
15177 libname_spec='lib$name'
15178 soname_spec=
15179 shrext_cmds=".so"
15180 postinstall_cmds=
15181 postuninstall_cmds=
15182 finish_cmds=
15183 finish_eval=
15184 shlibpath_var=
15185 shlibpath_overrides_runpath=unknown
15186 version_type=none
15187 dynamic_linker="$host_os ld.so"
15188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15189 if test "$GCC" = yes; then
15190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15192 # if the path contains ";" then we assume it to be the separator
15193 # otherwise default to the standard path separator (i.e. ":") - it is
15194 # assumed that no part of a normal pathname contains ";" but that should
15195 # okay in the real world where ";" in dirpaths is itself problematic.
15196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15197 else
15198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15199 fi
15200 else
15201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15202 fi
15203 need_lib_prefix=unknown
15204 hardcode_into_libs=no
15206 # when you set need_version to no, make sure it does not cause -set_version
15207 # flags to be left without arguments
15208 need_version=unknown
15210 case $host_os in
15211 aix3*)
15212 version_type=linux
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15214 shlibpath_var=LIBPATH
15216 # AIX 3 has no versioning support, so we append a major version to the name.
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 ;;
15220 aix4* | aix5*)
15221 version_type=linux
15222 need_lib_prefix=no
15223 need_version=no
15224 hardcode_into_libs=yes
15225 if test "$host_cpu" = ia64; then
15226 # AIX 5 supports IA64
15227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 else
15230 # With GCC up to 2.95.x, collect2 would create an import file
15231 # for dependence libraries. The import file would start with
15232 # the line `#! .'. This would cause the generated library to
15233 # depend on `.', always an invalid library. This was fixed in
15234 # development snapshots of GCC prior to 3.0.
15235 case $host_os in
15236 aix4 | aix4.[01] | aix4.[01].*)
15237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15238 echo ' yes '
15239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15240 :
15241 else
15242 can_build_shared=no
15243 fi
15244 ;;
15245 esac
15246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15247 # soname into executable. Probably we can add versioning support to
15248 # collect2, so additional links can be useful in future.
15249 if test "$aix_use_runtimelinking" = yes; then
15250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15251 # instead of lib<name>.a to let people know that these are not
15252 # typical AIX shared libraries.
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 else
15255 # We preserve .a as extension for shared libraries through AIX4.2
15256 # and later when we are not doing run time linking.
15257 library_names_spec='${libname}${release}.a $libname.a'
15258 soname_spec='${libname}${release}${shared_ext}$major'
15259 fi
15260 shlibpath_var=LIBPATH
15261 fi
15262 ;;
15264 amigaos*)
15265 library_names_spec='$libname.ixlibrary $libname.a'
15266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15267 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'
15268 ;;
15270 beos*)
15271 library_names_spec='${libname}${shared_ext}'
15272 dynamic_linker="$host_os ld.so"
15273 shlibpath_var=LIBRARY_PATH
15274 ;;
15276 bsdi[45]*)
15277 version_type=linux
15278 need_version=no
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15285 # the default ld.so.conf also contains /usr/contrib/lib and
15286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15287 # libtool to hard-code these into programs
15288 ;;
15290 cygwin* | mingw* | pw32*)
15291 version_type=windows
15292 shrext_cmds=".dll"
15293 need_version=no
15294 need_lib_prefix=no
15296 case $GCC,$host_os in
15297 yes,cygwin* | yes,mingw* | yes,pw32*)
15298 library_names_spec='$libname.dll.a'
15299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15300 postinstall_cmds='base_file=`basename \${file}`~
15301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15302 dldir=$destdir/`dirname \$dlpath`~
15303 test -d \$dldir || mkdir -p \$dldir~
15304 $install_prog $dir/$dlname \$dldir/$dlname~
15305 chmod a+x \$dldir/$dlname'
15306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15307 dlpath=$dir/\$dldll~
15308 $rm \$dlpath'
15309 shlibpath_overrides_runpath=yes
15311 case $host_os in
15312 cygwin*)
15313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15316 ;;
15317 mingw*)
15318 # MinGW DLLs use traditional 'lib' prefix
15319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15322 # It is most probably a Windows format PATH printed by
15323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15324 # path with ; separators, and with drive letters. We can handle the
15325 # drive letters (cygwin fileutils understands them), so leave them,
15326 # especially as we might pass files found there to a mingw objdump,
15327 # which wouldn't understand a cygwinified path. Ahh.
15328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15329 else
15330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15331 fi
15332 ;;
15333 pw32*)
15334 # pw32 DLLs use 'pw' prefix rather than 'lib'
15335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15336 ;;
15337 esac
15338 ;;
15340 *)
15341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15342 ;;
15343 esac
15344 dynamic_linker='Win32 ld.exe'
15345 # FIXME: first we should search . and the directory the executable is in
15346 shlibpath_var=PATH
15347 ;;
15349 darwin* | rhapsody*)
15350 dynamic_linker="$host_os dyld"
15351 version_type=darwin
15352 need_lib_prefix=no
15353 need_version=no
15354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15355 soname_spec='${libname}${release}${major}$shared_ext'
15356 shlibpath_overrides_runpath=yes
15357 shlibpath_var=DYLD_LIBRARY_PATH
15358 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15360 if test "$GCC" = yes; then
15361 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"`
15362 else
15363 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15364 fi
15365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15366 ;;
15368 dgux*)
15369 version_type=linux
15370 need_lib_prefix=no
15371 need_version=no
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 ;;
15377 freebsd1*)
15378 dynamic_linker=no
15379 ;;
15381 freebsd* | dragonfly*)
15382 # DragonFly does not have aout. When/if they implement a new
15383 # versioning mechanism, adjust this.
15384 if test -x /usr/bin/objformat; then
15385 objformat=`/usr/bin/objformat`
15386 else
15387 case $host_os in
15388 freebsd[123]*) objformat=aout ;;
15389 *) objformat=elf ;;
15390 esac
15391 fi
15392 version_type=freebsd-$objformat
15393 case $version_type in
15394 freebsd-elf*)
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15396 need_version=no
15397 need_lib_prefix=no
15398 ;;
15399 freebsd-*)
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15401 need_version=yes
15402 ;;
15403 esac
15404 shlibpath_var=LD_LIBRARY_PATH
15405 case $host_os in
15406 freebsd2*)
15407 shlibpath_overrides_runpath=yes
15408 ;;
15409 freebsd3.[01]* | freebsdelf3.[01]*)
15410 shlibpath_overrides_runpath=yes
15411 hardcode_into_libs=yes
15412 ;;
15413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15415 shlibpath_overrides_runpath=no
15416 hardcode_into_libs=yes
15417 ;;
15418 freebsd*) # from 4.6 on
15419 shlibpath_overrides_runpath=yes
15420 hardcode_into_libs=yes
15421 ;;
15422 esac
15423 ;;
15425 gnu*)
15426 version_type=linux
15427 need_lib_prefix=no
15428 need_version=no
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 shlibpath_var=LD_LIBRARY_PATH
15432 hardcode_into_libs=yes
15433 ;;
15435 hpux9* | hpux10* | hpux11*)
15436 # Give a soname corresponding to the major version so that dld.sl refuses to
15437 # link against other versions.
15438 version_type=sunos
15439 need_lib_prefix=no
15440 need_version=no
15441 case $host_cpu in
15442 ia64*)
15443 shrext_cmds='.so'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.so"
15446 shlibpath_var=LD_LIBRARY_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 if test "X$HPUX_IA64_MODE" = X32; then
15451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15452 else
15453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15454 fi
15455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456 ;;
15457 hppa*64*)
15458 shrext_cmds='.sl'
15459 hardcode_into_libs=yes
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15467 ;;
15468 *)
15469 shrext_cmds='.sl'
15470 dynamic_linker="$host_os dld.sl"
15471 shlibpath_var=SHLIB_PATH
15472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 ;;
15476 esac
15477 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15478 postinstall_cmds='chmod 555 $lib'
15479 ;;
15481 interix3*)
15482 version_type=linux
15483 need_lib_prefix=no
15484 need_version=no
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 shlibpath_overrides_runpath=no
15490 hardcode_into_libs=yes
15491 ;;
15493 irix5* | irix6* | nonstopux*)
15494 case $host_os in
15495 nonstopux*) version_type=nonstopux ;;
15496 *)
15497 if test "$lt_cv_prog_gnu_ld" = yes; then
15498 version_type=linux
15499 else
15500 version_type=irix
15501 fi ;;
15502 esac
15503 need_lib_prefix=no
15504 need_version=no
15505 soname_spec='${libname}${release}${shared_ext}$major'
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15507 case $host_os in
15508 irix5* | nonstopux*)
15509 libsuff= shlibsuff=
15510 ;;
15511 *)
15512 case $LD in # libtool.m4 will add one of these switches to LD
15513 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15514 libsuff= shlibsuff= libmagic=32-bit;;
15515 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15516 libsuff=32 shlibsuff=N32 libmagic=N32;;
15517 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15518 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15519 *) libsuff= shlibsuff= libmagic=never-match;;
15520 esac
15521 ;;
15522 esac
15523 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15524 shlibpath_overrides_runpath=no
15525 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15526 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15527 hardcode_into_libs=yes
15528 ;;
15530 # No shared lib support for Linux oldld, aout, or coff.
15531 linux*oldld* | linux*aout* | linux*coff*)
15532 dynamic_linker=no
15533 ;;
15535 # This must be Linux ELF.
15536 linux* | k*bsd*-gnu)
15537 version_type=linux
15538 need_lib_prefix=no
15539 need_version=no
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 shlibpath_overrides_runpath=no
15545 # This implies no fast_install, which is unacceptable.
15546 # Some rework will be needed to allow for fast_install
15547 # before this can be enabled.
15548 hardcode_into_libs=yes
15550 # Append ld.so.conf contents to the search path
15551 if test -f /etc/ld.so.conf; then
15552 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' ' '`
15553 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15554 fi
15556 # We used to test for /lib/ld.so.1 and disable shared libraries on
15557 # powerpc, because MkLinux only supported shared libraries with the
15558 # GNU dynamic linker. Since this was broken with cross compilers,
15559 # most powerpc-linux boxes support dynamic linking these days and
15560 # people can always --disable-shared, the test was removed, and we
15561 # assume the GNU/Linux dynamic linker is in use.
15562 dynamic_linker='GNU/Linux ld.so'
15563 ;;
15565 netbsdelf*-gnu)
15566 version_type=linux
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=no
15573 hardcode_into_libs=yes
15574 dynamic_linker='NetBSD ld.elf_so'
15575 ;;
15577 netbsd*)
15578 version_type=sunos
15579 need_lib_prefix=no
15580 need_version=no
15581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15584 dynamic_linker='NetBSD (a.out) ld.so'
15585 else
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 dynamic_linker='NetBSD ld.elf_so'
15589 fi
15590 shlibpath_var=LD_LIBRARY_PATH
15591 shlibpath_overrides_runpath=yes
15592 hardcode_into_libs=yes
15593 ;;
15595 newsos6)
15596 version_type=linux
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=yes
15600 ;;
15602 nto-qnx*)
15603 version_type=linux
15604 need_lib_prefix=no
15605 need_version=no
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 shlibpath_overrides_runpath=yes
15610 ;;
15612 openbsd*)
15613 version_type=sunos
15614 sys_lib_dlsearch_path_spec="/usr/lib"
15615 need_lib_prefix=no
15616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15617 case $host_os in
15618 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15619 *) need_version=no ;;
15620 esac
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15625 case $host_os in
15626 openbsd2.[89] | openbsd2.[89].*)
15627 shlibpath_overrides_runpath=no
15628 ;;
15629 *)
15630 shlibpath_overrides_runpath=yes
15631 ;;
15632 esac
15633 else
15634 shlibpath_overrides_runpath=yes
15635 fi
15636 ;;
15638 os2*)
15639 libname_spec='$name'
15640 shrext_cmds=".dll"
15641 need_lib_prefix=no
15642 library_names_spec='$libname${shared_ext} $libname.a'
15643 dynamic_linker='OS/2 ld.exe'
15644 shlibpath_var=LIBPATH
15645 ;;
15647 osf3* | osf4* | osf5*)
15648 version_type=osf
15649 need_lib_prefix=no
15650 need_version=no
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15656 ;;
15658 solaris*)
15659 version_type=linux
15660 need_lib_prefix=no
15661 need_version=no
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 shlibpath_overrides_runpath=yes
15666 hardcode_into_libs=yes
15667 # ldd complains unless libraries are executable
15668 postinstall_cmds='chmod +x $lib'
15669 ;;
15671 sunos4*)
15672 version_type=sunos
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 shlibpath_overrides_runpath=yes
15677 if test "$with_gnu_ld" = yes; then
15678 need_lib_prefix=no
15679 fi
15680 need_version=yes
15681 ;;
15683 sysv4 | sysv4.3*)
15684 version_type=linux
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 case $host_vendor in
15689 sni)
15690 shlibpath_overrides_runpath=no
15691 need_lib_prefix=no
15692 export_dynamic_flag_spec='${wl}-Blargedynsym'
15693 runpath_var=LD_RUN_PATH
15694 ;;
15695 siemens)
15696 need_lib_prefix=no
15697 ;;
15698 motorola)
15699 need_lib_prefix=no
15700 need_version=no
15701 shlibpath_overrides_runpath=no
15702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15703 ;;
15704 esac
15705 ;;
15707 sysv4*MP*)
15708 if test -d /usr/nec ;then
15709 version_type=linux
15710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15711 soname_spec='$libname${shared_ext}.$major'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 fi
15714 ;;
15716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15717 version_type=freebsd-elf
15718 need_lib_prefix=no
15719 need_version=no
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 hardcode_into_libs=yes
15724 if test "$with_gnu_ld" = yes; then
15725 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15726 shlibpath_overrides_runpath=no
15727 else
15728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15729 shlibpath_overrides_runpath=yes
15730 case $host_os in
15731 sco3.2v5*)
15732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15733 ;;
15734 esac
15735 fi
15736 sys_lib_dlsearch_path_spec='/usr/lib'
15737 ;;
15739 uts4*)
15740 version_type=linux
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 ;;
15746 *)
15747 dynamic_linker=no
15748 ;;
15749 esac
15750 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15751 echo "${ECHO_T}$dynamic_linker" >&6; }
15752 test "$dynamic_linker" = no && can_build_shared=no
15754 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15755 if test "$GCC" = yes; then
15756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15757 fi
15759 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15760 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15761 hardcode_action_F77=
15762 if test -n "$hardcode_libdir_flag_spec_F77" || \
15763 test -n "$runpath_var_F77" || \
15764 test "X$hardcode_automatic_F77" = "Xyes" ; then
15766 # We can hardcode non-existant directories.
15767 if test "$hardcode_direct_F77" != no &&
15768 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15769 # have to relink, otherwise we might link with an installed library
15770 # when we should be linking with a yet-to-be-installed one
15771 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15772 test "$hardcode_minus_L_F77" != no; then
15773 # Linking always hardcodes the temporary library directory.
15774 hardcode_action_F77=relink
15775 else
15776 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15777 hardcode_action_F77=immediate
15778 fi
15779 else
15780 # We cannot hardcode anything, or else we can only hardcode existing
15781 # directories.
15782 hardcode_action_F77=unsupported
15783 fi
15784 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15785 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15787 if test "$hardcode_action_F77" = relink; then
15788 # Fast installation is not supported
15789 enable_fast_install=no
15790 elif test "$shlibpath_overrides_runpath" = yes ||
15791 test "$enable_shared" = no; then
15792 # Fast installation is not necessary
15793 enable_fast_install=needless
15794 fi
15797 # The else clause should only fire when bootstrapping the
15798 # libtool distribution, otherwise you forgot to ship ltmain.sh
15799 # with your package, and you will get complaints that there are
15800 # no rules to generate ltmain.sh.
15801 if test -f "$ltmain"; then
15802 # See if we are running on zsh, and set the options which allow our commands through
15803 # without removal of \ escapes.
15804 if test -n "${ZSH_VERSION+set}" ; then
15805 setopt NO_GLOB_SUBST
15806 fi
15807 # Now quote all the things that may contain metacharacters while being
15808 # careful not to overquote the AC_SUBSTed values. We take copies of the
15809 # variables and quote the copies for generation of the libtool script.
15810 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15811 SED SHELL STRIP \
15812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15814 deplibs_check_method reload_flag reload_cmds need_locks \
15815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15816 lt_cv_sys_global_symbol_to_c_name_address \
15817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15818 old_postinstall_cmds old_postuninstall_cmds \
15819 compiler_F77 \
15820 CC_F77 \
15821 LD_F77 \
15822 lt_prog_compiler_wl_F77 \
15823 lt_prog_compiler_pic_F77 \
15824 lt_prog_compiler_static_F77 \
15825 lt_prog_compiler_no_builtin_flag_F77 \
15826 export_dynamic_flag_spec_F77 \
15827 thread_safe_flag_spec_F77 \
15828 whole_archive_flag_spec_F77 \
15829 enable_shared_with_static_runtimes_F77 \
15830 old_archive_cmds_F77 \
15831 old_archive_from_new_cmds_F77 \
15832 predep_objects_F77 \
15833 postdep_objects_F77 \
15834 predeps_F77 \
15835 postdeps_F77 \
15836 compiler_lib_search_path_F77 \
15837 archive_cmds_F77 \
15838 archive_expsym_cmds_F77 \
15839 postinstall_cmds_F77 \
15840 postuninstall_cmds_F77 \
15841 old_archive_from_expsyms_cmds_F77 \
15842 allow_undefined_flag_F77 \
15843 no_undefined_flag_F77 \
15844 export_symbols_cmds_F77 \
15845 hardcode_libdir_flag_spec_F77 \
15846 hardcode_libdir_flag_spec_ld_F77 \
15847 hardcode_libdir_separator_F77 \
15848 hardcode_automatic_F77 \
15849 module_cmds_F77 \
15850 module_expsym_cmds_F77 \
15851 lt_cv_prog_compiler_c_o_F77 \
15852 exclude_expsyms_F77 \
15853 include_expsyms_F77; do
15855 case $var in
15856 old_archive_cmds_F77 | \
15857 old_archive_from_new_cmds_F77 | \
15858 archive_cmds_F77 | \
15859 archive_expsym_cmds_F77 | \
15860 module_cmds_F77 | \
15861 module_expsym_cmds_F77 | \
15862 old_archive_from_expsyms_cmds_F77 | \
15863 export_symbols_cmds_F77 | \
15864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15865 postinstall_cmds | postuninstall_cmds | \
15866 old_postinstall_cmds | old_postuninstall_cmds | \
15867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15868 # Double-quote double-evaled strings.
15869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15870 ;;
15871 *)
15872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15873 ;;
15874 esac
15875 done
15877 case $lt_echo in
15878 *'\$0 --fallback-echo"')
15879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15880 ;;
15881 esac
15883 cfgfile="$ofile"
15885 cat <<__EOF__ >> "$cfgfile"
15886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15890 # Shell to use when invoking shell scripts.
15891 SHELL=$lt_SHELL
15893 # Whether or not to build shared libraries.
15894 build_libtool_libs=$enable_shared
15896 # Whether or not to build static libraries.
15897 build_old_libs=$enable_static
15899 # Whether or not to add -lc for building shared libraries.
15900 build_libtool_need_lc=$archive_cmds_need_lc_F77
15902 # Whether or not to disallow shared libs when runtime libs are static
15903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15905 # Whether or not to optimize for fast installation.
15906 fast_install=$enable_fast_install
15908 # The host system.
15909 host_alias=$host_alias
15910 host=$host
15911 host_os=$host_os
15913 # The build system.
15914 build_alias=$build_alias
15915 build=$build
15916 build_os=$build_os
15918 # An echo program that does not interpret backslashes.
15919 echo=$lt_echo
15921 # The archiver.
15922 AR=$lt_AR
15923 AR_FLAGS=$lt_AR_FLAGS
15925 # A C compiler.
15926 LTCC=$lt_LTCC
15928 # LTCC compiler flags.
15929 LTCFLAGS=$lt_LTCFLAGS
15931 # A language-specific compiler.
15932 CC=$lt_compiler_F77
15934 # Is the compiler the GNU C compiler?
15935 with_gcc=$GCC_F77
15937 # An ERE matcher.
15938 EGREP=$lt_EGREP
15940 # The linker used to build libraries.
15941 LD=$lt_LD_F77
15943 # Whether we need hard or soft links.
15944 LN_S=$lt_LN_S
15946 # A BSD-compatible nm program.
15947 NM=$lt_NM
15949 # A symbol stripping program
15950 STRIP=$lt_STRIP
15952 # Used to examine libraries when file_magic_cmd begins "file"
15953 MAGIC_CMD=$MAGIC_CMD
15955 # Used on cygwin: DLL creation program.
15956 DLLTOOL="$DLLTOOL"
15958 # Used on cygwin: object dumper.
15959 OBJDUMP="$OBJDUMP"
15961 # Used on cygwin: assembler.
15962 AS="$AS"
15964 # The name of the directory that contains temporary libtool files.
15965 objdir=$objdir
15967 # How to create reloadable object files.
15968 reload_flag=$lt_reload_flag
15969 reload_cmds=$lt_reload_cmds
15971 # How to pass a linker flag through the compiler.
15972 wl=$lt_lt_prog_compiler_wl_F77
15974 # Object file suffix (normally "o").
15975 objext="$ac_objext"
15977 # Old archive suffix (normally "a").
15978 libext="$libext"
15980 # Shared library suffix (normally ".so").
15981 shrext_cmds='$shrext_cmds'
15983 # Executable file suffix (normally "").
15984 exeext="$exeext"
15986 # Additional compiler flags for building library objects.
15987 pic_flag=$lt_lt_prog_compiler_pic_F77
15988 pic_mode=$pic_mode
15990 # What is the maximum length of a command?
15991 max_cmd_len=$lt_cv_sys_max_cmd_len
15993 # Does compiler simultaneously support -c and -o options?
15994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15996 # Must we lock files when doing compilation?
15997 need_locks=$lt_need_locks
15999 # Do we need the lib prefix for modules?
16000 need_lib_prefix=$need_lib_prefix
16002 # Do we need a version for libraries?
16003 need_version=$need_version
16005 # Whether dlopen is supported.
16006 dlopen_support=$enable_dlopen
16008 # Whether dlopen of programs is supported.
16009 dlopen_self=$enable_dlopen_self
16011 # Whether dlopen of statically linked programs is supported.
16012 dlopen_self_static=$enable_dlopen_self_static
16014 # Compiler flag to prevent dynamic linking.
16015 link_static_flag=$lt_lt_prog_compiler_static_F77
16017 # Compiler flag to turn off builtin functions.
16018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16020 # Compiler flag to allow reflexive dlopens.
16021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16023 # Compiler flag to generate shared objects directly from archives.
16024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16026 # Compiler flag to generate thread-safe objects.
16027 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16029 # Library versioning type.
16030 version_type=$version_type
16032 # Format of library name prefix.
16033 libname_spec=$lt_libname_spec
16035 # List of archive names. First name is the real one, the rest are links.
16036 # The last name is the one that the linker finds with -lNAME.
16037 library_names_spec=$lt_library_names_spec
16039 # The coded name of the library, if different from the real name.
16040 soname_spec=$lt_soname_spec
16042 # Commands used to build and install an old-style archive.
16043 RANLIB=$lt_RANLIB
16044 old_archive_cmds=$lt_old_archive_cmds_F77
16045 old_postinstall_cmds=$lt_old_postinstall_cmds
16046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16048 # Create an old-style archive from a shared archive.
16049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16051 # Create a temporary old-style archive to link instead of a shared archive.
16052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16054 # Commands used to build and install a shared archive.
16055 archive_cmds=$lt_archive_cmds_F77
16056 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16057 postinstall_cmds=$lt_postinstall_cmds
16058 postuninstall_cmds=$lt_postuninstall_cmds
16060 # Commands used to build a loadable module (assumed same as above if empty)
16061 module_cmds=$lt_module_cmds_F77
16062 module_expsym_cmds=$lt_module_expsym_cmds_F77
16064 # Commands to strip libraries.
16065 old_striplib=$lt_old_striplib
16066 striplib=$lt_striplib
16068 # Dependencies to place before the objects being linked to create a
16069 # shared library.
16070 predep_objects=$lt_predep_objects_F77
16072 # Dependencies to place after the objects being linked to create a
16073 # shared library.
16074 postdep_objects=$lt_postdep_objects_F77
16076 # Dependencies to place before the objects being linked to create a
16077 # shared library.
16078 predeps=$lt_predeps_F77
16080 # Dependencies to place after the objects being linked to create a
16081 # shared library.
16082 postdeps=$lt_postdeps_F77
16084 # The library search path used internally by the compiler when linking
16085 # a shared library.
16086 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16088 # Method to check whether dependent libraries are shared objects.
16089 deplibs_check_method=$lt_deplibs_check_method
16091 # Command to use when deplibs_check_method == file_magic.
16092 file_magic_cmd=$lt_file_magic_cmd
16094 # Flag that allows shared libraries with undefined symbols to be built.
16095 allow_undefined_flag=$lt_allow_undefined_flag_F77
16097 # Flag that forces no undefined symbols.
16098 no_undefined_flag=$lt_no_undefined_flag_F77
16100 # Commands used to finish a libtool library installation in a directory.
16101 finish_cmds=$lt_finish_cmds
16103 # Same as above, but a single script fragment to be evaled but not shown.
16104 finish_eval=$lt_finish_eval
16106 # Take the output of nm and produce a listing of raw symbols and C names.
16107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16109 # Transform the output of nm in a proper C declaration
16110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16112 # Transform the output of nm in a C name address pair
16113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16115 # This is the shared library runtime path variable.
16116 runpath_var=$runpath_var
16118 # This is the shared library path variable.
16119 shlibpath_var=$shlibpath_var
16121 # Is shlibpath searched before the hard-coded library search path?
16122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16124 # How to hardcode a shared library path into an executable.
16125 hardcode_action=$hardcode_action_F77
16127 # Whether we should hardcode library paths into libraries.
16128 hardcode_into_libs=$hardcode_into_libs
16130 # Flag to hardcode \$libdir into a binary during linking.
16131 # This must work even if \$libdir does not exist.
16132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16134 # If ld is used when linking, flag to hardcode \$libdir into
16135 # a binary during linking. This must work even if \$libdir does
16136 # not exist.
16137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16139 # Whether we need a single -rpath flag with a separated argument.
16140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16143 # resulting binary.
16144 hardcode_direct=$hardcode_direct_F77
16146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16147 # resulting binary.
16148 hardcode_minus_L=$hardcode_minus_L_F77
16150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16151 # the resulting binary.
16152 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16154 # Set to yes if building a shared library automatically hardcodes DIR into the library
16155 # and all subsequent libraries and executables linked against it.
16156 hardcode_automatic=$hardcode_automatic_F77
16158 # Variables whose values should be saved in libtool wrapper scripts and
16159 # restored at relink time.
16160 variables_saved_for_relink="$variables_saved_for_relink"
16162 # Whether libtool must link a program against all its dependency libraries.
16163 link_all_deplibs=$link_all_deplibs_F77
16165 # Compile-time system search path for libraries
16166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16168 # Run-time system search path for libraries
16169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16171 # Fix the shell variable \$srcfile for the compiler.
16172 fix_srcfile_path="$fix_srcfile_path_F77"
16174 # Set to yes if exported symbols are required.
16175 always_export_symbols=$always_export_symbols_F77
16177 # The commands to list exported symbols.
16178 export_symbols_cmds=$lt_export_symbols_cmds_F77
16180 # The commands to extract the exported symbol list from a shared archive.
16181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16183 # Symbols that should not be listed in the preloaded symbols.
16184 exclude_expsyms=$lt_exclude_expsyms_F77
16186 # Symbols that must always be exported.
16187 include_expsyms=$lt_include_expsyms_F77
16189 # ### END LIBTOOL TAG CONFIG: $tagname
16191 __EOF__
16194 else
16195 # If there is no Makefile yet, we rely on a make rule to execute
16196 # `config.status --recheck' to rerun these tests and create the
16197 # libtool script then.
16198 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16199 if test -f "$ltmain_in"; then
16200 test -f Makefile && make "$ltmain"
16201 fi
16202 fi
16205 ac_ext=c
16206 ac_cpp='$CPP $CPPFLAGS'
16207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16211 CC="$lt_save_CC"
16213 else
16214 tagname=""
16215 fi
16216 ;;
16218 GCJ)
16219 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16222 # Source file extension for Java test sources.
16223 ac_ext=java
16225 # Object file extension for compiled Java test sources.
16226 objext=o
16227 objext_GCJ=$objext
16229 # Code to be used in simple compile tests
16230 lt_simple_compile_test_code="class foo {}\n"
16232 # Code to be used in simple link tests
16233 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16237 # If no C compiler was specified, use CC.
16238 LTCC=${LTCC-"$CC"}
16240 # If no C compiler flags were specified, use CFLAGS.
16241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16243 # Allow CC to be a program name with arguments.
16244 compiler=$CC
16247 # save warnings/boilerplate of simple test code
16248 ac_outfile=conftest.$ac_objext
16249 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16251 _lt_compiler_boilerplate=`cat conftest.err`
16252 $rm conftest*
16254 ac_outfile=conftest.$ac_objext
16255 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16257 _lt_linker_boilerplate=`cat conftest.err`
16258 $rm conftest*
16261 # Allow CC to be a program name with arguments.
16262 lt_save_CC="$CC"
16263 CC=${GCJ-"gcj"}
16264 compiler=$CC
16265 compiler_GCJ=$CC
16266 for cc_temp in $compiler""; do
16267 case $cc_temp in
16268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16270 \-*) ;;
16271 *) break;;
16272 esac
16273 done
16274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16277 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16278 archive_cmds_need_lc_GCJ=no
16280 old_archive_cmds_GCJ=$old_archive_cmds
16283 lt_prog_compiler_no_builtin_flag_GCJ=
16285 if test "$GCC" = yes; then
16286 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16289 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16290 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16291 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 else
16294 lt_cv_prog_compiler_rtti_exceptions=no
16295 ac_outfile=conftest.$ac_objext
16296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16297 lt_compiler_flag="-fno-rtti -fno-exceptions"
16298 # Insert the option either (1) after the last *FLAGS variable, or
16299 # (2) before a word containing "conftest.", or (3) at the end.
16300 # Note that $ac_compile itself does not contain backslashes and begins
16301 # with a dollar sign (not a hyphen), so the echo should work correctly.
16302 # The option is referenced via a variable to avoid confusing sed.
16303 lt_compile=`echo "$ac_compile" | $SED \
16304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16306 -e 's:$: $lt_compiler_flag:'`
16307 (eval echo "\"\$as_me:16307: $lt_compile\"" >&5)
16308 (eval "$lt_compile" 2>conftest.err)
16309 ac_status=$?
16310 cat conftest.err >&5
16311 echo "$as_me:16311: \$? = $ac_status" >&5
16312 if (exit $ac_status) && test -s "$ac_outfile"; then
16313 # The compiler can only warn and ignore the option if not recognized
16314 # So say no if there are warnings other than the usual output.
16315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16318 lt_cv_prog_compiler_rtti_exceptions=yes
16319 fi
16320 fi
16321 $rm conftest*
16323 fi
16324 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16325 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16327 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16328 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16329 else
16330 :
16331 fi
16333 fi
16335 lt_prog_compiler_wl_GCJ=
16336 lt_prog_compiler_pic_GCJ=
16337 lt_prog_compiler_static_GCJ=
16339 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16340 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16342 if test "$GCC" = yes; then
16343 lt_prog_compiler_wl_GCJ='-Wl,'
16344 lt_prog_compiler_static_GCJ='-static'
16346 case $host_os in
16347 aix*)
16348 # All AIX code is PIC.
16349 if test "$host_cpu" = ia64; then
16350 # AIX 5 now supports IA64 processor
16351 lt_prog_compiler_static_GCJ='-Bstatic'
16352 fi
16353 ;;
16355 amigaos*)
16356 # FIXME: we need at least 68020 code to build shared libraries, but
16357 # adding the `-m68020' flag to GCC prevents building anything better,
16358 # like `-m68040'.
16359 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16360 ;;
16362 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16363 # PIC is the default for these OSes.
16364 ;;
16366 mingw* | pw32* | os2*)
16367 # This hack is so that the source file can tell whether it is being
16368 # built for inclusion in a dll (and should export symbols for example).
16369 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16370 ;;
16372 darwin* | rhapsody*)
16373 # PIC is the default on this platform
16374 # Common symbols not allowed in MH_DYLIB files
16375 lt_prog_compiler_pic_GCJ='-fno-common'
16376 ;;
16378 interix3*)
16379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16380 # Instead, we relocate shared libraries at runtime.
16381 ;;
16383 msdosdjgpp*)
16384 # Just because we use GCC doesn't mean we suddenly get shared libraries
16385 # on systems that don't support them.
16386 lt_prog_compiler_can_build_shared_GCJ=no
16387 enable_shared=no
16388 ;;
16390 sysv4*MP*)
16391 if test -d /usr/nec; then
16392 lt_prog_compiler_pic_GCJ=-Kconform_pic
16393 fi
16394 ;;
16396 hpux*)
16397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16398 # not for PA HP-UX.
16399 case $host_cpu in
16400 hppa*64*|ia64*)
16401 # +Z the default
16402 ;;
16403 *)
16404 lt_prog_compiler_pic_GCJ='-fPIC'
16405 ;;
16406 esac
16407 ;;
16409 *)
16410 lt_prog_compiler_pic_GCJ='-fPIC'
16411 ;;
16412 esac
16413 else
16414 # PORTME Check for flag to pass linker flags through the system compiler.
16415 case $host_os in
16416 aix*)
16417 lt_prog_compiler_wl_GCJ='-Wl,'
16418 if test "$host_cpu" = ia64; then
16419 # AIX 5 now supports IA64 processor
16420 lt_prog_compiler_static_GCJ='-Bstatic'
16421 else
16422 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16423 fi
16424 ;;
16425 darwin*)
16426 # PIC is the default on this platform
16427 # Common symbols not allowed in MH_DYLIB files
16428 case $cc_basename in
16429 xlc*)
16430 lt_prog_compiler_pic_GCJ='-qnocommon'
16431 lt_prog_compiler_wl_GCJ='-Wl,'
16432 ;;
16433 esac
16434 ;;
16436 mingw* | pw32* | os2*)
16437 # This hack is so that the source file can tell whether it is being
16438 # built for inclusion in a dll (and should export symbols for example).
16439 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16440 ;;
16442 hpux9* | hpux10* | hpux11*)
16443 lt_prog_compiler_wl_GCJ='-Wl,'
16444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16445 # not for PA HP-UX.
16446 case $host_cpu in
16447 hppa*64*|ia64*)
16448 # +Z the default
16449 ;;
16450 *)
16451 lt_prog_compiler_pic_GCJ='+Z'
16452 ;;
16453 esac
16454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16455 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16456 ;;
16458 irix5* | irix6* | nonstopux*)
16459 lt_prog_compiler_wl_GCJ='-Wl,'
16460 # PIC (with -KPIC) is the default.
16461 lt_prog_compiler_static_GCJ='-non_shared'
16462 ;;
16464 newsos6)
16465 lt_prog_compiler_pic_GCJ='-KPIC'
16466 lt_prog_compiler_static_GCJ='-Bstatic'
16467 ;;
16469 linux* | k*bsd*-gnu)
16470 case $cc_basename in
16471 icc* | ecc*)
16472 lt_prog_compiler_wl_GCJ='-Wl,'
16473 lt_prog_compiler_pic_GCJ='-KPIC'
16474 lt_prog_compiler_static_GCJ='-static'
16475 ;;
16476 pgcc* | pgf77* | pgf90* | pgf95*)
16477 # Portland Group compilers (*not* the Pentium gcc compiler,
16478 # which looks to be a dead project)
16479 lt_prog_compiler_wl_GCJ='-Wl,'
16480 lt_prog_compiler_pic_GCJ='-fpic'
16481 lt_prog_compiler_static_GCJ='-Bstatic'
16482 ;;
16483 ccc*)
16484 lt_prog_compiler_wl_GCJ='-Wl,'
16485 # All Alpha code is PIC.
16486 lt_prog_compiler_static_GCJ='-non_shared'
16487 ;;
16488 esac
16489 ;;
16491 osf3* | osf4* | osf5*)
16492 lt_prog_compiler_wl_GCJ='-Wl,'
16493 # All OSF/1 code is PIC.
16494 lt_prog_compiler_static_GCJ='-non_shared'
16495 ;;
16497 solaris*)
16498 lt_prog_compiler_pic_GCJ='-KPIC'
16499 lt_prog_compiler_static_GCJ='-Bstatic'
16500 case $cc_basename in
16501 f77* | f90* | f95*)
16502 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16503 *)
16504 lt_prog_compiler_wl_GCJ='-Wl,';;
16505 esac
16506 ;;
16508 sunos4*)
16509 lt_prog_compiler_wl_GCJ='-Qoption ld '
16510 lt_prog_compiler_pic_GCJ='-PIC'
16511 lt_prog_compiler_static_GCJ='-Bstatic'
16512 ;;
16514 sysv4 | sysv4.2uw2* | sysv4.3*)
16515 lt_prog_compiler_wl_GCJ='-Wl,'
16516 lt_prog_compiler_pic_GCJ='-KPIC'
16517 lt_prog_compiler_static_GCJ='-Bstatic'
16518 ;;
16520 sysv4*MP*)
16521 if test -d /usr/nec ;then
16522 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16523 lt_prog_compiler_static_GCJ='-Bstatic'
16524 fi
16525 ;;
16527 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16528 lt_prog_compiler_wl_GCJ='-Wl,'
16529 lt_prog_compiler_pic_GCJ='-KPIC'
16530 lt_prog_compiler_static_GCJ='-Bstatic'
16531 ;;
16533 unicos*)
16534 lt_prog_compiler_wl_GCJ='-Wl,'
16535 lt_prog_compiler_can_build_shared_GCJ=no
16536 ;;
16538 uts4*)
16539 lt_prog_compiler_pic_GCJ='-pic'
16540 lt_prog_compiler_static_GCJ='-Bstatic'
16541 ;;
16543 *)
16544 lt_prog_compiler_can_build_shared_GCJ=no
16545 ;;
16546 esac
16547 fi
16549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16550 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16552 #
16553 # Check to make sure the PIC flag actually works.
16554 #
16555 if test -n "$lt_prog_compiler_pic_GCJ"; then
16557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16559 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562 lt_prog_compiler_pic_works_GCJ=no
16563 ac_outfile=conftest.$ac_objext
16564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16565 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16566 # Insert the option either (1) after the last *FLAGS variable, or
16567 # (2) before a word containing "conftest.", or (3) at the end.
16568 # Note that $ac_compile itself does not contain backslashes and begins
16569 # with a dollar sign (not a hyphen), so the echo should work correctly.
16570 # The option is referenced via a variable to avoid confusing sed.
16571 lt_compile=`echo "$ac_compile" | $SED \
16572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16574 -e 's:$: $lt_compiler_flag:'`
16575 (eval echo "\"\$as_me:16575: $lt_compile\"" >&5)
16576 (eval "$lt_compile" 2>conftest.err)
16577 ac_status=$?
16578 cat conftest.err >&5
16579 echo "$as_me:16579: \$? = $ac_status" >&5
16580 if (exit $ac_status) && test -s "$ac_outfile"; then
16581 # The compiler can only warn and ignore the option if not recognized
16582 # So say no if there are warnings other than the usual output.
16583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16586 lt_prog_compiler_pic_works_GCJ=yes
16587 fi
16588 fi
16589 $rm conftest*
16591 fi
16592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16593 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16595 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16596 case $lt_prog_compiler_pic_GCJ in
16597 "" | " "*) ;;
16598 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16599 esac
16600 else
16601 lt_prog_compiler_pic_GCJ=
16602 lt_prog_compiler_can_build_shared_GCJ=no
16603 fi
16605 fi
16606 case $host_os in
16607 # For platforms which do not support PIC, -DPIC is meaningless:
16608 *djgpp*)
16609 lt_prog_compiler_pic_GCJ=
16610 ;;
16611 *)
16612 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16613 ;;
16614 esac
16616 #
16617 # Check to make sure the static flag actually works.
16618 #
16619 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16620 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16621 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16622 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625 lt_prog_compiler_static_works_GCJ=no
16626 save_LDFLAGS="$LDFLAGS"
16627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16628 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16630 # The linker can only warn and ignore the option if not recognized
16631 # So say no if there are warnings
16632 if test -s conftest.err; then
16633 # Append any errors to the config.log.
16634 cat conftest.err 1>&5
16635 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16637 if diff conftest.exp conftest.er2 >/dev/null; then
16638 lt_prog_compiler_static_works_GCJ=yes
16639 fi
16640 else
16641 lt_prog_compiler_static_works_GCJ=yes
16642 fi
16643 fi
16644 $rm conftest*
16645 LDFLAGS="$save_LDFLAGS"
16647 fi
16648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16649 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16651 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16652 :
16653 else
16654 lt_prog_compiler_static_GCJ=
16655 fi
16658 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16659 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16660 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663 lt_cv_prog_compiler_c_o_GCJ=no
16664 $rm -r conftest 2>/dev/null
16665 mkdir conftest
16666 cd conftest
16667 mkdir out
16668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16670 lt_compiler_flag="-o out/conftest2.$ac_objext"
16671 # Insert the option either (1) after the last *FLAGS variable, or
16672 # (2) before a word containing "conftest.", or (3) at the end.
16673 # Note that $ac_compile itself does not contain backslashes and begins
16674 # with a dollar sign (not a hyphen), so the echo should work correctly.
16675 lt_compile=`echo "$ac_compile" | $SED \
16676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16678 -e 's:$: $lt_compiler_flag:'`
16679 (eval echo "\"\$as_me:16679: $lt_compile\"" >&5)
16680 (eval "$lt_compile" 2>out/conftest.err)
16681 ac_status=$?
16682 cat out/conftest.err >&5
16683 echo "$as_me:16683: \$? = $ac_status" >&5
16684 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16685 then
16686 # The compiler can only warn and ignore the option if not recognized
16687 # So say no if there are warnings
16688 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16689 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16690 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16691 lt_cv_prog_compiler_c_o_GCJ=yes
16692 fi
16693 fi
16694 chmod u+w . 2>&5
16695 $rm conftest*
16696 # SGI C++ compiler will create directory out/ii_files/ for
16697 # template instantiation
16698 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16699 $rm out/* && rmdir out
16700 cd ..
16701 rmdir conftest
16702 $rm conftest*
16704 fi
16705 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16706 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16709 hard_links="nottested"
16710 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16711 # do not overwrite the value of need_locks provided by the user
16712 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16713 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16714 hard_links=yes
16715 $rm conftest*
16716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16717 touch conftest.a
16718 ln conftest.a conftest.b 2>&5 || hard_links=no
16719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16720 { echo "$as_me:$LINENO: result: $hard_links" >&5
16721 echo "${ECHO_T}$hard_links" >&6; }
16722 if test "$hard_links" = no; then
16723 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16724 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16725 need_locks=warn
16726 fi
16727 else
16728 need_locks=no
16729 fi
16731 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16732 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16734 runpath_var=
16735 allow_undefined_flag_GCJ=
16736 enable_shared_with_static_runtimes_GCJ=no
16737 archive_cmds_GCJ=
16738 archive_expsym_cmds_GCJ=
16739 old_archive_From_new_cmds_GCJ=
16740 old_archive_from_expsyms_cmds_GCJ=
16741 export_dynamic_flag_spec_GCJ=
16742 whole_archive_flag_spec_GCJ=
16743 thread_safe_flag_spec_GCJ=
16744 hardcode_libdir_flag_spec_GCJ=
16745 hardcode_libdir_flag_spec_ld_GCJ=
16746 hardcode_libdir_separator_GCJ=
16747 hardcode_direct_GCJ=no
16748 hardcode_minus_L_GCJ=no
16749 hardcode_shlibpath_var_GCJ=unsupported
16750 link_all_deplibs_GCJ=unknown
16751 hardcode_automatic_GCJ=no
16752 module_cmds_GCJ=
16753 module_expsym_cmds_GCJ=
16754 always_export_symbols_GCJ=no
16755 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16756 # include_expsyms should be a list of space-separated symbols to be *always*
16757 # included in the symbol list
16758 include_expsyms_GCJ=
16759 # exclude_expsyms can be an extended regexp of symbols to exclude
16760 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16761 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16762 # as well as any symbol that contains `d'.
16763 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16765 # platforms (ab)use it in PIC code, but their linkers get confused if
16766 # the symbol is explicitly referenced. Since portable code cannot
16767 # rely on this symbol name, it's probably fine to never include it in
16768 # preloaded symbol tables.
16769 extract_expsyms_cmds=
16770 # Just being paranoid about ensuring that cc_basename is set.
16771 for cc_temp in $compiler""; do
16772 case $cc_temp in
16773 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16774 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16775 \-*) ;;
16776 *) break;;
16777 esac
16778 done
16779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16781 case $host_os in
16782 cygwin* | mingw* | pw32*)
16783 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16784 # When not using gcc, we currently assume that we are using
16785 # Microsoft Visual C++.
16786 if test "$GCC" != yes; then
16787 with_gnu_ld=no
16788 fi
16789 ;;
16790 interix*)
16791 # we just hope/assume this is gcc and not c89 (= MSVC++)
16792 with_gnu_ld=yes
16793 ;;
16794 openbsd*)
16795 with_gnu_ld=no
16796 ;;
16797 esac
16799 ld_shlibs_GCJ=yes
16800 if test "$with_gnu_ld" = yes; then
16801 # If archive_cmds runs LD, not CC, wlarc should be empty
16802 wlarc='${wl}'
16804 # Set some defaults for GNU ld with shared library support. These
16805 # are reset later if shared libraries are not supported. Putting them
16806 # here allows them to be overridden if necessary.
16807 runpath_var=LD_RUN_PATH
16808 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16809 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16810 # ancient GNU ld didn't support --whole-archive et. al.
16811 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16812 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16813 else
16814 whole_archive_flag_spec_GCJ=
16815 fi
16816 supports_anon_versioning=no
16817 case `$LD -v 2>/dev/null` in
16818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16821 *\ 2.11.*) ;; # other 2.11 versions
16822 *) supports_anon_versioning=yes ;;
16823 esac
16825 # See if GNU ld supports shared libraries.
16826 case $host_os in
16827 aix3* | aix4* | aix5*)
16828 # On AIX/PPC, the GNU linker is very broken
16829 if test "$host_cpu" != ia64; then
16830 ld_shlibs_GCJ=no
16831 cat <<EOF 1>&2
16833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16834 *** to be unable to reliably create shared libraries on AIX.
16835 *** Therefore, libtool is disabling shared libraries support. If you
16836 *** really care for shared libraries, you may want to modify your PATH
16837 *** so that a non-GNU linker is found, and then restart.
16839 EOF
16840 fi
16841 ;;
16843 amigaos*)
16844 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)'
16845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16846 hardcode_minus_L_GCJ=yes
16848 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16849 # that the semantics of dynamic libraries on AmigaOS, at least up
16850 # to version 4, is to share data among multiple programs linked
16851 # with the same dynamic library. Since this doesn't match the
16852 # behavior of shared libraries on other platforms, we can't use
16853 # them.
16854 ld_shlibs_GCJ=no
16855 ;;
16857 beos*)
16858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16859 allow_undefined_flag_GCJ=unsupported
16860 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16861 # support --undefined. This deserves some investigation. FIXME
16862 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16863 else
16864 ld_shlibs_GCJ=no
16865 fi
16866 ;;
16868 cygwin* | mingw* | pw32*)
16869 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16870 # as there is no search path for DLLs.
16871 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16872 allow_undefined_flag_GCJ=unsupported
16873 always_export_symbols_GCJ=no
16874 enable_shared_with_static_runtimes_GCJ=yes
16875 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16877 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16878 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16879 # If the export-symbols file already is a .def file (1st line
16880 # is EXPORTS), use it as is; otherwise, prepend...
16881 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16882 cp $export_symbols $output_objdir/$soname.def;
16883 else
16884 echo EXPORTS > $output_objdir/$soname.def;
16885 cat $export_symbols >> $output_objdir/$soname.def;
16886 fi~
16887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16888 else
16889 ld_shlibs_GCJ=no
16890 fi
16891 ;;
16893 interix3*)
16894 hardcode_direct_GCJ=no
16895 hardcode_shlibpath_var_GCJ=no
16896 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16897 export_dynamic_flag_spec_GCJ='${wl}-E'
16898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16899 # Instead, shared libraries are loaded at an image base (0x10000000 by
16900 # default) and relocated if they conflict, which is a slow very memory
16901 # consuming and fragmenting process. To avoid this, we pick a random,
16902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16904 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'
16905 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'
16906 ;;
16908 linux* | k*bsd*-gnu)
16909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16910 tmp_addflag=
16911 case $cc_basename,$host_cpu in
16912 pgcc*) # Portland Group C compiler
16913 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'
16914 tmp_addflag=' $pic_flag'
16915 ;;
16916 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16917 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'
16918 tmp_addflag=' $pic_flag -Mnomain' ;;
16919 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16920 tmp_addflag=' -i_dynamic' ;;
16921 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16922 tmp_addflag=' -i_dynamic -nofor_main' ;;
16923 ifc* | ifort*) # Intel Fortran compiler
16924 tmp_addflag=' -nofor_main' ;;
16925 esac
16926 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16928 if test $supports_anon_versioning = yes; then
16929 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16931 $echo "local: *; };" >> $output_objdir/$libname.ver~
16932 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16933 fi
16934 link_all_deplibs_GCJ=no
16935 else
16936 ld_shlibs_GCJ=no
16937 fi
16938 ;;
16940 netbsd* | netbsdelf*-gnu)
16941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16942 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16943 wlarc=
16944 else
16945 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16946 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16947 fi
16948 ;;
16950 solaris*)
16951 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16952 ld_shlibs_GCJ=no
16953 cat <<EOF 1>&2
16955 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16956 *** create shared libraries on Solaris systems. Therefore, libtool
16957 *** is disabling shared libraries support. We urge you to upgrade GNU
16958 *** binutils to release 2.9.1 or newer. Another option is to modify
16959 *** your PATH or compiler configuration so that the native linker is
16960 *** used, and then restart.
16962 EOF
16963 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16964 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16965 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16966 else
16967 ld_shlibs_GCJ=no
16968 fi
16969 ;;
16971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16972 case `$LD -v 2>&1` in
16973 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16974 ld_shlibs_GCJ=no
16975 cat <<_LT_EOF 1>&2
16977 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16978 *** reliably create shared libraries on SCO systems. Therefore, libtool
16979 *** is disabling shared libraries support. We urge you to upgrade GNU
16980 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16981 *** your PATH or compiler configuration so that the native linker is
16982 *** used, and then restart.
16984 _LT_EOF
16985 ;;
16986 *)
16987 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16988 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16989 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16990 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16991 else
16992 ld_shlibs_GCJ=no
16993 fi
16994 ;;
16995 esac
16996 ;;
16998 sunos4*)
16999 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17000 wlarc=
17001 hardcode_direct_GCJ=yes
17002 hardcode_shlibpath_var_GCJ=no
17003 ;;
17005 *)
17006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17007 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17008 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17009 else
17010 ld_shlibs_GCJ=no
17011 fi
17012 ;;
17013 esac
17015 if test "$ld_shlibs_GCJ" = no; then
17016 runpath_var=
17017 hardcode_libdir_flag_spec_GCJ=
17018 export_dynamic_flag_spec_GCJ=
17019 whole_archive_flag_spec_GCJ=
17020 fi
17021 else
17022 # PORTME fill in a description of your system's linker (not GNU ld)
17023 case $host_os in
17024 aix3*)
17025 allow_undefined_flag_GCJ=unsupported
17026 always_export_symbols_GCJ=yes
17027 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'
17028 # Note: this linker hardcodes the directories in LIBPATH if there
17029 # are no directories specified by -L.
17030 hardcode_minus_L_GCJ=yes
17031 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17032 # Neither direct hardcoding nor static linking is supported with a
17033 # broken collect2.
17034 hardcode_direct_GCJ=unsupported
17035 fi
17036 ;;
17038 aix4* | aix5*)
17039 if test "$host_cpu" = ia64; then
17040 # On IA64, the linker does run time linking by default, so we don't
17041 # have to do anything special.
17042 aix_use_runtimelinking=no
17043 exp_sym_flag='-Bexport'
17044 no_entry_flag=""
17045 else
17046 # If we're using GNU nm, then we don't want the "-C" option.
17047 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17048 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17049 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'
17050 else
17051 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'
17052 fi
17053 aix_use_runtimelinking=no
17055 # Test if we are trying to use run time linking or normal
17056 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17057 # need to do runtime linking.
17058 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17059 for ld_flag in $LDFLAGS; do
17060 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17061 aix_use_runtimelinking=yes
17062 break
17063 fi
17064 done
17065 ;;
17066 esac
17068 exp_sym_flag='-bexport'
17069 no_entry_flag='-bnoentry'
17070 fi
17072 # When large executables or shared objects are built, AIX ld can
17073 # have problems creating the table of contents. If linking a library
17074 # or program results in "error TOC overflow" add -mminimal-toc to
17075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17078 archive_cmds_GCJ=''
17079 hardcode_direct_GCJ=yes
17080 hardcode_libdir_separator_GCJ=':'
17081 link_all_deplibs_GCJ=yes
17083 if test "$GCC" = yes; then
17084 case $host_os in aix4.[012]|aix4.[012].*)
17085 # We only want to do this on AIX 4.2 and lower, the check
17086 # below for broken collect2 doesn't work under 4.3+
17087 collect2name=`${CC} -print-prog-name=collect2`
17088 if test -f "$collect2name" && \
17089 strings "$collect2name" | grep resolve_lib_name >/dev/null
17090 then
17091 # We have reworked collect2
17092 hardcode_direct_GCJ=yes
17093 else
17094 # We have old collect2
17095 hardcode_direct_GCJ=unsupported
17096 # It fails to find uninstalled libraries when the uninstalled
17097 # path is not listed in the libpath. Setting hardcode_minus_L
17098 # to unsupported forces relinking
17099 hardcode_minus_L_GCJ=yes
17100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17101 hardcode_libdir_separator_GCJ=
17102 fi
17103 ;;
17104 esac
17105 shared_flag='-shared'
17106 if test "$aix_use_runtimelinking" = yes; then
17107 shared_flag="$shared_flag "'${wl}-G'
17108 fi
17109 else
17110 # not using gcc
17111 if test "$host_cpu" = ia64; then
17112 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17113 # chokes on -Wl,-G. The following line is correct:
17114 shared_flag='-G'
17115 else
17116 if test "$aix_use_runtimelinking" = yes; then
17117 shared_flag='${wl}-G'
17118 else
17119 shared_flag='${wl}-bM:SRE'
17120 fi
17121 fi
17122 fi
17124 # It seems that -bexpall does not export symbols beginning with
17125 # underscore (_), so it is better to generate a list of symbols to export.
17126 always_export_symbols_GCJ=yes
17127 if test "$aix_use_runtimelinking" = yes; then
17128 # Warning - without using the other runtime loading flags (-brtl),
17129 # -berok will link without error, but may produce a broken library.
17130 allow_undefined_flag_GCJ='-berok'
17131 # Determine the default libpath from the value encoded in an empty executable.
17132 cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h. */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17139 int
17140 main ()
17141 {
17143 ;
17144 return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } && {
17161 test -z "$ac_c_werror_flag" ||
17162 test ! -s conftest.err
17163 } && test -s conftest$ac_exeext &&
17164 $as_test_x conftest$ac_exeext; then
17166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17167 }'`
17168 # Check for a 64-bit object if we didn't find anything.
17169 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; }
17170 }'`; fi
17171 else
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17176 fi
17178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179 conftest$ac_exeext conftest.$ac_ext
17180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17182 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17183 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"
17184 else
17185 if test "$host_cpu" = ia64; then
17186 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17187 allow_undefined_flag_GCJ="-z nodefs"
17188 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"
17189 else
17190 # Determine the default libpath from the value encoded in an empty executable.
17191 cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h. */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17198 int
17199 main ()
17200 {
17202 ;
17203 return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (ac_try="$ac_link"
17208 case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17211 esac
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_link") 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && {
17220 test -z "$ac_c_werror_flag" ||
17221 test ! -s conftest.err
17222 } && test -s conftest$ac_exeext &&
17223 $as_test_x conftest$ac_exeext; then
17225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17226 }'`
17227 # Check for a 64-bit object if we didn't find anything.
17228 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; }
17229 }'`; fi
17230 else
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17235 fi
17237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17238 conftest$ac_exeext conftest.$ac_ext
17239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17241 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17242 # Warning - without using the other run time loading flags,
17243 # -berok will link without error, but may produce a broken library.
17244 no_undefined_flag_GCJ=' ${wl}-bernotok'
17245 allow_undefined_flag_GCJ=' ${wl}-berok'
17246 # Exported symbols can be pulled into shared objects from archives
17247 whole_archive_flag_spec_GCJ='$convenience'
17248 archive_cmds_need_lc_GCJ=yes
17249 # This is similar to how AIX traditionally builds its shared libraries.
17250 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'
17251 fi
17252 fi
17253 ;;
17255 amigaos*)
17256 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)'
17257 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17258 hardcode_minus_L_GCJ=yes
17259 # see comment about different semantics on the GNU ld section
17260 ld_shlibs_GCJ=no
17261 ;;
17263 bsdi[45]*)
17264 export_dynamic_flag_spec_GCJ=-rdynamic
17265 ;;
17267 cygwin* | mingw* | pw32*)
17268 # When not using gcc, we currently assume that we are using
17269 # Microsoft Visual C++.
17270 # hardcode_libdir_flag_spec is actually meaningless, as there is
17271 # no search path for DLLs.
17272 hardcode_libdir_flag_spec_GCJ=' '
17273 allow_undefined_flag_GCJ=unsupported
17274 # Tell ltmain to make .lib files, not .a files.
17275 libext=lib
17276 # Tell ltmain to make .dll files, not .so files.
17277 shrext_cmds=".dll"
17278 # FIXME: Setting linknames here is a bad hack.
17279 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17280 # The linker will automatically build a .lib file if we build a DLL.
17281 old_archive_From_new_cmds_GCJ='true'
17282 # FIXME: Should let the user specify the lib program.
17283 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17284 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17285 enable_shared_with_static_runtimes_GCJ=yes
17286 ;;
17288 darwin* | rhapsody*)
17289 case $host_os in
17290 rhapsody* | darwin1.[012])
17291 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17292 ;;
17293 *) # Darwin 1.3 on
17294 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17295 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17296 else
17297 case ${MACOSX_DEPLOYMENT_TARGET} in
17298 10.[012])
17299 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17300 ;;
17301 10.*)
17302 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17303 ;;
17304 esac
17305 fi
17306 ;;
17307 esac
17308 archive_cmds_need_lc_GCJ=no
17309 hardcode_direct_GCJ=no
17310 hardcode_automatic_GCJ=yes
17311 hardcode_shlibpath_var_GCJ=unsupported
17312 whole_archive_flag_spec_GCJ=''
17313 link_all_deplibs_GCJ=yes
17314 if test "$GCC" = yes ; then
17315 output_verbose_link_cmd='echo'
17316 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17317 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17318 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17319 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}'
17320 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}'
17321 else
17322 case $cc_basename in
17323 xlc*)
17324 output_verbose_link_cmd='echo'
17325 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17326 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17328 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}'
17329 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}'
17330 ;;
17331 *)
17332 ld_shlibs_GCJ=no
17333 ;;
17334 esac
17335 fi
17336 ;;
17338 dgux*)
17339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17340 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17341 hardcode_shlibpath_var_GCJ=no
17342 ;;
17344 freebsd1*)
17345 ld_shlibs_GCJ=no
17346 ;;
17348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17349 # support. Future versions do this automatically, but an explicit c++rt0.o
17350 # does not break anything, and helps significantly (at the cost of a little
17351 # extra space).
17352 freebsd2.2*)
17353 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17354 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17355 hardcode_direct_GCJ=yes
17356 hardcode_shlibpath_var_GCJ=no
17357 ;;
17359 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17360 freebsd2*)
17361 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17362 hardcode_direct_GCJ=yes
17363 hardcode_minus_L_GCJ=yes
17364 hardcode_shlibpath_var_GCJ=no
17365 ;;
17367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17368 freebsd* | dragonfly*)
17369 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17370 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17371 hardcode_direct_GCJ=yes
17372 hardcode_shlibpath_var_GCJ=no
17373 ;;
17375 hpux9*)
17376 if test "$GCC" = yes; then
17377 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'
17378 else
17379 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'
17380 fi
17381 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17382 hardcode_libdir_separator_GCJ=:
17383 hardcode_direct_GCJ=yes
17385 # hardcode_minus_L: Not really in the search PATH,
17386 # but as the default location of the library.
17387 hardcode_minus_L_GCJ=yes
17388 export_dynamic_flag_spec_GCJ='${wl}-E'
17389 ;;
17391 hpux10*)
17392 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17393 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17394 else
17395 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17396 fi
17397 if test "$with_gnu_ld" = no; then
17398 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17399 hardcode_libdir_separator_GCJ=:
17401 hardcode_direct_GCJ=yes
17402 export_dynamic_flag_spec_GCJ='${wl}-E'
17404 # hardcode_minus_L: Not really in the search PATH,
17405 # but as the default location of the library.
17406 hardcode_minus_L_GCJ=yes
17407 fi
17408 ;;
17410 hpux11*)
17411 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17412 case $host_cpu in
17413 hppa*64*)
17414 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17415 ;;
17416 ia64*)
17417 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17418 ;;
17419 *)
17420 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17421 ;;
17422 esac
17423 else
17424 case $host_cpu in
17425 hppa*64*)
17426 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17427 ;;
17428 ia64*)
17429 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17430 ;;
17431 *)
17432 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17433 ;;
17434 esac
17435 fi
17436 if test "$with_gnu_ld" = no; then
17437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17438 hardcode_libdir_separator_GCJ=:
17440 case $host_cpu in
17441 hppa*64*|ia64*)
17442 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17443 hardcode_direct_GCJ=no
17444 hardcode_shlibpath_var_GCJ=no
17445 ;;
17446 *)
17447 hardcode_direct_GCJ=yes
17448 export_dynamic_flag_spec_GCJ='${wl}-E'
17450 # hardcode_minus_L: Not really in the search PATH,
17451 # but as the default location of the library.
17452 hardcode_minus_L_GCJ=yes
17453 ;;
17454 esac
17455 fi
17456 ;;
17458 irix5* | irix6* | nonstopux*)
17459 if test "$GCC" = yes; then
17460 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'
17461 else
17462 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'
17463 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17464 fi
17465 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17466 hardcode_libdir_separator_GCJ=:
17467 link_all_deplibs_GCJ=yes
17468 ;;
17470 netbsd* | netbsdelf*-gnu)
17471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17473 else
17474 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17475 fi
17476 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17477 hardcode_direct_GCJ=yes
17478 hardcode_shlibpath_var_GCJ=no
17479 ;;
17481 newsos6)
17482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17483 hardcode_direct_GCJ=yes
17484 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17485 hardcode_libdir_separator_GCJ=:
17486 hardcode_shlibpath_var_GCJ=no
17487 ;;
17489 openbsd*)
17490 hardcode_direct_GCJ=yes
17491 hardcode_shlibpath_var_GCJ=no
17492 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17493 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17494 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17495 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17496 export_dynamic_flag_spec_GCJ='${wl}-E'
17497 else
17498 case $host_os in
17499 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17500 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17501 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17502 ;;
17503 *)
17504 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17505 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17506 ;;
17507 esac
17508 fi
17509 ;;
17511 os2*)
17512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17513 hardcode_minus_L_GCJ=yes
17514 allow_undefined_flag_GCJ=unsupported
17515 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'
17516 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17517 ;;
17519 osf3*)
17520 if test "$GCC" = yes; then
17521 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17522 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'
17523 else
17524 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17525 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'
17526 fi
17527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17528 hardcode_libdir_separator_GCJ=:
17529 ;;
17531 osf4* | osf5*) # as osf3* with the addition of -msym flag
17532 if test "$GCC" = yes; then
17533 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17534 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'
17535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17536 else
17537 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17538 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'
17539 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~
17540 $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'
17542 # Both c and cxx compiler support -rpath directly
17543 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17544 fi
17545 hardcode_libdir_separator_GCJ=:
17546 ;;
17548 solaris*)
17549 no_undefined_flag_GCJ=' -z text'
17550 if test "$GCC" = yes; then
17551 wlarc='${wl}'
17552 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17553 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17554 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17555 else
17556 wlarc=''
17557 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17558 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17559 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17560 fi
17561 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17562 hardcode_shlibpath_var_GCJ=no
17563 case $host_os in
17564 solaris2.[0-5] | solaris2.[0-5].*) ;;
17565 *)
17566 # The compiler driver will combine linker options so we
17567 # cannot just pass the convience library names through
17568 # without $wl, iff we do not link with $LD.
17569 # Luckily, gcc supports the same syntax we need for Sun Studio.
17570 # Supported since Solaris 2.6 (maybe 2.5.1?)
17571 case $wlarc in
17572 '')
17573 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17574 *)
17575 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' ;;
17576 esac ;;
17577 esac
17578 link_all_deplibs_GCJ=yes
17579 ;;
17581 sunos4*)
17582 if test "x$host_vendor" = xsequent; then
17583 # Use $CC to link under sequent, because it throws in some extra .o
17584 # files that make .init and .fini sections work.
17585 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17586 else
17587 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17588 fi
17589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17590 hardcode_direct_GCJ=yes
17591 hardcode_minus_L_GCJ=yes
17592 hardcode_shlibpath_var_GCJ=no
17593 ;;
17595 sysv4)
17596 case $host_vendor in
17597 sni)
17598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_direct_GCJ=yes # is this really true???
17600 ;;
17601 siemens)
17602 ## LD is ld it makes a PLAMLIB
17603 ## CC just makes a GrossModule.
17604 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17605 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17606 hardcode_direct_GCJ=no
17607 ;;
17608 motorola)
17609 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17610 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17611 ;;
17612 esac
17613 runpath_var='LD_RUN_PATH'
17614 hardcode_shlibpath_var_GCJ=no
17615 ;;
17617 sysv4.3*)
17618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_shlibpath_var_GCJ=no
17620 export_dynamic_flag_spec_GCJ='-Bexport'
17621 ;;
17623 sysv4*MP*)
17624 if test -d /usr/nec; then
17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_shlibpath_var_GCJ=no
17627 runpath_var=LD_RUN_PATH
17628 hardcode_runpath_var=yes
17629 ld_shlibs_GCJ=yes
17630 fi
17631 ;;
17633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17634 no_undefined_flag_GCJ='${wl}-z,text'
17635 archive_cmds_need_lc_GCJ=no
17636 hardcode_shlibpath_var_GCJ=no
17637 runpath_var='LD_RUN_PATH'
17639 if test "$GCC" = yes; then
17640 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17641 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17642 else
17643 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17644 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17645 fi
17646 ;;
17648 sysv5* | sco3.2v5* | sco5v6*)
17649 # Note: We can NOT use -z defs as we might desire, because we do not
17650 # link with -lc, and that would cause any symbols used from libc to
17651 # always be unresolved, which means just about no library would
17652 # ever link correctly. If we're not using GNU ld we use -z text
17653 # though, which does catch some bad symbols but isn't as heavy-handed
17654 # as -z defs.
17655 no_undefined_flag_GCJ='${wl}-z,text'
17656 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17657 archive_cmds_need_lc_GCJ=no
17658 hardcode_shlibpath_var_GCJ=no
17659 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17660 hardcode_libdir_separator_GCJ=':'
17661 link_all_deplibs_GCJ=yes
17662 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17663 runpath_var='LD_RUN_PATH'
17665 if test "$GCC" = yes; then
17666 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17667 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 else
17669 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17670 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17671 fi
17672 ;;
17674 uts4*)
17675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17677 hardcode_shlibpath_var_GCJ=no
17678 ;;
17680 *)
17681 ld_shlibs_GCJ=no
17682 ;;
17683 esac
17684 fi
17686 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17687 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17688 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17690 #
17691 # Do we need to explicitly link libc?
17692 #
17693 case "x$archive_cmds_need_lc_GCJ" in
17694 x|xyes)
17695 # Assume -lc should be added
17696 archive_cmds_need_lc_GCJ=yes
17698 if test "$enable_shared" = yes && test "$GCC" = yes; then
17699 case $archive_cmds_GCJ in
17700 *'~'*)
17701 # FIXME: we may have to deal with multi-command sequences.
17702 ;;
17703 '$CC '*)
17704 # Test whether the compiler implicitly links with -lc since on some
17705 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17706 # to ld, don't add -lc before -lgcc.
17707 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17708 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17709 $rm conftest*
17710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17713 (eval $ac_compile) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } 2>conftest.err; then
17717 soname=conftest
17718 lib=conftest
17719 libobjs=conftest.$ac_objext
17720 deplibs=
17721 wl=$lt_prog_compiler_wl_GCJ
17722 pic_flag=$lt_prog_compiler_pic_GCJ
17723 compiler_flags=-v
17724 linker_flags=-v
17725 verstring=
17726 output_objdir=.
17727 libname=conftest
17728 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17729 allow_undefined_flag_GCJ=
17730 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17731 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }
17735 then
17736 archive_cmds_need_lc_GCJ=no
17737 else
17738 archive_cmds_need_lc_GCJ=yes
17739 fi
17740 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17741 else
17742 cat conftest.err 1>&5
17743 fi
17744 $rm conftest*
17745 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17746 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17747 ;;
17748 esac
17749 fi
17750 ;;
17751 esac
17753 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17754 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17755 library_names_spec=
17756 libname_spec='lib$name'
17757 soname_spec=
17758 shrext_cmds=".so"
17759 postinstall_cmds=
17760 postuninstall_cmds=
17761 finish_cmds=
17762 finish_eval=
17763 shlibpath_var=
17764 shlibpath_overrides_runpath=unknown
17765 version_type=none
17766 dynamic_linker="$host_os ld.so"
17767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17768 if test "$GCC" = yes; then
17769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17770 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17771 # if the path contains ";" then we assume it to be the separator
17772 # otherwise default to the standard path separator (i.e. ":") - it is
17773 # assumed that no part of a normal pathname contains ";" but that should
17774 # okay in the real world where ";" in dirpaths is itself problematic.
17775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17776 else
17777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17778 fi
17779 else
17780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17781 fi
17782 need_lib_prefix=unknown
17783 hardcode_into_libs=no
17785 # when you set need_version to no, make sure it does not cause -set_version
17786 # flags to be left without arguments
17787 need_version=unknown
17789 case $host_os in
17790 aix3*)
17791 version_type=linux
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17793 shlibpath_var=LIBPATH
17795 # AIX 3 has no versioning support, so we append a major version to the name.
17796 soname_spec='${libname}${release}${shared_ext}$major'
17797 ;;
17799 aix4* | aix5*)
17800 version_type=linux
17801 need_lib_prefix=no
17802 need_version=no
17803 hardcode_into_libs=yes
17804 if test "$host_cpu" = ia64; then
17805 # AIX 5 supports IA64
17806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17807 shlibpath_var=LD_LIBRARY_PATH
17808 else
17809 # With GCC up to 2.95.x, collect2 would create an import file
17810 # for dependence libraries. The import file would start with
17811 # the line `#! .'. This would cause the generated library to
17812 # depend on `.', always an invalid library. This was fixed in
17813 # development snapshots of GCC prior to 3.0.
17814 case $host_os in
17815 aix4 | aix4.[01] | aix4.[01].*)
17816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17817 echo ' yes '
17818 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17819 :
17820 else
17821 can_build_shared=no
17822 fi
17823 ;;
17824 esac
17825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17826 # soname into executable. Probably we can add versioning support to
17827 # collect2, so additional links can be useful in future.
17828 if test "$aix_use_runtimelinking" = yes; then
17829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17830 # instead of lib<name>.a to let people know that these are not
17831 # typical AIX shared libraries.
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833 else
17834 # We preserve .a as extension for shared libraries through AIX4.2
17835 # and later when we are not doing run time linking.
17836 library_names_spec='${libname}${release}.a $libname.a'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17838 fi
17839 shlibpath_var=LIBPATH
17840 fi
17841 ;;
17843 amigaos*)
17844 library_names_spec='$libname.ixlibrary $libname.a'
17845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17846 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'
17847 ;;
17849 beos*)
17850 library_names_spec='${libname}${shared_ext}'
17851 dynamic_linker="$host_os ld.so"
17852 shlibpath_var=LIBRARY_PATH
17853 ;;
17855 bsdi[45]*)
17856 version_type=linux
17857 need_version=no
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17861 shlibpath_var=LD_LIBRARY_PATH
17862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17864 # the default ld.so.conf also contains /usr/contrib/lib and
17865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17866 # libtool to hard-code these into programs
17867 ;;
17869 cygwin* | mingw* | pw32*)
17870 version_type=windows
17871 shrext_cmds=".dll"
17872 need_version=no
17873 need_lib_prefix=no
17875 case $GCC,$host_os in
17876 yes,cygwin* | yes,mingw* | yes,pw32*)
17877 library_names_spec='$libname.dll.a'
17878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17879 postinstall_cmds='base_file=`basename \${file}`~
17880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17881 dldir=$destdir/`dirname \$dlpath`~
17882 test -d \$dldir || mkdir -p \$dldir~
17883 $install_prog $dir/$dlname \$dldir/$dlname~
17884 chmod a+x \$dldir/$dlname'
17885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17886 dlpath=$dir/\$dldll~
17887 $rm \$dlpath'
17888 shlibpath_overrides_runpath=yes
17890 case $host_os in
17891 cygwin*)
17892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17894 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17895 ;;
17896 mingw*)
17897 # MinGW DLLs use traditional 'lib' prefix
17898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17899 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17900 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17901 # It is most probably a Windows format PATH printed by
17902 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17903 # path with ; separators, and with drive letters. We can handle the
17904 # drive letters (cygwin fileutils understands them), so leave them,
17905 # especially as we might pass files found there to a mingw objdump,
17906 # which wouldn't understand a cygwinified path. Ahh.
17907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17908 else
17909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17910 fi
17911 ;;
17912 pw32*)
17913 # pw32 DLLs use 'pw' prefix rather than 'lib'
17914 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17915 ;;
17916 esac
17917 ;;
17919 *)
17920 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17921 ;;
17922 esac
17923 dynamic_linker='Win32 ld.exe'
17924 # FIXME: first we should search . and the directory the executable is in
17925 shlibpath_var=PATH
17926 ;;
17928 darwin* | rhapsody*)
17929 dynamic_linker="$host_os dyld"
17930 version_type=darwin
17931 need_lib_prefix=no
17932 need_version=no
17933 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17934 soname_spec='${libname}${release}${major}$shared_ext'
17935 shlibpath_overrides_runpath=yes
17936 shlibpath_var=DYLD_LIBRARY_PATH
17937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17938 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17939 if test "$GCC" = yes; then
17940 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"`
17941 else
17942 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17943 fi
17944 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17945 ;;
17947 dgux*)
17948 version_type=linux
17949 need_lib_prefix=no
17950 need_version=no
17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17952 soname_spec='${libname}${release}${shared_ext}$major'
17953 shlibpath_var=LD_LIBRARY_PATH
17954 ;;
17956 freebsd1*)
17957 dynamic_linker=no
17958 ;;
17960 freebsd* | dragonfly*)
17961 # DragonFly does not have aout. When/if they implement a new
17962 # versioning mechanism, adjust this.
17963 if test -x /usr/bin/objformat; then
17964 objformat=`/usr/bin/objformat`
17965 else
17966 case $host_os in
17967 freebsd[123]*) objformat=aout ;;
17968 *) objformat=elf ;;
17969 esac
17970 fi
17971 version_type=freebsd-$objformat
17972 case $version_type in
17973 freebsd-elf*)
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17975 need_version=no
17976 need_lib_prefix=no
17977 ;;
17978 freebsd-*)
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17980 need_version=yes
17981 ;;
17982 esac
17983 shlibpath_var=LD_LIBRARY_PATH
17984 case $host_os in
17985 freebsd2*)
17986 shlibpath_overrides_runpath=yes
17987 ;;
17988 freebsd3.[01]* | freebsdelf3.[01]*)
17989 shlibpath_overrides_runpath=yes
17990 hardcode_into_libs=yes
17991 ;;
17992 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17993 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17994 shlibpath_overrides_runpath=no
17995 hardcode_into_libs=yes
17996 ;;
17997 freebsd*) # from 4.6 on
17998 shlibpath_overrides_runpath=yes
17999 hardcode_into_libs=yes
18000 ;;
18001 esac
18002 ;;
18004 gnu*)
18005 version_type=linux
18006 need_lib_prefix=no
18007 need_version=no
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18009 soname_spec='${libname}${release}${shared_ext}$major'
18010 shlibpath_var=LD_LIBRARY_PATH
18011 hardcode_into_libs=yes
18012 ;;
18014 hpux9* | hpux10* | hpux11*)
18015 # Give a soname corresponding to the major version so that dld.sl refuses to
18016 # link against other versions.
18017 version_type=sunos
18018 need_lib_prefix=no
18019 need_version=no
18020 case $host_cpu in
18021 ia64*)
18022 shrext_cmds='.so'
18023 hardcode_into_libs=yes
18024 dynamic_linker="$host_os dld.so"
18025 shlibpath_var=LD_LIBRARY_PATH
18026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 if test "X$HPUX_IA64_MODE" = X32; then
18030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18031 else
18032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18033 fi
18034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18035 ;;
18036 hppa*64*)
18037 shrext_cmds='.sl'
18038 hardcode_into_libs=yes
18039 dynamic_linker="$host_os dld.sl"
18040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18046 ;;
18047 *)
18048 shrext_cmds='.sl'
18049 dynamic_linker="$host_os dld.sl"
18050 shlibpath_var=SHLIB_PATH
18051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 soname_spec='${libname}${release}${shared_ext}$major'
18054 ;;
18055 esac
18056 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18057 postinstall_cmds='chmod 555 $lib'
18058 ;;
18060 interix3*)
18061 version_type=linux
18062 need_lib_prefix=no
18063 need_version=no
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18065 soname_spec='${libname}${release}${shared_ext}$major'
18066 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18067 shlibpath_var=LD_LIBRARY_PATH
18068 shlibpath_overrides_runpath=no
18069 hardcode_into_libs=yes
18070 ;;
18072 irix5* | irix6* | nonstopux*)
18073 case $host_os in
18074 nonstopux*) version_type=nonstopux ;;
18075 *)
18076 if test "$lt_cv_prog_gnu_ld" = yes; then
18077 version_type=linux
18078 else
18079 version_type=irix
18080 fi ;;
18081 esac
18082 need_lib_prefix=no
18083 need_version=no
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18086 case $host_os in
18087 irix5* | nonstopux*)
18088 libsuff= shlibsuff=
18089 ;;
18090 *)
18091 case $LD in # libtool.m4 will add one of these switches to LD
18092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18093 libsuff= shlibsuff= libmagic=32-bit;;
18094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18095 libsuff=32 shlibsuff=N32 libmagic=N32;;
18096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18097 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18098 *) libsuff= shlibsuff= libmagic=never-match;;
18099 esac
18100 ;;
18101 esac
18102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18103 shlibpath_overrides_runpath=no
18104 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18105 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18106 hardcode_into_libs=yes
18107 ;;
18109 # No shared lib support for Linux oldld, aout, or coff.
18110 linux*oldld* | linux*aout* | linux*coff*)
18111 dynamic_linker=no
18112 ;;
18114 # This must be Linux ELF.
18115 linux* | k*bsd*-gnu)
18116 version_type=linux
18117 need_lib_prefix=no
18118 need_version=no
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18120 soname_spec='${libname}${release}${shared_ext}$major'
18121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18122 shlibpath_var=LD_LIBRARY_PATH
18123 shlibpath_overrides_runpath=no
18124 # This implies no fast_install, which is unacceptable.
18125 # Some rework will be needed to allow for fast_install
18126 # before this can be enabled.
18127 hardcode_into_libs=yes
18129 # Append ld.so.conf contents to the search path
18130 if test -f /etc/ld.so.conf; then
18131 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' ' '`
18132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18133 fi
18135 # We used to test for /lib/ld.so.1 and disable shared libraries on
18136 # powerpc, because MkLinux only supported shared libraries with the
18137 # GNU dynamic linker. Since this was broken with cross compilers,
18138 # most powerpc-linux boxes support dynamic linking these days and
18139 # people can always --disable-shared, the test was removed, and we
18140 # assume the GNU/Linux dynamic linker is in use.
18141 dynamic_linker='GNU/Linux ld.so'
18142 ;;
18144 netbsdelf*-gnu)
18145 version_type=linux
18146 need_lib_prefix=no
18147 need_version=no
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 shlibpath_var=LD_LIBRARY_PATH
18151 shlibpath_overrides_runpath=no
18152 hardcode_into_libs=yes
18153 dynamic_linker='NetBSD ld.elf_so'
18154 ;;
18156 netbsd*)
18157 version_type=sunos
18158 need_lib_prefix=no
18159 need_version=no
18160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18163 dynamic_linker='NetBSD (a.out) ld.so'
18164 else
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18166 soname_spec='${libname}${release}${shared_ext}$major'
18167 dynamic_linker='NetBSD ld.elf_so'
18168 fi
18169 shlibpath_var=LD_LIBRARY_PATH
18170 shlibpath_overrides_runpath=yes
18171 hardcode_into_libs=yes
18172 ;;
18174 newsos6)
18175 version_type=linux
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 shlibpath_var=LD_LIBRARY_PATH
18178 shlibpath_overrides_runpath=yes
18179 ;;
18181 nto-qnx*)
18182 version_type=linux
18183 need_lib_prefix=no
18184 need_version=no
18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 shlibpath_var=LD_LIBRARY_PATH
18188 shlibpath_overrides_runpath=yes
18189 ;;
18191 openbsd*)
18192 version_type=sunos
18193 sys_lib_dlsearch_path_spec="/usr/lib"
18194 need_lib_prefix=no
18195 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18196 case $host_os in
18197 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18198 *) need_version=no ;;
18199 esac
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18202 shlibpath_var=LD_LIBRARY_PATH
18203 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18204 case $host_os in
18205 openbsd2.[89] | openbsd2.[89].*)
18206 shlibpath_overrides_runpath=no
18207 ;;
18208 *)
18209 shlibpath_overrides_runpath=yes
18210 ;;
18211 esac
18212 else
18213 shlibpath_overrides_runpath=yes
18214 fi
18215 ;;
18217 os2*)
18218 libname_spec='$name'
18219 shrext_cmds=".dll"
18220 need_lib_prefix=no
18221 library_names_spec='$libname${shared_ext} $libname.a'
18222 dynamic_linker='OS/2 ld.exe'
18223 shlibpath_var=LIBPATH
18224 ;;
18226 osf3* | osf4* | osf5*)
18227 version_type=osf
18228 need_lib_prefix=no
18229 need_version=no
18230 soname_spec='${libname}${release}${shared_ext}$major'
18231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232 shlibpath_var=LD_LIBRARY_PATH
18233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18234 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18235 ;;
18237 solaris*)
18238 version_type=linux
18239 need_lib_prefix=no
18240 need_version=no
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242 soname_spec='${libname}${release}${shared_ext}$major'
18243 shlibpath_var=LD_LIBRARY_PATH
18244 shlibpath_overrides_runpath=yes
18245 hardcode_into_libs=yes
18246 # ldd complains unless libraries are executable
18247 postinstall_cmds='chmod +x $lib'
18248 ;;
18250 sunos4*)
18251 version_type=sunos
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18254 shlibpath_var=LD_LIBRARY_PATH
18255 shlibpath_overrides_runpath=yes
18256 if test "$with_gnu_ld" = yes; then
18257 need_lib_prefix=no
18258 fi
18259 need_version=yes
18260 ;;
18262 sysv4 | sysv4.3*)
18263 version_type=linux
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 shlibpath_var=LD_LIBRARY_PATH
18267 case $host_vendor in
18268 sni)
18269 shlibpath_overrides_runpath=no
18270 need_lib_prefix=no
18271 export_dynamic_flag_spec='${wl}-Blargedynsym'
18272 runpath_var=LD_RUN_PATH
18273 ;;
18274 siemens)
18275 need_lib_prefix=no
18276 ;;
18277 motorola)
18278 need_lib_prefix=no
18279 need_version=no
18280 shlibpath_overrides_runpath=no
18281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18282 ;;
18283 esac
18284 ;;
18286 sysv4*MP*)
18287 if test -d /usr/nec ;then
18288 version_type=linux
18289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18290 soname_spec='$libname${shared_ext}.$major'
18291 shlibpath_var=LD_LIBRARY_PATH
18292 fi
18293 ;;
18295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18296 version_type=freebsd-elf
18297 need_lib_prefix=no
18298 need_version=no
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18300 soname_spec='${libname}${release}${shared_ext}$major'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 hardcode_into_libs=yes
18303 if test "$with_gnu_ld" = yes; then
18304 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18305 shlibpath_overrides_runpath=no
18306 else
18307 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18308 shlibpath_overrides_runpath=yes
18309 case $host_os in
18310 sco3.2v5*)
18311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18312 ;;
18313 esac
18314 fi
18315 sys_lib_dlsearch_path_spec='/usr/lib'
18316 ;;
18318 uts4*)
18319 version_type=linux
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 ;;
18325 *)
18326 dynamic_linker=no
18327 ;;
18328 esac
18329 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18330 echo "${ECHO_T}$dynamic_linker" >&6; }
18331 test "$dynamic_linker" = no && can_build_shared=no
18333 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18334 if test "$GCC" = yes; then
18335 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18336 fi
18338 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18339 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18340 hardcode_action_GCJ=
18341 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18342 test -n "$runpath_var_GCJ" || \
18343 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18345 # We can hardcode non-existant directories.
18346 if test "$hardcode_direct_GCJ" != no &&
18347 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18348 # have to relink, otherwise we might link with an installed library
18349 # when we should be linking with a yet-to-be-installed one
18350 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18351 test "$hardcode_minus_L_GCJ" != no; then
18352 # Linking always hardcodes the temporary library directory.
18353 hardcode_action_GCJ=relink
18354 else
18355 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18356 hardcode_action_GCJ=immediate
18357 fi
18358 else
18359 # We cannot hardcode anything, or else we can only hardcode existing
18360 # directories.
18361 hardcode_action_GCJ=unsupported
18362 fi
18363 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18364 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18366 if test "$hardcode_action_GCJ" = relink; then
18367 # Fast installation is not supported
18368 enable_fast_install=no
18369 elif test "$shlibpath_overrides_runpath" = yes ||
18370 test "$enable_shared" = no; then
18371 # Fast installation is not necessary
18372 enable_fast_install=needless
18373 fi
18376 # The else clause should only fire when bootstrapping the
18377 # libtool distribution, otherwise you forgot to ship ltmain.sh
18378 # with your package, and you will get complaints that there are
18379 # no rules to generate ltmain.sh.
18380 if test -f "$ltmain"; then
18381 # See if we are running on zsh, and set the options which allow our commands through
18382 # without removal of \ escapes.
18383 if test -n "${ZSH_VERSION+set}" ; then
18384 setopt NO_GLOB_SUBST
18385 fi
18386 # Now quote all the things that may contain metacharacters while being
18387 # careful not to overquote the AC_SUBSTed values. We take copies of the
18388 # variables and quote the copies for generation of the libtool script.
18389 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18390 SED SHELL STRIP \
18391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18393 deplibs_check_method reload_flag reload_cmds need_locks \
18394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18395 lt_cv_sys_global_symbol_to_c_name_address \
18396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18397 old_postinstall_cmds old_postuninstall_cmds \
18398 compiler_GCJ \
18399 CC_GCJ \
18400 LD_GCJ \
18401 lt_prog_compiler_wl_GCJ \
18402 lt_prog_compiler_pic_GCJ \
18403 lt_prog_compiler_static_GCJ \
18404 lt_prog_compiler_no_builtin_flag_GCJ \
18405 export_dynamic_flag_spec_GCJ \
18406 thread_safe_flag_spec_GCJ \
18407 whole_archive_flag_spec_GCJ \
18408 enable_shared_with_static_runtimes_GCJ \
18409 old_archive_cmds_GCJ \
18410 old_archive_from_new_cmds_GCJ \
18411 predep_objects_GCJ \
18412 postdep_objects_GCJ \
18413 predeps_GCJ \
18414 postdeps_GCJ \
18415 compiler_lib_search_path_GCJ \
18416 archive_cmds_GCJ \
18417 archive_expsym_cmds_GCJ \
18418 postinstall_cmds_GCJ \
18419 postuninstall_cmds_GCJ \
18420 old_archive_from_expsyms_cmds_GCJ \
18421 allow_undefined_flag_GCJ \
18422 no_undefined_flag_GCJ \
18423 export_symbols_cmds_GCJ \
18424 hardcode_libdir_flag_spec_GCJ \
18425 hardcode_libdir_flag_spec_ld_GCJ \
18426 hardcode_libdir_separator_GCJ \
18427 hardcode_automatic_GCJ \
18428 module_cmds_GCJ \
18429 module_expsym_cmds_GCJ \
18430 lt_cv_prog_compiler_c_o_GCJ \
18431 exclude_expsyms_GCJ \
18432 include_expsyms_GCJ; do
18434 case $var in
18435 old_archive_cmds_GCJ | \
18436 old_archive_from_new_cmds_GCJ | \
18437 archive_cmds_GCJ | \
18438 archive_expsym_cmds_GCJ | \
18439 module_cmds_GCJ | \
18440 module_expsym_cmds_GCJ | \
18441 old_archive_from_expsyms_cmds_GCJ | \
18442 export_symbols_cmds_GCJ | \
18443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18444 postinstall_cmds | postuninstall_cmds | \
18445 old_postinstall_cmds | old_postuninstall_cmds | \
18446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18447 # Double-quote double-evaled strings.
18448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18449 ;;
18450 *)
18451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18452 ;;
18453 esac
18454 done
18456 case $lt_echo in
18457 *'\$0 --fallback-echo"')
18458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18459 ;;
18460 esac
18462 cfgfile="$ofile"
18464 cat <<__EOF__ >> "$cfgfile"
18465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18469 # Shell to use when invoking shell scripts.
18470 SHELL=$lt_SHELL
18472 # Whether or not to build shared libraries.
18473 build_libtool_libs=$enable_shared
18475 # Whether or not to build static libraries.
18476 build_old_libs=$enable_static
18478 # Whether or not to add -lc for building shared libraries.
18479 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18481 # Whether or not to disallow shared libs when runtime libs are static
18482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18484 # Whether or not to optimize for fast installation.
18485 fast_install=$enable_fast_install
18487 # The host system.
18488 host_alias=$host_alias
18489 host=$host
18490 host_os=$host_os
18492 # The build system.
18493 build_alias=$build_alias
18494 build=$build
18495 build_os=$build_os
18497 # An echo program that does not interpret backslashes.
18498 echo=$lt_echo
18500 # The archiver.
18501 AR=$lt_AR
18502 AR_FLAGS=$lt_AR_FLAGS
18504 # A C compiler.
18505 LTCC=$lt_LTCC
18507 # LTCC compiler flags.
18508 LTCFLAGS=$lt_LTCFLAGS
18510 # A language-specific compiler.
18511 CC=$lt_compiler_GCJ
18513 # Is the compiler the GNU C compiler?
18514 with_gcc=$GCC_GCJ
18516 # An ERE matcher.
18517 EGREP=$lt_EGREP
18519 # The linker used to build libraries.
18520 LD=$lt_LD_GCJ
18522 # Whether we need hard or soft links.
18523 LN_S=$lt_LN_S
18525 # A BSD-compatible nm program.
18526 NM=$lt_NM
18528 # A symbol stripping program
18529 STRIP=$lt_STRIP
18531 # Used to examine libraries when file_magic_cmd begins "file"
18532 MAGIC_CMD=$MAGIC_CMD
18534 # Used on cygwin: DLL creation program.
18535 DLLTOOL="$DLLTOOL"
18537 # Used on cygwin: object dumper.
18538 OBJDUMP="$OBJDUMP"
18540 # Used on cygwin: assembler.
18541 AS="$AS"
18543 # The name of the directory that contains temporary libtool files.
18544 objdir=$objdir
18546 # How to create reloadable object files.
18547 reload_flag=$lt_reload_flag
18548 reload_cmds=$lt_reload_cmds
18550 # How to pass a linker flag through the compiler.
18551 wl=$lt_lt_prog_compiler_wl_GCJ
18553 # Object file suffix (normally "o").
18554 objext="$ac_objext"
18556 # Old archive suffix (normally "a").
18557 libext="$libext"
18559 # Shared library suffix (normally ".so").
18560 shrext_cmds='$shrext_cmds'
18562 # Executable file suffix (normally "").
18563 exeext="$exeext"
18565 # Additional compiler flags for building library objects.
18566 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18567 pic_mode=$pic_mode
18569 # What is the maximum length of a command?
18570 max_cmd_len=$lt_cv_sys_max_cmd_len
18572 # Does compiler simultaneously support -c and -o options?
18573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18575 # Must we lock files when doing compilation?
18576 need_locks=$lt_need_locks
18578 # Do we need the lib prefix for modules?
18579 need_lib_prefix=$need_lib_prefix
18581 # Do we need a version for libraries?
18582 need_version=$need_version
18584 # Whether dlopen is supported.
18585 dlopen_support=$enable_dlopen
18587 # Whether dlopen of programs is supported.
18588 dlopen_self=$enable_dlopen_self
18590 # Whether dlopen of statically linked programs is supported.
18591 dlopen_self_static=$enable_dlopen_self_static
18593 # Compiler flag to prevent dynamic linking.
18594 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18596 # Compiler flag to turn off builtin functions.
18597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18599 # Compiler flag to allow reflexive dlopens.
18600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18602 # Compiler flag to generate shared objects directly from archives.
18603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18605 # Compiler flag to generate thread-safe objects.
18606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18608 # Library versioning type.
18609 version_type=$version_type
18611 # Format of library name prefix.
18612 libname_spec=$lt_libname_spec
18614 # List of archive names. First name is the real one, the rest are links.
18615 # The last name is the one that the linker finds with -lNAME.
18616 library_names_spec=$lt_library_names_spec
18618 # The coded name of the library, if different from the real name.
18619 soname_spec=$lt_soname_spec
18621 # Commands used to build and install an old-style archive.
18622 RANLIB=$lt_RANLIB
18623 old_archive_cmds=$lt_old_archive_cmds_GCJ
18624 old_postinstall_cmds=$lt_old_postinstall_cmds
18625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18627 # Create an old-style archive from a shared archive.
18628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18630 # Create a temporary old-style archive to link instead of a shared archive.
18631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18633 # Commands used to build and install a shared archive.
18634 archive_cmds=$lt_archive_cmds_GCJ
18635 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18636 postinstall_cmds=$lt_postinstall_cmds
18637 postuninstall_cmds=$lt_postuninstall_cmds
18639 # Commands used to build a loadable module (assumed same as above if empty)
18640 module_cmds=$lt_module_cmds_GCJ
18641 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18643 # Commands to strip libraries.
18644 old_striplib=$lt_old_striplib
18645 striplib=$lt_striplib
18647 # Dependencies to place before the objects being linked to create a
18648 # shared library.
18649 predep_objects=$lt_predep_objects_GCJ
18651 # Dependencies to place after the objects being linked to create a
18652 # shared library.
18653 postdep_objects=$lt_postdep_objects_GCJ
18655 # Dependencies to place before the objects being linked to create a
18656 # shared library.
18657 predeps=$lt_predeps_GCJ
18659 # Dependencies to place after the objects being linked to create a
18660 # shared library.
18661 postdeps=$lt_postdeps_GCJ
18663 # The library search path used internally by the compiler when linking
18664 # a shared library.
18665 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18667 # Method to check whether dependent libraries are shared objects.
18668 deplibs_check_method=$lt_deplibs_check_method
18670 # Command to use when deplibs_check_method == file_magic.
18671 file_magic_cmd=$lt_file_magic_cmd
18673 # Flag that allows shared libraries with undefined symbols to be built.
18674 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18676 # Flag that forces no undefined symbols.
18677 no_undefined_flag=$lt_no_undefined_flag_GCJ
18679 # Commands used to finish a libtool library installation in a directory.
18680 finish_cmds=$lt_finish_cmds
18682 # Same as above, but a single script fragment to be evaled but not shown.
18683 finish_eval=$lt_finish_eval
18685 # Take the output of nm and produce a listing of raw symbols and C names.
18686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18688 # Transform the output of nm in a proper C declaration
18689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18691 # Transform the output of nm in a C name address pair
18692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18694 # This is the shared library runtime path variable.
18695 runpath_var=$runpath_var
18697 # This is the shared library path variable.
18698 shlibpath_var=$shlibpath_var
18700 # Is shlibpath searched before the hard-coded library search path?
18701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18703 # How to hardcode a shared library path into an executable.
18704 hardcode_action=$hardcode_action_GCJ
18706 # Whether we should hardcode library paths into libraries.
18707 hardcode_into_libs=$hardcode_into_libs
18709 # Flag to hardcode \$libdir into a binary during linking.
18710 # This must work even if \$libdir does not exist.
18711 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18713 # If ld is used when linking, flag to hardcode \$libdir into
18714 # a binary during linking. This must work even if \$libdir does
18715 # not exist.
18716 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18718 # Whether we need a single -rpath flag with a separated argument.
18719 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18721 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18722 # resulting binary.
18723 hardcode_direct=$hardcode_direct_GCJ
18725 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18726 # resulting binary.
18727 hardcode_minus_L=$hardcode_minus_L_GCJ
18729 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18730 # the resulting binary.
18731 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18733 # Set to yes if building a shared library automatically hardcodes DIR into the library
18734 # and all subsequent libraries and executables linked against it.
18735 hardcode_automatic=$hardcode_automatic_GCJ
18737 # Variables whose values should be saved in libtool wrapper scripts and
18738 # restored at relink time.
18739 variables_saved_for_relink="$variables_saved_for_relink"
18741 # Whether libtool must link a program against all its dependency libraries.
18742 link_all_deplibs=$link_all_deplibs_GCJ
18744 # Compile-time system search path for libraries
18745 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18747 # Run-time system search path for libraries
18748 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18750 # Fix the shell variable \$srcfile for the compiler.
18751 fix_srcfile_path="$fix_srcfile_path_GCJ"
18753 # Set to yes if exported symbols are required.
18754 always_export_symbols=$always_export_symbols_GCJ
18756 # The commands to list exported symbols.
18757 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18759 # The commands to extract the exported symbol list from a shared archive.
18760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18762 # Symbols that should not be listed in the preloaded symbols.
18763 exclude_expsyms=$lt_exclude_expsyms_GCJ
18765 # Symbols that must always be exported.
18766 include_expsyms=$lt_include_expsyms_GCJ
18768 # ### END LIBTOOL TAG CONFIG: $tagname
18770 __EOF__
18773 else
18774 # If there is no Makefile yet, we rely on a make rule to execute
18775 # `config.status --recheck' to rerun these tests and create the
18776 # libtool script then.
18777 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18778 if test -f "$ltmain_in"; then
18779 test -f Makefile && make "$ltmain"
18780 fi
18781 fi
18784 ac_ext=c
18785 ac_cpp='$CPP $CPPFLAGS'
18786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18790 CC="$lt_save_CC"
18792 else
18793 tagname=""
18794 fi
18795 ;;
18797 RC)
18800 # Source file extension for RC test sources.
18801 ac_ext=rc
18803 # Object file extension for compiled RC test sources.
18804 objext=o
18805 objext_RC=$objext
18807 # Code to be used in simple compile tests
18808 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18810 # Code to be used in simple link tests
18811 lt_simple_link_test_code="$lt_simple_compile_test_code"
18813 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18815 # If no C compiler was specified, use CC.
18816 LTCC=${LTCC-"$CC"}
18818 # If no C compiler flags were specified, use CFLAGS.
18819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18821 # Allow CC to be a program name with arguments.
18822 compiler=$CC
18825 # save warnings/boilerplate of simple test code
18826 ac_outfile=conftest.$ac_objext
18827 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18828 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18829 _lt_compiler_boilerplate=`cat conftest.err`
18830 $rm conftest*
18832 ac_outfile=conftest.$ac_objext
18833 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18834 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18835 _lt_linker_boilerplate=`cat conftest.err`
18836 $rm conftest*
18839 # Allow CC to be a program name with arguments.
18840 lt_save_CC="$CC"
18841 CC=${RC-"windres"}
18842 compiler=$CC
18843 compiler_RC=$CC
18844 for cc_temp in $compiler""; do
18845 case $cc_temp in
18846 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18847 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18848 \-*) ;;
18849 *) break;;
18850 esac
18851 done
18852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18854 lt_cv_prog_compiler_c_o_RC=yes
18856 # The else clause should only fire when bootstrapping the
18857 # libtool distribution, otherwise you forgot to ship ltmain.sh
18858 # with your package, and you will get complaints that there are
18859 # no rules to generate ltmain.sh.
18860 if test -f "$ltmain"; then
18861 # See if we are running on zsh, and set the options which allow our commands through
18862 # without removal of \ escapes.
18863 if test -n "${ZSH_VERSION+set}" ; then
18864 setopt NO_GLOB_SUBST
18865 fi
18866 # Now quote all the things that may contain metacharacters while being
18867 # careful not to overquote the AC_SUBSTed values. We take copies of the
18868 # variables and quote the copies for generation of the libtool script.
18869 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18870 SED SHELL STRIP \
18871 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18872 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18873 deplibs_check_method reload_flag reload_cmds need_locks \
18874 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18875 lt_cv_sys_global_symbol_to_c_name_address \
18876 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18877 old_postinstall_cmds old_postuninstall_cmds \
18878 compiler_RC \
18879 CC_RC \
18880 LD_RC \
18881 lt_prog_compiler_wl_RC \
18882 lt_prog_compiler_pic_RC \
18883 lt_prog_compiler_static_RC \
18884 lt_prog_compiler_no_builtin_flag_RC \
18885 export_dynamic_flag_spec_RC \
18886 thread_safe_flag_spec_RC \
18887 whole_archive_flag_spec_RC \
18888 enable_shared_with_static_runtimes_RC \
18889 old_archive_cmds_RC \
18890 old_archive_from_new_cmds_RC \
18891 predep_objects_RC \
18892 postdep_objects_RC \
18893 predeps_RC \
18894 postdeps_RC \
18895 compiler_lib_search_path_RC \
18896 archive_cmds_RC \
18897 archive_expsym_cmds_RC \
18898 postinstall_cmds_RC \
18899 postuninstall_cmds_RC \
18900 old_archive_from_expsyms_cmds_RC \
18901 allow_undefined_flag_RC \
18902 no_undefined_flag_RC \
18903 export_symbols_cmds_RC \
18904 hardcode_libdir_flag_spec_RC \
18905 hardcode_libdir_flag_spec_ld_RC \
18906 hardcode_libdir_separator_RC \
18907 hardcode_automatic_RC \
18908 module_cmds_RC \
18909 module_expsym_cmds_RC \
18910 lt_cv_prog_compiler_c_o_RC \
18911 exclude_expsyms_RC \
18912 include_expsyms_RC; do
18914 case $var in
18915 old_archive_cmds_RC | \
18916 old_archive_from_new_cmds_RC | \
18917 archive_cmds_RC | \
18918 archive_expsym_cmds_RC | \
18919 module_cmds_RC | \
18920 module_expsym_cmds_RC | \
18921 old_archive_from_expsyms_cmds_RC | \
18922 export_symbols_cmds_RC | \
18923 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18924 postinstall_cmds | postuninstall_cmds | \
18925 old_postinstall_cmds | old_postuninstall_cmds | \
18926 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18927 # Double-quote double-evaled strings.
18928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18929 ;;
18930 *)
18931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18932 ;;
18933 esac
18934 done
18936 case $lt_echo in
18937 *'\$0 --fallback-echo"')
18938 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18939 ;;
18940 esac
18942 cfgfile="$ofile"
18944 cat <<__EOF__ >> "$cfgfile"
18945 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18949 # Shell to use when invoking shell scripts.
18950 SHELL=$lt_SHELL
18952 # Whether or not to build shared libraries.
18953 build_libtool_libs=$enable_shared
18955 # Whether or not to build static libraries.
18956 build_old_libs=$enable_static
18958 # Whether or not to add -lc for building shared libraries.
18959 build_libtool_need_lc=$archive_cmds_need_lc_RC
18961 # Whether or not to disallow shared libs when runtime libs are static
18962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18964 # Whether or not to optimize for fast installation.
18965 fast_install=$enable_fast_install
18967 # The host system.
18968 host_alias=$host_alias
18969 host=$host
18970 host_os=$host_os
18972 # The build system.
18973 build_alias=$build_alias
18974 build=$build
18975 build_os=$build_os
18977 # An echo program that does not interpret backslashes.
18978 echo=$lt_echo
18980 # The archiver.
18981 AR=$lt_AR
18982 AR_FLAGS=$lt_AR_FLAGS
18984 # A C compiler.
18985 LTCC=$lt_LTCC
18987 # LTCC compiler flags.
18988 LTCFLAGS=$lt_LTCFLAGS
18990 # A language-specific compiler.
18991 CC=$lt_compiler_RC
18993 # Is the compiler the GNU C compiler?
18994 with_gcc=$GCC_RC
18996 # An ERE matcher.
18997 EGREP=$lt_EGREP
18999 # The linker used to build libraries.
19000 LD=$lt_LD_RC
19002 # Whether we need hard or soft links.
19003 LN_S=$lt_LN_S
19005 # A BSD-compatible nm program.
19006 NM=$lt_NM
19008 # A symbol stripping program
19009 STRIP=$lt_STRIP
19011 # Used to examine libraries when file_magic_cmd begins "file"
19012 MAGIC_CMD=$MAGIC_CMD
19014 # Used on cygwin: DLL creation program.
19015 DLLTOOL="$DLLTOOL"
19017 # Used on cygwin: object dumper.
19018 OBJDUMP="$OBJDUMP"
19020 # Used on cygwin: assembler.
19021 AS="$AS"
19023 # The name of the directory that contains temporary libtool files.
19024 objdir=$objdir
19026 # How to create reloadable object files.
19027 reload_flag=$lt_reload_flag
19028 reload_cmds=$lt_reload_cmds
19030 # How to pass a linker flag through the compiler.
19031 wl=$lt_lt_prog_compiler_wl_RC
19033 # Object file suffix (normally "o").
19034 objext="$ac_objext"
19036 # Old archive suffix (normally "a").
19037 libext="$libext"
19039 # Shared library suffix (normally ".so").
19040 shrext_cmds='$shrext_cmds'
19042 # Executable file suffix (normally "").
19043 exeext="$exeext"
19045 # Additional compiler flags for building library objects.
19046 pic_flag=$lt_lt_prog_compiler_pic_RC
19047 pic_mode=$pic_mode
19049 # What is the maximum length of a command?
19050 max_cmd_len=$lt_cv_sys_max_cmd_len
19052 # Does compiler simultaneously support -c and -o options?
19053 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19055 # Must we lock files when doing compilation?
19056 need_locks=$lt_need_locks
19058 # Do we need the lib prefix for modules?
19059 need_lib_prefix=$need_lib_prefix
19061 # Do we need a version for libraries?
19062 need_version=$need_version
19064 # Whether dlopen is supported.
19065 dlopen_support=$enable_dlopen
19067 # Whether dlopen of programs is supported.
19068 dlopen_self=$enable_dlopen_self
19070 # Whether dlopen of statically linked programs is supported.
19071 dlopen_self_static=$enable_dlopen_self_static
19073 # Compiler flag to prevent dynamic linking.
19074 link_static_flag=$lt_lt_prog_compiler_static_RC
19076 # Compiler flag to turn off builtin functions.
19077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19079 # Compiler flag to allow reflexive dlopens.
19080 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19082 # Compiler flag to generate shared objects directly from archives.
19083 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19085 # Compiler flag to generate thread-safe objects.
19086 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19088 # Library versioning type.
19089 version_type=$version_type
19091 # Format of library name prefix.
19092 libname_spec=$lt_libname_spec
19094 # List of archive names. First name is the real one, the rest are links.
19095 # The last name is the one that the linker finds with -lNAME.
19096 library_names_spec=$lt_library_names_spec
19098 # The coded name of the library, if different from the real name.
19099 soname_spec=$lt_soname_spec
19101 # Commands used to build and install an old-style archive.
19102 RANLIB=$lt_RANLIB
19103 old_archive_cmds=$lt_old_archive_cmds_RC
19104 old_postinstall_cmds=$lt_old_postinstall_cmds
19105 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19107 # Create an old-style archive from a shared archive.
19108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19110 # Create a temporary old-style archive to link instead of a shared archive.
19111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19113 # Commands used to build and install a shared archive.
19114 archive_cmds=$lt_archive_cmds_RC
19115 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19116 postinstall_cmds=$lt_postinstall_cmds
19117 postuninstall_cmds=$lt_postuninstall_cmds
19119 # Commands used to build a loadable module (assumed same as above if empty)
19120 module_cmds=$lt_module_cmds_RC
19121 module_expsym_cmds=$lt_module_expsym_cmds_RC
19123 # Commands to strip libraries.
19124 old_striplib=$lt_old_striplib
19125 striplib=$lt_striplib
19127 # Dependencies to place before the objects being linked to create a
19128 # shared library.
19129 predep_objects=$lt_predep_objects_RC
19131 # Dependencies to place after the objects being linked to create a
19132 # shared library.
19133 postdep_objects=$lt_postdep_objects_RC
19135 # Dependencies to place before the objects being linked to create a
19136 # shared library.
19137 predeps=$lt_predeps_RC
19139 # Dependencies to place after the objects being linked to create a
19140 # shared library.
19141 postdeps=$lt_postdeps_RC
19143 # The library search path used internally by the compiler when linking
19144 # a shared library.
19145 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19147 # Method to check whether dependent libraries are shared objects.
19148 deplibs_check_method=$lt_deplibs_check_method
19150 # Command to use when deplibs_check_method == file_magic.
19151 file_magic_cmd=$lt_file_magic_cmd
19153 # Flag that allows shared libraries with undefined symbols to be built.
19154 allow_undefined_flag=$lt_allow_undefined_flag_RC
19156 # Flag that forces no undefined symbols.
19157 no_undefined_flag=$lt_no_undefined_flag_RC
19159 # Commands used to finish a libtool library installation in a directory.
19160 finish_cmds=$lt_finish_cmds
19162 # Same as above, but a single script fragment to be evaled but not shown.
19163 finish_eval=$lt_finish_eval
19165 # Take the output of nm and produce a listing of raw symbols and C names.
19166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19168 # Transform the output of nm in a proper C declaration
19169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19171 # Transform the output of nm in a C name address pair
19172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19174 # This is the shared library runtime path variable.
19175 runpath_var=$runpath_var
19177 # This is the shared library path variable.
19178 shlibpath_var=$shlibpath_var
19180 # Is shlibpath searched before the hard-coded library search path?
19181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19183 # How to hardcode a shared library path into an executable.
19184 hardcode_action=$hardcode_action_RC
19186 # Whether we should hardcode library paths into libraries.
19187 hardcode_into_libs=$hardcode_into_libs
19189 # Flag to hardcode \$libdir into a binary during linking.
19190 # This must work even if \$libdir does not exist.
19191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19193 # If ld is used when linking, flag to hardcode \$libdir into
19194 # a binary during linking. This must work even if \$libdir does
19195 # not exist.
19196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19198 # Whether we need a single -rpath flag with a separated argument.
19199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19202 # resulting binary.
19203 hardcode_direct=$hardcode_direct_RC
19205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19206 # resulting binary.
19207 hardcode_minus_L=$hardcode_minus_L_RC
19209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19210 # the resulting binary.
19211 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19213 # Set to yes if building a shared library automatically hardcodes DIR into the library
19214 # and all subsequent libraries and executables linked against it.
19215 hardcode_automatic=$hardcode_automatic_RC
19217 # Variables whose values should be saved in libtool wrapper scripts and
19218 # restored at relink time.
19219 variables_saved_for_relink="$variables_saved_for_relink"
19221 # Whether libtool must link a program against all its dependency libraries.
19222 link_all_deplibs=$link_all_deplibs_RC
19224 # Compile-time system search path for libraries
19225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19227 # Run-time system search path for libraries
19228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19230 # Fix the shell variable \$srcfile for the compiler.
19231 fix_srcfile_path="$fix_srcfile_path_RC"
19233 # Set to yes if exported symbols are required.
19234 always_export_symbols=$always_export_symbols_RC
19236 # The commands to list exported symbols.
19237 export_symbols_cmds=$lt_export_symbols_cmds_RC
19239 # The commands to extract the exported symbol list from a shared archive.
19240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19242 # Symbols that should not be listed in the preloaded symbols.
19243 exclude_expsyms=$lt_exclude_expsyms_RC
19245 # Symbols that must always be exported.
19246 include_expsyms=$lt_include_expsyms_RC
19248 # ### END LIBTOOL TAG CONFIG: $tagname
19250 __EOF__
19253 else
19254 # If there is no Makefile yet, we rely on a make rule to execute
19255 # `config.status --recheck' to rerun these tests and create the
19256 # libtool script then.
19257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19258 if test -f "$ltmain_in"; then
19259 test -f Makefile && make "$ltmain"
19260 fi
19261 fi
19264 ac_ext=c
19265 ac_cpp='$CPP $CPPFLAGS'
19266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270 CC="$lt_save_CC"
19272 ;;
19274 *)
19275 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19276 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19277 { (exit 1); exit 1; }; }
19278 ;;
19279 esac
19281 # Append the new tag name to the list of available tags.
19282 if test -n "$tagname" ; then
19283 available_tags="$available_tags $tagname"
19284 fi
19285 fi
19286 done
19287 IFS="$lt_save_ifs"
19289 # Now substitute the updated list of available tags.
19290 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19291 mv "${ofile}T" "$ofile"
19292 chmod +x "$ofile"
19293 else
19294 rm -f "${ofile}T"
19295 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19296 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19297 { (exit 1); exit 1; }; }
19298 fi
19299 fi
19303 # This can be used to rebuild libtool when needed
19304 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19306 # Always use our own libtool.
19307 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19309 # Prevent multiple expansion
19331 if test "$GCC" = "yes"; then
19332 for flag in -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W; do
19333 oCFLAGS=$CFLAGS
19334 CFLAGS="$CFLAGS $flag"
19335 cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
19336 { echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
19337 echo $ECHO_N "checking if gcc likes the $flag flag... $ECHO_C" >&6; }
19338 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h. */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 int
19349 main ()
19350 {
19351 return 0
19352 ;
19353 return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (ac_try="$ac_compile"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_compile") 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest.$ac_objext; then
19373 eval $cachename=yes
19374 else
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 eval $cachename=no
19379 fi
19381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382 fi
19383 ac_res=`eval echo '${'$cachename'}'`
19384 { echo "$as_me:$LINENO: result: $ac_res" >&5
19385 echo "${ECHO_T}$ac_res" >&6; }
19386 if eval test \$$cachename = no; then
19387 CFLAGS=$oCFLAGS
19388 fi
19389 done
19390 fi
19397 case $TERM in
19398 # for the most important terminal types we directly know the sequences
19399 xterm|xterm*|vt220|vt220*)
19400 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
19401 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
19402 ;;
19403 vt100|vt100*|cygwin)
19404 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
19405 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
19406 ;;
19407 *)
19408 T_MD=''
19409 T_ME=''
19410 ;;
19411 esac
19412 { echo "$as_me:$LINENO: result: " >&5
19413 echo "${ECHO_T}" >&6; }
19414 { echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
19415 echo "${ECHO_T}${T_MD}Checking for Header Files${T_ME}" >&6; }
19418 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19420 if test "${ac_cv_header_stdc+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423 cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h. */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 #include <stdlib.h>
19430 #include <stdarg.h>
19431 #include <string.h>
19432 #include <float.h>
19434 int
19435 main ()
19436 {
19438 ;
19439 return 0;
19440 }
19441 _ACEOF
19442 rm -f conftest.$ac_objext
19443 if { (ac_try="$ac_compile"
19444 case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19447 esac
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_compile") 2>conftest.er1
19450 ac_status=$?
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } && {
19456 test -z "$ac_c_werror_flag" ||
19457 test ! -s conftest.err
19458 } && test -s conftest.$ac_objext; then
19459 ac_cv_header_stdc=yes
19460 else
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19464 ac_cv_header_stdc=no
19465 fi
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 if test $ac_cv_header_stdc = yes; then
19470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 #include <string.h>
19479 _ACEOF
19480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19481 $EGREP "memchr" >/dev/null 2>&1; then
19482 :
19483 else
19484 ac_cv_header_stdc=no
19485 fi
19486 rm -f conftest*
19488 fi
19490 if test $ac_cv_header_stdc = yes; then
19491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 #include <stdlib.h>
19500 _ACEOF
19501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19502 $EGREP "free" >/dev/null 2>&1; then
19503 :
19504 else
19505 ac_cv_header_stdc=no
19506 fi
19507 rm -f conftest*
19509 fi
19511 if test $ac_cv_header_stdc = yes; then
19512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19513 if test "$cross_compiling" = yes; then
19514 :
19515 else
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <ctype.h>
19523 #include <stdlib.h>
19524 #if ((' ' & 0x0FF) == 0x020)
19525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19527 #else
19528 # define ISLOWER(c) \
19529 (('a' <= (c) && (c) <= 'i') \
19530 || ('j' <= (c) && (c) <= 'r') \
19531 || ('s' <= (c) && (c) <= 'z'))
19532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19533 #endif
19535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19536 int
19537 main ()
19538 {
19539 int i;
19540 for (i = 0; i < 256; i++)
19541 if (XOR (islower (i), ISLOWER (i))
19542 || toupper (i) != TOUPPER (i))
19543 return 2;
19544 return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest$ac_exeext
19548 if { (ac_try="$ac_link"
19549 case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_link") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19558 { (case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_try") 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 :
19568 else
19569 echo "$as_me: program exited with status $ac_status" >&5
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ( exit $ac_status )
19574 ac_cv_header_stdc=no
19575 fi
19576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19577 fi
19580 fi
19581 fi
19582 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19583 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19584 if test $ac_cv_header_stdc = yes; then
19586 cat >>confdefs.h <<\_ACEOF
19587 #define STDC_HEADERS 1
19588 _ACEOF
19590 fi
19597 ac_header_dirent=no
19598 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19599 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19600 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19601 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 #include <sys/types.h>
19612 #include <$ac_hdr>
19614 int
19615 main ()
19616 {
19617 if ((DIR *) 0)
19618 return 0;
19619 ;
19620 return 0;
19621 }
19622 _ACEOF
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_compile") 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest.$ac_objext; then
19640 eval "$as_ac_Header=yes"
19641 else
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 eval "$as_ac_Header=no"
19646 fi
19648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 fi
19650 ac_res=`eval echo '${'$as_ac_Header'}'`
19651 { echo "$as_me:$LINENO: result: $ac_res" >&5
19652 echo "${ECHO_T}$ac_res" >&6; }
19653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19654 cat >>confdefs.h <<_ACEOF
19655 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19656 _ACEOF
19658 ac_header_dirent=$ac_hdr; break
19659 fi
19661 done
19662 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19663 if test $ac_header_dirent = dirent.h; then
19664 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19665 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19666 if test "${ac_cv_search_opendir+set}" = set; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669 ac_func_search_save_LIBS=$LIBS
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19677 /* Override any GCC internal prototype to avoid an error.
19678 Use char because int might match the return type of a GCC
19679 builtin and then its argument prototype would still apply. */
19680 #ifdef __cplusplus
19681 extern "C"
19682 #endif
19683 char opendir ();
19684 int
19685 main ()
19686 {
19687 return opendir ();
19688 ;
19689 return 0;
19690 }
19691 _ACEOF
19692 for ac_lib in '' dir; do
19693 if test -z "$ac_lib"; then
19694 ac_res="none required"
19695 else
19696 ac_res=-l$ac_lib
19697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19698 fi
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest$ac_exeext &&
19716 $as_test_x conftest$ac_exeext; then
19717 ac_cv_search_opendir=$ac_res
19718 else
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19723 fi
19725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19726 conftest$ac_exeext
19727 if test "${ac_cv_search_opendir+set}" = set; then
19728 break
19729 fi
19730 done
19731 if test "${ac_cv_search_opendir+set}" = set; then
19732 :
19733 else
19734 ac_cv_search_opendir=no
19735 fi
19736 rm conftest.$ac_ext
19737 LIBS=$ac_func_search_save_LIBS
19738 fi
19739 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19740 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19741 ac_res=$ac_cv_search_opendir
19742 if test "$ac_res" != no; then
19743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19745 fi
19747 else
19748 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19749 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19750 if test "${ac_cv_search_opendir+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753 ac_func_search_save_LIBS=$LIBS
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19761 /* Override any GCC internal prototype to avoid an error.
19762 Use char because int might match the return type of a GCC
19763 builtin and then its argument prototype would still apply. */
19764 #ifdef __cplusplus
19765 extern "C"
19766 #endif
19767 char opendir ();
19768 int
19769 main ()
19770 {
19771 return opendir ();
19772 ;
19773 return 0;
19774 }
19775 _ACEOF
19776 for ac_lib in '' x; do
19777 if test -z "$ac_lib"; then
19778 ac_res="none required"
19779 else
19780 ac_res=-l$ac_lib
19781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19782 fi
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if { (ac_try="$ac_link"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_link") 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } && {
19797 test -z "$ac_c_werror_flag" ||
19798 test ! -s conftest.err
19799 } && test -s conftest$ac_exeext &&
19800 $as_test_x conftest$ac_exeext; then
19801 ac_cv_search_opendir=$ac_res
19802 else
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19807 fi
19809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19810 conftest$ac_exeext
19811 if test "${ac_cv_search_opendir+set}" = set; then
19812 break
19813 fi
19814 done
19815 if test "${ac_cv_search_opendir+set}" = set; then
19816 :
19817 else
19818 ac_cv_search_opendir=no
19819 fi
19820 rm conftest.$ac_ext
19821 LIBS=$ac_func_search_save_LIBS
19822 fi
19823 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19824 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19825 ac_res=$ac_cv_search_opendir
19826 if test "$ac_res" != no; then
19827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19829 fi
19831 fi
19847 for ac_header in sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h float.h strings.h
19848 do
19849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 fi
19856 ac_res=`eval echo '${'$as_ac_Header'}'`
19857 { echo "$as_me:$LINENO: result: $ac_res" >&5
19858 echo "${ECHO_T}$ac_res" >&6; }
19859 else
19860 # Is the header compilable?
19861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19863 cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h. */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19869 $ac_includes_default
19870 #include <$ac_header>
19871 _ACEOF
19872 rm -f conftest.$ac_objext
19873 if { (ac_try="$ac_compile"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_compile") 2>conftest.er1
19880 ac_status=$?
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } && {
19886 test -z "$ac_c_werror_flag" ||
19887 test ! -s conftest.err
19888 } && test -s conftest.$ac_objext; then
19889 ac_header_compiler=yes
19890 else
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 ac_header_compiler=no
19895 fi
19897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19899 echo "${ECHO_T}$ac_header_compiler" >&6; }
19901 # Is the header present?
19902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 #include <$ac_header>
19911 _ACEOF
19912 if { (ac_try="$ac_cpp conftest.$ac_ext"
19913 case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19916 esac
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19919 ac_status=$?
19920 grep -v '^ *+' conftest.er1 >conftest.err
19921 rm -f conftest.er1
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } >/dev/null && {
19925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19926 test ! -s conftest.err
19927 }; then
19928 ac_header_preproc=yes
19929 else
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ac_header_preproc=no
19934 fi
19936 rm -f conftest.err conftest.$ac_ext
19937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19938 echo "${ECHO_T}$ac_header_preproc" >&6; }
19940 # So? What about this header?
19941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19942 yes:no: )
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19947 ac_header_preproc=yes
19948 ;;
19949 no:yes:* )
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19963 ;;
19964 esac
19965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970 eval "$as_ac_Header=\$ac_header_preproc"
19971 fi
19972 ac_res=`eval echo '${'$as_ac_Header'}'`
19973 { echo "$as_me:$LINENO: result: $ac_res" >&5
19974 echo "${ECHO_T}$ac_res" >&6; }
19976 fi
19977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19978 cat >>confdefs.h <<_ACEOF
19979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19980 _ACEOF
19982 fi
19984 done
19987 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19988 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19989 if test "${ac_cv_c_const+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19991 else
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19999 int
20000 main ()
20001 {
20002 /* FIXME: Include the comments suggested by Paul. */
20003 #ifndef __cplusplus
20004 /* Ultrix mips cc rejects this. */
20005 typedef int charset[2];
20006 const charset cs;
20007 /* SunOS 4.1.1 cc rejects this. */
20008 char const *const *pcpcc;
20009 char **ppc;
20010 /* NEC SVR4.0.2 mips cc rejects this. */
20011 struct point {int x, y;};
20012 static struct point const zero = {0,0};
20013 /* AIX XL C 1.02.0.0 rejects this.
20014 It does not let you subtract one const X* pointer from another in
20015 an arm of an if-expression whose if-part is not a constant
20016 expression */
20017 const char *g = "string";
20018 pcpcc = &g + (g ? g-g : 0);
20019 /* HPUX 7.0 cc rejects these. */
20020 ++pcpcc;
20021 ppc = (char**) pcpcc;
20022 pcpcc = (char const *const *) ppc;
20023 { /* SCO 3.2v4 cc rejects this. */
20024 char *t;
20025 char const *s = 0 ? (char *) 0 : (char const *) 0;
20027 *t++ = 0;
20028 if (s) return 0;
20029 }
20030 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20031 int x[] = {25, 17};
20032 const int *foo = &x[0];
20033 ++foo;
20034 }
20035 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20036 typedef const int *iptr;
20037 iptr p = 0;
20038 ++p;
20039 }
20040 { /* AIX XL C 1.02.0.0 rejects this saying
20041 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20042 struct s { int j; const int *ap[3]; };
20043 struct s *b; b->j = 5;
20044 }
20045 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20046 const int foo = 10;
20047 if (!foo) return 0;
20048 }
20049 return !cs[0] && !zero.x;
20050 #endif
20052 ;
20053 return 0;
20054 }
20055 _ACEOF
20056 rm -f conftest.$ac_objext
20057 if { (ac_try="$ac_compile"
20058 case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061 esac
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && {
20070 test -z "$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 } && test -s conftest.$ac_objext; then
20073 ac_cv_c_const=yes
20074 else
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_cv_c_const=no
20079 fi
20081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082 fi
20083 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20084 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20085 if test $ac_cv_c_const = no; then
20087 cat >>confdefs.h <<\_ACEOF
20088 #define const
20089 _ACEOF
20091 fi
20093 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20094 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20095 if test "${ac_cv_header_time+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h. */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 #include <sys/types.h>
20105 #include <sys/time.h>
20106 #include <time.h>
20108 int
20109 main ()
20110 {
20111 if ((struct tm *) 0)
20112 return 0;
20113 ;
20114 return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (ac_try="$ac_compile"
20119 case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_compile") 2>conftest.er1
20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } && {
20131 test -z "$ac_c_werror_flag" ||
20132 test ! -s conftest.err
20133 } && test -s conftest.$ac_objext; then
20134 ac_cv_header_time=yes
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 ac_cv_header_time=no
20140 fi
20142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20143 fi
20144 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20145 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20146 if test $ac_cv_header_time = yes; then
20148 cat >>confdefs.h <<\_ACEOF
20149 #define TIME_WITH_SYS_TIME 1
20150 _ACEOF
20152 fi
20154 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20155 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20156 if test "${ac_cv_struct_tm+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159 cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h. */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #include <sys/types.h>
20166 #include <time.h>
20168 int
20169 main ()
20170 {
20171 struct tm tm;
20172 int *p = &tm.tm_sec;
20173 return !p;
20174 ;
20175 return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (ac_try="$ac_compile"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_compile") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest.$ac_objext; then
20195 ac_cv_struct_tm=time.h
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_cv_struct_tm=sys/time.h
20201 fi
20203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204 fi
20205 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20206 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20207 if test $ac_cv_struct_tm = sys/time.h; then
20209 cat >>confdefs.h <<\_ACEOF
20210 #define TM_IN_SYS_TIME 1
20211 _ACEOF
20213 fi
20216 { echo "$as_me:$LINENO: checking for acos" >&5
20217 echo $ECHO_N "checking for acos... $ECHO_C" >&6; }
20218 if test "${ac_cv_func_acos+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
20228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20229 #define acos innocuous_acos
20231 /* System header to define __stub macros and hopefully few prototypes,
20232 which can conflict with char acos (); below.
20233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20234 <limits.h> exists even on freestanding compilers. */
20236 #ifdef __STDC__
20237 # include <limits.h>
20238 #else
20239 # include <assert.h>
20240 #endif
20242 #undef acos
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 char acos ();
20251 /* The GNU C library defines this for functions which it implements
20252 to always fail with ENOSYS. Some functions are actually named
20253 something starting with __ and the normal name is an alias. */
20254 #if defined __stub_acos || defined __stub___acos
20255 choke me
20256 #endif
20258 int
20259 main ()
20260 {
20261 return acos ();
20262 ;
20263 return 0;
20264 }
20265 _ACEOF
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_link") 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest$ac_exeext &&
20283 $as_test_x conftest$ac_exeext; then
20284 ac_cv_func_acos=yes
20285 else
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_func_acos=no
20290 fi
20292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20293 conftest$ac_exeext conftest.$ac_ext
20294 fi
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
20296 echo "${ECHO_T}$ac_cv_func_acos" >&6; }
20297 if test $ac_cv_func_acos = yes; then
20298 :
20299 else
20301 { echo "$as_me:$LINENO: checking for acos in -lm" >&5
20302 echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6; }
20303 if test "${ac_cv_lib_m_acos+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306 ac_check_lib_save_LIBS=$LIBS
20307 LIBS="-lm $LIBS"
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h. */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20315 /* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20318 #ifdef __cplusplus
20319 extern "C"
20320 #endif
20321 char acos ();
20322 int
20323 main ()
20324 {
20325 return acos ();
20326 ;
20327 return 0;
20328 }
20329 _ACEOF
20330 rm -f conftest.$ac_objext conftest$ac_exeext
20331 if { (ac_try="$ac_link"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_link") 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest$ac_exeext &&
20347 $as_test_x conftest$ac_exeext; then
20348 ac_cv_lib_m_acos=yes
20349 else
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_cv_lib_m_acos=no
20354 fi
20356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20357 conftest$ac_exeext conftest.$ac_ext
20358 LIBS=$ac_check_lib_save_LIBS
20359 fi
20360 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
20361 echo "${ECHO_T}$ac_cv_lib_m_acos" >&6; }
20362 if test $ac_cv_lib_m_acos = yes; then
20363 cat >>confdefs.h <<_ACEOF
20364 #define HAVE_LIBM 1
20365 _ACEOF
20367 LIBS="-lm $LIBS"
20369 fi
20371 fi
20374 eval `./libtool --config | grep pic_flag`
20375 CFLAGS="$CFLAGS $pic_flag"
20378 case $TERM in
20379 # for the most important terminal types we directly know the sequences
20380 xterm|xterm*|vt220|vt220*)
20381 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20382 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20383 ;;
20384 vt100|vt100*|cygwin)
20385 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20386 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20387 ;;
20388 *)
20389 T_MD=''
20390 T_ME=''
20391 ;;
20392 esac
20393 { echo "$as_me:$LINENO: result: " >&5
20394 echo "${ECHO_T}" >&6; }
20395 { echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
20396 echo "${ECHO_T}${T_MD}Test Library Functions${T_ME}" >&6; }
20400 for ac_func in strftime
20401 do
20402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h. */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20416 #define $ac_func innocuous_$ac_func
20418 /* System header to define __stub macros and hopefully few prototypes,
20419 which can conflict with char $ac_func (); below.
20420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20421 <limits.h> exists even on freestanding compilers. */
20423 #ifdef __STDC__
20424 # include <limits.h>
20425 #else
20426 # include <assert.h>
20427 #endif
20429 #undef $ac_func
20431 /* Override any GCC internal prototype to avoid an error.
20432 Use char because int might match the return type of a GCC
20433 builtin and then its argument prototype would still apply. */
20434 #ifdef __cplusplus
20435 extern "C"
20436 #endif
20437 char $ac_func ();
20438 /* The GNU C library defines this for functions which it implements
20439 to always fail with ENOSYS. Some functions are actually named
20440 something starting with __ and the normal name is an alias. */
20441 #if defined __stub_$ac_func || defined __stub___$ac_func
20442 choke me
20443 #endif
20445 int
20446 main ()
20447 {
20448 return $ac_func ();
20449 ;
20450 return 0;
20451 }
20452 _ACEOF
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest$ac_exeext &&
20470 $as_test_x conftest$ac_exeext; then
20471 eval "$as_ac_var=yes"
20472 else
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 eval "$as_ac_var=no"
20477 fi
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480 conftest$ac_exeext conftest.$ac_ext
20481 fi
20482 ac_res=`eval echo '${'$as_ac_var'}'`
20483 { echo "$as_me:$LINENO: result: $ac_res" >&5
20484 echo "${ECHO_T}$ac_res" >&6; }
20485 if test `eval echo '${'$as_ac_var'}'` = yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20488 _ACEOF
20490 else
20491 # strftime is in -lintl on SCO UNIX.
20492 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20493 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
20494 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497 ac_check_lib_save_LIBS=$LIBS
20498 LIBS="-lintl $LIBS"
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h. */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20506 /* Override any GCC internal prototype to avoid an error.
20507 Use char because int might match the return type of a GCC
20508 builtin and then its argument prototype would still apply. */
20509 #ifdef __cplusplus
20510 extern "C"
20511 #endif
20512 char strftime ();
20513 int
20514 main ()
20515 {
20516 return strftime ();
20517 ;
20518 return 0;
20519 }
20520 _ACEOF
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_link") 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } && {
20535 test -z "$ac_c_werror_flag" ||
20536 test ! -s conftest.err
20537 } && test -s conftest$ac_exeext &&
20538 $as_test_x conftest$ac_exeext; then
20539 ac_cv_lib_intl_strftime=yes
20540 else
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 ac_cv_lib_intl_strftime=no
20545 fi
20547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20548 conftest$ac_exeext conftest.$ac_ext
20549 LIBS=$ac_check_lib_save_LIBS
20550 fi
20551 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20552 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20553 if test $ac_cv_lib_intl_strftime = yes; then
20554 cat >>confdefs.h <<\_ACEOF
20555 #define HAVE_STRFTIME 1
20556 _ACEOF
20558 LIBS="-lintl $LIBS"
20559 fi
20561 fi
20562 done
20565 for ac_func in vprintf
20566 do
20567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 else
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h. */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20581 #define $ac_func innocuous_$ac_func
20583 /* System header to define __stub macros and hopefully few prototypes,
20584 which can conflict with char $ac_func (); below.
20585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20586 <limits.h> exists even on freestanding compilers. */
20588 #ifdef __STDC__
20589 # include <limits.h>
20590 #else
20591 # include <assert.h>
20592 #endif
20594 #undef $ac_func
20596 /* Override any GCC internal prototype to avoid an error.
20597 Use char because int might match the return type of a GCC
20598 builtin and then its argument prototype would still apply. */
20599 #ifdef __cplusplus
20600 extern "C"
20601 #endif
20602 char $ac_func ();
20603 /* The GNU C library defines this for functions which it implements
20604 to always fail with ENOSYS. Some functions are actually named
20605 something starting with __ and the normal name is an alias. */
20606 #if defined __stub_$ac_func || defined __stub___$ac_func
20607 choke me
20608 #endif
20610 int
20611 main ()
20612 {
20613 return $ac_func ();
20614 ;
20615 return 0;
20616 }
20617 _ACEOF
20618 rm -f conftest.$ac_objext conftest$ac_exeext
20619 if { (ac_try="$ac_link"
20620 case "(($ac_try" in
20621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622 *) ac_try_echo=$ac_try;;
20623 esac
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_link") 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && {
20632 test -z "$ac_c_werror_flag" ||
20633 test ! -s conftest.err
20634 } && test -s conftest$ac_exeext &&
20635 $as_test_x conftest$ac_exeext; then
20636 eval "$as_ac_var=yes"
20637 else
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 eval "$as_ac_var=no"
20642 fi
20644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20645 conftest$ac_exeext conftest.$ac_ext
20646 fi
20647 ac_res=`eval echo '${'$as_ac_var'}'`
20648 { echo "$as_me:$LINENO: result: $ac_res" >&5
20649 echo "${ECHO_T}$ac_res" >&6; }
20650 if test `eval echo '${'$as_ac_var'}'` = yes; then
20651 cat >>confdefs.h <<_ACEOF
20652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20653 _ACEOF
20655 { echo "$as_me:$LINENO: checking for _doprnt" >&5
20656 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
20657 if test "${ac_cv_func__doprnt+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660 cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h. */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20666 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20668 #define _doprnt innocuous__doprnt
20670 /* System header to define __stub macros and hopefully few prototypes,
20671 which can conflict with char _doprnt (); below.
20672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20673 <limits.h> exists even on freestanding compilers. */
20675 #ifdef __STDC__
20676 # include <limits.h>
20677 #else
20678 # include <assert.h>
20679 #endif
20681 #undef _doprnt
20683 /* Override any GCC internal prototype to avoid an error.
20684 Use char because int might match the return type of a GCC
20685 builtin and then its argument prototype would still apply. */
20686 #ifdef __cplusplus
20687 extern "C"
20688 #endif
20689 char _doprnt ();
20690 /* The GNU C library defines this for functions which it implements
20691 to always fail with ENOSYS. Some functions are actually named
20692 something starting with __ and the normal name is an alias. */
20693 #if defined __stub__doprnt || defined __stub____doprnt
20694 choke me
20695 #endif
20697 int
20698 main ()
20699 {
20700 return _doprnt ();
20701 ;
20702 return 0;
20703 }
20704 _ACEOF
20705 rm -f conftest.$ac_objext conftest$ac_exeext
20706 if { (ac_try="$ac_link"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20710 esac
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_link") 2>conftest.er1
20713 ac_status=$?
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest$ac_exeext &&
20722 $as_test_x conftest$ac_exeext; then
20723 ac_cv_func__doprnt=yes
20724 else
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ac_cv_func__doprnt=no
20729 fi
20731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20732 conftest$ac_exeext conftest.$ac_ext
20733 fi
20734 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20735 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
20736 if test $ac_cv_func__doprnt = yes; then
20738 cat >>confdefs.h <<\_ACEOF
20739 #define HAVE_DOPRNT 1
20740 _ACEOF
20742 fi
20744 fi
20745 done
20749 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20750 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20751 if test "${ac_cv_c_bigendian+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754 # See if sys/param.h defines the BYTE_ORDER macro.
20755 cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h. */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 #include <sys/types.h>
20762 #include <sys/param.h>
20764 int
20765 main ()
20766 {
20767 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20768 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20769 bogus endian macros
20770 #endif
20772 ;
20773 return 0;
20774 }
20775 _ACEOF
20776 rm -f conftest.$ac_objext
20777 if { (ac_try="$ac_compile"
20778 case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_compile") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && {
20790 test -z "$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 } && test -s conftest.$ac_objext; then
20793 # It does; now see whether it defined to BIG_ENDIAN or not.
20794 cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h. */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20800 #include <sys/types.h>
20801 #include <sys/param.h>
20803 int
20804 main ()
20805 {
20806 #if BYTE_ORDER != BIG_ENDIAN
20807 not big endian
20808 #endif
20810 ;
20811 return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext
20815 if { (ac_try="$ac_compile"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest.$ac_objext; then
20831 ac_cv_c_bigendian=yes
20832 else
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_c_bigendian=no
20837 fi
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840 else
20841 echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20844 # It does not; compile a test program.
20845 if test "$cross_compiling" = yes; then
20846 # try to guess the endianness by grepping values into an object file
20847 ac_cv_c_bigendian=unknown
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20855 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20856 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20857 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20858 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20859 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20860 int
20861 main ()
20862 {
20863 _ascii (); _ebcdic ();
20864 ;
20865 return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20885 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20886 ac_cv_c_bigendian=yes
20887 fi
20888 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20889 if test "$ac_cv_c_bigendian" = unknown; then
20890 ac_cv_c_bigendian=no
20891 else
20892 # finding both strings is unlikely to happen, but who knows?
20893 ac_cv_c_bigendian=unknown
20894 fi
20895 fi
20896 else
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20901 fi
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904 else
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 $ac_includes_default
20912 int
20913 main ()
20914 {
20916 /* Are we little or big endian? From Harbison&Steele. */
20917 union
20918 {
20919 long int l;
20920 char c[sizeof (long int)];
20921 } u;
20922 u.l = 1;
20923 return u.c[sizeof (long int) - 1] == 1;
20925 ;
20926 return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest$ac_exeext
20930 if { (ac_try="$ac_link"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_link") 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20940 { (case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_try") 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 ac_cv_c_bigendian=no
20950 else
20951 echo "$as_me: program exited with status $ac_status" >&5
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 ( exit $ac_status )
20956 ac_cv_c_bigendian=yes
20957 fi
20958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20959 fi
20962 fi
20964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 fi
20966 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20967 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20968 case $ac_cv_c_bigendian in
20969 yes)
20971 cat >>confdefs.h <<\_ACEOF
20972 #define WORDS_BIGENDIAN 1
20973 _ACEOF
20974 ;;
20975 no)
20976 ;;
20977 *)
20978 { { echo "$as_me:$LINENO: error: unknown endianness
20979 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20980 echo "$as_me: error: unknown endianness
20981 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20982 { (exit 1); exit 1; }; } ;;
20983 esac
21010 for ac_func in tzset mbstowcs opendir readdir chdir chroot getuid setlocale strerror strerror_r snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday posix_fadvise madvise
21011 do
21012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018 cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h. */
21020 _ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21026 #define $ac_func innocuous_$ac_func
21028 /* System header to define __stub macros and hopefully few prototypes,
21029 which can conflict with char $ac_func (); below.
21030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21031 <limits.h> exists even on freestanding compilers. */
21033 #ifdef __STDC__
21034 # include <limits.h>
21035 #else
21036 # include <assert.h>
21037 #endif
21039 #undef $ac_func
21041 /* Override any GCC internal prototype to avoid an error.
21042 Use char because int might match the return type of a GCC
21043 builtin and then its argument prototype would still apply. */
21044 #ifdef __cplusplus
21045 extern "C"
21046 #endif
21047 char $ac_func ();
21048 /* The GNU C library defines this for functions which it implements
21049 to always fail with ENOSYS. Some functions are actually named
21050 something starting with __ and the normal name is an alias. */
21051 #if defined __stub_$ac_func || defined __stub___$ac_func
21052 choke me
21053 #endif
21055 int
21056 main ()
21057 {
21058 return $ac_func ();
21059 ;
21060 return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext conftest$ac_exeext
21064 if { (ac_try="$ac_link"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_link") 2>conftest.er1
21071 ac_status=$?
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } && {
21077 test -z "$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21079 } && test -s conftest$ac_exeext &&
21080 $as_test_x conftest$ac_exeext; then
21081 eval "$as_ac_var=yes"
21082 else
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 eval "$as_ac_var=no"
21087 fi
21089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21090 conftest$ac_exeext conftest.$ac_ext
21091 fi
21092 ac_res=`eval echo '${'$as_ac_var'}'`
21093 { echo "$as_me:$LINENO: result: $ac_res" >&5
21094 echo "${ECHO_T}$ac_res" >&6; }
21095 if test `eval echo '${'$as_ac_var'}'` = yes; then
21096 cat >>confdefs.h <<_ACEOF
21097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21098 _ACEOF
21100 fi
21101 done
21104 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
21105 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
21106 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109 cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h. */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <unistd.h>
21117 int
21118 main ()
21119 {
21120 #ifndef fdatasync
21121 (void) fdatasync;
21122 #endif
21124 ;
21125 return 0;
21126 }
21127 _ACEOF
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_compile") 2>conftest.er1
21136 ac_status=$?
21137 grep -v '^ *+' conftest.er1 >conftest.err
21138 rm -f conftest.er1
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } && {
21142 test -z "$ac_c_werror_flag" ||
21143 test ! -s conftest.err
21144 } && test -s conftest.$ac_objext; then
21145 ac_cv_have_decl_fdatasync=yes
21146 else
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_cv_have_decl_fdatasync=no
21151 fi
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 fi
21155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
21156 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
21157 if test $ac_cv_have_decl_fdatasync = yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_DECL_FDATASYNC 1
21161 _ACEOF
21164 else
21165 cat >>confdefs.h <<_ACEOF
21166 #define HAVE_DECL_FDATASYNC 0
21167 _ACEOF
21170 fi
21173 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
21174 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
21175 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #define _XOPEN_SOURCE 600
21185 #include <fcntl.h>
21187 int
21188 main ()
21189 {
21190 #ifndef posix_fadvise
21191 (void) posix_fadvise;
21192 #endif
21194 ;
21195 return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_compile") 2>conftest.er1
21206 ac_status=$?
21207 grep -v '^ *+' conftest.er1 >conftest.err
21208 rm -f conftest.er1
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && {
21212 test -z "$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 } && test -s conftest.$ac_objext; then
21215 ac_cv_have_decl_posix_fadvise=yes
21216 else
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_cv_have_decl_posix_fadvise=no
21221 fi
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21224 fi
21225 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
21226 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
21227 if test $ac_cv_have_decl_posix_fadvise = yes; then
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_DECL_POSIX_FADVISE 1
21231 _ACEOF
21234 else
21235 cat >>confdefs.h <<_ACEOF
21236 #define HAVE_DECL_POSIX_FADVISE 0
21237 _ACEOF
21240 fi
21243 { echo "$as_me:$LINENO: checking whether madvise is declared" >&5
21244 echo $ECHO_N "checking whether madvise is declared... $ECHO_C" >&6; }
21245 if test "${ac_cv_have_decl_madvise+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 else
21248 cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h. */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 #include <sys/mman.h>
21256 int
21257 main ()
21258 {
21259 #ifndef madvise
21260 (void) madvise;
21261 #endif
21263 ;
21264 return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext
21268 if { (ac_try="$ac_compile"
21269 case "(($ac_try" in
21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271 *) ac_try_echo=$ac_try;;
21272 esac
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274 (eval "$ac_compile") 2>conftest.er1
21275 ac_status=$?
21276 grep -v '^ *+' conftest.er1 >conftest.err
21277 rm -f conftest.er1
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } && {
21281 test -z "$ac_c_werror_flag" ||
21282 test ! -s conftest.err
21283 } && test -s conftest.$ac_objext; then
21284 ac_cv_have_decl_madvise=yes
21285 else
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21289 ac_cv_have_decl_madvise=no
21290 fi
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 fi
21294 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
21295 echo "${ECHO_T}$ac_cv_have_decl_madvise" >&6; }
21296 if test $ac_cv_have_decl_madvise = yes; then
21298 cat >>confdefs.h <<_ACEOF
21299 #define HAVE_DECL_MADVISE 1
21300 _ACEOF
21303 else
21304 cat >>confdefs.h <<_ACEOF
21305 #define HAVE_DECL_MADVISE 0
21306 _ACEOF
21309 fi
21313 if test "x$enable_mmap" = xyes; then
21314 case "$host" in
21315 *cygwin*)
21316 # the normal mmap test does not work in cygwin
21318 for ac_func in mmap
21319 do
21320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 else
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h. */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21334 #define $ac_func innocuous_$ac_func
21336 /* System header to define __stub macros and hopefully few prototypes,
21337 which can conflict with char $ac_func (); below.
21338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21339 <limits.h> exists even on freestanding compilers. */
21341 #ifdef __STDC__
21342 # include <limits.h>
21343 #else
21344 # include <assert.h>
21345 #endif
21347 #undef $ac_func
21349 /* Override any GCC internal prototype to avoid an error.
21350 Use char because int might match the return type of a GCC
21351 builtin and then its argument prototype would still apply. */
21352 #ifdef __cplusplus
21353 extern "C"
21354 #endif
21355 char $ac_func ();
21356 /* The GNU C library defines this for functions which it implements
21357 to always fail with ENOSYS. Some functions are actually named
21358 something starting with __ and the normal name is an alias. */
21359 #if defined __stub_$ac_func || defined __stub___$ac_func
21360 choke me
21361 #endif
21363 int
21364 main ()
21365 {
21366 return $ac_func ();
21367 ;
21368 return 0;
21369 }
21370 _ACEOF
21371 rm -f conftest.$ac_objext conftest$ac_exeext
21372 if { (ac_try="$ac_link"
21373 case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21376 esac
21377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378 (eval "$ac_link") 2>conftest.er1
21379 ac_status=$?
21380 grep -v '^ *+' conftest.er1 >conftest.err
21381 rm -f conftest.er1
21382 cat conftest.err >&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } && {
21385 test -z "$ac_c_werror_flag" ||
21386 test ! -s conftest.err
21387 } && test -s conftest$ac_exeext &&
21388 $as_test_x conftest$ac_exeext; then
21389 eval "$as_ac_var=yes"
21390 else
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 eval "$as_ac_var=no"
21395 fi
21397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21398 conftest$ac_exeext conftest.$ac_ext
21399 fi
21400 ac_res=`eval echo '${'$as_ac_var'}'`
21401 { echo "$as_me:$LINENO: result: $ac_res" >&5
21402 echo "${ECHO_T}$ac_res" >&6; }
21403 if test `eval echo '${'$as_ac_var'}'` = yes; then
21404 cat >>confdefs.h <<_ACEOF
21405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21406 _ACEOF
21408 fi
21409 done
21411 if "x${ac_cv_func_mmap}" = xyes ; then
21412 ac_cv_func_mmap_fixed_mapped=yes
21413 fi
21414 ;;
21415 *)
21418 for ac_header in stdlib.h unistd.h
21419 do
21420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426 fi
21427 ac_res=`eval echo '${'$as_ac_Header'}'`
21428 { echo "$as_me:$LINENO: result: $ac_res" >&5
21429 echo "${ECHO_T}$ac_res" >&6; }
21430 else
21431 # Is the header compilable?
21432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21434 cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h. */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21440 $ac_includes_default
21441 #include <$ac_header>
21442 _ACEOF
21443 rm -f conftest.$ac_objext
21444 if { (ac_try="$ac_compile"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_compile") 2>conftest.er1
21451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } && {
21457 test -z "$ac_c_werror_flag" ||
21458 test ! -s conftest.err
21459 } && test -s conftest.$ac_objext; then
21460 ac_header_compiler=yes
21461 else
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 ac_header_compiler=no
21466 fi
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21470 echo "${ECHO_T}$ac_header_compiler" >&6; }
21472 # Is the header present?
21473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h. */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 #include <$ac_header>
21482 _ACEOF
21483 if { (ac_try="$ac_cpp conftest.$ac_ext"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21487 esac
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } >/dev/null && {
21496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 }; then
21499 ac_header_preproc=yes
21500 else
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 ac_header_preproc=no
21505 fi
21507 rm -f conftest.err conftest.$ac_ext
21508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21509 echo "${ECHO_T}$ac_header_preproc" >&6; }
21511 # So? What about this header?
21512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21513 yes:no: )
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21518 ac_header_preproc=yes
21519 ;;
21520 no:yes:* )
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21534 ;;
21535 esac
21536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 else
21541 eval "$as_ac_Header=\$ac_header_preproc"
21542 fi
21543 ac_res=`eval echo '${'$as_ac_Header'}'`
21544 { echo "$as_me:$LINENO: result: $ac_res" >&5
21545 echo "${ECHO_T}$ac_res" >&6; }
21547 fi
21548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21549 cat >>confdefs.h <<_ACEOF
21550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21551 _ACEOF
21553 fi
21555 done
21558 for ac_func in getpagesize
21559 do
21560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 else
21566 cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h. */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21574 #define $ac_func innocuous_$ac_func
21576 /* System header to define __stub macros and hopefully few prototypes,
21577 which can conflict with char $ac_func (); below.
21578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21579 <limits.h> exists even on freestanding compilers. */
21581 #ifdef __STDC__
21582 # include <limits.h>
21583 #else
21584 # include <assert.h>
21585 #endif
21587 #undef $ac_func
21589 /* Override any GCC internal prototype to avoid an error.
21590 Use char because int might match the return type of a GCC
21591 builtin and then its argument prototype would still apply. */
21592 #ifdef __cplusplus
21593 extern "C"
21594 #endif
21595 char $ac_func ();
21596 /* The GNU C library defines this for functions which it implements
21597 to always fail with ENOSYS. Some functions are actually named
21598 something starting with __ and the normal name is an alias. */
21599 #if defined __stub_$ac_func || defined __stub___$ac_func
21600 choke me
21601 #endif
21603 int
21604 main ()
21605 {
21606 return $ac_func ();
21607 ;
21608 return 0;
21609 }
21610 _ACEOF
21611 rm -f conftest.$ac_objext conftest$ac_exeext
21612 if { (ac_try="$ac_link"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_link") 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && {
21625 test -z "$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 } && test -s conftest$ac_exeext &&
21628 $as_test_x conftest$ac_exeext; then
21629 eval "$as_ac_var=yes"
21630 else
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 eval "$as_ac_var=no"
21635 fi
21637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21638 conftest$ac_exeext conftest.$ac_ext
21639 fi
21640 ac_res=`eval echo '${'$as_ac_var'}'`
21641 { echo "$as_me:$LINENO: result: $ac_res" >&5
21642 echo "${ECHO_T}$ac_res" >&6; }
21643 if test `eval echo '${'$as_ac_var'}'` = yes; then
21644 cat >>confdefs.h <<_ACEOF
21645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21646 _ACEOF
21648 fi
21649 done
21651 { echo "$as_me:$LINENO: checking for working mmap" >&5
21652 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21653 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656 if test "$cross_compiling" = yes; then
21657 ac_cv_func_mmap_fixed_mapped=no
21658 else
21659 cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h. */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 $ac_includes_default
21666 /* malloc might have been renamed as rpl_malloc. */
21667 #undef malloc
21669 /* Thanks to Mike Haertel and Jim Avera for this test.
21670 Here is a matrix of mmap possibilities:
21671 mmap private not fixed
21672 mmap private fixed at somewhere currently unmapped
21673 mmap private fixed at somewhere already mapped
21674 mmap shared not fixed
21675 mmap shared fixed at somewhere currently unmapped
21676 mmap shared fixed at somewhere already mapped
21677 For private mappings, we should verify that changes cannot be read()
21678 back from the file, nor mmap's back from the file at a different
21679 address. (There have been systems where private was not correctly
21680 implemented like the infamous i386 svr4.0, and systems where the
21681 VM page cache was not coherent with the file system buffer cache
21682 like early versions of FreeBSD and possibly contemporary NetBSD.)
21683 For shared mappings, we should conversely verify that changes get
21684 propagated back to all the places they're supposed to be.
21686 Grep wants private fixed already mapped.
21687 The main things grep needs to know about mmap are:
21688 * does it exist and is it safe to write into the mmap'd area
21689 * how to use it (BSD variants) */
21691 #include <fcntl.h>
21692 #include <sys/mman.h>
21694 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21695 char *malloc ();
21696 #endif
21698 /* This mess was copied from the GNU getpagesize.h. */
21699 #ifndef HAVE_GETPAGESIZE
21700 /* Assume that all systems that can run configure have sys/param.h. */
21701 # ifndef HAVE_SYS_PARAM_H
21702 # define HAVE_SYS_PARAM_H 1
21703 # endif
21705 # ifdef _SC_PAGESIZE
21706 # define getpagesize() sysconf(_SC_PAGESIZE)
21707 # else /* no _SC_PAGESIZE */
21708 # ifdef HAVE_SYS_PARAM_H
21709 # include <sys/param.h>
21710 # ifdef EXEC_PAGESIZE
21711 # define getpagesize() EXEC_PAGESIZE
21712 # else /* no EXEC_PAGESIZE */
21713 # ifdef NBPG
21714 # define getpagesize() NBPG * CLSIZE
21715 # ifndef CLSIZE
21716 # define CLSIZE 1
21717 # endif /* no CLSIZE */
21718 # else /* no NBPG */
21719 # ifdef NBPC
21720 # define getpagesize() NBPC
21721 # else /* no NBPC */
21722 # ifdef PAGESIZE
21723 # define getpagesize() PAGESIZE
21724 # endif /* PAGESIZE */
21725 # endif /* no NBPC */
21726 # endif /* no NBPG */
21727 # endif /* no EXEC_PAGESIZE */
21728 # else /* no HAVE_SYS_PARAM_H */
21729 # define getpagesize() 8192 /* punt totally */
21730 # endif /* no HAVE_SYS_PARAM_H */
21731 # endif /* no _SC_PAGESIZE */
21733 #endif /* no HAVE_GETPAGESIZE */
21735 int
21736 main ()
21737 {
21738 char *data, *data2, *data3;
21739 int i, pagesize;
21740 int fd;
21742 pagesize = getpagesize ();
21744 /* First, make a file with some known garbage in it. */
21745 data = (char *) malloc (pagesize);
21746 if (!data)
21747 return 1;
21748 for (i = 0; i < pagesize; ++i)
21749 *(data + i) = rand ();
21750 umask (0);
21751 fd = creat ("conftest.mmap", 0600);
21752 if (fd < 0)
21753 return 1;
21754 if (write (fd, data, pagesize) != pagesize)
21755 return 1;
21756 close (fd);
21758 /* Next, try to mmap the file at a fixed address which already has
21759 something else allocated at it. If we can, also make sure that
21760 we see the same garbage. */
21761 fd = open ("conftest.mmap", O_RDWR);
21762 if (fd < 0)
21763 return 1;
21764 data2 = (char *) malloc (2 * pagesize);
21765 if (!data2)
21766 return 1;
21767 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21768 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21769 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21770 return 1;
21771 for (i = 0; i < pagesize; ++i)
21772 if (*(data + i) != *(data2 + i))
21773 return 1;
21775 /* Finally, make sure that changes to the mapped area do not
21776 percolate back to the file as seen by read(). (This is a bug on
21777 some variants of i386 svr4.0.) */
21778 for (i = 0; i < pagesize; ++i)
21779 *(data2 + i) = *(data2 + i) + 1;
21780 data3 = (char *) malloc (pagesize);
21781 if (!data3)
21782 return 1;
21783 if (read (fd, data3, pagesize) != pagesize)
21784 return 1;
21785 for (i = 0; i < pagesize; ++i)
21786 if (*(data + i) != *(data3 + i))
21787 return 1;
21788 close (fd);
21789 return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest$ac_exeext
21793 if { (ac_try="$ac_link"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797 esac
21798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_link") 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21803 { (case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21806 esac
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_try") 2>&5
21809 ac_status=$?
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; }; then
21812 ac_cv_func_mmap_fixed_mapped=yes
21813 else
21814 echo "$as_me: program exited with status $ac_status" >&5
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ( exit $ac_status )
21819 ac_cv_func_mmap_fixed_mapped=no
21820 fi
21821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21822 fi
21825 fi
21826 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21827 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21828 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21830 cat >>confdefs.h <<\_ACEOF
21831 #define HAVE_MMAP 1
21832 _ACEOF
21834 fi
21835 rm -f conftest.mmap
21837 ;;
21838 esac
21839 fi
21843 case $TERM in
21844 # for the most important terminal types we directly know the sequences
21845 xterm|xterm*|vt220|vt220*)
21846 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
21847 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
21848 ;;
21849 vt100|vt100*|cygwin)
21850 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
21851 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
21852 ;;
21853 *)
21854 T_MD=''
21855 T_ME=''
21856 ;;
21857 esac
21858 { echo "$as_me:$LINENO: result: " >&5
21859 echo "${ECHO_T}" >&6; }
21860 { echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
21861 echo "${ECHO_T}${T_MD}IEEE Math Checks${T_ME}" >&6; }
21865 for ac_func in fpclassify
21866 do
21867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h. */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21881 #define $ac_func innocuous_$ac_func
21883 /* System header to define __stub macros and hopefully few prototypes,
21884 which can conflict with char $ac_func (); below.
21885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21886 <limits.h> exists even on freestanding compilers. */
21888 #ifdef __STDC__
21889 # include <limits.h>
21890 #else
21891 # include <assert.h>
21892 #endif
21894 #undef $ac_func
21896 /* Override any GCC internal prototype to avoid an error.
21897 Use char because int might match the return type of a GCC
21898 builtin and then its argument prototype would still apply. */
21899 #ifdef __cplusplus
21900 extern "C"
21901 #endif
21902 char $ac_func ();
21903 /* The GNU C library defines this for functions which it implements
21904 to always fail with ENOSYS. Some functions are actually named
21905 something starting with __ and the normal name is an alias. */
21906 #if defined __stub_$ac_func || defined __stub___$ac_func
21907 choke me
21908 #endif
21910 int
21911 main ()
21912 {
21913 return $ac_func ();
21914 ;
21915 return 0;
21916 }
21917 _ACEOF
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_link") 2>conftest.er1
21926 ac_status=$?
21927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } && {
21932 test -z "$ac_c_werror_flag" ||
21933 test ! -s conftest.err
21934 } && test -s conftest$ac_exeext &&
21935 $as_test_x conftest$ac_exeext; then
21936 eval "$as_ac_var=yes"
21937 else
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 eval "$as_ac_var=no"
21942 fi
21944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21945 conftest$ac_exeext conftest.$ac_ext
21946 fi
21947 ac_res=`eval echo '${'$as_ac_var'}'`
21948 { echo "$as_me:$LINENO: result: $ac_res" >&5
21949 echo "${ECHO_T}$ac_res" >&6; }
21950 if test `eval echo '${'$as_ac_var'}'` = yes; then
21951 cat >>confdefs.h <<_ACEOF
21952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21953 _ACEOF
21955 else
21956 { echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
21957 echo $ECHO_N "checking for fpclassify with <math.h>... $ECHO_C" >&6; }
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 #include <math.h>
21965 volatile int x;volatile float f;
21966 int
21967 main ()
21968 {
21969 x = fpclassify(f)
21970 ;
21971 return 0;
21972 }
21973 _ACEOF
21974 rm -f conftest.$ac_objext conftest$ac_exeext
21975 if { (ac_try="$ac_link"
21976 case "(($ac_try" in
21977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978 *) ac_try_echo=$ac_try;;
21979 esac
21980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981 (eval "$ac_link") 2>conftest.er1
21982 ac_status=$?
21983 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1
21985 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } && {
21988 test -z "$ac_c_werror_flag" ||
21989 test ! -s conftest.err
21990 } && test -s conftest$ac_exeext &&
21991 $as_test_x conftest$ac_exeext; then
21992 { echo "$as_me:$LINENO: result: yes" >&5
21993 echo "${ECHO_T}yes" >&6; }
21994 cat >>confdefs.h <<\_ACEOF
21995 #define HAVE_FPCLASSIFY 1
21996 _ACEOF
21998 else
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 { echo "$as_me:$LINENO: result: no" >&5
22003 echo "${ECHO_T}no" >&6; }
22004 fi
22006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22007 conftest$ac_exeext conftest.$ac_ext
22008 fi
22009 done
22012 for ac_func in finite
22013 do
22014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020 cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h. */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22028 #define $ac_func innocuous_$ac_func
22030 /* System header to define __stub macros and hopefully few prototypes,
22031 which can conflict with char $ac_func (); below.
22032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22033 <limits.h> exists even on freestanding compilers. */
22035 #ifdef __STDC__
22036 # include <limits.h>
22037 #else
22038 # include <assert.h>
22039 #endif
22041 #undef $ac_func
22043 /* Override any GCC internal prototype to avoid an error.
22044 Use char because int might match the return type of a GCC
22045 builtin and then its argument prototype would still apply. */
22046 #ifdef __cplusplus
22047 extern "C"
22048 #endif
22049 char $ac_func ();
22050 /* The GNU C library defines this for functions which it implements
22051 to always fail with ENOSYS. Some functions are actually named
22052 something starting with __ and the normal name is an alias. */
22053 #if defined __stub_$ac_func || defined __stub___$ac_func
22054 choke me
22055 #endif
22057 int
22058 main ()
22059 {
22060 return $ac_func ();
22061 ;
22062 return 0;
22063 }
22064 _ACEOF
22065 rm -f conftest.$ac_objext conftest$ac_exeext
22066 if { (ac_try="$ac_link"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22070 esac
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072 (eval "$ac_link") 2>conftest.er1
22073 ac_status=$?
22074 grep -v '^ *+' conftest.er1 >conftest.err
22075 rm -f conftest.er1
22076 cat conftest.err >&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } && {
22079 test -z "$ac_c_werror_flag" ||
22080 test ! -s conftest.err
22081 } && test -s conftest$ac_exeext &&
22082 $as_test_x conftest$ac_exeext; then
22083 eval "$as_ac_var=yes"
22084 else
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 eval "$as_ac_var=no"
22089 fi
22091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22092 conftest$ac_exeext conftest.$ac_ext
22093 fi
22094 ac_res=`eval echo '${'$as_ac_var'}'`
22095 { echo "$as_me:$LINENO: result: $ac_res" >&5
22096 echo "${ECHO_T}$ac_res" >&6; }
22097 if test `eval echo '${'$as_ac_var'}'` = yes; then
22098 cat >>confdefs.h <<_ACEOF
22099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22100 _ACEOF
22102 else
22104 for ac_func in isfinite
22105 do
22106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h. */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22120 #define $ac_func innocuous_$ac_func
22122 /* System header to define __stub macros and hopefully few prototypes,
22123 which can conflict with char $ac_func (); below.
22124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22125 <limits.h> exists even on freestanding compilers. */
22127 #ifdef __STDC__
22128 # include <limits.h>
22129 #else
22130 # include <assert.h>
22131 #endif
22133 #undef $ac_func
22135 /* Override any GCC internal prototype to avoid an error.
22136 Use char because int might match the return type of a GCC
22137 builtin and then its argument prototype would still apply. */
22138 #ifdef __cplusplus
22139 extern "C"
22140 #endif
22141 char $ac_func ();
22142 /* The GNU C library defines this for functions which it implements
22143 to always fail with ENOSYS. Some functions are actually named
22144 something starting with __ and the normal name is an alias. */
22145 #if defined __stub_$ac_func || defined __stub___$ac_func
22146 choke me
22147 #endif
22149 int
22150 main ()
22151 {
22152 return $ac_func ();
22153 ;
22154 return 0;
22155 }
22156 _ACEOF
22157 rm -f conftest.$ac_objext conftest$ac_exeext
22158 if { (ac_try="$ac_link"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_link") 2>conftest.er1
22165 ac_status=$?
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest$ac_exeext &&
22174 $as_test_x conftest$ac_exeext; then
22175 eval "$as_ac_var=yes"
22176 else
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 eval "$as_ac_var=no"
22181 fi
22183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22184 conftest$ac_exeext conftest.$ac_ext
22185 fi
22186 ac_res=`eval echo '${'$as_ac_var'}'`
22187 { echo "$as_me:$LINENO: result: $ac_res" >&5
22188 echo "${ECHO_T}$ac_res" >&6; }
22189 if test `eval echo '${'$as_ac_var'}'` = yes; then
22190 cat >>confdefs.h <<_ACEOF
22191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22192 _ACEOF
22194 else
22195 { echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
22196 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6; }
22197 cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h. */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 #include <math.h>
22204 volatile int x;volatile float f;
22205 int
22206 main ()
22207 {
22208 x = isfinite(f)
22209 ;
22210 return 0;
22211 }
22212 _ACEOF
22213 rm -f conftest.$ac_objext conftest$ac_exeext
22214 if { (ac_try="$ac_link"
22215 case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_link") 2>conftest.er1
22221 ac_status=$?
22222 grep -v '^ *+' conftest.er1 >conftest.err
22223 rm -f conftest.er1
22224 cat conftest.err >&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && {
22227 test -z "$ac_c_werror_flag" ||
22228 test ! -s conftest.err
22229 } && test -s conftest$ac_exeext &&
22230 $as_test_x conftest$ac_exeext; then
22231 { echo "$as_me:$LINENO: result: yes" >&5
22232 echo "${ECHO_T}yes" >&6; }
22233 cat >>confdefs.h <<\_ACEOF
22234 #define HAVE_ISFINITE 1
22235 _ACEOF
22237 else
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 { echo "$as_me:$LINENO: result: no" >&5
22242 echo "${ECHO_T}no" >&6; }
22243 fi
22245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22246 conftest$ac_exeext conftest.$ac_ext
22247 fi
22248 done
22250 fi
22251 done
22254 for ac_func in isinf
22255 do
22256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 else
22262 cat >conftest.$ac_ext <<_ACEOF
22263 /* confdefs.h. */
22264 _ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h. */
22268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22270 #define $ac_func innocuous_$ac_func
22272 /* System header to define __stub macros and hopefully few prototypes,
22273 which can conflict with char $ac_func (); below.
22274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22275 <limits.h> exists even on freestanding compilers. */
22277 #ifdef __STDC__
22278 # include <limits.h>
22279 #else
22280 # include <assert.h>
22281 #endif
22283 #undef $ac_func
22285 /* Override any GCC internal prototype to avoid an error.
22286 Use char because int might match the return type of a GCC
22287 builtin and then its argument prototype would still apply. */
22288 #ifdef __cplusplus
22289 extern "C"
22290 #endif
22291 char $ac_func ();
22292 /* The GNU C library defines this for functions which it implements
22293 to always fail with ENOSYS. Some functions are actually named
22294 something starting with __ and the normal name is an alias. */
22295 #if defined __stub_$ac_func || defined __stub___$ac_func
22296 choke me
22297 #endif
22299 int
22300 main ()
22301 {
22302 return $ac_func ();
22303 ;
22304 return 0;
22305 }
22306 _ACEOF
22307 rm -f conftest.$ac_objext conftest$ac_exeext
22308 if { (ac_try="$ac_link"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_link") 2>conftest.er1
22315 ac_status=$?
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest$ac_exeext &&
22324 $as_test_x conftest$ac_exeext; then
22325 eval "$as_ac_var=yes"
22326 else
22327 echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22330 eval "$as_ac_var=no"
22331 fi
22333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22334 conftest$ac_exeext conftest.$ac_ext
22335 fi
22336 ac_res=`eval echo '${'$as_ac_var'}'`
22337 { echo "$as_me:$LINENO: result: $ac_res" >&5
22338 echo "${ECHO_T}$ac_res" >&6; }
22339 if test `eval echo '${'$as_ac_var'}'` = yes; then
22340 cat >>confdefs.h <<_ACEOF
22341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22342 _ACEOF
22344 else
22345 { echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
22346 echo $ECHO_N "checking for isinf with <math.h>... $ECHO_C" >&6; }
22347 cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h. */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22353 #include <math.h>
22354 volatile int x;volatile float f;
22355 int
22356 main ()
22357 {
22358 x = isinf(f)
22359 ;
22360 return 0;
22361 }
22362 _ACEOF
22363 rm -f conftest.$ac_objext conftest$ac_exeext
22364 if { (ac_try="$ac_link"
22365 case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22368 esac
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_link") 2>conftest.er1
22371 ac_status=$?
22372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && {
22377 test -z "$ac_c_werror_flag" ||
22378 test ! -s conftest.err
22379 } && test -s conftest$ac_exeext &&
22380 $as_test_x conftest$ac_exeext; then
22381 { echo "$as_me:$LINENO: result: yes" >&5
22382 echo "${ECHO_T}yes" >&6; }
22383 cat >>confdefs.h <<\_ACEOF
22384 #define HAVE_ISINF 1
22385 _ACEOF
22387 else
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 { echo "$as_me:$LINENO: result: no" >&5
22392 echo "${ECHO_T}no" >&6; }
22393 fi
22395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22396 conftest$ac_exeext conftest.$ac_ext
22397 fi
22398 done
22402 ac_ext=c
22403 ac_cpp='$CPP $CPPFLAGS'
22404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22408 _cflags=${CFLAGS}
22410 { echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
22411 echo $ECHO_N "checking if IEEE math works out of the box... $ECHO_C" >&6; }
22412 if test "${rd_cv_ieee_works+set}" = set; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415 if test "$cross_compiling" = yes; then
22416 :
22417 else
22418 cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h. */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22426 #if HAVE_MATH_H
22427 # include <math.h>
22428 #endif
22430 #if HAVE_FLOAT_H
22431 # include <float.h>
22432 #endif
22434 #if HAVE_IEEEFP_H
22435 # include <ieeefp.h>
22436 #endif
22438 #if HAVE_FP_CLASS_H
22439 # include <fp_class.h>
22440 #endif
22442 /* Solaris */
22443 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
22444 # define HAVE_ISINF 1
22445 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
22446 #endif
22448 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
22449 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
22450 # undef isnan
22451 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
22452 #endif
22454 /* Digital UNIX */
22455 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
22456 # define HAVE_ISINF 1
22457 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
22458 #endif
22460 /* AIX */
22461 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
22462 # define HAVE_ISINF 1
22463 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
22464 #endif
22466 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
22467 # define HAVE_ISINF 1
22468 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
22469 #endif
22471 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
22472 # define HAVE_ISINF 1
22473 # define isinf(a) (fpclassify(a) == FP_INFINITE)
22474 #endif
22476 #include <stdio.h>
22477 int main(void){
22478 double rrdnan,rrdinf,rrdc,rrdzero;
22479 ;
22480 /* some math to see if we get a floating point exception */
22481 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
22482 rrdnan=0.0/rrdzero; /* especially here */
22483 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
22484 /* at run time without sig fpe */
22485 rrdc = rrdinf + rrdnan;
22486 rrdc = rrdinf / rrdnan;
22487 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
22488 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
22489 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
22490 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
22491 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
22492 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
22493 return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest$ac_exeext
22497 if { (ac_try="$ac_link"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_link") 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22507 { (case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 rd_cv_ieee_works=yes
22517 else
22518 echo "$as_me: program exited with status $ac_status" >&5
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22522 ( exit $ac_status )
22523 rd_cv_ieee_works=no
22524 fi
22525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22526 fi
22529 fi
22531 if test x${rd_cv_ieee_works} = "xyes"; then
22532 { echo "$as_me:$LINENO: result: yes" >&5
22533 echo "${ECHO_T}yes" >&6; }
22535 else
22536 { echo "$as_me:$LINENO: result: no" >&5
22537 echo "${ECHO_T}no" >&6; }
22538 CFLAGS="$_cflags -ieee"
22540 { echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
22541 echo $ECHO_N "checking if IEEE math works with the -ieee switch... $ECHO_C" >&6; }
22542 if test "${rd_cv_ieee_switch+set}" = set; then
22543 echo $ECHO_N "(cached) $ECHO_C" >&6
22544 else
22545 if test "$cross_compiling" = yes; then
22546 :
22547 else
22548 cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h. */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22556 #if HAVE_MATH_H
22557 # include <math.h>
22558 #endif
22560 #if HAVE_FLOAT_H
22561 # include <float.h>
22562 #endif
22564 #if HAVE_IEEEFP_H
22565 # include <ieeefp.h>
22566 #endif
22568 #if HAVE_FP_CLASS_H
22569 # include <fp_class.h>
22570 #endif
22572 /* Solaris */
22573 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
22574 # define HAVE_ISINF 1
22575 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
22576 #endif
22578 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
22579 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
22580 # undef isnan
22581 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
22582 #endif
22584 /* Digital UNIX */
22585 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
22586 # define HAVE_ISINF 1
22587 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
22588 #endif
22590 /* AIX */
22591 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
22592 # define HAVE_ISINF 1
22593 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
22594 #endif
22596 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
22597 # define HAVE_ISINF 1
22598 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
22599 #endif
22601 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
22602 # define HAVE_ISINF 1
22603 # define isinf(a) (fpclassify(a) == FP_INFINITE)
22604 #endif
22606 #include <stdio.h>
22607 int main(void){
22608 double rrdnan,rrdinf,rrdc,rrdzero;
22609 ;
22610 /* some math to see if we get a floating point exception */
22611 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
22612 rrdnan=0.0/rrdzero; /* especially here */
22613 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
22614 /* at run time without sig fpe */
22615 rrdc = rrdinf + rrdnan;
22616 rrdc = rrdinf / rrdnan;
22617 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
22618 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
22619 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
22620 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
22621 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
22622 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
22623 return 0;
22624 }
22625 _ACEOF
22626 rm -f conftest$ac_exeext
22627 if { (ac_try="$ac_link"
22628 case "(($ac_try" in
22629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630 *) ac_try_echo=$ac_try;;
22631 esac
22632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633 (eval "$ac_link") 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22637 { (case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_try") 2>&5
22643 ac_status=$?
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }; then
22646 rd_cv_ieee_switch=yes
22647 else
22648 echo "$as_me: program exited with status $ac_status" >&5
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22652 ( exit $ac_status )
22653 rd_cv_ieee_switch=no
22654 fi
22655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22656 fi
22659 fi
22661 if test x${rd_cv_ieee_switch} = "xyes"; then
22662 { echo "$as_me:$LINENO: result: yes" >&5
22663 echo "${ECHO_T}yes" >&6; }
22665 else
22666 { echo "$as_me:$LINENO: result: no" >&5
22667 echo "${ECHO_T}no" >&6; }
22668 CFLAGS="$_cflags -qfloat=nofold"
22670 { echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
22671 echo $ECHO_N "checking if IEEE math works with the -qfloat=nofold switch... $ECHO_C" >&6; }
22672 if test "${rd_cv_ieee_nofold+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674 else
22675 if test "$cross_compiling" = yes; then
22676 :
22677 else
22678 cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h. */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22686 #if HAVE_MATH_H
22687 # include <math.h>
22688 #endif
22690 #if HAVE_FLOAT_H
22691 # include <float.h>
22692 #endif
22694 #if HAVE_IEEEFP_H
22695 # include <ieeefp.h>
22696 #endif
22698 #if HAVE_FP_CLASS_H
22699 # include <fp_class.h>
22700 #endif
22702 /* Solaris */
22703 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
22704 # define HAVE_ISINF 1
22705 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
22706 #endif
22708 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
22709 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
22710 # undef isnan
22711 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
22712 #endif
22714 /* Digital UNIX */
22715 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
22716 # define HAVE_ISINF 1
22717 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
22718 #endif
22720 /* AIX */
22721 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
22722 # define HAVE_ISINF 1
22723 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
22724 #endif
22726 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
22727 # define HAVE_ISINF 1
22728 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
22729 #endif
22731 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
22732 # define HAVE_ISINF 1
22733 # define isinf(a) (fpclassify(a) == FP_INFINITE)
22734 #endif
22736 #include <stdio.h>
22737 int main(void){
22738 double rrdnan,rrdinf,rrdc,rrdzero;
22739 ;
22740 /* some math to see if we get a floating point exception */
22741 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
22742 rrdnan=0.0/rrdzero; /* especially here */
22743 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
22744 /* at run time without sig fpe */
22745 rrdc = rrdinf + rrdnan;
22746 rrdc = rrdinf / rrdnan;
22747 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
22748 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
22749 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
22750 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
22751 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
22752 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
22753 return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest$ac_exeext
22757 if { (ac_try="$ac_link"
22758 case "(($ac_try" in
22759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760 *) ac_try_echo=$ac_try;;
22761 esac
22762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763 (eval "$ac_link") 2>&5
22764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22767 { (case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_try") 2>&5
22773 ac_status=$?
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; }; then
22776 rd_cv_ieee_nofold=yes
22777 else
22778 echo "$as_me: program exited with status $ac_status" >&5
22779 echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22782 ( exit $ac_status )
22783 rd_cv_ieee_nofold=no
22784 fi
22785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22786 fi
22789 fi
22791 if test x${rd_cv_ieee_nofold} = "xyes"; then
22792 { echo "$as_me:$LINENO: result: yes" >&5
22793 echo "${ECHO_T}yes" >&6; }
22795 else
22796 { echo "$as_me:$LINENO: result: no" >&5
22797 echo "${ECHO_T}no" >&6; }
22798 CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
22800 { echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
22801 echo $ECHO_N "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... $ECHO_C" >&6; }
22802 if test "${rd_cv_ieee_flttrap+set}" = set; then
22803 echo $ECHO_N "(cached) $ECHO_C" >&6
22804 else
22805 if test "$cross_compiling" = yes; then
22806 :
22807 else
22808 cat >conftest.$ac_ext <<_ACEOF
22809 /* confdefs.h. */
22810 _ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h. */
22816 #if HAVE_MATH_H
22817 # include <math.h>
22818 #endif
22820 #if HAVE_FLOAT_H
22821 # include <float.h>
22822 #endif
22824 #if HAVE_IEEEFP_H
22825 # include <ieeefp.h>
22826 #endif
22828 #if HAVE_FP_CLASS_H
22829 # include <fp_class.h>
22830 #endif
22832 /* Solaris */
22833 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
22834 # define HAVE_ISINF 1
22835 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
22836 #endif
22838 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
22839 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
22840 # undef isnan
22841 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
22842 #endif
22844 /* Digital UNIX */
22845 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
22846 # define HAVE_ISINF 1
22847 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
22848 #endif
22850 /* AIX */
22851 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
22852 # define HAVE_ISINF 1
22853 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
22854 #endif
22856 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
22857 # define HAVE_ISINF 1
22858 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
22859 #endif
22861 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
22862 # define HAVE_ISINF 1
22863 # define isinf(a) (fpclassify(a) == FP_INFINITE)
22864 #endif
22866 #include <stdio.h>
22867 int main(void){
22868 double rrdnan,rrdinf,rrdc,rrdzero;
22869 ;
22870 /* some math to see if we get a floating point exception */
22871 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
22872 rrdnan=0.0/rrdzero; /* especially here */
22873 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
22874 /* at run time without sig fpe */
22875 rrdc = rrdinf + rrdnan;
22876 rrdc = rrdinf / rrdnan;
22877 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
22878 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
22879 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
22880 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
22881 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
22882 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
22883 return 0;
22884 }
22885 _ACEOF
22886 rm -f conftest$ac_exeext
22887 if { (ac_try="$ac_link"
22888 case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22891 esac
22892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22893 (eval "$ac_link") 2>&5
22894 ac_status=$?
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22897 { (case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22900 esac
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_try") 2>&5
22903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; }; then
22906 rd_cv_ieee_flttrap=yes
22907 else
22908 echo "$as_me: program exited with status $ac_status" >&5
22909 echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22912 ( exit $ac_status )
22913 rd_cv_ieee_flttrap=no
22914 fi
22915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22916 fi
22919 fi
22921 if test x${rd_cv_ieee_flttrap} = "xyes"; then
22922 { echo "$as_me:$LINENO: result: yes" >&5
22923 echo "${ECHO_T}yes" >&6; }
22925 else
22926 { echo "$as_me:$LINENO: result: no" >&5
22927 echo "${ECHO_T}no" >&6; }
22928 CFLAGS="$_cflags -mieee"
22930 { echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
22931 echo $ECHO_N "checking if IEEE math works with the -mieee switch... $ECHO_C" >&6; }
22932 if test "${rd_cv_ieee_mswitch+set}" = set; then
22933 echo $ECHO_N "(cached) $ECHO_C" >&6
22934 else
22935 if test "$cross_compiling" = yes; then
22936 :
22937 else
22938 cat >conftest.$ac_ext <<_ACEOF
22939 /* confdefs.h. */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h. */
22946 #if HAVE_MATH_H
22947 # include <math.h>
22948 #endif
22950 #if HAVE_FLOAT_H
22951 # include <float.h>
22952 #endif
22954 #if HAVE_IEEEFP_H
22955 # include <ieeefp.h>
22956 #endif
22958 #if HAVE_FP_CLASS_H
22959 # include <fp_class.h>
22960 #endif
22962 /* Solaris */
22963 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
22964 # define HAVE_ISINF 1
22965 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
22966 #endif
22968 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
22969 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
22970 # undef isnan
22971 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
22972 #endif
22974 /* Digital UNIX */
22975 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
22976 # define HAVE_ISINF 1
22977 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
22978 #endif
22980 /* AIX */
22981 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
22982 # define HAVE_ISINF 1
22983 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
22984 #endif
22986 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
22987 # define HAVE_ISINF 1
22988 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
22989 #endif
22991 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
22992 # define HAVE_ISINF 1
22993 # define isinf(a) (fpclassify(a) == FP_INFINITE)
22994 #endif
22996 #include <stdio.h>
22997 int main(void){
22998 double rrdnan,rrdinf,rrdc,rrdzero;
22999 ;
23000 /* some math to see if we get a floating point exception */
23001 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23002 rrdnan=0.0/rrdzero; /* especially here */
23003 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23004 /* at run time without sig fpe */
23005 rrdc = rrdinf + rrdnan;
23006 rrdc = rrdinf / rrdnan;
23007 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23008 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23009 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23010 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23011 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23012 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23013 return 0;
23014 }
23015 _ACEOF
23016 rm -f conftest$ac_exeext
23017 if { (ac_try="$ac_link"
23018 case "(($ac_try" in
23019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020 *) ac_try_echo=$ac_try;;
23021 esac
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023 (eval "$ac_link") 2>&5
23024 ac_status=$?
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23027 { (case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23030 esac
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_try") 2>&5
23033 ac_status=$?
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; }; then
23036 rd_cv_ieee_mswitch=yes
23037 else
23038 echo "$as_me: program exited with status $ac_status" >&5
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23042 ( exit $ac_status )
23043 rd_cv_ieee_mswitch=no
23044 fi
23045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23046 fi
23049 fi
23051 if test x${rd_cv_ieee_mswitch} = "xyes"; then
23052 { echo "$as_me:$LINENO: result: yes" >&5
23053 echo "${ECHO_T}yes" >&6; }
23055 else
23056 { echo "$as_me:$LINENO: result: no" >&5
23057 echo "${ECHO_T}no" >&6; }
23058 CFLAGS="$_cflags -q float=rndsngl"
23060 { echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
23061 echo $ECHO_N "checking if IEEE math works with the -q float=rndsngl switch... $ECHO_C" >&6; }
23062 if test "${rd_cv_ieee_qswitch+set}" = set; then
23063 echo $ECHO_N "(cached) $ECHO_C" >&6
23064 else
23065 if test "$cross_compiling" = yes; then
23066 :
23067 else
23068 cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h. */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23076 #if HAVE_MATH_H
23077 # include <math.h>
23078 #endif
23080 #if HAVE_FLOAT_H
23081 # include <float.h>
23082 #endif
23084 #if HAVE_IEEEFP_H
23085 # include <ieeefp.h>
23086 #endif
23088 #if HAVE_FP_CLASS_H
23089 # include <fp_class.h>
23090 #endif
23092 /* Solaris */
23093 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23094 # define HAVE_ISINF 1
23095 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23096 #endif
23098 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23099 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23100 # undef isnan
23101 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23102 #endif
23104 /* Digital UNIX */
23105 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23106 # define HAVE_ISINF 1
23107 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23108 #endif
23110 /* AIX */
23111 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23112 # define HAVE_ISINF 1
23113 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23114 #endif
23116 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23117 # define HAVE_ISINF 1
23118 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23119 #endif
23121 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23122 # define HAVE_ISINF 1
23123 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23124 #endif
23126 #include <stdio.h>
23127 int main(void){
23128 double rrdnan,rrdinf,rrdc,rrdzero;
23129 ;
23130 /* some math to see if we get a floating point exception */
23131 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23132 rrdnan=0.0/rrdzero; /* especially here */
23133 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23134 /* at run time without sig fpe */
23135 rrdc = rrdinf + rrdnan;
23136 rrdc = rrdinf / rrdnan;
23137 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23138 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23139 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23140 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23141 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23142 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23143 return 0;
23144 }
23145 _ACEOF
23146 rm -f conftest$ac_exeext
23147 if { (ac_try="$ac_link"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_link") 2>&5
23154 ac_status=$?
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23157 { (case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_try") 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 rd_cv_ieee_qswitch=yes
23167 else
23168 echo "$as_me: program exited with status $ac_status" >&5
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ( exit $ac_status )
23173 rd_cv_ieee_qswitch=no
23174 fi
23175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23176 fi
23179 fi
23181 if test x${rd_cv_ieee_qswitch} = "xyes"; then
23182 { echo "$as_me:$LINENO: result: yes" >&5
23183 echo "${ECHO_T}yes" >&6; }
23185 else
23186 { echo "$as_me:$LINENO: result: no" >&5
23187 echo "${ECHO_T}no" >&6; }
23188 CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
23190 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
23191 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... $ECHO_C" >&6; }
23192 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23194 else
23195 if test "$cross_compiling" = yes; then
23196 :
23197 else
23198 cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h. */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23206 #if HAVE_MATH_H
23207 # include <math.h>
23208 #endif
23210 #if HAVE_FLOAT_H
23211 # include <float.h>
23212 #endif
23214 #if HAVE_IEEEFP_H
23215 # include <ieeefp.h>
23216 #endif
23218 #if HAVE_FP_CLASS_H
23219 # include <fp_class.h>
23220 #endif
23222 /* Solaris */
23223 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23224 # define HAVE_ISINF 1
23225 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23226 #endif
23228 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23229 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23230 # undef isnan
23231 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23232 #endif
23234 /* Digital UNIX */
23235 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23236 # define HAVE_ISINF 1
23237 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23238 #endif
23240 /* AIX */
23241 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23242 # define HAVE_ISINF 1
23243 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23244 #endif
23246 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23247 # define HAVE_ISINF 1
23248 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23249 #endif
23251 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23252 # define HAVE_ISINF 1
23253 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23254 #endif
23256 #include <stdio.h>
23257 int main(void){
23258 double rrdnan,rrdinf,rrdc,rrdzero;
23259 ;
23260 /* some math to see if we get a floating point exception */
23261 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23262 rrdnan=0.0/rrdzero; /* especially here */
23263 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23264 /* at run time without sig fpe */
23265 rrdc = rrdinf + rrdnan;
23266 rrdc = rrdinf / rrdnan;
23267 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23268 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23269 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23270 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23271 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23272 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23273 return 0;
23274 }
23275 _ACEOF
23276 rm -f conftest$ac_exeext
23277 if { (ac_try="$ac_link"
23278 case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23281 esac
23282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_link") 2>&5
23284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23287 { (case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23290 esac
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292 (eval "$ac_try") 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296 rd_cv_ieee_ieeenaninfswitch=yes
23297 else
23298 echo "$as_me: program exited with status $ac_status" >&5
23299 echo "$as_me: failed program was:" >&5
23300 sed 's/^/| /' conftest.$ac_ext >&5
23302 ( exit $ac_status )
23303 rd_cv_ieee_ieeenaninfswitch=no
23304 fi
23305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23306 fi
23309 fi
23311 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
23312 { echo "$as_me:$LINENO: result: yes" >&5
23313 echo "${ECHO_T}yes" >&6; }
23315 else
23316 { echo "$as_me:$LINENO: result: no" >&5
23317 echo "${ECHO_T}no" >&6; }
23318 CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
23320 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
23321 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... $ECHO_C" >&6; }
23322 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
23323 echo $ECHO_N "(cached) $ECHO_C" >&6
23324 else
23325 if test "$cross_compiling" = yes; then
23326 :
23327 else
23328 cat >conftest.$ac_ext <<_ACEOF
23329 /* confdefs.h. */
23330 _ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h. */
23336 #if HAVE_MATH_H
23337 # include <math.h>
23338 #endif
23340 #if HAVE_FLOAT_H
23341 # include <float.h>
23342 #endif
23344 #if HAVE_IEEEFP_H
23345 # include <ieeefp.h>
23346 #endif
23348 #if HAVE_FP_CLASS_H
23349 # include <fp_class.h>
23350 #endif
23352 /* Solaris */
23353 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23354 # define HAVE_ISINF 1
23355 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23356 #endif
23358 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23359 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23360 # undef isnan
23361 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23362 #endif
23364 /* Digital UNIX */
23365 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23366 # define HAVE_ISINF 1
23367 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23368 #endif
23370 /* AIX */
23371 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23372 # define HAVE_ISINF 1
23373 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23374 #endif
23376 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23377 # define HAVE_ISINF 1
23378 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23379 #endif
23381 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23382 # define HAVE_ISINF 1
23383 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23384 #endif
23386 #include <stdio.h>
23387 int main(void){
23388 double rrdnan,rrdinf,rrdc,rrdzero;
23389 ;
23390 /* some math to see if we get a floating point exception */
23391 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23392 rrdnan=0.0/rrdzero; /* especially here */
23393 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23394 /* at run time without sig fpe */
23395 rrdc = rrdinf + rrdnan;
23396 rrdc = rrdinf / rrdnan;
23397 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23398 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23399 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23400 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23401 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23402 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23403 return 0;
23404 }
23405 _ACEOF
23406 rm -f 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>&5
23414 ac_status=$?
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23417 { (case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23420 esac
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_try") 2>&5
23423 ac_status=$?
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; }; then
23426 rd_cv_ieee_ieeecmpswitch=yes
23427 else
23428 echo "$as_me: program exited with status $ac_status" >&5
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ( exit $ac_status )
23433 rd_cv_ieee_ieeecmpswitch=no
23434 fi
23435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23436 fi
23439 fi
23441 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
23442 { echo "$as_me:$LINENO: result: yes" >&5
23443 echo "${ECHO_T}yes" >&6; }
23445 else
23446 { echo "$as_me:$LINENO: result: no" >&5
23447 echo "${ECHO_T}no" >&6; }
23448 CFLAGS=$_cflags
23450 { echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
23451 echo $ECHO_N "checking if IEEE math works with fpsetmask(0)... $ECHO_C" >&6; }
23452 if test "${rd_cv_ieee_mask+set}" = set; then
23453 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 else
23455 if test "$cross_compiling" = yes; then
23456 :
23457 else
23458 cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h. */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 #include <floatingpoint.h>
23466 #if HAVE_MATH_H
23467 # include <math.h>
23468 #endif
23470 #if HAVE_FLOAT_H
23471 # include <float.h>
23472 #endif
23474 #if HAVE_IEEEFP_H
23475 # include <ieeefp.h>
23476 #endif
23478 #if HAVE_FP_CLASS_H
23479 # include <fp_class.h>
23480 #endif
23482 /* Solaris */
23483 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23484 # define HAVE_ISINF 1
23485 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23486 #endif
23488 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23489 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23490 # undef isnan
23491 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23492 #endif
23494 /* Digital UNIX */
23495 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23496 # define HAVE_ISINF 1
23497 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23498 #endif
23500 /* AIX */
23501 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23502 # define HAVE_ISINF 1
23503 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23504 #endif
23506 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23507 # define HAVE_ISINF 1
23508 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23509 #endif
23511 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23512 # define HAVE_ISINF 1
23513 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23514 #endif
23516 #include <stdio.h>
23517 int main(void){
23518 double rrdnan,rrdinf,rrdc,rrdzero;
23519 fpsetmask(0);
23520 /* some math to see if we get a floating point exception */
23521 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23522 rrdnan=0.0/rrdzero; /* especially here */
23523 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23524 /* at run time without sig fpe */
23525 rrdc = rrdinf + rrdnan;
23526 rrdc = rrdinf / rrdnan;
23527 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23528 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23529 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23530 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23531 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23532 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23533 return 0;
23534 }
23535 _ACEOF
23536 rm -f conftest$ac_exeext
23537 if { (ac_try="$ac_link"
23538 case "(($ac_try" in
23539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540 *) ac_try_echo=$ac_try;;
23541 esac
23542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23543 (eval "$ac_link") 2>&5
23544 ac_status=$?
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23547 { (case "(($ac_try" in
23548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23549 *) ac_try_echo=$ac_try;;
23550 esac
23551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23552 (eval "$ac_try") 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 rd_cv_ieee_mask=yes
23557 else
23558 echo "$as_me: program exited with status $ac_status" >&5
23559 echo "$as_me: failed program was:" >&5
23560 sed 's/^/| /' conftest.$ac_ext >&5
23562 ( exit $ac_status )
23563 rd_cv_ieee_mask=no
23564 fi
23565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23566 fi
23569 fi
23571 if test x${rd_cv_ieee_mask} = "xyes"; then
23572 { echo "$as_me:$LINENO: result: yes" >&5
23573 echo "${ECHO_T}yes" >&6; }
23574 cat >>confdefs.h <<\_ACEOF
23575 #define MUST_DISABLE_FPMASK 1
23576 _ACEOF
23578 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
23579 else
23580 { echo "$as_me:$LINENO: result: no" >&5
23581 echo "${ECHO_T}no" >&6; }
23583 { echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
23584 echo $ECHO_N "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... $ECHO_C" >&6; }
23585 if test "${rd_cv_ieee_sigfpe+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23587 else
23588 if test "$cross_compiling" = yes; then
23589 :
23590 else
23591 cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h. */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 #include <signal.h>
23599 #if HAVE_MATH_H
23600 # include <math.h>
23601 #endif
23603 #if HAVE_FLOAT_H
23604 # include <float.h>
23605 #endif
23607 #if HAVE_IEEEFP_H
23608 # include <ieeefp.h>
23609 #endif
23611 #if HAVE_FP_CLASS_H
23612 # include <fp_class.h>
23613 #endif
23615 /* Solaris */
23616 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
23617 # define HAVE_ISINF 1
23618 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
23619 #endif
23621 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
23622 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
23623 # undef isnan
23624 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
23625 #endif
23627 /* Digital UNIX */
23628 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
23629 # define HAVE_ISINF 1
23630 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
23631 #endif
23633 /* AIX */
23634 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
23635 # define HAVE_ISINF 1
23636 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
23637 #endif
23639 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
23640 # define HAVE_ISINF 1
23641 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
23642 #endif
23644 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
23645 # define HAVE_ISINF 1
23646 # define isinf(a) (fpclassify(a) == FP_INFINITE)
23647 #endif
23649 #include <stdio.h>
23650 int main(void){
23651 double rrdnan,rrdinf,rrdc,rrdzero;
23652 signal(SIGFPE,SIG_IGN);
23653 /* some math to see if we get a floating point exception */
23654 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
23655 rrdnan=0.0/rrdzero; /* especially here */
23656 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
23657 /* at run time without sig fpe */
23658 rrdc = rrdinf + rrdnan;
23659 rrdc = rrdinf / rrdnan;
23660 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
23661 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
23662 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
23663 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
23664 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
23665 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
23666 return 0;
23667 }
23668 _ACEOF
23669 rm -f conftest$ac_exeext
23670 if { (ac_try="$ac_link"
23671 case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23674 esac
23675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676 (eval "$ac_link") 2>&5
23677 ac_status=$?
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23680 { (case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_try") 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 rd_cv_ieee_sigfpe=yes
23690 else
23691 echo "$as_me: program exited with status $ac_status" >&5
23692 echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23695 ( exit $ac_status )
23696 rd_cv_ieee_sigfpe=no
23697 fi
23698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23699 fi
23702 fi
23704 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
23705 { echo "$as_me:$LINENO: result: yes" >&5
23706 echo "${ECHO_T}yes" >&6; }
23707 cat >>confdefs.h <<\_ACEOF
23708 #define MUST_DISABLE_SIGFPE 1
23709 _ACEOF
23711 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
23712 else
23713 { echo "$as_me:$LINENO: result: no" >&5
23714 echo "${ECHO_T}no" >&6; }
23715 { { echo "$as_me:$LINENO: error:
23716 Your Compiler does not do propper IEEE math ... Please find out how to
23717 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
23718 Check config.log to see what went wrong ...
23719 " >&5
23720 echo "$as_me: error:
23721 Your Compiler does not do propper IEEE math ... Please find out how to
23722 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
23723 Check config.log to see what went wrong ...
23724 " >&2;}
23725 { (exit 1); exit 1; }; }
23726 fi
23729 fi
23732 fi
23735 fi
23738 fi
23741 fi
23744 fi
23747 fi
23750 fi
23753 fi
23757 ac_ext=c
23758 ac_cpp='$CPP $CPPFLAGS'
23759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23767 case $TERM in
23768 # for the most important terminal types we directly know the sequences
23769 xterm|xterm*|vt220|vt220*)
23770 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
23771 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
23772 ;;
23773 vt100|vt100*|cygwin)
23774 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
23775 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
23776 ;;
23777 *)
23778 T_MD=''
23779 T_ME=''
23780 ;;
23781 esac
23782 { echo "$as_me:$LINENO: result: " >&5
23783 echo "${ECHO_T}" >&6; }
23784 { echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
23785 echo "${ECHO_T}${T_MD}Resolve Portability Issues${T_ME}" >&6; }
23789 { echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
23790 echo $ECHO_N "checking if realloc can deal with NULL... $ECHO_C" >&6; }
23791 if test "${rd_cv_null_realloc+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794 if test "$cross_compiling" = yes; then
23795 :
23796 else
23797 cat >conftest.$ac_ext <<_ACEOF
23798 /* confdefs.h. */
23799 _ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23803 #include <stdlib.h>
23804 int main(void){
23805 char *x = NULL;
23806 x = realloc (x,10);
23807 if (x==NULL) return 1;
23808 return 0;
23809 }
23810 _ACEOF
23811 rm -f conftest$ac_exeext
23812 if { (ac_try="$ac_link"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_link") 2>&5
23819 ac_status=$?
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23822 { (case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23825 esac
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827 (eval "$ac_try") 2>&5
23828 ac_status=$?
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; }; then
23831 rd_cv_null_realloc=yes
23832 else
23833 echo "$as_me: program exited with status $ac_status" >&5
23834 echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23837 ( exit $ac_status )
23838 rd_cv_null_realloc=nope
23839 fi
23840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23841 fi
23844 fi
23845 { echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
23846 echo "${ECHO_T}$rd_cv_null_realloc" >&6; }
23848 if test x"$rd_cv_null_realloc" = xnope; then
23849 cat >>confdefs.h <<\_ACEOF
23850 #define NO_NULL_REALLOC 1
23851 _ACEOF
23853 fi
23855 ac_ext=c
23856 ac_cpp='$CPP $CPPFLAGS'
23857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23861 { echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
23862 echo $ECHO_N "checking if ctime_r need special care to act posixly correct... $ECHO_C" >&6; }
23863 cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h. */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 #include <time.h>
23870 int
23871 main ()
23872 {
23873 ctime_r(NULL,NULL,0)
23875 ;
23876 return 0;
23877 }
23878 _ACEOF
23879 rm -f conftest.$ac_objext conftest$ac_exeext
23880 if { (ac_try="$ac_link"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23884 esac
23885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23886 (eval "$ac_link") 2>conftest.er1
23887 ac_status=$?
23888 grep -v '^ *+' conftest.er1 >conftest.err
23889 rm -f conftest.er1
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } && {
23893 test -z "$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 } && test -s conftest$ac_exeext &&
23896 $as_test_x conftest$ac_exeext; then
23897 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
23898 cat >conftest.$ac_ext <<_ACEOF
23899 /* confdefs.h. */
23900 _ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h. */
23904 #include <time.h>
23905 int
23906 main ()
23907 {
23908 ctime_r(NULL,NULL)
23910 ;
23911 return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921 (eval "$ac_link") 2>conftest.er1
23922 ac_status=$?
23923 grep -v '^ *+' conftest.er1 >conftest.err
23924 rm -f conftest.er1
23925 cat conftest.err >&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } && {
23928 test -z "$ac_c_werror_flag" ||
23929 test ! -s conftest.err
23930 } && test -s conftest$ac_exeext &&
23931 $as_test_x conftest$ac_exeext; then
23932 { echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
23933 echo "${ECHO_T}yes, this seems to be solaris style" >&6; }
23934 else
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
23939 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
23940 { (exit 1); exit 1; }; }
23942 fi
23944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23945 conftest$ac_exeext conftest.$ac_ext
23947 else
23948 echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23951 cat >conftest.$ac_ext <<_ACEOF
23952 /* confdefs.h. */
23953 _ACEOF
23954 cat confdefs.h >>conftest.$ac_ext
23955 cat >>conftest.$ac_ext <<_ACEOF
23956 /* end confdefs.h. */
23957 #include <time.h>
23958 int
23959 main ()
23960 {
23961 ctime_r(NULL,NULL)
23963 ;
23964 return 0;
23965 }
23966 _ACEOF
23967 rm -f conftest.$ac_objext conftest$ac_exeext
23968 if { (ac_try="$ac_link"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_link") 2>conftest.er1
23975 ac_status=$?
23976 grep -v '^ *+' conftest.er1 >conftest.err
23977 rm -f conftest.er1
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest$ac_exeext &&
23984 $as_test_x conftest$ac_exeext; then
23985 { echo "$as_me:$LINENO: result: no" >&5
23986 echo "${ECHO_T}no" >&6; }
23987 else
23988 echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
23992 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
23993 { (exit 1); exit 1; }; }
23995 fi
23997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23998 conftest$ac_exeext conftest.$ac_ext
24001 fi
24003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24004 conftest$ac_exeext conftest.$ac_ext
24005 ac_ext=c
24006 ac_cpp='$CPP $CPPFLAGS'
24007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24016 if test $enable_pthread != no; then
24019 ac_ext=c
24020 ac_cpp='$CPP $CPPFLAGS'
24021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24025 acx_pthread_ok=no
24027 # We used to check for pthread.h first, but this fails if pthread.h
24028 # requires special compiler flags (e.g. on True64 or Sequent).
24029 # It gets checked for in the link test anyway.
24031 # First of all, check if the user has set any of the PTHREAD_LIBS,
24032 # etcetera environment variables, and if threads linking works using
24033 # them:
24034 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
24035 save_CFLAGS="$CFLAGS"
24036 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24037 save_LIBS="$LIBS"
24038 LIBS="$PTHREAD_LIBS $LIBS"
24039 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
24040 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
24041 cat >conftest.$ac_ext <<_ACEOF
24042 /* confdefs.h. */
24043 _ACEOF
24044 cat confdefs.h >>conftest.$ac_ext
24045 cat >>conftest.$ac_ext <<_ACEOF
24046 /* end confdefs.h. */
24048 /* Override any GCC internal prototype to avoid an error.
24049 Use char because int might match the return type of a GCC
24050 builtin and then its argument prototype would still apply. */
24051 #ifdef __cplusplus
24052 extern "C"
24053 #endif
24054 char pthread_join ();
24055 int
24056 main ()
24057 {
24058 return pthread_join ();
24059 ;
24060 return 0;
24061 }
24062 _ACEOF
24063 rm -f conftest.$ac_objext conftest$ac_exeext
24064 if { (ac_try="$ac_link"
24065 case "(($ac_try" in
24066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067 *) ac_try_echo=$ac_try;;
24068 esac
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070 (eval "$ac_link") 2>conftest.er1
24071 ac_status=$?
24072 grep -v '^ *+' conftest.er1 >conftest.err
24073 rm -f conftest.er1
24074 cat conftest.err >&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } && {
24077 test -z "$ac_c_werror_flag" ||
24078 test ! -s conftest.err
24079 } && test -s conftest$ac_exeext &&
24080 $as_test_x conftest$ac_exeext; then
24081 acx_pthread_ok=yes
24082 else
24083 echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24087 fi
24089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24090 conftest$ac_exeext conftest.$ac_ext
24091 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
24092 echo "${ECHO_T}$acx_pthread_ok" >&6; }
24093 if test x"$acx_pthread_ok" = xno; then
24094 PTHREAD_LIBS=""
24095 PTHREAD_CFLAGS=""
24096 fi
24097 LIBS="$save_LIBS"
24098 CFLAGS="$save_CFLAGS"
24099 fi
24101 # We must check for the threads library under a number of different
24102 # names; the ordering is very important because some systems
24103 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
24104 # libraries is broken (non-POSIX).
24106 # Create a list of thread flags to try. Items starting with a "-" are
24107 # C compiler flags, and other items are library names, except for "none"
24108 # which indicates that we try without any flags at all, and "pthread-config"
24109 # which is a program returning the flags for the Pth emulation library.
24111 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
24113 # The ordering *is* (sometimes) important. Some notes on the
24114 # individual items follow:
24116 # pthreads: AIX (must check this before -lpthread)
24117 # none: in case threads are in libc; should be tried before -Kthread and
24118 # other compiler flags to prevent continual compiler warnings
24119 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
24120 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
24121 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
24122 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
24123 # -pthreads: Solaris/gcc
24124 # -mthreads: Mingw32/gcc, Lynx/gcc
24125 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
24126 # doesn't hurt to check since this sometimes defines pthreads too;
24127 # also defines -D_REENTRANT)
24128 # pthread: Linux, etcetera
24129 # --thread-safe: KAI C++
24130 # pthread-config: use pthread-config program (for GNU Pth library)
24132 case "${host_cpu}-${host_os}" in
24133 *solaris*)
24135 # On Solaris (at least, for some versions), libc contains stubbed
24136 # (non-functional) versions of the pthreads routines, so link-based
24137 # tests will erroneously succeed. (We need to link with -pthread or
24138 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
24139 # a function called by this macro, so we could check for that, but
24140 # who knows whether they'll stub that too in a future libc.) So,
24141 # we'll just look for -pthreads and -lpthread first:
24143 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
24144 ;;
24145 esac
24147 if test x"$acx_pthread_ok" = xno; then
24148 for flag in $acx_pthread_flags; do
24150 case $flag in
24151 none)
24152 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
24153 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
24154 ;;
24156 -*)
24157 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
24158 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
24159 PTHREAD_CFLAGS="$flag"
24160 ;;
24162 pthread-config)
24163 # Extract the first word of "pthread-config", so it can be a program name with args.
24164 set dummy pthread-config; ac_word=$2
24165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24167 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
24168 echo $ECHO_N "(cached) $ECHO_C" >&6
24169 else
24170 if test -n "$acx_pthread_config"; then
24171 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
24172 else
24173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24174 for as_dir in $PATH
24175 do
24176 IFS=$as_save_IFS
24177 test -z "$as_dir" && as_dir=.
24178 for ac_exec_ext in '' $ac_executable_extensions; do
24179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24180 ac_cv_prog_acx_pthread_config="yes"
24181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24182 break 2
24183 fi
24184 done
24185 done
24186 IFS=$as_save_IFS
24188 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
24189 fi
24190 fi
24191 acx_pthread_config=$ac_cv_prog_acx_pthread_config
24192 if test -n "$acx_pthread_config"; then
24193 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
24194 echo "${ECHO_T}$acx_pthread_config" >&6; }
24195 else
24196 { echo "$as_me:$LINENO: result: no" >&5
24197 echo "${ECHO_T}no" >&6; }
24198 fi
24201 if test x"$acx_pthread_config" = xno; then continue; fi
24202 PTHREAD_CFLAGS="`pthread-config --cflags`"
24203 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
24204 ;;
24206 *)
24207 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
24208 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
24209 PTHREAD_LIBS="-l$flag"
24210 ;;
24211 esac
24213 save_LIBS="$LIBS"
24214 save_CFLAGS="$CFLAGS"
24215 LIBS="$PTHREAD_LIBS $LIBS"
24216 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24218 # Check for various functions. We must include pthread.h,
24219 # since some functions may be macros. (On the Sequent, we
24220 # need a special flag -Kthread to make this header compile.)
24221 # We check for pthread_join because it is in -lpthread on IRIX
24222 # while pthread_create is in libc. We check for pthread_attr_init
24223 # due to DEC craziness with -lpthreads. We check for
24224 # pthread_cleanup_push because it is one of the few pthread
24225 # functions on Solaris that doesn't have a non-functional libc stub.
24226 # We try pthread_create on general principles.
24227 cat >conftest.$ac_ext <<_ACEOF
24228 /* confdefs.h. */
24229 _ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h. */
24233 #include <pthread.h>
24234 int
24235 main ()
24236 {
24237 pthread_t th; pthread_join(th, 0);
24238 pthread_attr_init(0); pthread_cleanup_push(0, 0);
24239 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
24240 ;
24241 return 0;
24242 }
24243 _ACEOF
24244 rm -f conftest.$ac_objext conftest$ac_exeext
24245 if { (ac_try="$ac_link"
24246 case "(($ac_try" in
24247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248 *) ac_try_echo=$ac_try;;
24249 esac
24250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24251 (eval "$ac_link") 2>conftest.er1
24252 ac_status=$?
24253 grep -v '^ *+' conftest.er1 >conftest.err
24254 rm -f conftest.er1
24255 cat conftest.err >&5
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); } && {
24258 test -z "$ac_c_werror_flag" ||
24259 test ! -s conftest.err
24260 } && test -s conftest$ac_exeext &&
24261 $as_test_x conftest$ac_exeext; then
24262 acx_pthread_ok=yes
24263 else
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24268 fi
24270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24271 conftest$ac_exeext conftest.$ac_ext
24273 LIBS="$save_LIBS"
24274 CFLAGS="$save_CFLAGS"
24276 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
24277 echo "${ECHO_T}$acx_pthread_ok" >&6; }
24278 if test "x$acx_pthread_ok" = xyes; then
24279 break;
24280 fi
24282 PTHREAD_LIBS=""
24283 PTHREAD_CFLAGS=""
24284 done
24285 fi
24287 # Various other checks:
24288 if test "x$acx_pthread_ok" = xyes; then
24289 save_LIBS="$LIBS"
24290 LIBS="$PTHREAD_LIBS $LIBS"
24291 save_CFLAGS="$CFLAGS"
24292 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24294 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
24295 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
24296 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
24297 attr_name=unknown
24298 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
24299 cat >conftest.$ac_ext <<_ACEOF
24300 /* confdefs.h. */
24301 _ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h. */
24305 #include <pthread.h>
24306 int
24307 main ()
24308 {
24309 int attr=$attr;
24310 ;
24311 return 0;
24312 }
24313 _ACEOF
24314 rm -f conftest.$ac_objext conftest$ac_exeext
24315 if { (ac_try="$ac_link"
24316 case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24319 esac
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_link") 2>conftest.er1
24322 ac_status=$?
24323 grep -v '^ *+' conftest.er1 >conftest.err
24324 rm -f conftest.er1
24325 cat conftest.err >&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } && {
24328 test -z "$ac_c_werror_flag" ||
24329 test ! -s conftest.err
24330 } && test -s conftest$ac_exeext &&
24331 $as_test_x conftest$ac_exeext; then
24332 attr_name=$attr; break
24333 else
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24338 fi
24340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24341 conftest$ac_exeext conftest.$ac_ext
24342 done
24343 { echo "$as_me:$LINENO: result: $attr_name" >&5
24344 echo "${ECHO_T}$attr_name" >&6; }
24345 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
24347 cat >>confdefs.h <<_ACEOF
24348 #define PTHREAD_CREATE_JOINABLE $attr_name
24349 _ACEOF
24351 fi
24353 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
24354 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
24355 x_rflag=no
24356 case "${host_cpu}-${host_os}" in
24357 *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
24358 *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
24359 *-linux*)
24360 if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
24361 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
24362 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
24363 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
24364 fi;;
24365 esac
24366 { echo "$as_me:$LINENO: result: ${x_rflag}" >&5
24367 echo "${ECHO_T}${x_rflag}" >&6; }
24368 if test "x$x_rflag" != xno; then
24369 PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
24370 fi
24372 LIBS="$save_LIBS"
24373 CFLAGS="$save_CFLAGS"
24375 # More AIX lossage: must compile with cc_r
24376 # Extract the first word of "cc_r", so it can be a program name with args.
24377 set dummy cc_r; ac_word=$2
24378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24380 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24382 else
24383 if test -n "$PTHREAD_CC"; then
24384 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
24385 else
24386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24387 for as_dir in $PATH
24388 do
24389 IFS=$as_save_IFS
24390 test -z "$as_dir" && as_dir=.
24391 for ac_exec_ext in '' $ac_executable_extensions; do
24392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24393 ac_cv_prog_PTHREAD_CC="cc_r"
24394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24395 break 2
24396 fi
24397 done
24398 done
24399 IFS=$as_save_IFS
24401 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
24402 fi
24403 fi
24404 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
24405 if test -n "$PTHREAD_CC"; then
24406 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
24407 echo "${ECHO_T}$PTHREAD_CC" >&6; }
24408 else
24409 { echo "$as_me:$LINENO: result: no" >&5
24410 echo "${ECHO_T}no" >&6; }
24411 fi
24414 else
24415 PTHREAD_CC="$CC"
24416 fi
24422 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
24423 if test x"$acx_pthread_ok" = xyes; then
24425 MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
24426 MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
24428 :
24429 else
24430 acx_pthread_ok=no
24432 fi
24433 ac_ext=c
24434 ac_cpp='$CPP $CPPFLAGS'
24435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24440 fi
24443 if test "x$x_rflag" != "xno"; then
24444 CPPFLAGS="$CPPFLAGS $x_rflag"
24445 fi
24449 if test $enable_pthread != no; then
24450 BUILD_MULTITHREAD_TRUE=
24451 BUILD_MULTITHREAD_FALSE='#'
24452 else
24453 BUILD_MULTITHREAD_TRUE='#'
24454 BUILD_MULTITHREAD_FALSE=
24455 fi
24458 ac_ext=c
24459 ac_cpp='$CPP $CPPFLAGS'
24460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24464 { echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
24465 echo $ECHO_N "checking do we need malloc/malloc.h... $ECHO_C" >&6; }
24466 cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h. */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472 #include <stdlib.h>
24473 int
24474 main ()
24475 {
24476 malloc(1)
24478 ;
24479 return 0;
24480 }
24481 _ACEOF
24482 rm -f conftest.$ac_objext conftest$ac_exeext
24483 if { (ac_try="$ac_link"
24484 case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24487 esac
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489 (eval "$ac_link") 2>conftest.er1
24490 ac_status=$?
24491 grep -v '^ *+' conftest.er1 >conftest.err
24492 rm -f conftest.er1
24493 cat conftest.err >&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); } && {
24496 test -z "$ac_c_werror_flag" ||
24497 test ! -s conftest.err
24498 } && test -s conftest$ac_exeext &&
24499 $as_test_x conftest$ac_exeext; then
24500 { echo "$as_me:$LINENO: result: nope, works out of the box" >&5
24501 echo "${ECHO_T}nope, works out of the box" >&6; }
24502 else
24503 echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24506 cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h. */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24512 #include <stdlib.h>
24513 #include <malloc/malloc.h>
24514 int
24515 main ()
24516 {
24517 malloc(1)
24519 ;
24520 return 0;
24521 }
24522 _ACEOF
24523 rm -f conftest.$ac_objext conftest$ac_exeext
24524 if { (ac_try="$ac_link"
24525 case "(($ac_try" in
24526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24528 esac
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530 (eval "$ac_link") 2>conftest.er1
24531 ac_status=$?
24532 grep -v '^ *+' conftest.er1 >conftest.err
24533 rm -f conftest.er1
24534 cat conftest.err >&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } && {
24537 test -z "$ac_c_werror_flag" ||
24538 test ! -s conftest.err
24539 } && test -s conftest$ac_exeext &&
24540 $as_test_x conftest$ac_exeext; then
24541 cat >>confdefs.h <<\_ACEOF
24542 #define NEED_MALLOC_MALLOC_H 1
24543 _ACEOF
24545 { echo "$as_me:$LINENO: result: yes we do" >&5
24546 echo "${ECHO_T}yes we do" >&6; }
24547 else
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24551 { { echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
24552 echo "$as_me: error: Can not figure how to compile malloc" >&2;}
24553 { (exit 1); exit 1; }; }
24555 fi
24557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24558 conftest$ac_exeext conftest.$ac_ext
24561 fi
24563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24564 conftest$ac_exeext conftest.$ac_ext
24565 ac_ext=c
24566 ac_cpp='$CPP $CPPFLAGS'
24567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24573 case $TERM in
24574 # for the most important terminal types we directly know the sequences
24575 xterm|xterm*|vt220|vt220*)
24576 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
24577 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
24578 ;;
24579 vt100|vt100*|cygwin)
24580 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
24581 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
24582 ;;
24583 *)
24584 T_MD=''
24585 T_ME=''
24586 ;;
24587 esac
24588 { echo "$as_me:$LINENO: result: " >&5
24589 echo "${ECHO_T}" >&6; }
24590 { echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
24591 echo "${ECHO_T}${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
24597 if test $enable_rrdcgi != no; then
24598 BUILD_RRDCGI_TRUE=
24599 BUILD_RRDCGI_FALSE='#'
24600 else
24601 BUILD_RRDCGI_TRUE='#'
24602 BUILD_RRDCGI_FALSE=
24603 fi
24606 CORE_LIBS="$LIBS"
24609 ac_ext=c
24610 ac_cpp='$CPP $CPPFLAGS'
24611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24615 EX_CHECK_STATE=NO
24616 ex_check_save_LIBS=${LIBS}
24617 ex_check_save_CPPFLAGS=${CPPFLAGS}
24618 ex_check_save_LDFLAGS=${LDFLAGS}
24619 if test "x/usr/include/libart-2.0" != "x"; then
24620 CPPFLAGS="$CPPFLAGS -I/usr/include/libart-2.0"
24621 fi
24622 { echo "$as_me:$LINENO: checking for art_vpath_add_point in -lart_lgpl_2" >&5
24623 echo $ECHO_N "checking for art_vpath_add_point in -lart_lgpl_2... $ECHO_C" >&6; }
24624 if test "${ac_cv_lib_art_lgpl_2_art_vpath_add_point+set}" = set; then
24625 echo $ECHO_N "(cached) $ECHO_C" >&6
24626 else
24627 ac_check_lib_save_LIBS=$LIBS
24628 LIBS="-lart_lgpl_2 $LIBS"
24629 cat >conftest.$ac_ext <<_ACEOF
24630 /* confdefs.h. */
24631 _ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h. */
24636 /* Override any GCC internal prototype to avoid an error.
24637 Use char because int might match the return type of a GCC
24638 builtin and then its argument prototype would still apply. */
24639 #ifdef __cplusplus
24640 extern "C"
24641 #endif
24642 char art_vpath_add_point ();
24643 int
24644 main ()
24645 {
24646 return art_vpath_add_point ();
24647 ;
24648 return 0;
24649 }
24650 _ACEOF
24651 rm -f conftest.$ac_objext conftest$ac_exeext
24652 if { (ac_try="$ac_link"
24653 case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656 esac
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_link") 2>conftest.er1
24659 ac_status=$?
24660 grep -v '^ *+' conftest.er1 >conftest.err
24661 rm -f conftest.er1
24662 cat conftest.err >&5
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); } && {
24665 test -z "$ac_c_werror_flag" ||
24666 test ! -s conftest.err
24667 } && test -s conftest$ac_exeext &&
24668 $as_test_x conftest$ac_exeext; then
24669 ac_cv_lib_art_lgpl_2_art_vpath_add_point=yes
24670 else
24671 echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24674 ac_cv_lib_art_lgpl_2_art_vpath_add_point=no
24675 fi
24677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24678 conftest$ac_exeext conftest.$ac_ext
24679 LIBS=$ac_check_lib_save_LIBS
24680 fi
24681 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&5
24682 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&6; }
24683 if test $ac_cv_lib_art_lgpl_2_art_vpath_add_point = yes; then
24685 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
24686 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
24687 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
24688 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24690 fi
24691 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
24692 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
24693 else
24694 # Is the header compilable?
24695 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h usability" >&5
24696 echo $ECHO_N "checking libart_lgpl/libart.h usability... $ECHO_C" >&6; }
24697 cat >conftest.$ac_ext <<_ACEOF
24698 /* confdefs.h. */
24699 _ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24703 $ac_includes_default
24704 #include <libart_lgpl/libart.h>
24705 _ACEOF
24706 rm -f conftest.$ac_objext
24707 if { (ac_try="$ac_compile"
24708 case "(($ac_try" in
24709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710 *) ac_try_echo=$ac_try;;
24711 esac
24712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713 (eval "$ac_compile") 2>conftest.er1
24714 ac_status=$?
24715 grep -v '^ *+' conftest.er1 >conftest.err
24716 rm -f conftest.er1
24717 cat conftest.err >&5
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); } && {
24720 test -z "$ac_c_werror_flag" ||
24721 test ! -s conftest.err
24722 } && test -s conftest.$ac_objext; then
24723 ac_header_compiler=yes
24724 else
24725 echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24728 ac_header_compiler=no
24729 fi
24731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24733 echo "${ECHO_T}$ac_header_compiler" >&6; }
24735 # Is the header present?
24736 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h presence" >&5
24737 echo $ECHO_N "checking libart_lgpl/libart.h presence... $ECHO_C" >&6; }
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h. */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <libart_lgpl/libart.h>
24745 _ACEOF
24746 if { (ac_try="$ac_cpp conftest.$ac_ext"
24747 case "(($ac_try" in
24748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749 *) ac_try_echo=$ac_try;;
24750 esac
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24753 ac_status=$?
24754 grep -v '^ *+' conftest.er1 >conftest.err
24755 rm -f conftest.er1
24756 cat conftest.err >&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); } >/dev/null && {
24759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24760 test ! -s conftest.err
24761 }; then
24762 ac_header_preproc=yes
24763 else
24764 echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24767 ac_header_preproc=no
24768 fi
24770 rm -f conftest.err conftest.$ac_ext
24771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24772 echo "${ECHO_T}$ac_header_preproc" >&6; }
24774 # So? What about this header?
24775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24776 yes:no: )
24777 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&5
24778 echo "$as_me: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24779 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&5
24780 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&2;}
24781 ac_header_preproc=yes
24782 ;;
24783 no:yes:* )
24784 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&5
24785 echo "$as_me: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&2;}
24786 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&5
24787 echo "$as_me: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&2;}
24788 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&5
24789 echo "$as_me: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&2;}
24790 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: section \"Present But Cannot Be Compiled\"" >&5
24791 echo "$as_me: WARNING: libart_lgpl/libart.h: section \"Present But Cannot Be Compiled\"" >&2;}
24792 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&5
24793 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&2;}
24794 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&5
24795 echo "$as_me: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&2;}
24797 ;;
24798 esac
24799 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
24800 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
24801 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
24802 echo $ECHO_N "(cached) $ECHO_C" >&6
24803 else
24804 ac_cv_header_libart_lgpl_libart_h=$ac_header_preproc
24805 fi
24806 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
24807 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
24809 fi
24810 if test $ac_cv_header_libart_lgpl_libart_h = yes; then
24811 LIBS="-lart_lgpl_2 ${LIBS}";EX_CHECK_STATE=YES
24812 fi
24815 fi
24817 if test $EX_CHECK_STATE = NO; then
24818 for ac_prog in pkg-config
24819 do
24820 # Extract the first word of "$ac_prog", so it can be a program name with args.
24821 set dummy $ac_prog; ac_word=$2
24822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24824 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
24825 echo $ECHO_N "(cached) $ECHO_C" >&6
24826 else
24827 if test -n "$PKGCONFIG"; then
24828 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
24829 else
24830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24831 for as_dir in $PATH
24832 do
24833 IFS=$as_save_IFS
24834 test -z "$as_dir" && as_dir=.
24835 for ac_exec_ext in '' $ac_executable_extensions; do
24836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24837 ac_cv_prog_PKGCONFIG="$ac_prog"
24838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24839 break 2
24840 fi
24841 done
24842 done
24843 IFS=$as_save_IFS
24845 fi
24846 fi
24847 PKGCONFIG=$ac_cv_prog_PKGCONFIG
24848 if test -n "$PKGCONFIG"; then
24849 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
24850 echo "${ECHO_T}$PKGCONFIG" >&6; }
24851 else
24852 { echo "$as_me:$LINENO: result: no" >&5
24853 echo "${ECHO_T}no" >&6; }
24854 fi
24857 test -n "$PKGCONFIG" && break
24858 done
24859 test -n "$PKGCONFIG" || PKGCONFIG="no"
24861 if test "$PKGCONFIG" != "no"; then
24862 if $PKGCONFIG --exists libart-2.0; then
24863 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libart-2.0`
24864 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libart-2.0`
24865 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libart-2.0`
24866 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libart-2.0`
24867 unset ac_cv_lib_art_lgpl_2_art_vpath_add_point
24868 { echo "$as_me:$LINENO: checking for art_vpath_add_point in -lart_lgpl_2" >&5
24869 echo $ECHO_N "checking for art_vpath_add_point in -lart_lgpl_2... $ECHO_C" >&6; }
24870 if test "${ac_cv_lib_art_lgpl_2_art_vpath_add_point+set}" = set; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24872 else
24873 ac_check_lib_save_LIBS=$LIBS
24874 LIBS="-lart_lgpl_2 $LIBS"
24875 cat >conftest.$ac_ext <<_ACEOF
24876 /* confdefs.h. */
24877 _ACEOF
24878 cat confdefs.h >>conftest.$ac_ext
24879 cat >>conftest.$ac_ext <<_ACEOF
24880 /* end confdefs.h. */
24882 /* Override any GCC internal prototype to avoid an error.
24883 Use char because int might match the return type of a GCC
24884 builtin and then its argument prototype would still apply. */
24885 #ifdef __cplusplus
24886 extern "C"
24887 #endif
24888 char art_vpath_add_point ();
24889 int
24890 main ()
24891 {
24892 return art_vpath_add_point ();
24893 ;
24894 return 0;
24895 }
24896 _ACEOF
24897 rm -f conftest.$ac_objext conftest$ac_exeext
24898 if { (ac_try="$ac_link"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24902 esac
24903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24904 (eval "$ac_link") 2>conftest.er1
24905 ac_status=$?
24906 grep -v '^ *+' conftest.er1 >conftest.err
24907 rm -f conftest.er1
24908 cat conftest.err >&5
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); } && {
24911 test -z "$ac_c_werror_flag" ||
24912 test ! -s conftest.err
24913 } && test -s conftest$ac_exeext &&
24914 $as_test_x conftest$ac_exeext; then
24915 ac_cv_lib_art_lgpl_2_art_vpath_add_point=yes
24916 else
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ac_cv_lib_art_lgpl_2_art_vpath_add_point=no
24921 fi
24923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24924 conftest$ac_exeext conftest.$ac_ext
24925 LIBS=$ac_check_lib_save_LIBS
24926 fi
24927 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&5
24928 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&6; }
24929 if test $ac_cv_lib_art_lgpl_2_art_vpath_add_point = yes; then
24931 unset ac_cv_header_`echo libart_lgpl/libart.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
24932 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
24933 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
24934 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
24935 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
24936 echo $ECHO_N "(cached) $ECHO_C" >&6
24937 fi
24938 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
24939 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
24940 else
24941 # Is the header compilable?
24942 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h usability" >&5
24943 echo $ECHO_N "checking libart_lgpl/libart.h usability... $ECHO_C" >&6; }
24944 cat >conftest.$ac_ext <<_ACEOF
24945 /* confdefs.h. */
24946 _ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h. */
24950 $ac_includes_default
24951 #include <libart_lgpl/libart.h>
24952 _ACEOF
24953 rm -f conftest.$ac_objext
24954 if { (ac_try="$ac_compile"
24955 case "(($ac_try" in
24956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957 *) ac_try_echo=$ac_try;;
24958 esac
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24960 (eval "$ac_compile") 2>conftest.er1
24961 ac_status=$?
24962 grep -v '^ *+' conftest.er1 >conftest.err
24963 rm -f conftest.er1
24964 cat conftest.err >&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } && {
24967 test -z "$ac_c_werror_flag" ||
24968 test ! -s conftest.err
24969 } && test -s conftest.$ac_objext; then
24970 ac_header_compiler=yes
24971 else
24972 echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24975 ac_header_compiler=no
24976 fi
24978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24980 echo "${ECHO_T}$ac_header_compiler" >&6; }
24982 # Is the header present?
24983 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h presence" >&5
24984 echo $ECHO_N "checking libart_lgpl/libart.h presence... $ECHO_C" >&6; }
24985 cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h. */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
24991 #include <libart_lgpl/libart.h>
24992 _ACEOF
24993 if { (ac_try="$ac_cpp conftest.$ac_ext"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } >/dev/null && {
25006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 }; then
25009 ac_header_preproc=yes
25010 else
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ac_header_preproc=no
25015 fi
25017 rm -f conftest.err conftest.$ac_ext
25018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25019 echo "${ECHO_T}$ac_header_preproc" >&6; }
25021 # So? What about this header?
25022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25023 yes:no: )
25024 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&5
25025 echo "$as_me: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25026 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&5
25027 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&2;}
25028 ac_header_preproc=yes
25029 ;;
25030 no:yes:* )
25031 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&5
25032 echo "$as_me: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&2;}
25033 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&5
25034 echo "$as_me: WARNING: libart_lgpl/libart.h: check for missing prerequisite headers?" >&2;}
25035 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&5
25036 echo "$as_me: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&2;}
25037 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: section \"Present But Cannot Be Compiled\"" >&5
25038 echo "$as_me: WARNING: libart_lgpl/libart.h: section \"Present But Cannot Be Compiled\"" >&2;}
25039 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&5
25040 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&2;}
25041 { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&5
25042 echo "$as_me: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&2;}
25044 ;;
25045 esac
25046 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
25047 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
25048 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25050 else
25051 ac_cv_header_libart_lgpl_libart_h=$ac_header_preproc
25052 fi
25053 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
25054 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
25056 fi
25057 if test $ac_cv_header_libart_lgpl_libart_h = yes; then
25058 EX_CHECK_STATE=YES
25059 fi
25063 fi
25065 else
25066 { echo "$as_me:$LINENO: WARNING:
25067 ----------------------------------------------------------------------------
25068 * I found a copy of pkgconfig, but there is no libart-2.0.pc file around.
25069 You may want to set the PKG_CONFIG_PATH variable to point to its
25070 location.
25071 ----------------------------------------------------------------------------
25072 " >&5
25073 echo "$as_me: WARNING:
25074 ----------------------------------------------------------------------------
25075 * I found a copy of pkgconfig, but there is no libart-2.0.pc file around.
25076 You may want to set the PKG_CONFIG_PATH variable to point to its
25077 location.
25078 ----------------------------------------------------------------------------
25079 " >&2;}
25080 fi
25081 fi
25082 fi
25084 if test ${EX_CHECK_STATE} = NO; then
25085 { echo "$as_me:$LINENO: WARNING:
25086 ----------------------------------------------------------------------------
25087 * I could not find a working copy of libart-2.0. Check config.log for hints on why
25088 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
25089 so that compiler and the linker can find libart_lgpl_2 and its header files. If
25090 you have not installed libart-2.0, you can get it either from its original home on
25092 ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/
25094 You can find also find an archive copy on
25096 http://oss.oetiker.ch/rrdtool/pub/libs
25098 The last tested version of libart-2.0 is 2.3.17.
25100 LIBS=$LIBS
25101 LDFLAGS=$LDFLAGS
25102 CPPFLAGS=$CPPFLAGS
25104 ----------------------------------------------------------------------------
25105 " >&5
25106 echo "$as_me: WARNING:
25107 ----------------------------------------------------------------------------
25108 * I could not find a working copy of libart-2.0. Check config.log for hints on why
25109 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
25110 so that compiler and the linker can find libart_lgpl_2 and its header files. If
25111 you have not installed libart-2.0, you can get it either from its original home on
25113 ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/
25115 You can find also find an archive copy on
25117 http://oss.oetiker.ch/rrdtool/pub/libs
25119 The last tested version of libart-2.0 is 2.3.17.
25121 LIBS=$LIBS
25122 LDFLAGS=$LDFLAGS
25123 CPPFLAGS=$CPPFLAGS
25125 ----------------------------------------------------------------------------
25126 " >&2;}
25127 EX_CHECK_ALL_ERR=YES
25128 LIBS="${ex_check_save_LIBS}"
25129 CPPFLAGS="${ex_check_save_CPPFLAGS}"
25130 LDFLAGS="${ex_check_save_LDFLAGS}"
25131 fi
25132 ac_ext=c
25133 ac_cpp='$CPP $CPPFLAGS'
25134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25141 ac_ext=c
25142 ac_cpp='$CPP $CPPFLAGS'
25143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25147 EX_CHECK_STATE=NO
25148 ex_check_save_LIBS=${LIBS}
25149 ex_check_save_CPPFLAGS=${CPPFLAGS}
25150 ex_check_save_LDFLAGS=${LDFLAGS}
25151 if test "x""" != "x"; then
25152 CPPFLAGS="$CPPFLAGS -I"""
25153 fi
25154 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
25155 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
25156 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25158 else
25159 ac_check_lib_save_LIBS=$LIBS
25160 LIBS="-lz $LIBS"
25161 cat >conftest.$ac_ext <<_ACEOF
25162 /* confdefs.h. */
25163 _ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h. */
25168 /* Override any GCC internal prototype to avoid an error.
25169 Use char because int might match the return type of a GCC
25170 builtin and then its argument prototype would still apply. */
25171 #ifdef __cplusplus
25172 extern "C"
25173 #endif
25174 char zlibVersion ();
25175 int
25176 main ()
25177 {
25178 return zlibVersion ();
25179 ;
25180 return 0;
25181 }
25182 _ACEOF
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (ac_try="$ac_link"
25185 case "(($ac_try" in
25186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187 *) ac_try_echo=$ac_try;;
25188 esac
25189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190 (eval "$ac_link") 2>conftest.er1
25191 ac_status=$?
25192 grep -v '^ *+' conftest.er1 >conftest.err
25193 rm -f conftest.er1
25194 cat conftest.err >&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } && {
25197 test -z "$ac_c_werror_flag" ||
25198 test ! -s conftest.err
25199 } && test -s conftest$ac_exeext &&
25200 $as_test_x conftest$ac_exeext; then
25201 ac_cv_lib_z_zlibVersion=yes
25202 else
25203 echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25206 ac_cv_lib_z_zlibVersion=no
25207 fi
25209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25210 conftest$ac_exeext conftest.$ac_ext
25211 LIBS=$ac_check_lib_save_LIBS
25212 fi
25213 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
25214 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
25215 if test $ac_cv_lib_z_zlibVersion = yes; then
25217 if test "${ac_cv_header_zlib_h+set}" = set; then
25218 { echo "$as_me:$LINENO: checking for zlib.h" >&5
25219 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
25220 if test "${ac_cv_header_zlib_h+set}" = set; then
25221 echo $ECHO_N "(cached) $ECHO_C" >&6
25222 fi
25223 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25224 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25225 else
25226 # Is the header compilable?
25227 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
25228 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
25229 cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h. */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h. */
25235 $ac_includes_default
25236 #include <zlib.h>
25237 _ACEOF
25238 rm -f conftest.$ac_objext
25239 if { (ac_try="$ac_compile"
25240 case "(($ac_try" in
25241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242 *) ac_try_echo=$ac_try;;
25243 esac
25244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245 (eval "$ac_compile") 2>conftest.er1
25246 ac_status=$?
25247 grep -v '^ *+' conftest.er1 >conftest.err
25248 rm -f conftest.er1
25249 cat conftest.err >&5
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } && {
25252 test -z "$ac_c_werror_flag" ||
25253 test ! -s conftest.err
25254 } && test -s conftest.$ac_objext; then
25255 ac_header_compiler=yes
25256 else
25257 echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25260 ac_header_compiler=no
25261 fi
25263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25265 echo "${ECHO_T}$ac_header_compiler" >&6; }
25267 # Is the header present?
25268 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
25269 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
25270 cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h. */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h. */
25276 #include <zlib.h>
25277 _ACEOF
25278 if { (ac_try="$ac_cpp conftest.$ac_ext"
25279 case "(($ac_try" in
25280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25281 *) ac_try_echo=$ac_try;;
25282 esac
25283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25285 ac_status=$?
25286 grep -v '^ *+' conftest.er1 >conftest.err
25287 rm -f conftest.er1
25288 cat conftest.err >&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } >/dev/null && {
25291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25292 test ! -s conftest.err
25293 }; then
25294 ac_header_preproc=yes
25295 else
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 ac_header_preproc=no
25300 fi
25302 rm -f conftest.err conftest.$ac_ext
25303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25304 echo "${ECHO_T}$ac_header_preproc" >&6; }
25306 # So? What about this header?
25307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25308 yes:no: )
25309 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25310 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25311 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25312 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25313 ac_header_preproc=yes
25314 ;;
25315 no:yes:* )
25316 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25317 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25318 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25319 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25320 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25321 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25322 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25323 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25324 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25325 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25326 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25327 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25329 ;;
25330 esac
25331 { echo "$as_me:$LINENO: checking for zlib.h" >&5
25332 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
25333 if test "${ac_cv_header_zlib_h+set}" = set; then
25334 echo $ECHO_N "(cached) $ECHO_C" >&6
25335 else
25336 ac_cv_header_zlib_h=$ac_header_preproc
25337 fi
25338 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25339 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25341 fi
25342 if test $ac_cv_header_zlib_h = yes; then
25343 LIBS="-lz ${LIBS}";EX_CHECK_STATE=YES
25344 fi
25347 fi
25349 if test $EX_CHECK_STATE = NO; then
25350 for ac_prog in pkg-config
25351 do
25352 # Extract the first word of "$ac_prog", so it can be a program name with args.
25353 set dummy $ac_prog; ac_word=$2
25354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25356 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359 if test -n "$PKGCONFIG"; then
25360 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
25361 else
25362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25363 for as_dir in $PATH
25364 do
25365 IFS=$as_save_IFS
25366 test -z "$as_dir" && as_dir=.
25367 for ac_exec_ext in '' $ac_executable_extensions; do
25368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25369 ac_cv_prog_PKGCONFIG="$ac_prog"
25370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25371 break 2
25372 fi
25373 done
25374 done
25375 IFS=$as_save_IFS
25377 fi
25378 fi
25379 PKGCONFIG=$ac_cv_prog_PKGCONFIG
25380 if test -n "$PKGCONFIG"; then
25381 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
25382 echo "${ECHO_T}$PKGCONFIG" >&6; }
25383 else
25384 { echo "$as_me:$LINENO: result: no" >&5
25385 echo "${ECHO_T}no" >&6; }
25386 fi
25389 test -n "$PKGCONFIG" && break
25390 done
25391 test -n "$PKGCONFIG" || PKGCONFIG="no"
25393 if test "$PKGCONFIG" != "no"; then
25394 if $PKGCONFIG --exists zlib; then
25395 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags zlib`
25396 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L zlib`
25397 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other zlib`
25398 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l zlib`
25399 unset ac_cv_lib_z_zlibVersion
25400 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
25401 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
25402 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
25403 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 else
25405 ac_check_lib_save_LIBS=$LIBS
25406 LIBS="-lz $LIBS"
25407 cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h. */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25414 /* Override any GCC internal prototype to avoid an error.
25415 Use char because int might match the return type of a GCC
25416 builtin and then its argument prototype would still apply. */
25417 #ifdef __cplusplus
25418 extern "C"
25419 #endif
25420 char zlibVersion ();
25421 int
25422 main ()
25423 {
25424 return zlibVersion ();
25425 ;
25426 return 0;
25427 }
25428 _ACEOF
25429 rm -f conftest.$ac_objext conftest$ac_exeext
25430 if { (ac_try="$ac_link"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_link") 2>conftest.er1
25437 ac_status=$?
25438 grep -v '^ *+' conftest.er1 >conftest.err
25439 rm -f conftest.er1
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } && {
25443 test -z "$ac_c_werror_flag" ||
25444 test ! -s conftest.err
25445 } && test -s conftest$ac_exeext &&
25446 $as_test_x conftest$ac_exeext; then
25447 ac_cv_lib_z_zlibVersion=yes
25448 else
25449 echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25452 ac_cv_lib_z_zlibVersion=no
25453 fi
25455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25456 conftest$ac_exeext conftest.$ac_ext
25457 LIBS=$ac_check_lib_save_LIBS
25458 fi
25459 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
25460 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
25461 if test $ac_cv_lib_z_zlibVersion = yes; then
25463 unset ac_cv_header_`echo zlib.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
25464 if test "${ac_cv_header_zlib_h+set}" = set; then
25465 { echo "$as_me:$LINENO: checking for zlib.h" >&5
25466 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
25467 if test "${ac_cv_header_zlib_h+set}" = set; then
25468 echo $ECHO_N "(cached) $ECHO_C" >&6
25469 fi
25470 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25471 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25472 else
25473 # Is the header compilable?
25474 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
25475 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
25476 cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h. */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25482 $ac_includes_default
25483 #include <zlib.h>
25484 _ACEOF
25485 rm -f conftest.$ac_objext
25486 if { (ac_try="$ac_compile"
25487 case "(($ac_try" in
25488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489 *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492 (eval "$ac_compile") 2>conftest.er1
25493 ac_status=$?
25494 grep -v '^ *+' conftest.er1 >conftest.err
25495 rm -f conftest.er1
25496 cat conftest.err >&5
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } && {
25499 test -z "$ac_c_werror_flag" ||
25500 test ! -s conftest.err
25501 } && test -s conftest.$ac_objext; then
25502 ac_header_compiler=yes
25503 else
25504 echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25507 ac_header_compiler=no
25508 fi
25510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25512 echo "${ECHO_T}$ac_header_compiler" >&6; }
25514 # Is the header present?
25515 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
25516 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
25517 cat >conftest.$ac_ext <<_ACEOF
25518 /* confdefs.h. */
25519 _ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h. */
25523 #include <zlib.h>
25524 _ACEOF
25525 if { (ac_try="$ac_cpp conftest.$ac_ext"
25526 case "(($ac_try" in
25527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25528 *) ac_try_echo=$ac_try;;
25529 esac
25530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25532 ac_status=$?
25533 grep -v '^ *+' conftest.er1 >conftest.err
25534 rm -f conftest.er1
25535 cat conftest.err >&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } >/dev/null && {
25538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25539 test ! -s conftest.err
25540 }; then
25541 ac_header_preproc=yes
25542 else
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ac_header_preproc=no
25547 fi
25549 rm -f conftest.err conftest.$ac_ext
25550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25551 echo "${ECHO_T}$ac_header_preproc" >&6; }
25553 # So? What about this header?
25554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25555 yes:no: )
25556 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25557 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25558 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25559 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25560 ac_header_preproc=yes
25561 ;;
25562 no:yes:* )
25563 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25564 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25565 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25566 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25567 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25568 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25569 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25570 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25571 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25572 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25573 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25574 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25576 ;;
25577 esac
25578 { echo "$as_me:$LINENO: checking for zlib.h" >&5
25579 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
25580 if test "${ac_cv_header_zlib_h+set}" = set; then
25581 echo $ECHO_N "(cached) $ECHO_C" >&6
25582 else
25583 ac_cv_header_zlib_h=$ac_header_preproc
25584 fi
25585 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25586 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25588 fi
25589 if test $ac_cv_header_zlib_h = yes; then
25590 EX_CHECK_STATE=YES
25591 fi
25595 fi
25597 else
25598 { echo "$as_me:$LINENO: WARNING:
25599 ----------------------------------------------------------------------------
25600 * I found a copy of pkgconfig, but there is no zlib.pc file around.
25601 You may want to set the PKG_CONFIG_PATH variable to point to its
25602 location.
25603 ----------------------------------------------------------------------------
25604 " >&5
25605 echo "$as_me: WARNING:
25606 ----------------------------------------------------------------------------
25607 * I found a copy of pkgconfig, but there is no zlib.pc file around.
25608 You may want to set the PKG_CONFIG_PATH variable to point to its
25609 location.
25610 ----------------------------------------------------------------------------
25611 " >&2;}
25612 fi
25613 fi
25614 fi
25616 if test ${EX_CHECK_STATE} = NO; then
25617 { echo "$as_me:$LINENO: WARNING:
25618 ----------------------------------------------------------------------------
25619 * I could not find a working copy of zlib. Check config.log for hints on why
25620 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
25621 so that compiler and the linker can find libz and its header files. If
25622 you have not installed zlib, you can get it either from its original home on
25624 http://www.gzip.org/zlib/
25626 You can find also find an archive copy on
25628 http://oss.oetiker.ch/rrdtool/pub/libs
25630 The last tested version of zlib is 1.2.3.
25632 LIBS=$LIBS
25633 LDFLAGS=$LDFLAGS
25634 CPPFLAGS=$CPPFLAGS
25636 ----------------------------------------------------------------------------
25637 " >&5
25638 echo "$as_me: WARNING:
25639 ----------------------------------------------------------------------------
25640 * I could not find a working copy of zlib. Check config.log for hints on why
25641 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
25642 so that compiler and the linker can find libz and its header files. If
25643 you have not installed zlib, you can get it either from its original home on
25645 http://www.gzip.org/zlib/
25647 You can find also find an archive copy on
25649 http://oss.oetiker.ch/rrdtool/pub/libs
25651 The last tested version of zlib is 1.2.3.
25653 LIBS=$LIBS
25654 LDFLAGS=$LDFLAGS
25655 CPPFLAGS=$CPPFLAGS
25657 ----------------------------------------------------------------------------
25658 " >&2;}
25659 EX_CHECK_ALL_ERR=YES
25660 LIBS="${ex_check_save_LIBS}"
25661 CPPFLAGS="${ex_check_save_CPPFLAGS}"
25662 LDFLAGS="${ex_check_save_LDFLAGS}"
25663 fi
25664 ac_ext=c
25665 ac_cpp='$CPP $CPPFLAGS'
25666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25673 ac_ext=c
25674 ac_cpp='$CPP $CPPFLAGS'
25675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25679 EX_CHECK_STATE=NO
25680 ex_check_save_LIBS=${LIBS}
25681 ex_check_save_CPPFLAGS=${CPPFLAGS}
25682 ex_check_save_LDFLAGS=${LDFLAGS}
25683 if test "x""" != "x"; then
25684 CPPFLAGS="$CPPFLAGS -I"""
25685 fi
25686 { echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
25687 echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
25688 if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691 ac_check_lib_save_LIBS=$LIBS
25692 LIBS="-lpng $LIBS"
25693 cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h. */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25700 /* Override any GCC internal prototype to avoid an error.
25701 Use char because int might match the return type of a GCC
25702 builtin and then its argument prototype would still apply. */
25703 #ifdef __cplusplus
25704 extern "C"
25705 #endif
25706 char png_access_version_number ();
25707 int
25708 main ()
25709 {
25710 return png_access_version_number ();
25711 ;
25712 return 0;
25713 }
25714 _ACEOF
25715 rm -f conftest.$ac_objext conftest$ac_exeext
25716 if { (ac_try="$ac_link"
25717 case "(($ac_try" in
25718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719 *) ac_try_echo=$ac_try;;
25720 esac
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722 (eval "$ac_link") 2>conftest.er1
25723 ac_status=$?
25724 grep -v '^ *+' conftest.er1 >conftest.err
25725 rm -f conftest.er1
25726 cat conftest.err >&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } && {
25729 test -z "$ac_c_werror_flag" ||
25730 test ! -s conftest.err
25731 } && test -s conftest$ac_exeext &&
25732 $as_test_x conftest$ac_exeext; then
25733 ac_cv_lib_png_png_access_version_number=yes
25734 else
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25738 ac_cv_lib_png_png_access_version_number=no
25739 fi
25741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25742 conftest$ac_exeext conftest.$ac_ext
25743 LIBS=$ac_check_lib_save_LIBS
25744 fi
25745 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
25746 echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
25747 if test $ac_cv_lib_png_png_access_version_number = yes; then
25749 if test "${ac_cv_header_png_h+set}" = set; then
25750 { echo "$as_me:$LINENO: checking for png.h" >&5
25751 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
25752 if test "${ac_cv_header_png_h+set}" = set; then
25753 echo $ECHO_N "(cached) $ECHO_C" >&6
25754 fi
25755 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25756 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
25757 else
25758 # Is the header compilable?
25759 { echo "$as_me:$LINENO: checking png.h usability" >&5
25760 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
25761 cat >conftest.$ac_ext <<_ACEOF
25762 /* confdefs.h. */
25763 _ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h. */
25767 $ac_includes_default
25768 #include <png.h>
25769 _ACEOF
25770 rm -f conftest.$ac_objext
25771 if { (ac_try="$ac_compile"
25772 case "(($ac_try" in
25773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774 *) ac_try_echo=$ac_try;;
25775 esac
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777 (eval "$ac_compile") 2>conftest.er1
25778 ac_status=$?
25779 grep -v '^ *+' conftest.er1 >conftest.err
25780 rm -f conftest.er1
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } && {
25784 test -z "$ac_c_werror_flag" ||
25785 test ! -s conftest.err
25786 } && test -s conftest.$ac_objext; then
25787 ac_header_compiler=yes
25788 else
25789 echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25792 ac_header_compiler=no
25793 fi
25795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25797 echo "${ECHO_T}$ac_header_compiler" >&6; }
25799 # Is the header present?
25800 { echo "$as_me:$LINENO: checking png.h presence" >&5
25801 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
25802 cat >conftest.$ac_ext <<_ACEOF
25803 /* confdefs.h. */
25804 _ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h. */
25808 #include <png.h>
25809 _ACEOF
25810 if { (ac_try="$ac_cpp conftest.$ac_ext"
25811 case "(($ac_try" in
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813 *) ac_try_echo=$ac_try;;
25814 esac
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25817 ac_status=$?
25818 grep -v '^ *+' conftest.er1 >conftest.err
25819 rm -f conftest.er1
25820 cat conftest.err >&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } >/dev/null && {
25823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25824 test ! -s conftest.err
25825 }; then
25826 ac_header_preproc=yes
25827 else
25828 echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25831 ac_header_preproc=no
25832 fi
25834 rm -f conftest.err conftest.$ac_ext
25835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25836 echo "${ECHO_T}$ac_header_preproc" >&6; }
25838 # So? What about this header?
25839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25840 yes:no: )
25841 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25842 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25843 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25844 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25845 ac_header_preproc=yes
25846 ;;
25847 no:yes:* )
25848 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25849 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25850 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25851 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25852 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25853 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25854 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25855 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
25856 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25857 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25858 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25859 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25861 ;;
25862 esac
25863 { echo "$as_me:$LINENO: checking for png.h" >&5
25864 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
25865 if test "${ac_cv_header_png_h+set}" = set; then
25866 echo $ECHO_N "(cached) $ECHO_C" >&6
25867 else
25868 ac_cv_header_png_h=$ac_header_preproc
25869 fi
25870 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25871 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
25873 fi
25874 if test $ac_cv_header_png_h = yes; then
25875 LIBS="-lpng ${LIBS}";EX_CHECK_STATE=YES
25876 fi
25879 fi
25881 if test $EX_CHECK_STATE = NO; then
25882 for ac_prog in pkg-config
25883 do
25884 # Extract the first word of "$ac_prog", so it can be a program name with args.
25885 set dummy $ac_prog; ac_word=$2
25886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25888 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
25889 echo $ECHO_N "(cached) $ECHO_C" >&6
25890 else
25891 if test -n "$PKGCONFIG"; then
25892 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
25893 else
25894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25895 for as_dir in $PATH
25896 do
25897 IFS=$as_save_IFS
25898 test -z "$as_dir" && as_dir=.
25899 for ac_exec_ext in '' $ac_executable_extensions; do
25900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25901 ac_cv_prog_PKGCONFIG="$ac_prog"
25902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25903 break 2
25904 fi
25905 done
25906 done
25907 IFS=$as_save_IFS
25909 fi
25910 fi
25911 PKGCONFIG=$ac_cv_prog_PKGCONFIG
25912 if test -n "$PKGCONFIG"; then
25913 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
25914 echo "${ECHO_T}$PKGCONFIG" >&6; }
25915 else
25916 { echo "$as_me:$LINENO: result: no" >&5
25917 echo "${ECHO_T}no" >&6; }
25918 fi
25921 test -n "$PKGCONFIG" && break
25922 done
25923 test -n "$PKGCONFIG" || PKGCONFIG="no"
25925 if test "$PKGCONFIG" != "no"; then
25926 if $PKGCONFIG --exists libpng; then
25927 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libpng`
25928 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libpng`
25929 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libpng`
25930 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libpng`
25931 unset ac_cv_lib_png_png_access_version_number
25932 { echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
25933 echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
25934 if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
25935 echo $ECHO_N "(cached) $ECHO_C" >&6
25936 else
25937 ac_check_lib_save_LIBS=$LIBS
25938 LIBS="-lpng $LIBS"
25939 cat >conftest.$ac_ext <<_ACEOF
25940 /* confdefs.h. */
25941 _ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h. */
25946 /* Override any GCC internal prototype to avoid an error.
25947 Use char because int might match the return type of a GCC
25948 builtin and then its argument prototype would still apply. */
25949 #ifdef __cplusplus
25950 extern "C"
25951 #endif
25952 char png_access_version_number ();
25953 int
25954 main ()
25955 {
25956 return png_access_version_number ();
25957 ;
25958 return 0;
25959 }
25960 _ACEOF
25961 rm -f conftest.$ac_objext conftest$ac_exeext
25962 if { (ac_try="$ac_link"
25963 case "(($ac_try" in
25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25966 esac
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_link") 2>conftest.er1
25969 ac_status=$?
25970 grep -v '^ *+' conftest.er1 >conftest.err
25971 rm -f conftest.er1
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } && {
25975 test -z "$ac_c_werror_flag" ||
25976 test ! -s conftest.err
25977 } && test -s conftest$ac_exeext &&
25978 $as_test_x conftest$ac_exeext; then
25979 ac_cv_lib_png_png_access_version_number=yes
25980 else
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25984 ac_cv_lib_png_png_access_version_number=no
25985 fi
25987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25988 conftest$ac_exeext conftest.$ac_ext
25989 LIBS=$ac_check_lib_save_LIBS
25990 fi
25991 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
25992 echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
25993 if test $ac_cv_lib_png_png_access_version_number = yes; then
25995 unset ac_cv_header_`echo png.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
25996 if test "${ac_cv_header_png_h+set}" = set; then
25997 { echo "$as_me:$LINENO: checking for png.h" >&5
25998 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
25999 if test "${ac_cv_header_png_h+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 fi
26002 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26003 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26004 else
26005 # Is the header compilable?
26006 { echo "$as_me:$LINENO: checking png.h usability" >&5
26007 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
26008 cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h. */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 $ac_includes_default
26015 #include <png.h>
26016 _ACEOF
26017 rm -f conftest.$ac_objext
26018 if { (ac_try="$ac_compile"
26019 case "(($ac_try" in
26020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021 *) ac_try_echo=$ac_try;;
26022 esac
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024 (eval "$ac_compile") 2>conftest.er1
26025 ac_status=$?
26026 grep -v '^ *+' conftest.er1 >conftest.err
26027 rm -f conftest.er1
26028 cat conftest.err >&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } && {
26031 test -z "$ac_c_werror_flag" ||
26032 test ! -s conftest.err
26033 } && test -s conftest.$ac_objext; then
26034 ac_header_compiler=yes
26035 else
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26039 ac_header_compiler=no
26040 fi
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26044 echo "${ECHO_T}$ac_header_compiler" >&6; }
26046 # Is the header present?
26047 { echo "$as_me:$LINENO: checking png.h presence" >&5
26048 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h. */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 #include <png.h>
26056 _ACEOF
26057 if { (ac_try="$ac_cpp conftest.$ac_ext"
26058 case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26061 esac
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26064 ac_status=$?
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } >/dev/null && {
26070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26071 test ! -s conftest.err
26072 }; then
26073 ac_header_preproc=yes
26074 else
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 ac_header_preproc=no
26079 fi
26081 rm -f conftest.err conftest.$ac_ext
26082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26083 echo "${ECHO_T}$ac_header_preproc" >&6; }
26085 # So? What about this header?
26086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26087 yes:no: )
26088 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
26089 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26090 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26091 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26092 ac_header_preproc=yes
26093 ;;
26094 no:yes:* )
26095 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26096 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
26097 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
26098 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
26099 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26100 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
26102 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26104 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26106 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
26108 ;;
26109 esac
26110 { echo "$as_me:$LINENO: checking for png.h" >&5
26111 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26112 if test "${ac_cv_header_png_h+set}" = set; then
26113 echo $ECHO_N "(cached) $ECHO_C" >&6
26114 else
26115 ac_cv_header_png_h=$ac_header_preproc
26116 fi
26117 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26118 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26120 fi
26121 if test $ac_cv_header_png_h = yes; then
26122 EX_CHECK_STATE=YES
26123 fi
26127 fi
26129 else
26130 { echo "$as_me:$LINENO: WARNING:
26131 ----------------------------------------------------------------------------
26132 * I found a copy of pkgconfig, but there is no libpng.pc file around.
26133 You may want to set the PKG_CONFIG_PATH variable to point to its
26134 location.
26135 ----------------------------------------------------------------------------
26136 " >&5
26137 echo "$as_me: WARNING:
26138 ----------------------------------------------------------------------------
26139 * I found a copy of pkgconfig, but there is no libpng.pc file around.
26140 You may want to set the PKG_CONFIG_PATH variable to point to its
26141 location.
26142 ----------------------------------------------------------------------------
26143 " >&2;}
26144 fi
26145 fi
26146 fi
26148 if test ${EX_CHECK_STATE} = NO; then
26149 { echo "$as_me:$LINENO: WARNING:
26150 ----------------------------------------------------------------------------
26151 * I could not find a working copy of libpng. Check config.log for hints on why
26152 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26153 so that compiler and the linker can find libpng and its header files. If
26154 you have not installed libpng, you can get it either from its original home on
26156 http://prdownloads.sourceforge.net/libpng/
26158 You can find also find an archive copy on
26160 http://oss.oetiker.ch/rrdtool/pub/libs
26162 The last tested version of libpng is 1.2.10.
26164 LIBS=$LIBS
26165 LDFLAGS=$LDFLAGS
26166 CPPFLAGS=$CPPFLAGS
26168 ----------------------------------------------------------------------------
26169 " >&5
26170 echo "$as_me: WARNING:
26171 ----------------------------------------------------------------------------
26172 * I could not find a working copy of libpng. Check config.log for hints on why
26173 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26174 so that compiler and the linker can find libpng and its header files. If
26175 you have not installed libpng, you can get it either from its original home on
26177 http://prdownloads.sourceforge.net/libpng/
26179 You can find also find an archive copy on
26181 http://oss.oetiker.ch/rrdtool/pub/libs
26183 The last tested version of libpng is 1.2.10.
26185 LIBS=$LIBS
26186 LDFLAGS=$LDFLAGS
26187 CPPFLAGS=$CPPFLAGS
26189 ----------------------------------------------------------------------------
26190 " >&2;}
26191 EX_CHECK_ALL_ERR=YES
26192 LIBS="${ex_check_save_LIBS}"
26193 CPPFLAGS="${ex_check_save_CPPFLAGS}"
26194 LDFLAGS="${ex_check_save_LDFLAGS}"
26195 fi
26196 ac_ext=c
26197 ac_cpp='$CPP $CPPFLAGS'
26198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26205 ac_ext=c
26206 ac_cpp='$CPP $CPPFLAGS'
26207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26211 EX_CHECK_STATE=NO
26212 ex_check_save_LIBS=${LIBS}
26213 ex_check_save_CPPFLAGS=${CPPFLAGS}
26214 ex_check_save_LDFLAGS=${LDFLAGS}
26215 if test "x/usr/include/freetype2" != "x"; then
26216 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
26217 fi
26218 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
26219 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
26220 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
26221 echo $ECHO_N "(cached) $ECHO_C" >&6
26222 else
26223 ac_check_lib_save_LIBS=$LIBS
26224 LIBS="-lfreetype $LIBS"
26225 cat >conftest.$ac_ext <<_ACEOF
26226 /* confdefs.h. */
26227 _ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h. */
26232 /* Override any GCC internal prototype to avoid an error.
26233 Use char because int might match the return type of a GCC
26234 builtin and then its argument prototype would still apply. */
26235 #ifdef __cplusplus
26236 extern "C"
26237 #endif
26238 char FT_Init_FreeType ();
26239 int
26240 main ()
26241 {
26242 return FT_Init_FreeType ();
26243 ;
26244 return 0;
26245 }
26246 _ACEOF
26247 rm -f conftest.$ac_objext conftest$ac_exeext
26248 if { (ac_try="$ac_link"
26249 case "(($ac_try" in
26250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26251 *) ac_try_echo=$ac_try;;
26252 esac
26253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26254 (eval "$ac_link") 2>conftest.er1
26255 ac_status=$?
26256 grep -v '^ *+' conftest.er1 >conftest.err
26257 rm -f conftest.er1
26258 cat conftest.err >&5
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); } && {
26261 test -z "$ac_c_werror_flag" ||
26262 test ! -s conftest.err
26263 } && test -s conftest$ac_exeext &&
26264 $as_test_x conftest$ac_exeext; then
26265 ac_cv_lib_freetype_FT_Init_FreeType=yes
26266 else
26267 echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26270 ac_cv_lib_freetype_FT_Init_FreeType=no
26271 fi
26273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26274 conftest$ac_exeext conftest.$ac_ext
26275 LIBS=$ac_check_lib_save_LIBS
26276 fi
26277 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
26278 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
26279 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
26281 if test "${ac_cv_header_ft2build_h+set}" = set; then
26282 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
26283 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
26284 if test "${ac_cv_header_ft2build_h+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26286 fi
26287 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
26288 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
26289 else
26290 # Is the header compilable?
26291 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
26292 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
26293 cat >conftest.$ac_ext <<_ACEOF
26294 /* confdefs.h. */
26295 _ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h. */
26299 $ac_includes_default
26300 #include <ft2build.h>
26301 _ACEOF
26302 rm -f conftest.$ac_objext
26303 if { (ac_try="$ac_compile"
26304 case "(($ac_try" in
26305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306 *) ac_try_echo=$ac_try;;
26307 esac
26308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26309 (eval "$ac_compile") 2>conftest.er1
26310 ac_status=$?
26311 grep -v '^ *+' conftest.er1 >conftest.err
26312 rm -f conftest.er1
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } && {
26316 test -z "$ac_c_werror_flag" ||
26317 test ! -s conftest.err
26318 } && test -s conftest.$ac_objext; then
26319 ac_header_compiler=yes
26320 else
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26324 ac_header_compiler=no
26325 fi
26327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26329 echo "${ECHO_T}$ac_header_compiler" >&6; }
26331 # Is the header present?
26332 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
26333 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
26334 cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h. */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26340 #include <ft2build.h>
26341 _ACEOF
26342 if { (ac_try="$ac_cpp conftest.$ac_ext"
26343 case "(($ac_try" in
26344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26345 *) ac_try_echo=$ac_try;;
26346 esac
26347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26349 ac_status=$?
26350 grep -v '^ *+' conftest.er1 >conftest.err
26351 rm -f conftest.er1
26352 cat conftest.err >&5
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } >/dev/null && {
26355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26356 test ! -s conftest.err
26357 }; then
26358 ac_header_preproc=yes
26359 else
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 ac_header_preproc=no
26364 fi
26366 rm -f conftest.err conftest.$ac_ext
26367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26368 echo "${ECHO_T}$ac_header_preproc" >&6; }
26370 # So? What about this header?
26371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26372 yes:no: )
26373 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
26374 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
26376 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
26377 ac_header_preproc=yes
26378 ;;
26379 no:yes:* )
26380 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
26381 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
26383 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
26385 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
26387 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
26389 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
26390 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
26391 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
26393 ;;
26394 esac
26395 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
26396 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
26397 if test "${ac_cv_header_ft2build_h+set}" = set; then
26398 echo $ECHO_N "(cached) $ECHO_C" >&6
26399 else
26400 ac_cv_header_ft2build_h=$ac_header_preproc
26401 fi
26402 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
26403 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
26405 fi
26406 if test $ac_cv_header_ft2build_h = yes; then
26407 LIBS="-lfreetype ${LIBS}";EX_CHECK_STATE=YES
26408 fi
26411 fi
26413 if test $EX_CHECK_STATE = NO; then
26414 for ac_prog in pkg-config
26415 do
26416 # Extract the first word of "$ac_prog", so it can be a program name with args.
26417 set dummy $ac_prog; ac_word=$2
26418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26420 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
26421 echo $ECHO_N "(cached) $ECHO_C" >&6
26422 else
26423 if test -n "$PKGCONFIG"; then
26424 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
26425 else
26426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26427 for as_dir in $PATH
26428 do
26429 IFS=$as_save_IFS
26430 test -z "$as_dir" && as_dir=.
26431 for ac_exec_ext in '' $ac_executable_extensions; do
26432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26433 ac_cv_prog_PKGCONFIG="$ac_prog"
26434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26435 break 2
26436 fi
26437 done
26438 done
26439 IFS=$as_save_IFS
26441 fi
26442 fi
26443 PKGCONFIG=$ac_cv_prog_PKGCONFIG
26444 if test -n "$PKGCONFIG"; then
26445 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
26446 echo "${ECHO_T}$PKGCONFIG" >&6; }
26447 else
26448 { echo "$as_me:$LINENO: result: no" >&5
26449 echo "${ECHO_T}no" >&6; }
26450 fi
26453 test -n "$PKGCONFIG" && break
26454 done
26455 test -n "$PKGCONFIG" || PKGCONFIG="no"
26457 if test "$PKGCONFIG" != "no"; then
26458 if $PKGCONFIG --exists freetype2; then
26459 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags freetype2`
26460 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L freetype2`
26461 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other freetype2`
26462 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l freetype2`
26463 unset ac_cv_lib_freetype_FT_Init_FreeType
26464 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
26465 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
26466 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
26467 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 else
26469 ac_check_lib_save_LIBS=$LIBS
26470 LIBS="-lfreetype $LIBS"
26471 cat >conftest.$ac_ext <<_ACEOF
26472 /* confdefs.h. */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26478 /* Override any GCC internal prototype to avoid an error.
26479 Use char because int might match the return type of a GCC
26480 builtin and then its argument prototype would still apply. */
26481 #ifdef __cplusplus
26482 extern "C"
26483 #endif
26484 char FT_Init_FreeType ();
26485 int
26486 main ()
26487 {
26488 return FT_Init_FreeType ();
26489 ;
26490 return 0;
26491 }
26492 _ACEOF
26493 rm -f conftest.$ac_objext conftest$ac_exeext
26494 if { (ac_try="$ac_link"
26495 case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26498 esac
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_link") 2>conftest.er1
26501 ac_status=$?
26502 grep -v '^ *+' conftest.er1 >conftest.err
26503 rm -f conftest.er1
26504 cat conftest.err >&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } && {
26507 test -z "$ac_c_werror_flag" ||
26508 test ! -s conftest.err
26509 } && test -s conftest$ac_exeext &&
26510 $as_test_x conftest$ac_exeext; then
26511 ac_cv_lib_freetype_FT_Init_FreeType=yes
26512 else
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 ac_cv_lib_freetype_FT_Init_FreeType=no
26517 fi
26519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26520 conftest$ac_exeext conftest.$ac_ext
26521 LIBS=$ac_check_lib_save_LIBS
26522 fi
26523 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
26524 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
26525 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
26527 unset ac_cv_header_`echo ft2build.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
26528 if test "${ac_cv_header_ft2build_h+set}" = set; then
26529 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
26530 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
26531 if test "${ac_cv_header_ft2build_h+set}" = set; then
26532 echo $ECHO_N "(cached) $ECHO_C" >&6
26533 fi
26534 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
26535 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
26536 else
26537 # Is the header compilable?
26538 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
26539 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
26540 cat >conftest.$ac_ext <<_ACEOF
26541 /* confdefs.h. */
26542 _ACEOF
26543 cat confdefs.h >>conftest.$ac_ext
26544 cat >>conftest.$ac_ext <<_ACEOF
26545 /* end confdefs.h. */
26546 $ac_includes_default
26547 #include <ft2build.h>
26548 _ACEOF
26549 rm -f conftest.$ac_objext
26550 if { (ac_try="$ac_compile"
26551 case "(($ac_try" in
26552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553 *) ac_try_echo=$ac_try;;
26554 esac
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556 (eval "$ac_compile") 2>conftest.er1
26557 ac_status=$?
26558 grep -v '^ *+' conftest.er1 >conftest.err
26559 rm -f conftest.er1
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } && {
26563 test -z "$ac_c_werror_flag" ||
26564 test ! -s conftest.err
26565 } && test -s conftest.$ac_objext; then
26566 ac_header_compiler=yes
26567 else
26568 echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26571 ac_header_compiler=no
26572 fi
26574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26576 echo "${ECHO_T}$ac_header_compiler" >&6; }
26578 # Is the header present?
26579 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
26580 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
26581 cat >conftest.$ac_ext <<_ACEOF
26582 /* confdefs.h. */
26583 _ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h. */
26587 #include <ft2build.h>
26588 _ACEOF
26589 if { (ac_try="$ac_cpp conftest.$ac_ext"
26590 case "(($ac_try" in
26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592 *) ac_try_echo=$ac_try;;
26593 esac
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26596 ac_status=$?
26597 grep -v '^ *+' conftest.er1 >conftest.err
26598 rm -f conftest.er1
26599 cat conftest.err >&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); } >/dev/null && {
26602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26603 test ! -s conftest.err
26604 }; then
26605 ac_header_preproc=yes
26606 else
26607 echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26610 ac_header_preproc=no
26611 fi
26613 rm -f conftest.err conftest.$ac_ext
26614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26615 echo "${ECHO_T}$ac_header_preproc" >&6; }
26617 # So? What about this header?
26618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26619 yes:no: )
26620 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
26621 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
26623 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
26624 ac_header_preproc=yes
26625 ;;
26626 no:yes:* )
26627 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
26628 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
26629 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
26630 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
26632 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
26634 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
26636 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
26638 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
26640 ;;
26641 esac
26642 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
26643 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
26644 if test "${ac_cv_header_ft2build_h+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647 ac_cv_header_ft2build_h=$ac_header_preproc
26648 fi
26649 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
26650 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
26652 fi
26653 if test $ac_cv_header_ft2build_h = yes; then
26654 EX_CHECK_STATE=YES
26655 fi
26659 fi
26661 else
26662 { echo "$as_me:$LINENO: WARNING:
26663 ----------------------------------------------------------------------------
26664 * I found a copy of pkgconfig, but there is no freetype2.pc file around.
26665 You may want to set the PKG_CONFIG_PATH variable to point to its
26666 location.
26667 ----------------------------------------------------------------------------
26668 " >&5
26669 echo "$as_me: WARNING:
26670 ----------------------------------------------------------------------------
26671 * I found a copy of pkgconfig, but there is no freetype2.pc file around.
26672 You may want to set the PKG_CONFIG_PATH variable to point to its
26673 location.
26674 ----------------------------------------------------------------------------
26675 " >&2;}
26676 fi
26677 fi
26678 fi
26680 if test ${EX_CHECK_STATE} = NO; then
26681 { echo "$as_me:$LINENO: WARNING:
26682 ----------------------------------------------------------------------------
26683 * I could not find a working copy of freetype2. Check config.log for hints on why
26684 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26685 so that compiler and the linker can find libfreetype and its header files. If
26686 you have not installed freetype2, you can get it either from its original home on
26688 http://prdownloads.sourceforge.net/freetype/
26690 You can find also find an archive copy on
26692 http://oss.oetiker.ch/rrdtool/pub/libs
26694 The last tested version of freetype2 is 2.1.10.
26696 LIBS=$LIBS
26697 LDFLAGS=$LDFLAGS
26698 CPPFLAGS=$CPPFLAGS
26700 ----------------------------------------------------------------------------
26701 " >&5
26702 echo "$as_me: WARNING:
26703 ----------------------------------------------------------------------------
26704 * I could not find a working copy of freetype2. Check config.log for hints on why
26705 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26706 so that compiler and the linker can find libfreetype and its header files. If
26707 you have not installed freetype2, you can get it either from its original home on
26709 http://prdownloads.sourceforge.net/freetype/
26711 You can find also find an archive copy on
26713 http://oss.oetiker.ch/rrdtool/pub/libs
26715 The last tested version of freetype2 is 2.1.10.
26717 LIBS=$LIBS
26718 LDFLAGS=$LDFLAGS
26719 CPPFLAGS=$CPPFLAGS
26721 ----------------------------------------------------------------------------
26722 " >&2;}
26723 EX_CHECK_ALL_ERR=YES
26724 LIBS="${ex_check_save_LIBS}"
26725 CPPFLAGS="${ex_check_save_CPPFLAGS}"
26726 LDFLAGS="${ex_check_save_LDFLAGS}"
26727 fi
26728 ac_ext=c
26729 ac_cpp='$CPP $CPPFLAGS'
26730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26737 if test "$EX_CHECK_ALL_ERR" = "YES"; then
26738 { { echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
26739 echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
26740 { (exit 1); exit 1; }; }
26741 fi
26743 ALL_LIBS="$LIBS"
26744 LIBS=
26750 case $TERM in
26751 # for the most important terminal types we directly know the sequences
26752 xterm|xterm*|vt220|vt220*)
26753 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
26754 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
26755 ;;
26756 vt100|vt100*|cygwin)
26757 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
26758 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
26759 ;;
26760 *)
26761 T_MD=''
26762 T_ME=''
26763 ;;
26764 esac
26765 { echo "$as_me:$LINENO: result: " >&5
26766 echo "${ECHO_T}" >&6; }
26767 { echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
26768 echo "${ECHO_T}${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
26771 # Extract the first word of "perl", so it can be a program name with args.
26772 set dummy perl; ac_word=$2
26773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26775 if test "${ac_cv_path_PERL+set}" = set; then
26776 echo $ECHO_N "(cached) $ECHO_C" >&6
26777 else
26778 case $PERL in
26779 [\\/]* | ?:[\\/]*)
26780 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
26781 ;;
26782 *)
26783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26784 for as_dir in $PATH
26785 do
26786 IFS=$as_save_IFS
26787 test -z "$as_dir" && as_dir=.
26788 for ac_exec_ext in '' $ac_executable_extensions; do
26789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26790 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
26791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26792 break 2
26793 fi
26794 done
26795 done
26796 IFS=$as_save_IFS
26798 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
26799 ;;
26800 esac
26801 fi
26802 PERL=$ac_cv_path_PERL
26803 if test -n "$PERL"; then
26804 { echo "$as_me:$LINENO: result: $PERL" >&5
26805 echo "${ECHO_T}$PERL" >&6; }
26806 else
26807 { echo "$as_me:$LINENO: result: no" >&5
26808 echo "${ECHO_T}no" >&6; }
26809 fi
26813 # Check whether --enable-perl was given.
26814 if test "${enable_perl+set}" = set; then
26815 enableval=$enable_perl;
26816 else
26817 enable_perl=yes
26818 fi
26827 if test "x$PERL" = "xno" -o x$enable_perl = xno; then
26828 COMP_PERL=
26829 else
26830 COMP_PERL="perl_piped perl_shared"
26831 { echo "$as_me:$LINENO: checking for the perl version you are running" >&5
26832 echo $ECHO_N "checking for the perl version you are running... $ECHO_C" >&6; }
26833 PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
26834 { echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
26835 echo "${ECHO_T}$PERL_VERSION" >&6; }
26836 if test -z "$PERLCC"; then
26837 { echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
26838 echo $ECHO_N "checking for the C compiler perl wants to use to build its modules... $ECHO_C" >&6; }
26839 perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
26840 { echo "$as_me:$LINENO: result: $perlcc" >&5
26841 echo "${ECHO_T}$perlcc" >&6; }
26842 if test ! -x "$perlcc"; then
26843 # Extract the first word of "${perlcc}", so it can be a program name with args.
26844 set dummy ${perlcc}; ac_word=$2
26845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26847 if test "${ac_cv_path_PERL_CC+set}" = set; then
26848 echo $ECHO_N "(cached) $ECHO_C" >&6
26849 else
26850 case $PERL_CC in
26851 [\\/]* | ?:[\\/]*)
26852 ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
26853 ;;
26854 *)
26855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26856 for as_dir in $PATH
26857 do
26858 IFS=$as_save_IFS
26859 test -z "$as_dir" && as_dir=.
26860 for ac_exec_ext in '' $ac_executable_extensions; do
26861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26862 ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
26863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26864 break 2
26865 fi
26866 done
26867 done
26868 IFS=$as_save_IFS
26870 test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
26871 ;;
26872 esac
26873 fi
26874 PERL_CC=$ac_cv_path_PERL_CC
26875 if test -n "$PERL_CC"; then
26876 { echo "$as_me:$LINENO: result: $PERL_CC" >&5
26877 echo "${ECHO_T}$PERL_CC" >&6; }
26878 else
26879 { echo "$as_me:$LINENO: result: no" >&5
26880 echo "${ECHO_T}no" >&6; }
26881 fi
26884 if test "$PERL_CC" = "no"; then
26885 { echo "$as_me:$LINENO: WARNING:
26886 I would not find the Compiler ($perlcc) that was originally used to compile
26887 your perl binary. You should either make sure that this compiler is
26888 available on your system, pick an other compiler and set PERLCC
26889 appropriately, or use a different perl setup that was compiled locally.
26891 I will disable the compilation of the RRDs perl module for now.
26892 " >&5
26893 echo "$as_me: WARNING:
26894 I would not find the Compiler ($perlcc) that was originally used to compile
26895 your perl binary. You should either make sure that this compiler is
26896 available on your system, pick an other compiler and set PERLCC
26897 appropriately, or use a different perl setup that was compiled locally.
26899 I will disable the compilation of the RRDs perl module for now.
26900 " >&2;}
26901 COMP_PERL="perl_piped"
26902 fi
26903 fi
26904 fi
26905 fi
26907 { echo "$as_me:$LINENO: checking Perl Modules to build" >&5
26908 echo $ECHO_N "checking Perl Modules to build... $ECHO_C" >&6; }
26909 { echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
26910 echo "${ECHO_T}${COMP_PERL:-No Perl Modules will be built}" >&6; }
26912 # Options to pass when configuring perl module
26913 ppref=$prefix
26914 test "$ppref" = "NONE" && ppref=$ac_default_prefix
26916 PERL_MAKE_OPTIONS="PREFIX=$ppref LIB=$ppref/lib/perl/$PERL_VERSION"
26918 # Check whether --enable-perl-site-install was given.
26919 if test "${enable_perl_site_install+set}" = set; then
26920 enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
26921 fi
26924 if test ! -z "$PERLCC"; then
26925 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
26927 if test ! -z "$PERLCCFLAGS"; then
26928 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
26929 fi
26931 if test -z "$PERLLD"; then
26932 PERLLD=$PERLCC
26933 fi
26934 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
26936 if test ! -z "$PERLLDFLAGS"; then
26937 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
26938 fi
26939 fi
26942 # Check whether --with-perl-options was given.
26943 if test "${with_perl_options+set}" = set; then
26944 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
26945 fi
26953 # Extract the first word of "ruby", so it can be a program name with args.
26954 set dummy ruby; ac_word=$2
26955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26957 if test "${ac_cv_path_RUBY+set}" = set; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26959 else
26960 case $RUBY in
26961 [\\/]* | ?:[\\/]*)
26962 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
26963 ;;
26964 *)
26965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26966 for as_dir in $PATH
26967 do
26968 IFS=$as_save_IFS
26969 test -z "$as_dir" && as_dir=.
26970 for ac_exec_ext in '' $ac_executable_extensions; do
26971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26972 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
26973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26974 break 2
26975 fi
26976 done
26977 done
26978 IFS=$as_save_IFS
26980 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
26981 ;;
26982 esac
26983 fi
26984 RUBY=$ac_cv_path_RUBY
26985 if test -n "$RUBY"; then
26986 { echo "$as_me:$LINENO: result: $RUBY" >&5
26987 echo "${ECHO_T}$RUBY" >&6; }
26988 else
26989 { echo "$as_me:$LINENO: result: no" >&5
26990 echo "${ECHO_T}no" >&6; }
26991 fi
26995 # Check whether --enable-ruby was given.
26996 if test "${enable_ruby+set}" = set; then
26997 enableval=$enable_ruby;
26998 else
26999 enable_ruby=yes
27000 fi
27003 { echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
27004 echo $ECHO_N "checking if ruby modules can be built... $ECHO_C" >&6; }
27006 if test "x$RUBY" = "xno" -o x$enable_ruby = xno; then
27007 COMP_RUBY=
27008 { echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
27009 echo "${ECHO_T}No .. Ruby not found or disabled" >&6; }
27010 else
27011 if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
27012 COMP_RUBY="ruby"
27013 { echo "$as_me:$LINENO: result: YES" >&5
27014 echo "${ECHO_T}YES" >&6; }
27015 else
27016 COMP_RUBY=
27017 { echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
27018 echo "${ECHO_T}Ruby found but mkmf is missing! Install the -dev package" >&6; }
27019 fi
27020 fi
27023 # Check whether --enable-ruby-site-install was given.
27024 if test "${enable_ruby_site_install+set}" = set; then
27025 enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
27026 else
27027 RUBY_MAKE_OPTIONS="sitedir=$prefix/lib/ruby"
27028 fi
27033 # Check whether --with-ruby-options was given.
27034 if test "${with_ruby_options+set}" = set; then
27035 withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
27036 fi
27044 enable_tcl_site=no
27046 # Check whether --enable-tcl was given.
27047 if test "${enable_tcl+set}" = set; then
27048 enableval=$enable_tcl;
27049 else
27050 enable_tcl=yes
27051 fi
27054 if test "$enable_tcl" = "yes"; then
27055 withval=""
27057 # Check whether --with-tcllib was given.
27058 if test "${with_tcllib+set}" = set; then
27059 withval=$with_tcllib;
27060 fi
27062 enable_tcl=no
27063 for dir in $withval /usr/lib /usr/local/lib; do
27064 { echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
27065 echo $ECHO_N "checking for tclConfig.sh in $dir... $ECHO_C" >&6; }
27066 if test -f "$dir/tclConfig.sh" ; then
27067 tcl_config=$dir/tclConfig.sh
27068 enable_tcl=yes
27069 { echo "$as_me:$LINENO: result: yes" >&5
27070 echo "${ECHO_T}yes" >&6; }
27071 break
27072 else
27073 { echo "$as_me:$LINENO: result: no" >&5
27074 echo "${ECHO_T}no" >&6; }
27075 fi
27076 done
27078 if test "$enable_tcl" = "no"; then
27079 { echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface won't be built" >&5
27080 echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface won't be built" >&2;}
27081 else
27082 . $tcl_config
27083 TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
27084 fi
27085 # Check whether --enable-tcl was given.
27086 if test "${enable_tcl+set}" = set; then
27087 enableval=$enable_tcl;
27088 else
27089 enable_tcl_site=yes
27090 fi
27093 fi
27097 if test "$enable_tcl" = "yes" ; then
27098 BUILD_TCL_TRUE=
27099 BUILD_TCL_FALSE='#'
27100 else
27101 BUILD_TCL_TRUE='#'
27102 BUILD_TCL_FALSE=
27103 fi
27107 if test "$enable_tcl_site" = "yes" ; then
27108 BUILD_TCL_SITE_TRUE=
27109 BUILD_TCL_SITE_FALSE='#'
27110 else
27111 BUILD_TCL_SITE_TRUE='#'
27112 BUILD_TCL_SITE_FALSE=
27113 fi
27126 # Check whether --enable-python was given.
27127 if test "${enable_python+set}" = set; then
27128 enableval=$enable_python;
27129 else
27130 enable_python=yes
27131 fi
27134 if test "$enable_python" = "yes"; then
27139 if test -n "$PYTHON"; then
27140 # If the user set $PYTHON, use it and don't search something else.
27141 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
27142 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
27143 prog="import sys, string
27144 # split strings by '.' and convert to numeric. Append some zeros
27145 # because we need at least 4 digits for the hex conversion.
27146 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
27147 minverhex = 0
27148 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
27149 sys.exit(sys.hexversion < minverhex)"
27150 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
27151 ($PYTHON -c "$prog") >&5 2>&5
27152 ac_status=$?
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; then
27155 { echo "$as_me:$LINENO: result: yes" >&5
27156 echo "${ECHO_T}yes" >&6; }
27157 else
27158 { { echo "$as_me:$LINENO: error: too old" >&5
27159 echo "$as_me: error: too old" >&2;}
27160 { (exit 1); exit 1; }; }
27161 fi
27163 am_display_PYTHON=$PYTHON
27164 else
27165 # Otherwise, try each interpreter until we find one that satisfies
27166 # VERSION.
27167 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
27168 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
27169 if test "${am_cv_pathless_PYTHON+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27173 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
27174 test "$am_cv_pathless_PYTHON" = none && break
27175 prog="import sys, string
27176 # split strings by '.' and convert to numeric. Append some zeros
27177 # because we need at least 4 digits for the hex conversion.
27178 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
27179 minverhex = 0
27180 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
27181 sys.exit(sys.hexversion < minverhex)"
27182 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
27183 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
27184 ac_status=$?
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; then
27187 break
27188 fi
27190 done
27191 fi
27192 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
27193 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
27194 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
27195 if test "$am_cv_pathless_PYTHON" = none; then
27196 PYTHON=:
27197 else
27198 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
27199 set dummy $am_cv_pathless_PYTHON; ac_word=$2
27200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27202 if test "${ac_cv_path_PYTHON+set}" = set; then
27203 echo $ECHO_N "(cached) $ECHO_C" >&6
27204 else
27205 case $PYTHON in
27206 [\\/]* | ?:[\\/]*)
27207 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
27208 ;;
27209 *)
27210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27211 for as_dir in $PATH
27212 do
27213 IFS=$as_save_IFS
27214 test -z "$as_dir" && as_dir=.
27215 for ac_exec_ext in '' $ac_executable_extensions; do
27216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27217 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
27218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27219 break 2
27220 fi
27221 done
27222 done
27223 IFS=$as_save_IFS
27225 ;;
27226 esac
27227 fi
27228 PYTHON=$ac_cv_path_PYTHON
27229 if test -n "$PYTHON"; then
27230 { echo "$as_me:$LINENO: result: $PYTHON" >&5
27231 echo "${ECHO_T}$PYTHON" >&6; }
27232 else
27233 { echo "$as_me:$LINENO: result: no" >&5
27234 echo "${ECHO_T}no" >&6; }
27235 fi
27238 fi
27239 am_display_PYTHON=$am_cv_pathless_PYTHON
27240 fi
27243 if test "$PYTHON" = :; then
27244 enable_python=no
27245 else
27248 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
27249 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
27250 if test "${am_cv_python_version+set}" = set; then
27251 echo $ECHO_N "(cached) $ECHO_C" >&6
27252 else
27253 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
27254 fi
27255 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
27256 echo "${ECHO_T}$am_cv_python_version" >&6; }
27257 PYTHON_VERSION=$am_cv_python_version
27261 PYTHON_PREFIX='${prefix}'
27263 PYTHON_EXEC_PREFIX='${exec_prefix}'
27267 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
27268 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
27269 if test "${am_cv_python_platform+set}" = set; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27271 else
27272 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
27273 fi
27274 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
27275 echo "${ECHO_T}$am_cv_python_platform" >&6; }
27276 PYTHON_PLATFORM=$am_cv_python_platform
27281 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
27282 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
27283 if test "${am_cv_python_pythondir+set}" = set; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27285 else
27286 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
27287 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
27288 fi
27289 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
27290 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
27291 pythondir=$am_cv_python_pythondir
27295 pkgpythondir=\${pythondir}/$PACKAGE
27298 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
27299 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
27300 if test "${am_cv_python_pyexecdir+set}" = set; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27302 else
27303 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
27304 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
27305 fi
27306 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
27307 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
27308 pyexecdir=$am_cv_python_pyexecdir
27312 pkgpyexecdir=\${pyexecdir}/$PACKAGE
27316 fi
27320 { echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
27321 echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
27322 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
27323 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
27324 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
27325 if test "$py_prefix" != "$py_exec_prefix"; then
27326 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
27327 fi
27329 save_CPPFLAGS="$CPPFLAGS"
27330 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
27331 cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h. */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27337 #include <Python.h>
27338 _ACEOF
27339 if { (ac_try="$ac_cpp conftest.$ac_ext"
27340 case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27343 esac
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27346 ac_status=$?
27347 grep -v '^ *+' conftest.er1 >conftest.err
27348 rm -f conftest.er1
27349 cat conftest.err >&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); } >/dev/null && {
27352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27353 test ! -s conftest.err
27354 }; then
27355 { echo "$as_me:$LINENO: result: found" >&5
27356 echo "${ECHO_T}found" >&6; }
27358 else
27359 echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27362 { echo "$as_me:$LINENO: result: not found" >&5
27363 echo "${ECHO_T}not found" >&6; }
27364 enable_python=no;{ echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
27365 echo "$as_me: WARNING: could not find Python headers" >&2;}
27366 fi
27368 rm -f conftest.err conftest.$ac_ext
27369 CPPFLAGS="$save_CPPFLAGS"
27371 fi
27373 if test x$enable_python = xno; then
27374 COMP_PYTHON=
27375 else
27376 COMP_PYTHON="python"
27377 fi
27381 for ac_prog in gnroff nroff
27382 do
27383 # Extract the first word of "$ac_prog", so it can be a program name with args.
27384 set dummy $ac_prog; ac_word=$2
27385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27387 if test "${ac_cv_path_NROFF+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390 case $NROFF in
27391 [\\/]* | ?:[\\/]*)
27392 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
27393 ;;
27394 *)
27395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27396 for as_dir in $PATH
27397 do
27398 IFS=$as_save_IFS
27399 test -z "$as_dir" && as_dir=.
27400 for ac_exec_ext in '' $ac_executable_extensions; do
27401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27402 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
27403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27404 break 2
27405 fi
27406 done
27407 done
27408 IFS=$as_save_IFS
27410 ;;
27411 esac
27412 fi
27413 NROFF=$ac_cv_path_NROFF
27414 if test -n "$NROFF"; then
27415 { echo "$as_me:$LINENO: result: $NROFF" >&5
27416 echo "${ECHO_T}$NROFF" >&6; }
27417 else
27418 { echo "$as_me:$LINENO: result: no" >&5
27419 echo "${ECHO_T}no" >&6; }
27420 fi
27423 test -n "$NROFF" && break
27424 done
27426 for ac_prog in groff troff
27427 do
27428 # Extract the first word of "$ac_prog", so it can be a program name with args.
27429 set dummy $ac_prog; ac_word=$2
27430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27432 if test "${ac_cv_path_TROFF+set}" = set; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27434 else
27435 case $TROFF in
27436 [\\/]* | ?:[\\/]*)
27437 ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
27438 ;;
27439 *)
27440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27441 for as_dir in $PATH
27442 do
27443 IFS=$as_save_IFS
27444 test -z "$as_dir" && as_dir=.
27445 for ac_exec_ext in '' $ac_executable_extensions; do
27446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27447 ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
27448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27449 break 2
27450 fi
27451 done
27452 done
27453 IFS=$as_save_IFS
27455 ;;
27456 esac
27457 fi
27458 TROFF=$ac_cv_path_TROFF
27459 if test -n "$TROFF"; then
27460 { echo "$as_me:$LINENO: result: $TROFF" >&5
27461 echo "${ECHO_T}$TROFF" >&6; }
27462 else
27463 { echo "$as_me:$LINENO: result: no" >&5
27464 echo "${ECHO_T}no" >&6; }
27465 fi
27468 test -n "$TROFF" && break
27469 done
27473 if test -z "$RRDDOCDIR"; then
27474 RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
27478 case $TERM in
27479 # for the most important terminal types we directly know the sequences
27480 xterm|xterm*|vt220|vt220*)
27481 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
27482 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
27483 ;;
27484 vt100|vt100*|cygwin)
27485 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
27486 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
27487 ;;
27488 *)
27489 T_MD=''
27490 T_ME=''
27491 ;;
27492 esac
27493 { echo "$as_me:$LINENO: result: " >&5
27494 echo "${ECHO_T}" >&6; }
27495 { echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
27496 echo "${ECHO_T}${T_MD}Apply Configuration Information${T_ME}" >&6; }
27499 ac_config_files="$ac_config_files examples/shared-demo.pl"
27501 ac_config_files="$ac_config_files examples/piped-demo.pl"
27503 ac_config_files="$ac_config_files examples/stripes.pl"
27505 ac_config_files="$ac_config_files examples/bigtops.pl"
27507 ac_config_files="$ac_config_files examples/minmax.pl"
27509 ac_config_files="$ac_config_files examples/4charts.pl"
27511 ac_config_files="$ac_config_files examples/perftest.pl"
27513 ac_config_files="$ac_config_files examples/Makefile"
27515 ac_config_files="$ac_config_files doc/Makefile"
27517 ac_config_files="$ac_config_files src/Makefile"
27519 ac_config_files="$ac_config_files bindings/Makefile"
27521 ac_config_files="$ac_config_files bindings/tcl/Makefile"
27523 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
27525 ac_config_files="$ac_config_files Makefile"
27528 ac_config_commands="$ac_config_commands default"
27530 cat >confcache <<\_ACEOF
27531 # This file is a shell script that caches the results of configure
27532 # tests run on this system so they can be shared between configure
27533 # scripts and configure runs, see configure's option --config-cache.
27534 # It is not useful on other systems. If it contains results you don't
27535 # want to keep, you may remove or edit it.
27536 #
27537 # config.status only pays attention to the cache file if you give it
27538 # the --recheck option to rerun configure.
27539 #
27540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27542 # following values.
27544 _ACEOF
27546 # The following way of writing the cache mishandles newlines in values,
27547 # but we know of no workaround that is simple, portable, and efficient.
27548 # So, we kill variables containing newlines.
27549 # Ultrix sh set writes to stderr and can't be redirected directly,
27550 # and sets the high bit in the cache file unless we assign to the vars.
27551 (
27552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27553 eval ac_val=\$$ac_var
27554 case $ac_val in #(
27555 *${as_nl}*)
27556 case $ac_var in #(
27557 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27558 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27559 esac
27560 case $ac_var in #(
27561 _ | IFS | as_nl) ;; #(
27562 *) $as_unset $ac_var ;;
27563 esac ;;
27564 esac
27565 done
27567 (set) 2>&1 |
27568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27569 *${as_nl}ac_space=\ *)
27570 # `set' does not quote correctly, so add quotes (double-quote
27571 # substitution turns \\\\ into \\, and sed turns \\ into \).
27572 sed -n \
27573 "s/'/'\\\\''/g;
27574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27575 ;; #(
27576 *)
27577 # `set' quotes correctly as required by POSIX, so do not add quotes.
27578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27579 ;;
27580 esac |
27581 sort
27582 ) |
27583 sed '
27584 /^ac_cv_env_/b end
27585 t clear
27586 :clear
27587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27588 t end
27589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27590 :end' >>confcache
27591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27592 if test -w "$cache_file"; then
27593 test "x$cache_file" != "x/dev/null" &&
27594 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27595 echo "$as_me: updating cache $cache_file" >&6;}
27596 cat confcache >$cache_file
27597 else
27598 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27599 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27600 fi
27601 fi
27602 rm -f confcache
27604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27605 # Let make expand exec_prefix.
27606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27608 DEFS=-DHAVE_CONFIG_H
27610 ac_libobjs=
27611 ac_ltlibobjs=
27612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27613 # 1. Remove the extension, and $U if already installed.
27614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27615 ac_i=`echo "$ac_i" | sed "$ac_script"`
27616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27617 # will be set to the directory where LIBOBJS objects are built.
27618 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27619 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27620 done
27621 LIBOBJS=$ac_libobjs
27623 LTLIBOBJS=$ac_ltlibobjs
27626 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27627 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27628 Usually this means the macro was only invoked conditionally." >&5
27629 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27630 Usually this means the macro was only invoked conditionally." >&2;}
27631 { (exit 1); exit 1; }; }
27632 fi
27633 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27634 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27635 Usually this means the macro was only invoked conditionally." >&5
27636 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27637 Usually this means the macro was only invoked conditionally." >&2;}
27638 { (exit 1); exit 1; }; }
27639 fi
27640 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27641 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27642 Usually this means the macro was only invoked conditionally." >&5
27643 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27644 Usually this means the macro was only invoked conditionally." >&2;}
27645 { (exit 1); exit 1; }; }
27646 fi
27647 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
27648 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
27649 Usually this means the macro was only invoked conditionally." >&5
27650 echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
27651 Usually this means the macro was only invoked conditionally." >&2;}
27652 { (exit 1); exit 1; }; }
27653 fi
27654 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
27655 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
27656 Usually this means the macro was only invoked conditionally." >&5
27657 echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
27658 Usually this means the macro was only invoked conditionally." >&2;}
27659 { (exit 1); exit 1; }; }
27660 fi
27661 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
27662 { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
27663 Usually this means the macro was only invoked conditionally." >&5
27664 echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
27665 Usually this means the macro was only invoked conditionally." >&2;}
27666 { (exit 1); exit 1; }; }
27667 fi
27668 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
27669 { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
27670 Usually this means the macro was only invoked conditionally." >&5
27671 echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
27672 Usually this means the macro was only invoked conditionally." >&2;}
27673 { (exit 1); exit 1; }; }
27674 fi
27676 : ${CONFIG_STATUS=./config.status}
27677 ac_clean_files_save=$ac_clean_files
27678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27679 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27680 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27681 cat >$CONFIG_STATUS <<_ACEOF
27682 #! $SHELL
27683 # Generated by $as_me.
27684 # Run this file to recreate the current configuration.
27685 # Compiler output produced by configure, useful for debugging
27686 # configure, is in config.log if it exists.
27688 debug=false
27689 ac_cs_recheck=false
27690 ac_cs_silent=false
27691 SHELL=\${CONFIG_SHELL-$SHELL}
27692 _ACEOF
27694 cat >>$CONFIG_STATUS <<\_ACEOF
27695 ## --------------------- ##
27696 ## M4sh Initialization. ##
27697 ## --------------------- ##
27699 # Be more Bourne compatible
27700 DUALCASE=1; export DUALCASE # for MKS sh
27701 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27702 emulate sh
27703 NULLCMD=:
27704 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27705 # is contrary to our usage. Disable this feature.
27706 alias -g '${1+"$@"}'='"$@"'
27707 setopt NO_GLOB_SUBST
27708 else
27709 case `(set -o) 2>/dev/null` in
27710 *posix*) set -o posix ;;
27711 esac
27713 fi
27718 # PATH needs CR
27719 # Avoid depending upon Character Ranges.
27720 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27721 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27722 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27723 as_cr_digits='0123456789'
27724 as_cr_alnum=$as_cr_Letters$as_cr_digits
27726 # The user is always right.
27727 if test "${PATH_SEPARATOR+set}" != set; then
27728 echo "#! /bin/sh" >conf$$.sh
27729 echo "exit 0" >>conf$$.sh
27730 chmod +x conf$$.sh
27731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27732 PATH_SEPARATOR=';'
27733 else
27734 PATH_SEPARATOR=:
27735 fi
27736 rm -f conf$$.sh
27737 fi
27739 # Support unset when possible.
27740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27741 as_unset=unset
27742 else
27743 as_unset=false
27744 fi
27747 # IFS
27748 # We need space, tab and new line, in precisely that order. Quoting is
27749 # there to prevent editors from complaining about space-tab.
27750 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27751 # splitting by setting IFS to empty value.)
27752 as_nl='
27753 '
27754 IFS=" "" $as_nl"
27756 # Find who we are. Look in the path if we contain no directory separator.
27757 case $0 in
27758 *[\\/]* ) as_myself=$0 ;;
27759 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27760 for as_dir in $PATH
27761 do
27762 IFS=$as_save_IFS
27763 test -z "$as_dir" && as_dir=.
27764 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27765 done
27766 IFS=$as_save_IFS
27768 ;;
27769 esac
27770 # We did not find ourselves, most probably we were run as `sh COMMAND'
27771 # in which case we are not to be found in the path.
27772 if test "x$as_myself" = x; then
27773 as_myself=$0
27774 fi
27775 if test ! -f "$as_myself"; then
27776 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27777 { (exit 1); exit 1; }
27778 fi
27780 # Work around bugs in pre-3.0 UWIN ksh.
27781 for as_var in ENV MAIL MAILPATH
27782 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27783 done
27784 PS1='$ '
27785 PS2='> '
27786 PS4='+ '
27788 # NLS nuisances.
27789 for as_var in \
27790 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27791 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27792 LC_TELEPHONE LC_TIME
27793 do
27794 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27795 eval $as_var=C; export $as_var
27796 else
27797 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27798 fi
27799 done
27801 # Required to use basename.
27802 if expr a : '\(a\)' >/dev/null 2>&1 &&
27803 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27804 as_expr=expr
27805 else
27806 as_expr=false
27807 fi
27809 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27810 as_basename=basename
27811 else
27812 as_basename=false
27813 fi
27816 # Name of the executable.
27817 as_me=`$as_basename -- "$0" ||
27818 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27819 X"$0" : 'X\(//\)$' \| \
27820 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27821 echo X/"$0" |
27822 sed '/^.*\/\([^/][^/]*\)\/*$/{
27823 s//\1/
27824 q
27825 }
27826 /^X\/\(\/\/\)$/{
27827 s//\1/
27828 q
27829 }
27830 /^X\/\(\/\).*/{
27831 s//\1/
27832 q
27833 }
27834 s/.*/./; q'`
27836 # CDPATH.
27837 $as_unset CDPATH
27841 as_lineno_1=$LINENO
27842 as_lineno_2=$LINENO
27843 test "x$as_lineno_1" != "x$as_lineno_2" &&
27844 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27846 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27847 # uniformly replaced by the line number. The first 'sed' inserts a
27848 # line-number line after each line using $LINENO; the second 'sed'
27849 # does the real work. The second script uses 'N' to pair each
27850 # line-number line with the line containing $LINENO, and appends
27851 # trailing '-' during substitution so that $LINENO is not a special
27852 # case at line end.
27853 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27854 # scripts with optimization help from Paolo Bonzini. Blame Lee
27855 # E. McMahon (1931-1989) for sed's syntax. :-)
27856 sed -n '
27857 p
27858 /[$]LINENO/=
27859 ' <$as_myself |
27860 sed '
27861 s/[$]LINENO.*/&-/
27862 t lineno
27863 b
27864 :lineno
27865 N
27866 :loop
27867 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27868 t loop
27869 s/-\n.*//
27870 ' >$as_me.lineno &&
27871 chmod +x "$as_me.lineno" ||
27872 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27873 { (exit 1); exit 1; }; }
27875 # Don't try to exec as it changes $[0], causing all sort of problems
27876 # (the dirname of $[0] is not the place where we might find the
27877 # original and so on. Autoconf is especially sensitive to this).
27878 . "./$as_me.lineno"
27879 # Exit status is that of the last command.
27880 exit
27881 }
27884 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27885 as_dirname=dirname
27886 else
27887 as_dirname=false
27888 fi
27890 ECHO_C= ECHO_N= ECHO_T=
27891 case `echo -n x` in
27892 -n*)
27893 case `echo 'x\c'` in
27894 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27895 *) ECHO_C='\c';;
27896 esac;;
27897 *)
27898 ECHO_N='-n';;
27899 esac
27901 if expr a : '\(a\)' >/dev/null 2>&1 &&
27902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27903 as_expr=expr
27904 else
27905 as_expr=false
27906 fi
27908 rm -f conf$$ conf$$.exe conf$$.file
27909 if test -d conf$$.dir; then
27910 rm -f conf$$.dir/conf$$.file
27911 else
27912 rm -f conf$$.dir
27913 mkdir conf$$.dir
27914 fi
27915 echo >conf$$.file
27916 if ln -s conf$$.file conf$$ 2>/dev/null; then
27917 as_ln_s='ln -s'
27918 # ... but there are two gotchas:
27919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27921 # In both cases, we have to default to `cp -p'.
27922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27923 as_ln_s='cp -p'
27924 elif ln conf$$.file conf$$ 2>/dev/null; then
27925 as_ln_s=ln
27926 else
27927 as_ln_s='cp -p'
27928 fi
27929 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27930 rmdir conf$$.dir 2>/dev/null
27932 if mkdir -p . 2>/dev/null; then
27933 as_mkdir_p=:
27934 else
27935 test -d ./-p && rmdir ./-p
27936 as_mkdir_p=false
27937 fi
27939 if test -x / >/dev/null 2>&1; then
27940 as_test_x='test -x'
27941 else
27942 if ls -dL / >/dev/null 2>&1; then
27943 as_ls_L_option=L
27944 else
27945 as_ls_L_option=
27946 fi
27947 as_test_x='
27948 eval sh -c '\''
27949 if test -d "$1"; then
27950 test -d "$1/.";
27951 else
27952 case $1 in
27953 -*)set "./$1";;
27954 esac;
27955 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27956 ???[sx]*):;;*)false;;esac;fi
27957 '\'' sh
27958 '
27959 fi
27960 as_executable_p=$as_test_x
27962 # Sed expression to map a string onto a valid CPP name.
27963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27965 # Sed expression to map a string onto a valid variable name.
27966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27969 exec 6>&1
27971 # Save the log message, to keep $[0] and so on meaningful, and to
27972 # report actual input values of CONFIG_FILES etc. instead of their
27973 # values after options handling.
27974 ac_log="
27975 This file was extended by rrdtool $as_me 1.2.26, which was
27976 generated by GNU Autoconf 2.61. Invocation command line was
27978 CONFIG_FILES = $CONFIG_FILES
27979 CONFIG_HEADERS = $CONFIG_HEADERS
27980 CONFIG_LINKS = $CONFIG_LINKS
27981 CONFIG_COMMANDS = $CONFIG_COMMANDS
27982 $ $0 $@
27984 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27985 "
27987 _ACEOF
27989 cat >>$CONFIG_STATUS <<_ACEOF
27990 # Files that config.status was made for.
27991 config_files="$ac_config_files"
27992 config_headers="$ac_config_headers"
27993 config_commands="$ac_config_commands"
27995 _ACEOF
27997 cat >>$CONFIG_STATUS <<\_ACEOF
27998 ac_cs_usage="\
27999 \`$as_me' instantiates files from templates according to the
28000 current configuration.
28002 Usage: $0 [OPTIONS] [FILE]...
28004 -h, --help print this help, then exit
28005 -V, --version print version number and configuration settings, then exit
28006 -q, --quiet do not print progress messages
28007 -d, --debug don't remove temporary files
28008 --recheck update $as_me by reconfiguring in the same conditions
28009 --file=FILE[:TEMPLATE]
28010 instantiate the configuration file FILE
28011 --header=FILE[:TEMPLATE]
28012 instantiate the configuration header FILE
28014 Configuration files:
28015 $config_files
28017 Configuration headers:
28018 $config_headers
28020 Configuration commands:
28021 $config_commands
28023 Report bugs to <bug-autoconf@gnu.org>."
28025 _ACEOF
28026 cat >>$CONFIG_STATUS <<_ACEOF
28027 ac_cs_version="\\
28028 rrdtool config.status 1.2.26
28029 configured by $0, generated by GNU Autoconf 2.61,
28030 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28032 Copyright (C) 2006 Free Software Foundation, Inc.
28033 This config.status script is free software; the Free Software Foundation
28034 gives unlimited permission to copy, distribute and modify it."
28036 ac_pwd='$ac_pwd'
28037 srcdir='$srcdir'
28038 INSTALL='$INSTALL'
28039 _ACEOF
28041 cat >>$CONFIG_STATUS <<\_ACEOF
28042 # If no file are specified by the user, then we need to provide default
28043 # value. By we need to know if files were specified by the user.
28044 ac_need_defaults=:
28045 while test $# != 0
28046 do
28047 case $1 in
28048 --*=*)
28049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28050 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28051 ac_shift=:
28052 ;;
28053 *)
28054 ac_option=$1
28055 ac_optarg=$2
28056 ac_shift=shift
28057 ;;
28058 esac
28060 case $ac_option in
28061 # Handling of the options.
28062 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28063 ac_cs_recheck=: ;;
28064 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28065 echo "$ac_cs_version"; exit ;;
28066 --debug | --debu | --deb | --de | --d | -d )
28067 debug=: ;;
28068 --file | --fil | --fi | --f )
28069 $ac_shift
28070 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28071 ac_need_defaults=false;;
28072 --header | --heade | --head | --hea )
28073 $ac_shift
28074 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28075 ac_need_defaults=false;;
28076 --he | --h)
28077 # Conflict between --help and --header
28078 { echo "$as_me: error: ambiguous option: $1
28079 Try \`$0 --help' for more information." >&2
28080 { (exit 1); exit 1; }; };;
28081 --help | --hel | -h )
28082 echo "$ac_cs_usage"; exit ;;
28083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28084 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28085 ac_cs_silent=: ;;
28087 # This is an error.
28088 -*) { echo "$as_me: error: unrecognized option: $1
28089 Try \`$0 --help' for more information." >&2
28090 { (exit 1); exit 1; }; } ;;
28092 *) ac_config_targets="$ac_config_targets $1"
28093 ac_need_defaults=false ;;
28095 esac
28096 shift
28097 done
28099 ac_configure_extra_args=
28101 if $ac_cs_silent; then
28102 exec 6>/dev/null
28103 ac_configure_extra_args="$ac_configure_extra_args --silent"
28104 fi
28106 _ACEOF
28107 cat >>$CONFIG_STATUS <<_ACEOF
28108 if \$ac_cs_recheck; then
28109 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28110 CONFIG_SHELL=$SHELL
28111 export CONFIG_SHELL
28112 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28113 fi
28115 _ACEOF
28116 cat >>$CONFIG_STATUS <<\_ACEOF
28117 exec 5>>config.log
28118 {
28119 echo
28120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28121 ## Running $as_me. ##
28122 _ASBOX
28123 echo "$ac_log"
28124 } >&5
28126 _ACEOF
28127 cat >>$CONFIG_STATUS <<_ACEOF
28128 #
28129 # INIT-COMMANDS
28130 #
28131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28134 _ACEOF
28136 cat >>$CONFIG_STATUS <<\_ACEOF
28138 # Handling of arguments.
28139 for ac_config_target in $ac_config_targets
28140 do
28141 case $ac_config_target in
28142 "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
28143 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28144 "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
28145 "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
28146 "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
28147 "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
28148 "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
28149 "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
28150 "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
28151 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28152 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28153 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28154 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
28155 "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
28156 "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
28157 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28158 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28160 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28161 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28162 { (exit 1); exit 1; }; };;
28163 esac
28164 done
28167 # If the user did not use the arguments to specify the items to instantiate,
28168 # then the envvar interface is used. Set only those that are not.
28169 # We use the long form for the default assignment because of an extremely
28170 # bizarre bug on SunOS 4.1.3.
28171 if $ac_need_defaults; then
28172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28175 fi
28177 # Have a temporary directory for convenience. Make it in the build tree
28178 # simply because there is no reason against having it here, and in addition,
28179 # creating and moving files from /tmp can sometimes cause problems.
28180 # Hook for its removal unless debugging.
28181 # Note that there is a small window in which the directory will not be cleaned:
28182 # after its creation but before its name has been assigned to `$tmp'.
28183 $debug ||
28184 {
28185 tmp=
28186 trap 'exit_status=$?
28187 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28188 ' 0
28189 trap '{ (exit 1); exit 1; }' 1 2 13 15
28190 }
28191 # Create a (secure) tmp directory for tmp files.
28193 {
28194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28195 test -n "$tmp" && test -d "$tmp"
28196 } ||
28197 {
28198 tmp=./conf$$-$RANDOM
28199 (umask 077 && mkdir "$tmp")
28200 } ||
28201 {
28202 echo "$me: cannot create a temporary directory in ." >&2
28203 { (exit 1); exit 1; }
28204 }
28206 #
28207 # Set up the sed scripts for CONFIG_FILES section.
28208 #
28210 # No need to generate the scripts if there are no CONFIG_FILES.
28211 # This happens for instance when ./config.status config.h
28212 if test -n "$CONFIG_FILES"; then
28214 _ACEOF
28218 ac_delim='%!_!# '
28219 for ac_last_try in false false false false false :; do
28220 cat >conf$$subs.sed <<_ACEOF
28221 PERLFLAGS!$PERLFLAGS$ac_delim
28222 SHELL!$SHELL$ac_delim
28223 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28224 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28225 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28226 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28227 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28228 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28229 exec_prefix!$exec_prefix$ac_delim
28230 prefix!$prefix$ac_delim
28231 program_transform_name!$program_transform_name$ac_delim
28232 bindir!$bindir$ac_delim
28233 sbindir!$sbindir$ac_delim
28234 libexecdir!$libexecdir$ac_delim
28235 datarootdir!$datarootdir$ac_delim
28236 datadir!$datadir$ac_delim
28237 sysconfdir!$sysconfdir$ac_delim
28238 sharedstatedir!$sharedstatedir$ac_delim
28239 localstatedir!$localstatedir$ac_delim
28240 includedir!$includedir$ac_delim
28241 oldincludedir!$oldincludedir$ac_delim
28242 docdir!$docdir$ac_delim
28243 infodir!$infodir$ac_delim
28244 htmldir!$htmldir$ac_delim
28245 dvidir!$dvidir$ac_delim
28246 pdfdir!$pdfdir$ac_delim
28247 psdir!$psdir$ac_delim
28248 libdir!$libdir$ac_delim
28249 localedir!$localedir$ac_delim
28250 mandir!$mandir$ac_delim
28251 DEFS!$DEFS$ac_delim
28252 ECHO_C!$ECHO_C$ac_delim
28253 ECHO_N!$ECHO_N$ac_delim
28254 ECHO_T!$ECHO_T$ac_delim
28255 LIBS!$LIBS$ac_delim
28256 build_alias!$build_alias$ac_delim
28257 host_alias!$host_alias$ac_delim
28258 target_alias!$target_alias$ac_delim
28259 NUMVERS!$NUMVERS$ac_delim
28260 build!$build$ac_delim
28261 build_cpu!$build_cpu$ac_delim
28262 build_vendor!$build_vendor$ac_delim
28263 build_os!$build_os$ac_delim
28264 host!$host$ac_delim
28265 host_cpu!$host_cpu$ac_delim
28266 host_vendor!$host_vendor$ac_delim
28267 host_os!$host_os$ac_delim
28268 target!$target$ac_delim
28269 target_cpu!$target_cpu$ac_delim
28270 target_vendor!$target_vendor$ac_delim
28271 target_os!$target_os$ac_delim
28272 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28273 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28274 INSTALL_DATA!$INSTALL_DATA$ac_delim
28275 CYGPATH_W!$CYGPATH_W$ac_delim
28276 PACKAGE!$PACKAGE$ac_delim
28277 VERSION!$VERSION$ac_delim
28278 ACLOCAL!$ACLOCAL$ac_delim
28279 AUTOCONF!$AUTOCONF$ac_delim
28280 AUTOMAKE!$AUTOMAKE$ac_delim
28281 AUTOHEADER!$AUTOHEADER$ac_delim
28282 MAKEINFO!$MAKEINFO$ac_delim
28283 install_sh!$install_sh$ac_delim
28284 STRIP!$STRIP$ac_delim
28285 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28286 mkdir_p!$mkdir_p$ac_delim
28287 AWK!$AWK$ac_delim
28288 SET_MAKE!$SET_MAKE$ac_delim
28289 am__leading_dot!$am__leading_dot$ac_delim
28290 AMTAR!$AMTAR$ac_delim
28291 am__tar!$am__tar$ac_delim
28292 am__untar!$am__untar$ac_delim
28293 RRDGRAPH_YLEGEND_ANGLE!$RRDGRAPH_YLEGEND_ANGLE$ac_delim
28294 CC!$CC$ac_delim
28295 CFLAGS!$CFLAGS$ac_delim
28296 LDFLAGS!$LDFLAGS$ac_delim
28297 CPPFLAGS!$CPPFLAGS$ac_delim
28298 ac_ct_CC!$ac_ct_CC$ac_delim
28299 EXEEXT!$EXEEXT$ac_delim
28300 OBJEXT!$OBJEXT$ac_delim
28301 DEPDIR!$DEPDIR$ac_delim
28302 am__include!$am__include$ac_delim
28303 am__quote!$am__quote$ac_delim
28304 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28305 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28306 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28307 CCDEPMODE!$CCDEPMODE$ac_delim
28308 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28309 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28310 CPP!$CPP$ac_delim
28311 GREP!$GREP$ac_delim
28312 EGREP!$EGREP$ac_delim
28313 LN_S!$LN_S$ac_delim
28314 ECHO!$ECHO$ac_delim
28315 AR!$AR$ac_delim
28316 RANLIB!$RANLIB$ac_delim
28317 CXX!$CXX$ac_delim
28318 _ACEOF
28320 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28321 break
28322 elif $ac_last_try; then
28323 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28324 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28325 { (exit 1); exit 1; }; }
28326 else
28327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28328 fi
28329 done
28331 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28332 if test -n "$ac_eof"; then
28333 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28334 ac_eof=`expr $ac_eof + 1`
28335 fi
28337 cat >>$CONFIG_STATUS <<_ACEOF
28338 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28340 _ACEOF
28341 sed '
28342 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28343 s/^/s,@/; s/!/@,|#_!!_#|/
28344 :n
28345 t n
28346 s/'"$ac_delim"'$/,g/; t
28347 s/$/\\/; p
28348 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28349 ' >>$CONFIG_STATUS <conf$$subs.sed
28350 rm -f conf$$subs.sed
28351 cat >>$CONFIG_STATUS <<_ACEOF
28352 CEOF$ac_eof
28353 _ACEOF
28356 ac_delim='%!_!# '
28357 for ac_last_try in false false false false false :; do
28358 cat >conf$$subs.sed <<_ACEOF
28359 CXXFLAGS!$CXXFLAGS$ac_delim
28360 ac_ct_CXX!$ac_ct_CXX$ac_delim
28361 CXXDEPMODE!$CXXDEPMODE$ac_delim
28362 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28363 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28364 CXXCPP!$CXXCPP$ac_delim
28365 F77!$F77$ac_delim
28366 FFLAGS!$FFLAGS$ac_delim
28367 ac_ct_F77!$ac_ct_F77$ac_delim
28368 LIBTOOL!$LIBTOOL$ac_delim
28369 RRD_DEFAULT_FONT!$RRD_DEFAULT_FONT$ac_delim
28370 MULTITHREAD_CFLAGS!$MULTITHREAD_CFLAGS$ac_delim
28371 MULTITHREAD_LDFLAGS!$MULTITHREAD_LDFLAGS$ac_delim
28372 acx_pthread_config!$acx_pthread_config$ac_delim
28373 PTHREAD_CC!$PTHREAD_CC$ac_delim
28374 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
28375 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
28376 BUILD_MULTITHREAD_TRUE!$BUILD_MULTITHREAD_TRUE$ac_delim
28377 BUILD_MULTITHREAD_FALSE!$BUILD_MULTITHREAD_FALSE$ac_delim
28378 BUILD_RRDCGI_TRUE!$BUILD_RRDCGI_TRUE$ac_delim
28379 BUILD_RRDCGI_FALSE!$BUILD_RRDCGI_FALSE$ac_delim
28380 PKGCONFIG!$PKGCONFIG$ac_delim
28381 CORE_LIBS!$CORE_LIBS$ac_delim
28382 ALL_LIBS!$ALL_LIBS$ac_delim
28383 PERL!$PERL$ac_delim
28384 PERLCC!$PERLCC$ac_delim
28385 PERLCCFLAGS!$PERLCCFLAGS$ac_delim
28386 PERLLD!$PERLLD$ac_delim
28387 PERLLDFLAGS!$PERLLDFLAGS$ac_delim
28388 PERL_CC!$PERL_CC$ac_delim
28389 PERL_MAKE_OPTIONS!$PERL_MAKE_OPTIONS$ac_delim
28390 COMP_PERL!$COMP_PERL$ac_delim
28391 PERL_VERSION!$PERL_VERSION$ac_delim
28392 RUBY!$RUBY$ac_delim
28393 RUBY_MAKE_OPTIONS!$RUBY_MAKE_OPTIONS$ac_delim
28394 COMP_RUBY!$COMP_RUBY$ac_delim
28395 BUILD_TCL_TRUE!$BUILD_TCL_TRUE$ac_delim
28396 BUILD_TCL_FALSE!$BUILD_TCL_FALSE$ac_delim
28397 BUILD_TCL_SITE_TRUE!$BUILD_TCL_SITE_TRUE$ac_delim
28398 BUILD_TCL_SITE_FALSE!$BUILD_TCL_SITE_FALSE$ac_delim
28399 TCL_PREFIX!$TCL_PREFIX$ac_delim
28400 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
28401 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
28402 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
28403 TCL_PACKAGE_PATH!$TCL_PACKAGE_PATH$ac_delim
28404 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
28405 TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
28406 TCL_VERSION!$TCL_VERSION$ac_delim
28407 TCL_PACKAGE_DIR!$TCL_PACKAGE_DIR$ac_delim
28408 PYTHON!$PYTHON$ac_delim
28409 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
28410 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
28411 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
28412 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
28413 pythondir!$pythondir$ac_delim
28414 pkgpythondir!$pkgpythondir$ac_delim
28415 pyexecdir!$pyexecdir$ac_delim
28416 pkgpyexecdir!$pkgpyexecdir$ac_delim
28417 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
28418 COMP_PYTHON!$COMP_PYTHON$ac_delim
28419 NROFF!$NROFF$ac_delim
28420 TROFF!$TROFF$ac_delim
28421 RRDDOCDIR!$RRDDOCDIR$ac_delim
28422 LIBOBJS!$LIBOBJS$ac_delim
28423 LTLIBOBJS!$LTLIBOBJS$ac_delim
28424 _ACEOF
28426 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
28427 break
28428 elif $ac_last_try; then
28429 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28430 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28431 { (exit 1); exit 1; }; }
28432 else
28433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28434 fi
28435 done
28437 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28438 if test -n "$ac_eof"; then
28439 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28440 ac_eof=`expr $ac_eof + 1`
28441 fi
28443 cat >>$CONFIG_STATUS <<_ACEOF
28444 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28445 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28446 _ACEOF
28447 sed '
28448 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28449 s/^/s,@/; s/!/@,|#_!!_#|/
28450 :n
28451 t n
28452 s/'"$ac_delim"'$/,g/; t
28453 s/$/\\/; p
28454 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28455 ' >>$CONFIG_STATUS <conf$$subs.sed
28456 rm -f conf$$subs.sed
28457 cat >>$CONFIG_STATUS <<_ACEOF
28458 :end
28459 s/|#_!!_#|//g
28460 CEOF$ac_eof
28461 _ACEOF
28464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28466 # trailing colons and then remove the whole line if VPATH becomes empty
28467 # (actually we leave an empty line to preserve line numbers).
28468 if test "x$srcdir" = x.; then
28469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28470 s/:*\$(srcdir):*/:/
28471 s/:*\${srcdir}:*/:/
28472 s/:*@srcdir@:*/:/
28473 s/^\([^=]*=[ ]*\):*/\1/
28474 s/:*$//
28475 s/^[^=]*=[ ]*$//
28476 }'
28477 fi
28479 cat >>$CONFIG_STATUS <<\_ACEOF
28480 fi # test -n "$CONFIG_FILES"
28483 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
28484 do
28485 case $ac_tag in
28486 :[FHLC]) ac_mode=$ac_tag; continue;;
28487 esac
28488 case $ac_mode$ac_tag in
28489 :[FHL]*:*);;
28490 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28491 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28492 { (exit 1); exit 1; }; };;
28493 :[FH]-) ac_tag=-:-;;
28494 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28495 esac
28496 ac_save_IFS=$IFS
28497 IFS=:
28498 set x $ac_tag
28499 IFS=$ac_save_IFS
28500 shift
28501 ac_file=$1
28502 shift
28504 case $ac_mode in
28505 :L) ac_source=$1;;
28506 :[FH])
28507 ac_file_inputs=
28508 for ac_f
28509 do
28510 case $ac_f in
28511 -) ac_f="$tmp/stdin";;
28512 *) # Look for the file first in the build tree, then in the source tree
28513 # (if the path is not absolute). The absolute path cannot be DOS-style,
28514 # because $ac_f cannot contain `:'.
28515 test -f "$ac_f" ||
28516 case $ac_f in
28517 [\\/$]*) false;;
28518 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28519 esac ||
28520 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28521 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28522 { (exit 1); exit 1; }; };;
28523 esac
28524 ac_file_inputs="$ac_file_inputs $ac_f"
28525 done
28527 # Let's still pretend it is `configure' which instantiates (i.e., don't
28528 # use $as_me), people would be surprised to read:
28529 # /* config.h. Generated by config.status. */
28530 configure_input="Generated from "`IFS=:
28531 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28532 if test x"$ac_file" != x-; then
28533 configure_input="$ac_file. $configure_input"
28534 { echo "$as_me:$LINENO: creating $ac_file" >&5
28535 echo "$as_me: creating $ac_file" >&6;}
28536 fi
28538 case $ac_tag in
28539 *:-:* | *:-) cat >"$tmp/stdin";;
28540 esac
28541 ;;
28542 esac
28544 ac_dir=`$as_dirname -- "$ac_file" ||
28545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28546 X"$ac_file" : 'X\(//\)[^/]' \| \
28547 X"$ac_file" : 'X\(//\)$' \| \
28548 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28549 echo X"$ac_file" |
28550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28551 s//\1/
28552 q
28553 }
28554 /^X\(\/\/\)[^/].*/{
28555 s//\1/
28556 q
28557 }
28558 /^X\(\/\/\)$/{
28559 s//\1/
28560 q
28561 }
28562 /^X\(\/\).*/{
28563 s//\1/
28564 q
28565 }
28566 s/.*/./; q'`
28567 { as_dir="$ac_dir"
28568 case $as_dir in #(
28569 -*) as_dir=./$as_dir;;
28570 esac
28571 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28572 as_dirs=
28573 while :; do
28574 case $as_dir in #(
28575 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28576 *) as_qdir=$as_dir;;
28577 esac
28578 as_dirs="'$as_qdir' $as_dirs"
28579 as_dir=`$as_dirname -- "$as_dir" ||
28580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28581 X"$as_dir" : 'X\(//\)[^/]' \| \
28582 X"$as_dir" : 'X\(//\)$' \| \
28583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28584 echo X"$as_dir" |
28585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28586 s//\1/
28587 q
28588 }
28589 /^X\(\/\/\)[^/].*/{
28590 s//\1/
28591 q
28592 }
28593 /^X\(\/\/\)$/{
28594 s//\1/
28595 q
28596 }
28597 /^X\(\/\).*/{
28598 s//\1/
28599 q
28600 }
28601 s/.*/./; q'`
28602 test -d "$as_dir" && break
28603 done
28604 test -z "$as_dirs" || eval "mkdir $as_dirs"
28605 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28606 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28607 { (exit 1); exit 1; }; }; }
28608 ac_builddir=.
28610 case "$ac_dir" in
28611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28612 *)
28613 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28614 # A ".." for each directory in $ac_dir_suffix.
28615 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28616 case $ac_top_builddir_sub in
28617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28619 esac ;;
28620 esac
28621 ac_abs_top_builddir=$ac_pwd
28622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28623 # for backward compatibility:
28624 ac_top_builddir=$ac_top_build_prefix
28626 case $srcdir in
28627 .) # We are building in place.
28628 ac_srcdir=.
28629 ac_top_srcdir=$ac_top_builddir_sub
28630 ac_abs_top_srcdir=$ac_pwd ;;
28631 [\\/]* | ?:[\\/]* ) # Absolute name.
28632 ac_srcdir=$srcdir$ac_dir_suffix;
28633 ac_top_srcdir=$srcdir
28634 ac_abs_top_srcdir=$srcdir ;;
28635 *) # Relative name.
28636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28637 ac_top_srcdir=$ac_top_build_prefix$srcdir
28638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28639 esac
28640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28643 case $ac_mode in
28644 :F)
28645 #
28646 # CONFIG_FILE
28647 #
28649 case $INSTALL in
28650 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28651 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28652 esac
28653 _ACEOF
28655 cat >>$CONFIG_STATUS <<\_ACEOF
28656 # If the template does not know about datarootdir, expand it.
28657 # FIXME: This hack should be removed a few years after 2.60.
28658 ac_datarootdir_hack=; ac_datarootdir_seen=
28660 case `sed -n '/datarootdir/ {
28661 p
28662 q
28663 }
28664 /@datadir@/p
28665 /@docdir@/p
28666 /@infodir@/p
28667 /@localedir@/p
28668 /@mandir@/p
28669 ' $ac_file_inputs` in
28670 *datarootdir*) ac_datarootdir_seen=yes;;
28671 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28672 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28673 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28674 _ACEOF
28675 cat >>$CONFIG_STATUS <<_ACEOF
28676 ac_datarootdir_hack='
28677 s&@datadir@&$datadir&g
28678 s&@docdir@&$docdir&g
28679 s&@infodir@&$infodir&g
28680 s&@localedir@&$localedir&g
28681 s&@mandir@&$mandir&g
28682 s&\\\${datarootdir}&$datarootdir&g' ;;
28683 esac
28684 _ACEOF
28686 # Neutralize VPATH when `$srcdir' = `.'.
28687 # Shell code in configure.ac might set extrasub.
28688 # FIXME: do we really want to maintain this feature?
28689 cat >>$CONFIG_STATUS <<_ACEOF
28690 sed "$ac_vpsub
28691 $extrasub
28692 _ACEOF
28693 cat >>$CONFIG_STATUS <<\_ACEOF
28694 :t
28695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28696 s&@configure_input@&$configure_input&;t t
28697 s&@top_builddir@&$ac_top_builddir_sub&;t t
28698 s&@srcdir@&$ac_srcdir&;t t
28699 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28700 s&@top_srcdir@&$ac_top_srcdir&;t t
28701 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28702 s&@builddir@&$ac_builddir&;t t
28703 s&@abs_builddir@&$ac_abs_builddir&;t t
28704 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28705 s&@INSTALL@&$ac_INSTALL&;t t
28706 $ac_datarootdir_hack
28707 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28710 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28712 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28713 which seems to be undefined. Please make sure it is defined." >&5
28714 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28715 which seems to be undefined. Please make sure it is defined." >&2;}
28717 rm -f "$tmp/stdin"
28718 case $ac_file in
28719 -) cat "$tmp/out"; rm -f "$tmp/out";;
28720 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28721 esac
28722 ;;
28723 :H)
28724 #
28725 # CONFIG_HEADER
28726 #
28727 _ACEOF
28729 # Transform confdefs.h into a sed script `conftest.defines', that
28730 # substitutes the proper values into config.h.in to produce config.h.
28731 rm -f conftest.defines conftest.tail
28732 # First, append a space to every undef/define line, to ease matching.
28733 echo 's/$/ /' >conftest.defines
28734 # Then, protect against being on the right side of a sed subst, or in
28735 # an unquoted here document, in config.status. If some macros were
28736 # called several times there might be several #defines for the same
28737 # symbol, which is useless. But do not sort them, since the last
28738 # AC_DEFINE must be honored.
28739 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28740 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28741 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28742 # PARAMS is the parameter list in the macro definition--in most cases, it's
28743 # just an empty string.
28744 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28745 ac_dB='\\)[ (].*,\\1define\\2'
28746 ac_dC=' '
28747 ac_dD=' ,'
28749 uniq confdefs.h |
28750 sed -n '
28751 t rset
28752 :rset
28753 s/^[ ]*#[ ]*define[ ][ ]*//
28754 t ok
28755 d
28756 :ok
28757 s/[\\&,]/\\&/g
28758 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28759 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28760 ' >>conftest.defines
28762 # Remove the space that was appended to ease matching.
28763 # Then replace #undef with comments. This is necessary, for
28764 # example, in the case of _POSIX_SOURCE, which is predefined and required
28765 # on some systems where configure will not decide to define it.
28766 # (The regexp can be short, since the line contains either #define or #undef.)
28767 echo 's/ $//
28768 s,^[ #]*u.*,/* & */,' >>conftest.defines
28770 # Break up conftest.defines:
28771 ac_max_sed_lines=50
28773 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28774 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28775 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28776 # et cetera.
28777 ac_in='$ac_file_inputs'
28778 ac_out='"$tmp/out1"'
28779 ac_nxt='"$tmp/out2"'
28781 while :
28782 do
28783 # Write a here document:
28784 cat >>$CONFIG_STATUS <<_ACEOF
28785 # First, check the format of the line:
28786 cat >"\$tmp/defines.sed" <<\\CEOF
28787 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28788 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28789 b
28790 :def
28791 _ACEOF
28792 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28793 echo 'CEOF
28794 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28795 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28796 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28797 grep . conftest.tail >/dev/null || break
28798 rm -f conftest.defines
28799 mv conftest.tail conftest.defines
28800 done
28801 rm -f conftest.defines conftest.tail
28803 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28804 cat >>$CONFIG_STATUS <<\_ACEOF
28805 if test x"$ac_file" != x-; then
28806 echo "/* $configure_input */" >"$tmp/config.h"
28807 cat "$ac_result" >>"$tmp/config.h"
28808 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28809 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28810 echo "$as_me: $ac_file is unchanged" >&6;}
28811 else
28812 rm -f $ac_file
28813 mv "$tmp/config.h" $ac_file
28814 fi
28815 else
28816 echo "/* $configure_input */"
28817 cat "$ac_result"
28818 fi
28819 rm -f "$tmp/out12"
28820 # Compute $ac_file's index in $config_headers.
28821 _am_stamp_count=1
28822 for _am_header in $config_headers :; do
28823 case $_am_header in
28824 $ac_file | $ac_file:* )
28825 break ;;
28826 * )
28827 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28828 esac
28829 done
28830 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28831 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28832 X$ac_file : 'X\(//\)[^/]' \| \
28833 X$ac_file : 'X\(//\)$' \| \
28834 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28835 echo X$ac_file |
28836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28837 s//\1/
28838 q
28839 }
28840 /^X\(\/\/\)[^/].*/{
28841 s//\1/
28842 q
28843 }
28844 /^X\(\/\/\)$/{
28845 s//\1/
28846 q
28847 }
28848 /^X\(\/\).*/{
28849 s//\1/
28850 q
28851 }
28852 s/.*/./; q'`/stamp-h$_am_stamp_count
28853 ;;
28855 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28856 echo "$as_me: executing $ac_file commands" >&6;}
28857 ;;
28858 esac
28861 case $ac_file$ac_mode in
28862 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28863 # Strip MF so we end up with the name of the file.
28864 mf=`echo "$mf" | sed -e 's/:.*$//'`
28865 # Check whether this is an Automake generated Makefile or not.
28866 # We used to match only the files named `Makefile.in', but
28867 # some people rename them; so instead we look at the file content.
28868 # Grep'ing the first line is not enough: some people post-process
28869 # each Makefile.in and add a new line on top of each file to say so.
28870 # So let's grep whole file.
28871 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28872 dirpart=`$as_dirname -- "$mf" ||
28873 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28874 X"$mf" : 'X\(//\)[^/]' \| \
28875 X"$mf" : 'X\(//\)$' \| \
28876 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28877 echo X"$mf" |
28878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28879 s//\1/
28880 q
28881 }
28882 /^X\(\/\/\)[^/].*/{
28883 s//\1/
28884 q
28885 }
28886 /^X\(\/\/\)$/{
28887 s//\1/
28888 q
28889 }
28890 /^X\(\/\).*/{
28891 s//\1/
28892 q
28893 }
28894 s/.*/./; q'`
28895 else
28896 continue
28897 fi
28898 # Extract the definition of DEPDIR, am__include, and am__quote
28899 # from the Makefile without running `make'.
28900 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28901 test -z "$DEPDIR" && continue
28902 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28903 test -z "am__include" && continue
28904 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28905 # When using ansi2knr, U may be empty or an underscore; expand it
28906 U=`sed -n 's/^U = //p' < "$mf"`
28907 # Find all dependency output files, they are included files with
28908 # $(DEPDIR) in their names. We invoke sed twice because it is the
28909 # simplest approach to changing $(DEPDIR) to its actual value in the
28910 # expansion.
28911 for file in `sed -n "
28912 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28913 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28914 # Make sure the directory exists.
28915 test -f "$dirpart/$file" && continue
28916 fdir=`$as_dirname -- "$file" ||
28917 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28918 X"$file" : 'X\(//\)[^/]' \| \
28919 X"$file" : 'X\(//\)$' \| \
28920 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28921 echo X"$file" |
28922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28923 s//\1/
28924 q
28925 }
28926 /^X\(\/\/\)[^/].*/{
28927 s//\1/
28928 q
28929 }
28930 /^X\(\/\/\)$/{
28931 s//\1/
28932 q
28933 }
28934 /^X\(\/\).*/{
28935 s//\1/
28936 q
28937 }
28938 s/.*/./; q'`
28939 { as_dir=$dirpart/$fdir
28940 case $as_dir in #(
28941 -*) as_dir=./$as_dir;;
28942 esac
28943 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28944 as_dirs=
28945 while :; do
28946 case $as_dir in #(
28947 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28948 *) as_qdir=$as_dir;;
28949 esac
28950 as_dirs="'$as_qdir' $as_dirs"
28951 as_dir=`$as_dirname -- "$as_dir" ||
28952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28953 X"$as_dir" : 'X\(//\)[^/]' \| \
28954 X"$as_dir" : 'X\(//\)$' \| \
28955 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28956 echo X"$as_dir" |
28957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28958 s//\1/
28959 q
28960 }
28961 /^X\(\/\/\)[^/].*/{
28962 s//\1/
28963 q
28964 }
28965 /^X\(\/\/\)$/{
28966 s//\1/
28967 q
28968 }
28969 /^X\(\/\).*/{
28970 s//\1/
28971 q
28972 }
28973 s/.*/./; q'`
28974 test -d "$as_dir" && break
28975 done
28976 test -z "$as_dirs" || eval "mkdir $as_dirs"
28977 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28978 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28979 { (exit 1); exit 1; }; }; }
28980 # echo "creating $dirpart/$file"
28981 echo '# dummy' > "$dirpart/$file"
28982 done
28983 done
28984 ;;
28985 "default":C) chmod +x examples/*.pl ;;
28987 esac
28988 done # for ac_tag
28991 { (exit 0); exit 0; }
28992 _ACEOF
28993 chmod +x $CONFIG_STATUS
28994 ac_clean_files=$ac_clean_files_save
28997 # configure is writing to config.log, and then calls config.status.
28998 # config.status does its own redirection, appending to config.log.
28999 # Unfortunately, on DOS this fails, as config.log is still kept open
29000 # by configure, so config.status won't be able to write to it; its
29001 # output is simply discarded. So we exec the FD to /dev/null,
29002 # effectively closing config.log, so it can be properly (re)opened and
29003 # appended to by config.status. When coming back to configure, we
29004 # need to make the FD available again.
29005 if test "$no_create" != yes; then
29006 ac_cs_success=:
29007 ac_config_status_args=
29008 test "$silent" = yes &&
29009 ac_config_status_args="$ac_config_status_args --quiet"
29010 exec 5>/dev/null
29011 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29012 exec 5>>config.log
29013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29014 # would make configure fail if this is the last instruction.
29015 $ac_cs_success || { (exit 1); exit 1; }
29016 fi
29019 { echo "$as_me:$LINENO: checking in" >&5
29020 echo $ECHO_N "checking in... $ECHO_C" >&6; }
29021 { echo "$as_me:$LINENO: result: and out again" >&5
29022 echo "${ECHO_T}and out again" >&6; }
29024 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
29025 sleep 1
29026 echo $ECHO_N ".$ECHO_C" 1>&6
29027 sleep 1
29028 echo $ECHO_N ".$ECHO_C" 1>&6
29029 sleep 1
29030 echo $ECHO_N ".$ECHO_C" 1>&6
29031 sleep 1
29032 echo $ECHO_N ".$ECHO_C" 1>&6
29033 sleep 1
29034 { echo "$as_me:$LINENO: result: just kidding ;-)" >&5
29035 echo "${ECHO_T} just kidding ;-)" >&6; }
29036 echo
29037 echo "----------------------------------------------------------------"
29038 echo "Config is DONE!"
29039 echo
29040 echo " With MMAP IO: $ac_cv_func_mmap_fixed_mapped"
29041 echo " Perl Modules: $COMP_PERL"
29042 echo " Perl Binary: $PERL"
29043 echo " Perl Version: $PERL_VERSION"
29044 echo " Perl Options: $PERL_MAKE_OPTIONS"
29045 echo " Ruby Modules: $COMP_RUBY"
29046 echo " Ruby Binary: $RUBY"
29047 echo " Ruby Options: $RUBY_MAKE_OPTIONS"
29048 echo " Build Tcl Bindings: $enable_tcl"
29049 echo " Build Python Bindings: $enable_python"
29050 echo " Build rrdcgi: $enable_rrdcgi"
29051 echo " Build librrd MT: $enable_pthread"
29052 echo
29053 echo
29054 echo "Type 'make' to compile the software and use 'make install' to "
29055 echo "install everything to: $prefix."
29056 echo
29057 echo " ... that wishlist is NO JOKE. If you find RRDtool useful"
29058 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
29059 echo "place an order."
29060 echo
29061 echo " -- Tobi Oetiker <tobi@oetiker.ch>"
29062 echo "----------------------------------------------------------------"