1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for rrdtool 1.3rc4.
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.3rc4'
730 PACKAGE_STRING='rrdtool 1.3rc4'
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 LIBVERS
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 MAINTAINER_MODE_TRUE
844 MAINTAINER_MODE_FALSE
845 MAINT
846 RRDGRAPH_YLEGEND_ANGLE
847 STATIC_PROGRAMS_TRUE
848 STATIC_PROGRAMS_FALSE
849 CC
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 CPP
866 GREP
867 EGREP
868 LN_S
869 ECHO
870 AR
871 RANLIB
872 CXX
873 CXXFLAGS
874 ac_ct_CXX
875 CXXDEPMODE
876 am__fastdepCXX_TRUE
877 am__fastdepCXX_FALSE
878 CXXCPP
879 F77
880 FFLAGS
881 ac_ct_F77
882 LIBTOOL
883 RRD_DEFAULT_FONT
884 GETTEXT_PACKAGE
885 USE_NLS
886 MSGFMT
887 MSGFMT_OPTS
888 GMSGFMT
889 XGETTEXT
890 CATALOGS
891 CATOBJEXT
892 DATADIRNAME
893 GMOFILES
894 INSTOBJEXT
895 INTLLIBS
896 PO_IN_DATADIR_TRUE
897 PO_IN_DATADIR_FALSE
898 POFILES
899 POSUB
900 MKINSTALLDIRS
901 INTLTOOL_DESKTOP_RULE
902 INTLTOOL_DIRECTORY_RULE
903 INTLTOOL_KEYS_RULE
904 INTLTOOL_PROP_RULE
905 INTLTOOL_OAF_RULE
906 INTLTOOL_PONG_RULE
907 INTLTOOL_SERVER_RULE
908 INTLTOOL_SHEET_RULE
909 INTLTOOL_SOUNDLIST_RULE
910 INTLTOOL_UI_RULE
911 INTLTOOL_XAM_RULE
912 INTLTOOL_KBD_RULE
913 INTLTOOL_XML_RULE
914 INTLTOOL_XML_NOMERGE_RULE
915 INTLTOOL_CAVES_RULE
916 INTLTOOL_SCHEMAS_RULE
917 INTLTOOL_THEME_RULE
918 INTLTOOL_SERVICE_RULE
919 INTLTOOL_EXTRACT
920 INTLTOOL_MERGE
921 INTLTOOL_UPDATE
922 INTLTOOL_PERL
923 INTLTOOL_ICONV
924 INTLTOOL_MSGFMT
925 INTLTOOL_MSGMERGE
926 INTLTOOL_XGETTEXT
927 ALL_LINGUAS
928 LIB_LIBINTL
929 BUILD_LIBINTL_TRUE
930 BUILD_LIBINTL_FALSE
931 MULTITHREAD_CFLAGS
932 MULTITHREAD_LDFLAGS
933 acx_pthread_config
934 PTHREAD_CC
935 PTHREAD_LIBS
936 PTHREAD_CFLAGS
937 BUILD_MULTITHREAD_TRUE
938 BUILD_MULTITHREAD_FALSE
939 BUILD_RRDCGI_TRUE
940 BUILD_RRDCGI_FALSE
941 PKGCONFIG
942 CORE_LIBS
943 ALL_LIBS
944 PERL
945 POD2MAN
946 POD2HTML
947 PERLCC
948 PERLCCFLAGS
949 PERLLD
950 PERLLDFLAGS
951 PERL_CC
952 PERL_MAKE_OPTIONS
953 COMP_PERL
954 PERL_VERSION
955 RUBY
956 RUBY_MAKE_OPTIONS
957 COMP_RUBY
958 BUILD_TCL_TRUE
959 BUILD_TCL_FALSE
960 BUILD_TCL_SITE_TRUE
961 BUILD_TCL_SITE_FALSE
962 TCL_PREFIX
963 TCL_SHLIB_CFLAGS
964 TCL_SHLIB_LD
965 TCL_SHLIB_SUFFIX
966 TCL_PACKAGE_PATH
967 TCL_LD_SEARCH_FLAGS
968 TCL_STUB_LIB_SPEC
969 TCL_VERSION
970 TCL_PACKAGE_DIR
971 TCL_INC_DIR
972 PYTHON
973 PYTHON_VERSION
974 PYTHON_PREFIX
975 PYTHON_EXEC_PREFIX
976 PYTHON_PLATFORM
977 pythondir
978 pkgpythondir
979 pyexecdir
980 pkgpyexecdir
981 PYTHON_INCLUDES
982 COMP_PYTHON
983 NROFF
984 TROFF
985 RRDDOCDIR
986 LIBOBJS
987 LTLIBOBJS'
988 ac_subst_files=''
989 ac_precious_vars='build_alias
990 host_alias
991 target_alias
992 RRDGRAPH_YLEGEND_ANGLE
993 CC
994 CFLAGS
995 LDFLAGS
996 LIBS
997 CPPFLAGS
998 CPP
999 CXX
1000 CXXFLAGS
1001 CCC
1002 CXXCPP
1003 F77
1004 FFLAGS
1005 PERLCC
1006 PERLCCFLAGS
1007 PERLLD
1008 PERLLDFLAGS
1009 RRDDOCDIR'
1012 # Initialize some variables set by options.
1013 ac_init_help=
1014 ac_init_version=false
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1018 exec_prefix=NONE
1019 no_create=
1020 no_recursion=
1021 prefix=NONE
1022 program_prefix=NONE
1023 program_suffix=NONE
1024 program_transform_name=s,x,x,
1025 silent=
1026 site=
1027 srcdir=
1028 verbose=
1029 x_includes=NONE
1030 x_libraries=NONE
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 includedir='${prefix}/include'
1047 oldincludedir='/usr/include'
1048 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049 infodir='${datarootdir}/info'
1050 htmldir='${docdir}'
1051 dvidir='${docdir}'
1052 pdfdir='${docdir}'
1053 psdir='${docdir}'
1054 libdir='${exec_prefix}/lib'
1055 localedir='${datarootdir}/locale'
1056 mandir='${datarootdir}/man'
1058 ac_prev=
1059 ac_dashdash=
1060 for ac_option
1061 do
1062 # If the previous option needs an argument, assign it.
1063 if test -n "$ac_prev"; then
1064 eval $ac_prev=\$ac_option
1065 ac_prev=
1066 continue
1067 fi
1069 case $ac_option in
1070 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071 *) ac_optarg=yes ;;
1072 esac
1074 # Accept the important Cygnus configure options, so we can diagnose typos.
1076 case $ac_dashdash$ac_option in
1077 --)
1078 ac_dashdash=yes ;;
1080 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1081 ac_prev=bindir ;;
1082 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1083 bindir=$ac_optarg ;;
1085 -build | --build | --buil | --bui | --bu)
1086 ac_prev=build_alias ;;
1087 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1088 build_alias=$ac_optarg ;;
1090 -cache-file | --cache-file | --cache-fil | --cache-fi \
1091 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1092 ac_prev=cache_file ;;
1093 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1094 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1095 cache_file=$ac_optarg ;;
1097 --config-cache | -C)
1098 cache_file=config.cache ;;
1100 -datadir | --datadir | --datadi | --datad)
1101 ac_prev=datadir ;;
1102 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1103 datadir=$ac_optarg ;;
1105 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1106 | --dataroo | --dataro | --datar)
1107 ac_prev=datarootdir ;;
1108 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1109 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1110 datarootdir=$ac_optarg ;;
1112 -disable-* | --disable-*)
1113 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1117 { (exit 1); exit 1; }; }
1118 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1119 eval enable_$ac_feature=no ;;
1121 -docdir | --docdir | --docdi | --doc | --do)
1122 ac_prev=docdir ;;
1123 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124 docdir=$ac_optarg ;;
1126 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127 ac_prev=dvidir ;;
1128 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129 dvidir=$ac_optarg ;;
1131 -enable-* | --enable-*)
1132 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1136 { (exit 1); exit 1; }; }
1137 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1138 eval enable_$ac_feature=\$ac_optarg ;;
1140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142 | --exec | --exe | --ex)
1143 ac_prev=exec_prefix ;;
1144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146 | --exec=* | --exe=* | --ex=*)
1147 exec_prefix=$ac_optarg ;;
1149 -gas | --gas | --ga | --g)
1150 # Obsolete; use --with-gas.
1151 with_gas=yes ;;
1153 -help | --help | --hel | --he | -h)
1154 ac_init_help=long ;;
1155 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156 ac_init_help=recursive ;;
1157 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158 ac_init_help=short ;;
1160 -host | --host | --hos | --ho)
1161 ac_prev=host_alias ;;
1162 -host=* | --host=* | --hos=* | --ho=*)
1163 host_alias=$ac_optarg ;;
1165 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166 ac_prev=htmldir ;;
1167 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168 | --ht=*)
1169 htmldir=$ac_optarg ;;
1171 -includedir | --includedir | --includedi | --included | --include \
1172 | --includ | --inclu | --incl | --inc)
1173 ac_prev=includedir ;;
1174 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175 | --includ=* | --inclu=* | --incl=* | --inc=*)
1176 includedir=$ac_optarg ;;
1178 -infodir | --infodir | --infodi | --infod | --info | --inf)
1179 ac_prev=infodir ;;
1180 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181 infodir=$ac_optarg ;;
1183 -libdir | --libdir | --libdi | --libd)
1184 ac_prev=libdir ;;
1185 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186 libdir=$ac_optarg ;;
1188 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189 | --libexe | --libex | --libe)
1190 ac_prev=libexecdir ;;
1191 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192 | --libexe=* | --libex=* | --libe=*)
1193 libexecdir=$ac_optarg ;;
1195 -localedir | --localedir | --localedi | --localed | --locale)
1196 ac_prev=localedir ;;
1197 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198 localedir=$ac_optarg ;;
1200 -localstatedir | --localstatedir | --localstatedi | --localstated \
1201 | --localstate | --localstat | --localsta | --localst | --locals)
1202 ac_prev=localstatedir ;;
1203 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205 localstatedir=$ac_optarg ;;
1207 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208 ac_prev=mandir ;;
1209 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210 mandir=$ac_optarg ;;
1212 -nfp | --nfp | --nf)
1213 # Obsolete; use --without-fp.
1214 with_fp=no ;;
1216 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217 | --no-cr | --no-c | -n)
1218 no_create=yes ;;
1220 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 no_recursion=yes ;;
1224 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226 | --oldin | --oldi | --old | --ol | --o)
1227 ac_prev=oldincludedir ;;
1228 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231 oldincludedir=$ac_optarg ;;
1233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234 ac_prev=prefix ;;
1235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236 prefix=$ac_optarg ;;
1238 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239 | --program-pre | --program-pr | --program-p)
1240 ac_prev=program_prefix ;;
1241 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243 program_prefix=$ac_optarg ;;
1245 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246 | --program-suf | --program-su | --program-s)
1247 ac_prev=program_suffix ;;
1248 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250 program_suffix=$ac_optarg ;;
1252 -program-transform-name | --program-transform-name \
1253 | --program-transform-nam | --program-transform-na \
1254 | --program-transform-n | --program-transform- \
1255 | --program-transform | --program-transfor \
1256 | --program-transfo | --program-transf \
1257 | --program-trans | --program-tran \
1258 | --progr-tra | --program-tr | --program-t)
1259 ac_prev=program_transform_name ;;
1260 -program-transform-name=* | --program-transform-name=* \
1261 | --program-transform-nam=* | --program-transform-na=* \
1262 | --program-transform-n=* | --program-transform-=* \
1263 | --program-transform=* | --program-transfor=* \
1264 | --program-transfo=* | --program-transf=* \
1265 | --program-trans=* | --program-tran=* \
1266 | --progr-tra=* | --program-tr=* | --program-t=*)
1267 program_transform_name=$ac_optarg ;;
1269 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270 ac_prev=pdfdir ;;
1271 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272 pdfdir=$ac_optarg ;;
1274 -psdir | --psdir | --psdi | --psd | --ps)
1275 ac_prev=psdir ;;
1276 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 psdir=$ac_optarg ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 silent=yes ;;
1283 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284 ac_prev=sbindir ;;
1285 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286 | --sbi=* | --sb=*)
1287 sbindir=$ac_optarg ;;
1289 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291 | --sharedst | --shareds | --shared | --share | --shar \
1292 | --sha | --sh)
1293 ac_prev=sharedstatedir ;;
1294 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297 | --sha=* | --sh=*)
1298 sharedstatedir=$ac_optarg ;;
1300 -site | --site | --sit)
1301 ac_prev=site ;;
1302 -site=* | --site=* | --sit=*)
1303 site=$ac_optarg ;;
1305 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306 ac_prev=srcdir ;;
1307 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1308 srcdir=$ac_optarg ;;
1310 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311 | --syscon | --sysco | --sysc | --sys | --sy)
1312 ac_prev=sysconfdir ;;
1313 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1315 sysconfdir=$ac_optarg ;;
1317 -target | --target | --targe | --targ | --tar | --ta | --t)
1318 ac_prev=target_alias ;;
1319 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1320 target_alias=$ac_optarg ;;
1322 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323 verbose=yes ;;
1325 -version | --version | --versio | --versi | --vers | -V)
1326 ac_init_version=: ;;
1328 -with-* | --with-*)
1329 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 { echo "$as_me: error: invalid package name: $ac_package" >&2
1333 { (exit 1); exit 1; }; }
1334 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1335 eval with_$ac_package=\$ac_optarg ;;
1337 -without-* | --without-*)
1338 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 { echo "$as_me: error: invalid package name: $ac_package" >&2
1342 { (exit 1); exit 1; }; }
1343 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1344 eval with_$ac_package=no ;;
1346 --x)
1347 # Obsolete; use --with-x.
1348 with_x=yes ;;
1350 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351 | --x-incl | --x-inc | --x-in | --x-i)
1352 ac_prev=x_includes ;;
1353 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355 x_includes=$ac_optarg ;;
1357 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359 ac_prev=x_libraries ;;
1360 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362 x_libraries=$ac_optarg ;;
1364 -*) { echo "$as_me: error: unrecognized option: $ac_option
1365 Try \`$0 --help' for more information." >&2
1366 { (exit 1); exit 1; }; }
1367 ;;
1369 *=*)
1370 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1373 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1374 { (exit 1); exit 1; }; }
1375 eval $ac_envvar=\$ac_optarg
1376 export $ac_envvar ;;
1378 *)
1379 # FIXME: should be removed in autoconf 3.0.
1380 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 ;;
1386 esac
1387 done
1389 if test -n "$ac_prev"; then
1390 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391 { echo "$as_me: error: missing argument to $ac_option" >&2
1392 { (exit 1); exit 1; }; }
1393 fi
1395 # Be sure to have absolute directory names.
1396 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1400 do
1401 eval ac_val=\$$ac_var
1402 case $ac_val in
1403 [\\/$]* | ?:[\\/]* ) continue;;
1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405 esac
1406 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407 { (exit 1); exit 1; }; }
1408 done
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1413 build=$build_alias
1414 host=$host_alias
1415 target=$target_alias
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422 If a cross compiler is detected then cross compile mode will be used." >&2
1423 elif test "x$build_alias" != "x$host_alias"; then
1424 cross_compiling=yes
1425 fi
1426 fi
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431 test "$silent" = yes && exec 6>/dev/null
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 { echo "$as_me: error: Working directory cannot be determined" >&2
1438 { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 { echo "$as_me: error: pwd does not report name of working directory" >&2
1441 { (exit 1); exit 1; }; }
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$0" ||
1449 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$0" : 'X\(//\)[^/]' \| \
1451 X"$0" : 'X\(//\)$' \| \
1452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1453 echo X"$0" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\).*/{
1467 s//\1/
1468 q
1469 }
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1474 fi
1475 else
1476 ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 { (exit 1); exit 1; }; }
1482 fi
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 ac_abs_confdir=`(
1485 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1486 { (exit 1); exit 1; }; }
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures rrdtool 1.3rc4 to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/rrdtool]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1567 cat <<\_ACEOF
1569 Program names:
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1574 System types:
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1577 --target=TARGET configure for building compilers for TARGET [HOST]
1578 _ACEOF
1579 fi
1581 if test -n "$ac_init_help"; then
1582 case $ac_init_help in
1583 short | recursive ) echo "Configuration of rrdtool 1.3rc4:";;
1584 esac
1585 cat <<\_ACEOF
1587 Optional Features:
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-maintainer-mode enable make rules and dependencies not useful
1591 (and sometimes confusing) to the casual installer
1592 --disable-rrdcgi disable building of rrdcgi
1593 --disable-mmap disable mmap in rrd_update, use seek+write instead
1594 --disable-pthread disable multithread support
1595 --enable-static-programs Build static programs
1596 --disable-dependency-tracking speeds up one-time build
1597 --enable-dependency-tracking do not reject slow dependency extractors
1598 --enable-shared[=PKGS] build shared libraries [default=yes]
1599 --enable-static[=PKGS] build static libraries [default=yes]
1600 --enable-fast-install[=PKGS]
1601 optimize for fast installation [default=yes]
1602 --disable-libtool-lock avoid locking (might break parallel builds)
1603 --disable-libintl i18n support (libintl)
1604 --disable-perl do not build the perl modules
1605 --enable-perl-site-install by default the rrdtool perl modules are installed
1606 together with rrdtool in $prefix/lib/perl. You have to
1607 put a 'use lib qw($prefix/lib/perl)' into your scripts
1608 when you want to use them. When you set this option
1609 the perl modules will get installed wherever
1610 your perl setup thinks it is best.
1611 --disable-ruby do not build the ruby modules
1612 --enable-ruby-site-install by default the rrdtool ruby modules are installed
1613 together with rrdtool in $prefix/lib/ruby. You have to
1614 add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1615 for ruby to find the RRD.so file.
1616 --disable-tcl do not build the tcl modules
1617 --enable-tcl-site install the tcl extension in the tcl tree
1618 --disable-python do not build the python modules
1620 Optional Packages:
1621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1623 --with-rrd-default-font=OPTIONS set the full path to your default font.
1624 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1625 --with-pic try to use only PIC/non-PIC objects [default=use
1626 both]
1627 --with-tags[=TAGS] include additional configurations [automatic]
1628 --with-perl-options=OPTIONS options to pass on command-line when
1629 generating Makefile from Makefile.PL. If you set this
1630 option, interesting things may happen unless you know
1631 what you are doing!
1632 --with-ruby-options=OPTIONS options to pass on command-line when
1633 generating Makefile from extconf.rb. If you set this
1634 option, interesting things may happen unless you know
1635 what you are doing!
1636 --with-tcllib=DIR location of the tclConfig.sh
1638 Some influential environment variables:
1639 RRDGRAPH_YLEGEND_ANGLE
1640 Vertical label angle: -90.0 (default) or 90.0
1641 CC C compiler command
1642 CFLAGS C compiler flags
1643 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1644 nonstandard directory <lib dir>
1645 LIBS libraries to pass to the linker, e.g. -l<library>
1646 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1647 you have headers in a nonstandard directory <include dir>
1648 CPP C preprocessor
1649 CXX C++ compiler command
1650 CXXFLAGS C++ compiler flags
1651 CXXCPP C++ preprocessor
1652 F77 Fortran 77 compiler command
1653 FFLAGS Fortran 77 compiler flags
1654 PERLCC [] C compiler for Perl modules
1655 PERLCCFLAGS [] CC flags for Perl modules
1656 PERLLD [same], [as], [PERLCC] Linker for Perl modules
1657 PERLLDFLAGS [] LD flags for Perl modules
1658 RRDDOCDIR [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1660 Use these variables to override the choices made by `configure' or to help
1661 it to find libraries and programs with nonstandard names/locations.
1663 _ACEOF
1664 ac_status=$?
1665 fi
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670 test -d "$ac_dir" || continue
1671 ac_builddir=.
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *)
1676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1689 case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
1718 fi
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722 cat <<\_ACEOF
1723 rrdtool configure 1.3rc4
1724 generated by GNU Autoconf 2.61
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1730 _ACEOF
1731 exit
1732 fi
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1737 It was created by rrdtool $as_me 1.3rc4, which was
1738 generated by GNU Autoconf 2.61. Invocation command line was
1740 $ $0 $@
1742 _ACEOF
1743 exec 5>>config.log
1744 {
1745 cat <<_ASUNAME
1746 ## --------- ##
1747 ## Platform. ##
1748 ## --------- ##
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1767 _ASUNAME
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1771 do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 echo "PATH: $as_dir"
1775 done
1776 IFS=$as_save_IFS
1778 } >&5
1780 cat >&5 <<_ACEOF
1783 ## ----------- ##
1784 ## Core tests. ##
1785 ## ----------- ##
1787 _ACEOF
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_configure_args=
1796 ac_configure_args0=
1797 ac_configure_args1=
1798 ac_must_keep_next=false
1799 for ac_pass in 1 2
1800 do
1801 for ac_arg
1802 do
1803 case $ac_arg in
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1807 continue ;;
1808 *\'*)
1809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 case $ac_pass in
1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813 2)
1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1817 else
1818 case $ac_arg in
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 esac
1826 ;;
1827 -* ) ac_must_keep_next=true ;;
1828 esac
1829 fi
1830 ac_configure_args="$ac_configure_args '$ac_arg'"
1831 ;;
1832 esac
1833 done
1834 done
1835 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1845 {
1846 echo
1848 cat <<\_ASBOX
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1852 _ASBOX
1853 echo
1854 # The following way of writing the cache mishandles newlines in values,
1855 (
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
1861 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1862 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
1866 *) $as_unset $ac_var ;;
1867 esac ;;
1868 esac
1869 done
1870 (set) 2>&1 |
1871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1872 *${as_nl}ac_space=\ *)
1873 sed -n \
1874 "s/'\''/'\''\\\\'\'''\''/g;
1875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1876 ;; #(
1877 *)
1878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1879 ;;
1880 esac |
1881 sort
1882 )
1883 echo
1885 cat <<\_ASBOX
1886 ## ----------------- ##
1887 ## Output variables. ##
1888 ## ----------------- ##
1889 _ASBOX
1890 echo
1891 for ac_var in $ac_subst_vars
1892 do
1893 eval ac_val=\$$ac_var
1894 case $ac_val in
1895 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 esac
1897 echo "$ac_var='\''$ac_val'\''"
1898 done | sort
1899 echo
1901 if test -n "$ac_subst_files"; then
1902 cat <<\_ASBOX
1903 ## ------------------- ##
1904 ## File substitutions. ##
1905 ## ------------------- ##
1906 _ASBOX
1907 echo
1908 for ac_var in $ac_subst_files
1909 do
1910 eval ac_val=\$$ac_var
1911 case $ac_val in
1912 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 esac
1914 echo "$ac_var='\''$ac_val'\''"
1915 done | sort
1916 echo
1917 fi
1919 if test -s confdefs.h; then
1920 cat <<\_ASBOX
1921 ## ----------- ##
1922 ## confdefs.h. ##
1923 ## ----------- ##
1924 _ASBOX
1925 echo
1926 cat confdefs.h
1927 echo
1928 fi
1929 test "$ac_signal" != 0 &&
1930 echo "$as_me: caught signal $ac_signal"
1931 echo "$as_me: exit $exit_status"
1932 } >&5
1933 rm -f core *.core core.conftest.* &&
1934 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1935 exit $exit_status
1936 ' 0
1937 for ac_signal in 1 2 13 15; do
1938 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1939 done
1940 ac_signal=0
1942 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1943 rm -f -r conftest* confdefs.h
1945 # Predefined preprocessor variables.
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_NAME "$PACKAGE_NAME"
1949 _ACEOF
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954 _ACEOF
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1959 _ACEOF
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_STRING "$PACKAGE_STRING"
1964 _ACEOF
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1969 _ACEOF
1972 # Let the site file select an alternate cache file if it wants to.
1973 # Prefer explicitly selected file to automatically selected ones.
1974 if test -n "$CONFIG_SITE"; then
1975 set x "$CONFIG_SITE"
1976 elif test "x$prefix" != xNONE; then
1977 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1978 else
1979 set x "$ac_default_prefix/share/config.site" \
1980 "$ac_default_prefix/etc/config.site"
1981 fi
1982 shift
1983 for ac_site_file
1984 do
1985 if test -r "$ac_site_file"; then
1986 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1987 echo "$as_me: loading site script $ac_site_file" >&6;}
1988 sed 's/^/| /' "$ac_site_file" >&5
1989 . "$ac_site_file"
1990 fi
1991 done
1993 if test -r "$cache_file"; then
1994 # Some versions of bash will fail to source /dev/null (special
1995 # files actually), so we avoid doing that.
1996 if test -f "$cache_file"; then
1997 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1998 echo "$as_me: loading cache $cache_file" >&6;}
1999 case $cache_file in
2000 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2001 *) . "./$cache_file";;
2002 esac
2003 fi
2004 else
2005 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2006 echo "$as_me: creating cache $cache_file" >&6;}
2007 >$cache_file
2008 fi
2010 # Check that the precious variables saved in the cache have kept the same
2011 # value.
2012 ac_cache_corrupted=false
2013 for ac_var in $ac_precious_vars; do
2014 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2015 eval ac_new_set=\$ac_env_${ac_var}_set
2016 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2017 eval ac_new_val=\$ac_env_${ac_var}_value
2018 case $ac_old_set,$ac_new_set in
2019 set,)
2020 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2021 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2022 ac_cache_corrupted=: ;;
2023 ,set)
2024 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2025 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2027 ,);;
2028 *)
2029 if test "x$ac_old_val" != "x$ac_new_val"; then
2030 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2031 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2032 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2033 echo "$as_me: former value: $ac_old_val" >&2;}
2034 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2035 echo "$as_me: current value: $ac_new_val" >&2;}
2036 ac_cache_corrupted=:
2037 fi;;
2038 esac
2039 # Pass precious variables to config.status.
2040 if test "$ac_new_set" = set; then
2041 case $ac_new_val in
2042 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 *) ac_arg=$ac_var=$ac_new_val ;;
2044 esac
2045 case " $ac_configure_args " in
2046 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2047 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2048 esac
2049 fi
2050 done
2051 if $ac_cache_corrupted; then
2052 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2053 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2054 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2055 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2056 { (exit 1); exit 1; }; }
2057 fi
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091 NUMVERS=1.299908051800
2094 LIBVERS=3:2:1
2097 ac_aux_dir=
2098 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2099 if test -f "$ac_dir/install-sh"; then
2100 ac_aux_dir=$ac_dir
2101 ac_install_sh="$ac_aux_dir/install-sh -c"
2102 break
2103 elif test -f "$ac_dir/install.sh"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/install.sh -c"
2106 break
2107 elif test -f "$ac_dir/shtool"; then
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/shtool install -c"
2110 break
2111 fi
2112 done
2113 if test -z "$ac_aux_dir"; then
2114 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2115 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2116 { (exit 1); exit 1; }; }
2117 fi
2119 # These three variables are undocumented and unsupported,
2120 # and are intended to be withdrawn in a future Autoconf release.
2121 # They can cause serious problems if a builder's source tree is in a directory
2122 # whose full name contains unusual characters.
2123 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2124 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2125 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2128 # Make sure we can run config.sub.
2129 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2130 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2131 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2132 { (exit 1); exit 1; }; }
2134 { echo "$as_me:$LINENO: checking build system type" >&5
2135 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_build+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 ac_build_alias=$build_alias
2140 test "x$ac_build_alias" = x &&
2141 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2142 test "x$ac_build_alias" = x &&
2143 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2144 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2145 { (exit 1); exit 1; }; }
2146 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2147 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2148 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2149 { (exit 1); exit 1; }; }
2151 fi
2152 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2153 echo "${ECHO_T}$ac_cv_build" >&6; }
2154 case $ac_cv_build in
2155 *-*-*) ;;
2156 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2157 echo "$as_me: error: invalid value of canonical build" >&2;}
2158 { (exit 1); exit 1; }; };;
2159 esac
2160 build=$ac_cv_build
2161 ac_save_IFS=$IFS; IFS='-'
2162 set x $ac_cv_build
2163 shift
2164 build_cpu=$1
2165 build_vendor=$2
2166 shift; shift
2167 # Remember, the first character of IFS is used to create $*,
2168 # except with old shells:
2169 build_os=$*
2170 IFS=$ac_save_IFS
2171 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2174 { echo "$as_me:$LINENO: checking host system type" >&5
2175 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2176 if test "${ac_cv_host+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 if test "x$host_alias" = x; then
2180 ac_cv_host=$ac_cv_build
2181 else
2182 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2183 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2184 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2185 { (exit 1); exit 1; }; }
2186 fi
2188 fi
2189 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2190 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 case $ac_cv_host in
2192 *-*-*) ;;
2193 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2194 echo "$as_me: error: invalid value of canonical host" >&2;}
2195 { (exit 1); exit 1; }; };;
2196 esac
2197 host=$ac_cv_host
2198 ac_save_IFS=$IFS; IFS='-'
2199 set x $ac_cv_host
2200 shift
2201 host_cpu=$1
2202 host_vendor=$2
2203 shift; shift
2204 # Remember, the first character of IFS is used to create $*,
2205 # except with old shells:
2206 host_os=$*
2207 IFS=$ac_save_IFS
2208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2211 { echo "$as_me:$LINENO: checking target system type" >&5
2212 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2213 if test "${ac_cv_target+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 if test "x$target_alias" = x; then
2217 ac_cv_target=$ac_cv_host
2218 else
2219 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2220 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2221 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2222 { (exit 1); exit 1; }; }
2223 fi
2225 fi
2226 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2227 echo "${ECHO_T}$ac_cv_target" >&6; }
2228 case $ac_cv_target in
2229 *-*-*) ;;
2230 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2231 echo "$as_me: error: invalid value of canonical target" >&2;}
2232 { (exit 1); exit 1; }; };;
2233 esac
2234 target=$ac_cv_target
2235 ac_save_IFS=$IFS; IFS='-'
2236 set x $ac_cv_target
2237 shift
2238 target_cpu=$1
2239 target_vendor=$2
2240 shift; shift
2241 # Remember, the first character of IFS is used to create $*,
2242 # except with old shells:
2243 target_os=$*
2244 IFS=$ac_save_IFS
2245 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2248 # The aliases save the names the user supplied, while $host etc.
2249 # will get canonicalized.
2250 test -n "$target_alias" &&
2251 test "$program_prefix$program_suffix$program_transform_name" = \
2252 NONENONEs,x,x, &&
2253 program_prefix=${target_alias}-
2254 am__api_version="1.9"
2255 # Find a good install program. We prefer a C program (faster),
2256 # so one script is as good as another. But avoid the broken or
2257 # incompatible versions:
2258 # SysV /etc/install, /usr/sbin/install
2259 # SunOS /usr/etc/install
2260 # IRIX /sbin/install
2261 # AIX /bin/install
2262 # AmigaOS /C/install, which installs bootblocks on floppy discs
2263 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2264 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2265 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2266 # OS/2's system install, which has a completely different semantic
2267 # ./install, which can be erroneously created by make from ./install.sh.
2268 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2269 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2270 if test -z "$INSTALL"; then
2271 if test "${ac_cv_path_install+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 # Account for people who put trailing slashes in PATH elements.
2280 case $as_dir/ in
2281 ./ | .// | /cC/* | \
2282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2283 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2284 /usr/ucb/* ) ;;
2285 *)
2286 # OSF1 and SCO ODT 3.0 have their own names for install.
2287 # Don't use installbsd from OSF since it installs stuff as root
2288 # by default.
2289 for ac_prog in ginstall scoinst install; do
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2292 if test $ac_prog = install &&
2293 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294 # AIX install. It has an incompatible calling convention.
2295 :
2296 elif test $ac_prog = install &&
2297 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298 # program-specific install script used by HP pwplus--don't use.
2299 :
2300 else
2301 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302 break 3
2303 fi
2304 fi
2305 done
2306 done
2307 ;;
2308 esac
2309 done
2310 IFS=$as_save_IFS
2313 fi
2314 if test "${ac_cv_path_install+set}" = set; then
2315 INSTALL=$ac_cv_path_install
2316 else
2317 # As a last resort, use the slow shell script. Don't cache a
2318 # value for INSTALL within a source directory, because that will
2319 # break other packages using the cache if that directory is
2320 # removed, or if the value is a relative name.
2321 INSTALL=$ac_install_sh
2322 fi
2323 fi
2324 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2325 echo "${ECHO_T}$INSTALL" >&6; }
2327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2328 # It thinks the first close brace ends the variable substitution.
2329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2335 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2336 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2337 # Just in case
2338 sleep 1
2339 echo timestamp > conftest.file
2340 # Do `set' in a subshell so we don't clobber the current shell's
2341 # arguments. Must try -L first in case configure is actually a
2342 # symlink; some systems play weird games with the mod time of symlinks
2343 # (eg FreeBSD returns the mod time of the symlink's containing
2344 # directory).
2345 if (
2346 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2347 if test "$*" = "X"; then
2348 # -L didn't work.
2349 set X `ls -t $srcdir/configure conftest.file`
2350 fi
2351 rm -f conftest.file
2352 if test "$*" != "X $srcdir/configure conftest.file" \
2353 && test "$*" != "X conftest.file $srcdir/configure"; then
2355 # If neither matched, then we have a broken ls. This can happen
2356 # if, for instance, CONFIG_SHELL is bash and it inherits a
2357 # broken ls alias from the environment. This has actually
2358 # happened. Such a system could not be considered "sane".
2359 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2360 alias in your environment" >&5
2361 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2362 alias in your environment" >&2;}
2363 { (exit 1); exit 1; }; }
2364 fi
2366 test "$2" = conftest.file
2367 )
2368 then
2369 # Ok.
2370 :
2371 else
2372 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2373 Check your system clock" >&5
2374 echo "$as_me: error: newly created file is older than distributed files!
2375 Check your system clock" >&2;}
2376 { (exit 1); exit 1; }; }
2377 fi
2378 { echo "$as_me:$LINENO: result: yes" >&5
2379 echo "${ECHO_T}yes" >&6; }
2380 test "$program_prefix" != NONE &&
2381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382 # Use a double $ so make ignores it.
2383 test "$program_suffix" != NONE &&
2384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385 # Double any \ or $. echo might interpret backslashes.
2386 # By default was `s,x,x', remove it if useless.
2387 cat <<\_ACEOF >conftest.sed
2388 s/[\\$]/&&/g;s/;s,x,x,$//
2389 _ACEOF
2390 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2391 rm -f conftest.sed
2393 # expand $ac_aux_dir to an absolute path
2394 am_aux_dir=`cd $ac_aux_dir && pwd`
2396 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2397 # Use eval to expand $SHELL
2398 if eval "$MISSING --run true"; then
2399 am_missing_run="$MISSING --run "
2400 else
2401 am_missing_run=
2402 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2403 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2404 fi
2406 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2407 # We used to keeping the `.' as first argument, in order to
2408 # allow $(mkdir_p) to be used without argument. As in
2409 # $(mkdir_p) $(somedir)
2410 # where $(somedir) is conditionally defined. However this is wrong
2411 # for two reasons:
2412 # 1. if the package is installed by a user who cannot write `.'
2413 # make install will fail,
2414 # 2. the above comment should most certainly read
2415 # $(mkdir_p) $(DESTDIR)$(somedir)
2416 # so it does not work when $(somedir) is undefined and
2417 # $(DESTDIR) is not.
2418 # To support the latter case, we have to write
2419 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2420 # so the `.' trick is pointless.
2421 mkdir_p='mkdir -p --'
2422 else
2423 # On NextStep and OpenStep, the `mkdir' command does not
2424 # recognize any option. It will interpret all options as
2425 # directories to create, and then abort because `.' already
2426 # exists.
2427 for d in ./-p ./--version;
2428 do
2429 test -d $d && rmdir $d
2430 done
2431 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2432 if test -f "$ac_aux_dir/mkinstalldirs"; then
2433 mkdir_p='$(mkinstalldirs)'
2434 else
2435 mkdir_p='$(install_sh) -d'
2436 fi
2437 fi
2439 for ac_prog in gawk mawk nawk awk
2440 do
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_AWK+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 if test -n "$AWK"; then
2449 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_AWK="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462 done
2463 done
2464 IFS=$as_save_IFS
2466 fi
2467 fi
2468 AWK=$ac_cv_prog_AWK
2469 if test -n "$AWK"; then
2470 { echo "$as_me:$LINENO: result: $AWK" >&5
2471 echo "${ECHO_T}$AWK" >&6; }
2472 else
2473 { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2475 fi
2478 test -n "$AWK" && break
2479 done
2481 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2483 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2484 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 cat >conftest.make <<\_ACEOF
2488 SHELL = /bin/sh
2489 all:
2490 @echo '@@@%%%=$(MAKE)=@@@%%%'
2491 _ACEOF
2492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2493 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2494 *@@@%%%=?*=@@@%%%*)
2495 eval ac_cv_prog_make_${ac_make}_set=yes;;
2496 *)
2497 eval ac_cv_prog_make_${ac_make}_set=no;;
2498 esac
2499 rm -f conftest.make
2500 fi
2501 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2502 { echo "$as_me:$LINENO: result: yes" >&5
2503 echo "${ECHO_T}yes" >&6; }
2504 SET_MAKE=
2505 else
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2508 SET_MAKE="MAKE=${MAKE-make}"
2509 fi
2511 rm -rf .tst 2>/dev/null
2512 mkdir .tst 2>/dev/null
2513 if test -d .tst; then
2514 am__leading_dot=.
2515 else
2516 am__leading_dot=_
2517 fi
2518 rmdir .tst 2>/dev/null
2520 # test to see if srcdir already configured
2521 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2522 test -f $srcdir/config.status; then
2523 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2524 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2525 { (exit 1); exit 1; }; }
2526 fi
2528 # test whether we have cygpath
2529 if test -z "$CYGPATH_W"; then
2530 if (cygpath --version) >/dev/null 2>/dev/null; then
2531 CYGPATH_W='cygpath -w'
2532 else
2533 CYGPATH_W=echo
2534 fi
2535 fi
2538 # Define the identity of the package.
2539 PACKAGE='rrdtool'
2540 VERSION='1.3rc4'
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE "$PACKAGE"
2545 _ACEOF
2548 cat >>confdefs.h <<_ACEOF
2549 #define VERSION "$VERSION"
2550 _ACEOF
2552 # Some tools Automake needs.
2554 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2557 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2560 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2563 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2566 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2568 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2570 # Installed binaries are usually stripped using `strip' when the user
2571 # run `make install-strip'. However `strip' might not be the right
2572 # tool to use in cross-compilation environments, therefore Automake
2573 # will honor the `STRIP' environment variable to overrule this program.
2574 if test "$cross_compiling" != no; then
2575 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}strip; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_STRIP+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if test -n "$STRIP"; then
2584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597 done
2598 done
2599 IFS=$as_save_IFS
2601 fi
2602 fi
2603 STRIP=$ac_cv_prog_STRIP
2604 if test -n "$STRIP"; then
2605 { echo "$as_me:$LINENO: result: $STRIP" >&5
2606 echo "${ECHO_T}$STRIP" >&6; }
2607 else
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2610 fi
2613 fi
2614 if test -z "$ac_cv_prog_STRIP"; then
2615 ac_ct_STRIP=$STRIP
2616 # Extract the first word of "strip", so it can be a program name with args.
2617 set dummy strip; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 if test -n "$ac_ct_STRIP"; then
2624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_ac_ct_STRIP="strip"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2641 fi
2642 fi
2643 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2644 if test -n "$ac_ct_STRIP"; then
2645 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2646 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2647 else
2648 { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2650 fi
2652 if test "x$ac_ct_STRIP" = x; then
2653 STRIP=":"
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656 yes:)
2657 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2658 whose name does not start with the host triplet. If you think this
2659 configuration is useful to you, please write to autoconf@gnu.org." >&5
2660 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2661 whose name does not start with the host triplet. If you think this
2662 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2663 ac_tool_warned=yes ;;
2664 esac
2665 STRIP=$ac_ct_STRIP
2666 fi
2667 else
2668 STRIP="$ac_cv_prog_STRIP"
2669 fi
2671 fi
2672 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2674 # We need awk for the "check" target. The system "awk" is bad on
2675 # some platforms.
2676 # Always define AMTAR for backward compatibility.
2678 AMTAR=${AMTAR-"${am_missing_run}tar"}
2680 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2686 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2687 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2688 # Check whether --enable-maintainer-mode was given.
2689 if test "${enable_maintainer_mode+set}" = set; then
2690 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2691 else
2692 USE_MAINTAINER_MODE=no
2693 fi
2695 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2696 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2699 if test $USE_MAINTAINER_MODE = yes; then
2700 MAINTAINER_MODE_TRUE=
2701 MAINTAINER_MODE_FALSE='#'
2702 else
2703 MAINTAINER_MODE_TRUE='#'
2704 MAINTAINER_MODE_FALSE=
2705 fi
2707 MAINT=$MAINTAINER_MODE_TRUE
2711 ac_config_headers="$ac_config_headers rrd_config.h"
2733 cat >>confdefs.h <<_ACEOF
2734 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2735 _ACEOF
2738 # Check whether --enable-rrdcgi was given.
2739 if test "${enable_rrdcgi+set}" = set; then
2740 enableval=$enable_rrdcgi;
2741 else
2742 enable_rrdcgi=yes
2743 fi
2747 # Check whether --with-rrd-default-font was given.
2748 if test "${with_rrd_default_font+set}" = set; then
2749 withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2750 else
2752 if test -d ${WINDIR:-nodir}/cour.ttf ; then
2753 RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2754 else
2755 RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
2756 fi
2758 fi
2761 # Check whether --enable-mmap was given.
2762 if test "${enable_mmap+set}" = set; then
2763 enableval=$enable_mmap;
2764 else
2765 enable_mmap=yes
2766 fi
2769 # Check whether --enable-pthread was given.
2770 if test "${enable_pthread+set}" = set; then
2771 enableval=$enable_pthread;
2772 else
2773 enable_pthread=yes
2774 fi
2777 # Check whether --enable-static-programs was given.
2778 if test "${enable_static_programs+set}" = set; then
2779 enableval=$enable_static_programs; case "${enableval}" in
2780 yes) staticprogs=yes ;;
2781 no) staticprogs=no ;;
2782 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
2783 echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
2784 { (exit 1); exit 1; }; } ;;
2785 esac
2786 else
2787 staticprogs=no
2788 fi
2792 if test "x$staticprogs" = "xyes"; then
2793 STATIC_PROGRAMS_TRUE=
2794 STATIC_PROGRAMS_FALSE='#'
2795 else
2796 STATIC_PROGRAMS_TRUE='#'
2797 STATIC_PROGRAMS_FALSE=
2798 fi
2803 case $TERM in
2804 # for the most important terminal types we directly know the sequences
2805 xterm|xterm*|vt220|vt220*)
2806 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2807 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2808 ;;
2809 vt100|vt100*|cygwin)
2810 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2811 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2812 ;;
2813 *)
2814 T_MD=''
2815 T_ME=''
2816 ;;
2817 esac
2818 { echo "$as_me:$LINENO: result: " >&5
2819 echo "${ECHO_T}" >&6; }
2820 { echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2821 echo "${ECHO_T}${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2825 ac_ext=c
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2856 fi
2857 fi
2858 CC=$ac_cv_prog_CC
2859 if test -n "$CC"; then
2860 { echo "$as_me:$LINENO: result: $CC" >&5
2861 echo "${ECHO_T}$CC" >&6; }
2862 else
2863 { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2865 fi
2868 fi
2869 if test -z "$ac_cv_prog_CC"; then
2870 ac_ct_CC=$CC
2871 # Extract the first word of "gcc", so it can be a program name with args.
2872 set dummy gcc; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_ac_ct_CC="gcc"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2896 fi
2897 fi
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901 echo "${ECHO_T}$ac_ct_CC" >&6; }
2902 else
2903 { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2905 fi
2907 if test "x$ac_ct_CC" = x; then
2908 CC=""
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911 yes:)
2912 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2913 whose name does not start with the host triplet. If you think this
2914 configuration is useful to you, please write to autoconf@gnu.org." >&5
2915 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2916 whose name does not start with the host triplet. If you think this
2917 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920 CC=$ac_ct_CC
2921 fi
2922 else
2923 CC="$ac_cv_prog_CC"
2924 fi
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}cc; ac_word=$2
2930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { echo "$as_me:$LINENO: result: $CC" >&5
2958 echo "${ECHO_T}$CC" >&6; }
2959 else
2960 { echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6; }
2962 fi
2965 fi
2966 fi
2967 if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969 set dummy cc; ac_word=$2
2970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 ac_prog_rejected=no
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2987 ac_prog_rejected=yes
2988 continue
2989 fi
2990 ac_cv_prog_CC="cc"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2998 if test $ac_prog_rejected = yes; then
2999 # We found a bogon in the path, so make sure we never use it.
3000 set dummy $ac_cv_prog_CC
3001 shift
3002 if test $# != 0; then
3003 # We chose a different compiler from the bogus one.
3004 # However, it has the same basename, so the bogon will be chosen
3005 # first if we set CC to just the basename; use the full file name.
3006 shift
3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 fi
3009 fi
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { echo "$as_me:$LINENO: result: $CC" >&5
3015 echo "${ECHO_T}$CC" >&6; }
3016 else
3017 { echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6; }
3019 fi
3022 fi
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 for ac_prog in cl.exe
3026 do
3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3031 if test "${ac_cv_prog_CC+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { echo "$as_me:$LINENO: result: $CC" >&5
3057 echo "${ECHO_T}$CC" >&6; }
3058 else
3059 { echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6; }
3061 fi
3064 test -n "$CC" && break
3065 done
3066 fi
3067 if test -z "$CC"; then
3068 ac_ct_CC=$CC
3069 for ac_prog in cl.exe
3070 do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3096 fi
3097 fi
3098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099 if test -n "$ac_ct_CC"; then
3100 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3101 echo "${ECHO_T}$ac_ct_CC" >&6; }
3102 else
3103 { echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6; }
3105 fi
3108 test -n "$ac_ct_CC" && break
3109 done
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3117 whose name does not start with the host triplet. If you think this
3118 configuration is useful to you, please write to autoconf@gnu.org." >&5
3119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3120 whose name does not start with the host triplet. If you think this
3121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124 CC=$ac_ct_CC
3125 fi
3126 fi
3128 fi
3131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details." >&5
3133 echo "$as_me: error: no acceptable C compiler found in \$PATH
3134 See \`config.log' for more details." >&2;}
3135 { (exit 1); exit 1; }; }
3137 # Provide some information about the compiler.
3138 echo "$as_me:$LINENO: checking for C compiler version" >&5
3139 ac_compiler=`set X $ac_compile; echo $2`
3140 { (ac_try="$ac_compiler --version >&5"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compiler --version >&5") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }
3150 { (ac_try="$ac_compiler -v >&5"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compiler -v >&5") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
3160 { (ac_try="$ac_compiler -V >&5"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compiler -V >&5") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3178 int
3179 main ()
3180 {
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 ac_clean_files_save=$ac_clean_files
3187 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3188 # Try to create an executable without -o first, disregard a.out.
3189 # It will help us diagnose broken compilers, and finding out an intuition
3190 # of exeext.
3191 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3192 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3193 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194 #
3195 # List of possible output files, starting from the most likely.
3196 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3197 # only as a last resort. b.out is created by i960 compilers.
3198 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3199 #
3200 # The IRIX 6 linker writes into existing files which may not be
3201 # executable, retaining their permissions. Remove them first so a
3202 # subsequent execution test works.
3203 ac_rmfiles=
3204 for ac_file in $ac_files
3205 do
3206 case $ac_file in
3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3208 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3209 esac
3210 done
3211 rm -f $ac_rmfiles
3213 if { (ac_try="$ac_link_default"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_link_default") 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; then
3223 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3224 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3225 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3226 # so that the user can short-circuit this test for compilers unknown to
3227 # Autoconf.
3228 for ac_file in $ac_files ''
3229 do
3230 test -f "$ac_file" || continue
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3233 ;;
3234 [ab].out )
3235 # We found the default executable, but exeext='' is most
3236 # certainly right.
3237 break;;
3238 *.* )
3239 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3240 then :; else
3241 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242 fi
3243 # We set ac_cv_exeext here because the later test for it is not
3244 # safe: cross compilers may not add the suffix if given an `-o'
3245 # argument, so we may need to know it at that point already.
3246 # Even if this section looks crufty: it has the advantage of
3247 # actually working.
3248 break;;
3249 * )
3250 break;;
3251 esac
3252 done
3253 test "$ac_cv_exeext" = no && ac_cv_exeext=
3255 else
3256 ac_file=''
3257 fi
3259 { echo "$as_me:$LINENO: result: $ac_file" >&5
3260 echo "${ECHO_T}$ac_file" >&6; }
3261 if test -z "$ac_file"; then
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3266 See \`config.log' for more details." >&5
3267 echo "$as_me: error: C compiler cannot create executables
3268 See \`config.log' for more details." >&2;}
3269 { (exit 77); exit 77; }; }
3270 fi
3272 ac_exeext=$ac_cv_exeext
3274 # Check that the compiler produces executables we can run. If not, either
3275 # the compiler is broken, or we cross compile.
3276 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3277 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3278 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3279 # If not cross compiling, check that we can run a simple program.
3280 if test "$cross_compiling" != yes; then
3281 if { ac_try='./$ac_file'
3282 { (case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_try") 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 cross_compiling=no
3292 else
3293 if test "$cross_compiling" = maybe; then
3294 cross_compiling=yes
3295 else
3296 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3297 If you meant to cross compile, use \`--host'.
3298 See \`config.log' for more details." >&5
3299 echo "$as_me: error: cannot run C compiled programs.
3300 If you meant to cross compile, use \`--host'.
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }
3303 fi
3304 fi
3305 fi
3306 { echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6; }
3309 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3310 ac_clean_files=$ac_clean_files_save
3311 # Check that the compiler produces executables we can run. If not, either
3312 # the compiler is broken, or we cross compile.
3313 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3314 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3315 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3316 echo "${ECHO_T}$cross_compiling" >&6; }
3318 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3319 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3320 if { (ac_try="$ac_link"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_link") 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; then
3330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3332 # work properly (i.e., refer to `conftest.exe'), while it won't with
3333 # `rm'.
3334 for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 break;;
3340 * ) break;;
3341 esac
3342 done
3343 else
3344 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3347 See \`config.log' for more details." >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3351 rm -f conftest$ac_cv_exeext
3352 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3353 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3355 rm -f conftest.$ac_ext
3356 EXEEXT=$ac_cv_exeext
3357 ac_exeext=$EXEEXT
3358 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3359 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3360 if test "${ac_cv_objext+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3370 int
3371 main ()
3372 {
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.o conftest.obj
3379 if { (ac_try="$ac_compile"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_compile") 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; then
3389 for ac_file in conftest.o conftest.obj conftest.*; do
3390 test -f "$ac_file" || continue;
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3393 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3394 break;;
3395 esac
3396 done
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3402 See \`config.log' for more details." >&5
3403 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3404 See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }
3406 fi
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409 fi
3410 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3411 echo "${ECHO_T}$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3413 ac_objext=$OBJEXT
3414 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3415 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3416 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3426 int
3427 main ()
3428 {
3429 #ifndef __GNUC__
3430 choke me
3431 #endif
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_compile") 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } && {
3451 test -z "$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3454 ac_compiler_gnu=yes
3455 else
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 ac_compiler_gnu=no
3460 fi
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3465 fi
3466 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3467 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3468 GCC=`test $ac_compiler_gnu = yes && echo yes`
3469 ac_test_CFLAGS=${CFLAGS+set}
3470 ac_save_CFLAGS=$CFLAGS
3471 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3472 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_cc_g+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 ac_save_c_werror_flag=$ac_c_werror_flag
3477 ac_c_werror_flag=yes
3478 ac_cv_prog_cc_g=no
3479 CFLAGS="-g"
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3487 int
3488 main ()
3489 {
3491 ;
3492 return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compile") 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest.$ac_objext; then
3512 ac_cv_prog_cc_g=yes
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 CFLAGS=""
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. */
3525 int
3526 main ()
3527 {
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_compile") 2>conftest.er1
3541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } && {
3547 test -z "$ac_c_werror_flag" ||
3548 test ! -s conftest.err
3549 } && test -s conftest.$ac_objext; then
3550 :
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3556 CFLAGS="-g"
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h. */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3564 int
3565 main ()
3566 {
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } && {
3586 test -z "$ac_c_werror_flag" ||
3587 test ! -s conftest.err
3588 } && test -s conftest.$ac_objext; then
3589 ac_cv_prog_cc_g=yes
3590 else
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3595 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3605 fi
3606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3608 if test "$ac_test_CFLAGS" = set; then
3609 CFLAGS=$ac_save_CFLAGS
3610 elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3612 CFLAGS="-g -O2"
3613 else
3614 CFLAGS="-g"
3615 fi
3616 else
3617 if test "$GCC" = yes; then
3618 CFLAGS="-O2"
3619 else
3620 CFLAGS=
3621 fi
3622 fi
3623 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3624 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3625 if test "${ac_cv_prog_cc_c89+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 ac_cv_prog_cc_c89=no
3629 ac_save_CC=$CC
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 #include <stdarg.h>
3637 #include <stdio.h>
3638 #include <sys/types.h>
3639 #include <sys/stat.h>
3640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3641 struct buf { int x; };
3642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643 static char *e (p, i)
3644 char **p;
3645 int i;
3646 {
3647 return p[i];
3648 }
3649 static char *f (char * (*g) (char **, int), char **p, ...)
3650 {
3651 char *s;
3652 va_list v;
3653 va_start (v,p);
3654 s = g (p, va_arg (v,int));
3655 va_end (v);
3656 return s;
3657 }
3659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3660 function prototypes and stuff, but not '\xHH' hex character constants.
3661 These don't provoke an error unfortunately, instead are silently treated
3662 as 'x'. The following induces an error, until -std is added to get
3663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3664 array size at least. It's necessary to write '\x00'==0 to get something
3665 that's true only with -std. */
3666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3668 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669 inside strings and character constants. */
3670 #define FOO(x) 'x'
3671 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3673 int test (int i, double x);
3674 struct s1 {int (*f) (int a);};
3675 struct s2 {int (*f) (double a);};
3676 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677 int argc;
3678 char **argv;
3679 int
3680 main ()
3681 {
3682 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689 do
3690 CC="$ac_save_CC $ac_arg"
3691 rm -f conftest.$ac_objext
3692 if { (ac_try="$ac_compile"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_compile") 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest.$ac_objext; then
3708 ac_cv_prog_cc_c89=$ac_arg
3709 else
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3714 fi
3716 rm -f core conftest.err conftest.$ac_objext
3717 test "x$ac_cv_prog_cc_c89" != "xno" && break
3718 done
3719 rm -f conftest.$ac_ext
3720 CC=$ac_save_CC
3722 fi
3723 # AC_CACHE_VAL
3724 case "x$ac_cv_prog_cc_c89" in
3725 x)
3726 { echo "$as_me:$LINENO: result: none needed" >&5
3727 echo "${ECHO_T}none needed" >&6; } ;;
3728 xno)
3729 { echo "$as_me:$LINENO: result: unsupported" >&5
3730 echo "${ECHO_T}unsupported" >&6; } ;;
3731 *)
3732 CC="$CC $ac_cv_prog_cc_c89"
3733 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3734 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3735 esac
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 DEPDIR="${am__leading_dot}deps"
3745 ac_config_commands="$ac_config_commands depfiles"
3748 am_make=${MAKE-make}
3749 cat > confinc << 'END'
3750 am__doit:
3751 @echo done
3752 .PHONY: am__doit
3753 END
3754 # If we don't find an include directive, just comment out the code.
3755 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3756 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3757 am__include="#"
3758 am__quote=
3759 _am_result=none
3760 # First try GNU make style include.
3761 echo "include confinc" > confmf
3762 # We grep out `Entering directory' and `Leaving directory'
3763 # messages which can occur if `w' ends up in MAKEFLAGS.
3764 # In particular we don't look at `^make:' because GNU make might
3765 # be invoked under some other name (usually "gmake"), in which
3766 # case it prints its new name instead of `make'.
3767 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3768 am__include=include
3769 am__quote=
3770 _am_result=GNU
3771 fi
3772 # Now try BSD make style include.
3773 if test "$am__include" = "#"; then
3774 echo '.include "confinc"' > confmf
3775 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3776 am__include=.include
3777 am__quote="\""
3778 _am_result=BSD
3779 fi
3780 fi
3783 { echo "$as_me:$LINENO: result: $_am_result" >&5
3784 echo "${ECHO_T}$_am_result" >&6; }
3785 rm -f confinc confmf
3787 # Check whether --enable-dependency-tracking was given.
3788 if test "${enable_dependency_tracking+set}" = set; then
3789 enableval=$enable_dependency_tracking;
3790 fi
3792 if test "x$enable_dependency_tracking" != xno; then
3793 am_depcomp="$ac_aux_dir/depcomp"
3794 AMDEPBACKSLASH='\'
3795 fi
3798 if test "x$enable_dependency_tracking" != xno; then
3799 AMDEP_TRUE=
3800 AMDEP_FALSE='#'
3801 else
3802 AMDEP_TRUE='#'
3803 AMDEP_FALSE=
3804 fi
3809 depcc="$CC" am_compiler_list=
3811 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3812 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3813 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817 # We make a subdir and do the tests there. Otherwise we can end up
3818 # making bogus files that we don't know about and never remove. For
3819 # instance it was reported that on HP-UX the gcc test will end up
3820 # making a dummy file named `D' -- because `-MD' means `put the output
3821 # in D'.
3822 mkdir conftest.dir
3823 # Copy depcomp to subdir because otherwise we won't find it if we're
3824 # using a relative directory.
3825 cp "$am_depcomp" conftest.dir
3826 cd conftest.dir
3827 # We will build objects and dependencies in a subdirectory because
3828 # it helps to detect inapplicable dependency modes. For instance
3829 # both Tru64's cc and ICC support -MD to output dependencies as a
3830 # side effect of compilation, but ICC will put the dependencies in
3831 # the current directory while Tru64 will put them in the object
3832 # directory.
3833 mkdir sub
3835 am_cv_CC_dependencies_compiler_type=none
3836 if test "$am_compiler_list" = ""; then
3837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3838 fi
3839 for depmode in $am_compiler_list; do
3840 # Setup a source with many dependencies, because some compilers
3841 # like to wrap large dependency lists on column 80 (with \), and
3842 # we should not choose a depcomp mode which is confused by this.
3843 #
3844 # We need to recreate these files for each test, as the compiler may
3845 # overwrite some of them when testing with obscure command lines.
3846 # This happens at least with the AIX C compiler.
3847 : > sub/conftest.c
3848 for i in 1 2 3 4 5 6; do
3849 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3850 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3851 # Solaris 8's {/usr,}/bin/sh.
3852 touch sub/conftst$i.h
3853 done
3854 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3856 case $depmode in
3857 nosideeffect)
3858 # after this tag, mechanisms are not by side-effect, so they'll
3859 # only be used when explicitly requested
3860 if test "x$enable_dependency_tracking" = xyes; then
3861 continue
3862 else
3863 break
3864 fi
3865 ;;
3866 none) break ;;
3867 esac
3868 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3869 # mode. It turns out that the SunPro C++ compiler does not properly
3870 # handle `-M -o', and we need to detect this.
3871 if depmode=$depmode \
3872 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3873 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3874 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3875 >/dev/null 2>conftest.err &&
3876 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3877 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3878 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3879 # icc doesn't choke on unknown options, it will just issue warnings
3880 # or remarks (even with -Werror). So we grep stderr for any message
3881 # that says an option was ignored or not supported.
3882 # When given -MP, icc 7.0 and 7.1 complain thusly:
3883 # icc: Command line warning: ignoring option '-M'; no argument required
3884 # The diagnosis changed in icc 8.0:
3885 # icc: Command line remark: option '-MP' not supported
3886 if (grep 'ignoring option' conftest.err ||
3887 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3888 am_cv_CC_dependencies_compiler_type=$depmode
3889 break
3890 fi
3891 fi
3892 done
3894 cd ..
3895 rm -rf conftest.dir
3896 else
3897 am_cv_CC_dependencies_compiler_type=none
3898 fi
3900 fi
3901 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3902 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3903 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3907 if
3908 test "x$enable_dependency_tracking" != xno \
3909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3910 am__fastdepCC_TRUE=
3911 am__fastdepCC_FALSE='#'
3912 else
3913 am__fastdepCC_TRUE='#'
3914 am__fastdepCC_FALSE=
3915 fi
3918 ac_ext=c
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3925 # On Suns, sometimes $CPP names a directory.
3926 if test -n "$CPP" && test -d "$CPP"; then
3927 CPP=
3928 fi
3929 if test -z "$CPP"; then
3930 if test "${ac_cv_prog_CPP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 # Double quotes because CPP needs to be expanded
3934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3935 do
3936 ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3938 do
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956 Syntax error
3957 _ACEOF
3958 if { (ac_try="$ac_cpp conftest.$ac_ext"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null && {
3971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 }; then
3974 :
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 # Broken: fails on valid input.
3980 continue
3981 fi
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if { (ac_try="$ac_cpp conftest.$ac_ext"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null && {
4008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 }; then
4011 # Broken: success on invalid input.
4012 continue
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 # Passes both tests.
4018 ac_preproc_ok=:
4019 break
4020 fi
4022 rm -f conftest.err conftest.$ac_ext
4024 done
4025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4026 rm -f conftest.err conftest.$ac_ext
4027 if $ac_preproc_ok; then
4028 break
4029 fi
4031 done
4032 ac_cv_prog_CPP=$CPP
4034 fi
4035 CPP=$ac_cv_prog_CPP
4036 else
4037 ac_cv_prog_CPP=$CPP
4038 fi
4039 { echo "$as_me:$LINENO: result: $CPP" >&5
4040 echo "${ECHO_T}$CPP" >&6; }
4041 ac_preproc_ok=false
4042 for ac_c_preproc_warn_flag in '' yes
4043 do
4044 # Use a header file that comes with gcc, so configuring glibc
4045 # with a fresh cross-compiler works.
4046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047 # <limits.h> exists even on freestanding compilers.
4048 # On the NeXT, cc -E runs the code through the compiler's parser,
4049 # not just through cpp. "Syntax error" is here to catch this case.
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #ifdef __STDC__
4057 # include <limits.h>
4058 #else
4059 # include <assert.h>
4060 #endif
4061 Syntax error
4062 _ACEOF
4063 if { (ac_try="$ac_cpp conftest.$ac_ext"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null && {
4076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 }; then
4079 :
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Broken: fails on valid input.
4085 continue
4086 fi
4088 rm -f conftest.err conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4099 _ACEOF
4100 if { (ac_try="$ac_cpp conftest.$ac_ext"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null && {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 }; then
4116 # Broken: success on invalid input.
4117 continue
4118 else
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 # Passes both tests.
4123 ac_preproc_ok=:
4124 break
4125 fi
4127 rm -f conftest.err conftest.$ac_ext
4129 done
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then
4133 :
4134 else
4135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4136 See \`config.log' for more details." >&5
4137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details." >&2;}
4139 { (exit 1); exit 1; }; }
4140 fi
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 # Check whether --enable-shared was given.
4149 if test "${enable_shared+set}" = set; then
4150 enableval=$enable_shared; p=${PACKAGE-default}
4151 case $enableval in
4152 yes) enable_shared=yes ;;
4153 no) enable_shared=no ;;
4154 *)
4155 enable_shared=no
4156 # Look at the argument we got. We use all the common list separators.
4157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4158 for pkg in $enableval; do
4159 IFS="$lt_save_ifs"
4160 if test "X$pkg" = "X$p"; then
4161 enable_shared=yes
4162 fi
4163 done
4164 IFS="$lt_save_ifs"
4165 ;;
4166 esac
4167 else
4168 enable_shared=yes
4169 fi
4172 # Check whether --enable-static was given.
4173 if test "${enable_static+set}" = set; then
4174 enableval=$enable_static; p=${PACKAGE-default}
4175 case $enableval in
4176 yes) enable_static=yes ;;
4177 no) enable_static=no ;;
4178 *)
4179 enable_static=no
4180 # Look at the argument we got. We use all the common list separators.
4181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4182 for pkg in $enableval; do
4183 IFS="$lt_save_ifs"
4184 if test "X$pkg" = "X$p"; then
4185 enable_static=yes
4186 fi
4187 done
4188 IFS="$lt_save_ifs"
4189 ;;
4190 esac
4191 else
4192 enable_static=yes
4193 fi
4196 # Check whether --enable-fast-install was given.
4197 if test "${enable_fast_install+set}" = set; then
4198 enableval=$enable_fast_install; p=${PACKAGE-default}
4199 case $enableval in
4200 yes) enable_fast_install=yes ;;
4201 no) enable_fast_install=no ;;
4202 *)
4203 enable_fast_install=no
4204 # Look at the argument we got. We use all the common list separators.
4205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4206 for pkg in $enableval; do
4207 IFS="$lt_save_ifs"
4208 if test "X$pkg" = "X$p"; then
4209 enable_fast_install=yes
4210 fi
4211 done
4212 IFS="$lt_save_ifs"
4213 ;;
4214 esac
4215 else
4216 enable_fast_install=yes
4217 fi
4220 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4221 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4222 if test "${lt_cv_path_SED+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225 # Loop through the user's path and test for sed and gsed.
4226 # Then use that list of sed's as ones to test for truncation.
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for lt_ac_prog in sed gsed; do
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4235 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4236 fi
4237 done
4238 done
4239 done
4240 lt_ac_max=0
4241 lt_ac_count=0
4242 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4243 # along with /bin/sed that truncates output.
4244 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4245 test ! -f $lt_ac_sed && continue
4246 cat /dev/null > conftest.in
4247 lt_ac_count=0
4248 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4249 # Check for GNU sed and select it if it is found.
4250 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4251 lt_cv_path_SED=$lt_ac_sed
4252 break
4253 fi
4254 while true; do
4255 cat conftest.in conftest.in >conftest.tmp
4256 mv conftest.tmp conftest.in
4257 cp conftest.in conftest.nl
4258 echo >>conftest.nl
4259 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4260 cmp -s conftest.out conftest.nl || break
4261 # 10000 chars as input seems more than enough
4262 test $lt_ac_count -gt 10 && break
4263 lt_ac_count=`expr $lt_ac_count + 1`
4264 if test $lt_ac_count -gt $lt_ac_max; then
4265 lt_ac_max=$lt_ac_count
4266 lt_cv_path_SED=$lt_ac_sed
4267 fi
4268 done
4269 done
4271 fi
4273 SED=$lt_cv_path_SED
4274 { echo "$as_me:$LINENO: result: $SED" >&5
4275 echo "${ECHO_T}$SED" >&6; }
4277 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4278 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4279 if test "${ac_cv_path_GREP+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 # Extract the first word of "grep ggrep" to use in msg output
4283 if test -z "$GREP"; then
4284 set dummy grep ggrep; ac_prog_name=$2
4285 if test "${ac_cv_path_GREP+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 ac_path_GREP_found=false
4289 # Loop through the user's path and test for each of PROGNAME-LIST
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292 do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_prog in grep ggrep; do
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4298 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4299 # Check for GNU ac_path_GREP and select it if it is found.
4300 # Check for GNU $ac_path_GREP
4301 case `"$ac_path_GREP" --version 2>&1` in
4302 *GNU*)
4303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4304 *)
4305 ac_count=0
4306 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4307 while :
4308 do
4309 cat "conftest.in" "conftest.in" >"conftest.tmp"
4310 mv "conftest.tmp" "conftest.in"
4311 cp "conftest.in" "conftest.nl"
4312 echo 'GREP' >> "conftest.nl"
4313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315 ac_count=`expr $ac_count + 1`
4316 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4317 # Best one so far, save it but keep looking for a better one
4318 ac_cv_path_GREP="$ac_path_GREP"
4319 ac_path_GREP_max=$ac_count
4320 fi
4321 # 10*(2^10) chars as input seems more than enough
4322 test $ac_count -gt 10 && break
4323 done
4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325 esac
4328 $ac_path_GREP_found && break 3
4329 done
4330 done
4332 done
4333 IFS=$as_save_IFS
4336 fi
4338 GREP="$ac_cv_path_GREP"
4339 if test -z "$GREP"; then
4340 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4341 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4342 { (exit 1); exit 1; }; }
4343 fi
4345 else
4346 ac_cv_path_GREP=$GREP
4347 fi
4350 fi
4351 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4352 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4353 GREP="$ac_cv_path_GREP"
4356 { echo "$as_me:$LINENO: checking for egrep" >&5
4357 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4358 if test "${ac_cv_path_EGREP+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4362 then ac_cv_path_EGREP="$GREP -E"
4363 else
4364 # Extract the first word of "egrep" to use in msg output
4365 if test -z "$EGREP"; then
4366 set dummy egrep; ac_prog_name=$2
4367 if test "${ac_cv_path_EGREP+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370 ac_path_EGREP_found=false
4371 # Loop through the user's path and test for each of PROGNAME-LIST
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_prog in egrep; do
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4380 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4381 # Check for GNU ac_path_EGREP and select it if it is found.
4382 # Check for GNU $ac_path_EGREP
4383 case `"$ac_path_EGREP" --version 2>&1` in
4384 *GNU*)
4385 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4386 *)
4387 ac_count=0
4388 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4389 while :
4390 do
4391 cat "conftest.in" "conftest.in" >"conftest.tmp"
4392 mv "conftest.tmp" "conftest.in"
4393 cp "conftest.in" "conftest.nl"
4394 echo 'EGREP' >> "conftest.nl"
4395 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4397 ac_count=`expr $ac_count + 1`
4398 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4399 # Best one so far, save it but keep looking for a better one
4400 ac_cv_path_EGREP="$ac_path_EGREP"
4401 ac_path_EGREP_max=$ac_count
4402 fi
4403 # 10*(2^10) chars as input seems more than enough
4404 test $ac_count -gt 10 && break
4405 done
4406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407 esac
4410 $ac_path_EGREP_found && break 3
4411 done
4412 done
4414 done
4415 IFS=$as_save_IFS
4418 fi
4420 EGREP="$ac_cv_path_EGREP"
4421 if test -z "$EGREP"; then
4422 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4423 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4424 { (exit 1); exit 1; }; }
4425 fi
4427 else
4428 ac_cv_path_EGREP=$EGREP
4429 fi
4432 fi
4433 fi
4434 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4435 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4436 EGREP="$ac_cv_path_EGREP"
4440 # Check whether --with-gnu-ld was given.
4441 if test "${with_gnu_ld+set}" = set; then
4442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4443 else
4444 with_gnu_ld=no
4445 fi
4447 ac_prog=ld
4448 if test "$GCC" = yes; then
4449 # Check if gcc -print-prog-name=ld gives a path.
4450 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4451 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4452 case $host in
4453 *-*-mingw*)
4454 # gcc leaves a trailing carriage return which upsets mingw
4455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4456 *)
4457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4458 esac
4459 case $ac_prog in
4460 # Accept absolute paths.
4461 [\\/]* | ?:[\\/]*)
4462 re_direlt='/[^/][^/]*/\.\./'
4463 # Canonicalize the pathname of ld
4464 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4465 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4466 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4467 done
4468 test -z "$LD" && LD="$ac_prog"
4469 ;;
4470 "")
4471 # If it fails, then pretend we aren't using GCC.
4472 ac_prog=ld
4473 ;;
4474 *)
4475 # If it is relative, then search for the first ld in PATH.
4476 with_gnu_ld=unknown
4477 ;;
4478 esac
4479 elif test "$with_gnu_ld" = yes; then
4480 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4481 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4482 else
4483 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4484 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4485 fi
4486 if test "${lt_cv_path_LD+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489 if test -z "$LD"; then
4490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4491 for ac_dir in $PATH; do
4492 IFS="$lt_save_ifs"
4493 test -z "$ac_dir" && ac_dir=.
4494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4495 lt_cv_path_LD="$ac_dir/$ac_prog"
4496 # Check to see if the program is GNU ld. I'd rather use --version,
4497 # but apparently some variants of GNU ld only accept -v.
4498 # Break only if it was the GNU/non-GNU ld that we prefer.
4499 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4500 *GNU* | *'with BFD'*)
4501 test "$with_gnu_ld" != no && break
4502 ;;
4503 *)
4504 test "$with_gnu_ld" != yes && break
4505 ;;
4506 esac
4507 fi
4508 done
4509 IFS="$lt_save_ifs"
4510 else
4511 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4512 fi
4513 fi
4515 LD="$lt_cv_path_LD"
4516 if test -n "$LD"; then
4517 { echo "$as_me:$LINENO: result: $LD" >&5
4518 echo "${ECHO_T}$LD" >&6; }
4519 else
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4522 fi
4523 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4524 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4525 { (exit 1); exit 1; }; }
4526 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4527 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4528 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4532 case `$LD -v 2>&1 </dev/null` in
4533 *GNU* | *'with BFD'*)
4534 lt_cv_prog_gnu_ld=yes
4535 ;;
4536 *)
4537 lt_cv_prog_gnu_ld=no
4538 ;;
4539 esac
4540 fi
4541 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4542 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4543 with_gnu_ld=$lt_cv_prog_gnu_ld
4546 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4547 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4548 if test "${lt_cv_ld_reload_flag+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 lt_cv_ld_reload_flag='-r'
4552 fi
4553 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4554 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4555 reload_flag=$lt_cv_ld_reload_flag
4556 case $reload_flag in
4557 "" | " "*) ;;
4558 *) reload_flag=" $reload_flag" ;;
4559 esac
4560 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4561 case $host_os in
4562 darwin*)
4563 if test "$GCC" = yes; then
4564 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4565 else
4566 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4567 fi
4568 ;;
4569 esac
4571 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4572 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4573 if test "${lt_cv_path_NM+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 if test -n "$NM"; then
4577 # Let the user override the test.
4578 lt_cv_path_NM="$NM"
4579 else
4580 lt_nm_to_check="${ac_tool_prefix}nm"
4581 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4582 lt_nm_to_check="$lt_nm_to_check nm"
4583 fi
4584 for lt_tmp_nm in $lt_nm_to_check; do
4585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4586 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4587 IFS="$lt_save_ifs"
4588 test -z "$ac_dir" && ac_dir=.
4589 tmp_nm="$ac_dir/$lt_tmp_nm"
4590 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4591 # Check to see if the nm accepts a BSD-compat flag.
4592 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4593 # nm: unknown option "B" ignored
4594 # Tru64's nm complains that /dev/null is an invalid object file
4595 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4596 */dev/null* | *'Invalid file or object type'*)
4597 lt_cv_path_NM="$tmp_nm -B"
4598 break
4599 ;;
4600 *)
4601 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4602 */dev/null*)
4603 lt_cv_path_NM="$tmp_nm -p"
4604 break
4605 ;;
4606 *)
4607 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4608 continue # so that we can try to find one that supports BSD flags
4609 ;;
4610 esac
4611 ;;
4612 esac
4613 fi
4614 done
4615 IFS="$lt_save_ifs"
4616 done
4617 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4618 fi
4619 fi
4620 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4621 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4622 NM="$lt_cv_path_NM"
4624 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4625 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4626 LN_S=$as_ln_s
4627 if test "$LN_S" = "ln -s"; then
4628 { echo "$as_me:$LINENO: result: yes" >&5
4629 echo "${ECHO_T}yes" >&6; }
4630 else
4631 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4632 echo "${ECHO_T}no, using $LN_S" >&6; }
4633 fi
4635 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4636 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4637 if test "${lt_cv_deplibs_check_method+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 lt_cv_file_magic_cmd='$MAGIC_CMD'
4641 lt_cv_file_magic_test_file=
4642 lt_cv_deplibs_check_method='unknown'
4643 # Need to set the preceding variable on all platforms that support
4644 # interlibrary dependencies.
4645 # 'none' -- dependencies not supported.
4646 # `unknown' -- same as none, but documents that we really don't know.
4647 # 'pass_all' -- all dependencies passed with no checks.
4648 # 'test_compile' -- check by making test program.
4649 # 'file_magic [[regex]]' -- check by looking for files in library path
4650 # which responds to the $file_magic_cmd with a given extended regex.
4651 # If you have `file' or equivalent on your system and you're not sure
4652 # whether `pass_all' will *always* work, you probably want this one.
4654 case $host_os in
4655 aix4* | aix5*)
4656 lt_cv_deplibs_check_method=pass_all
4657 ;;
4659 beos*)
4660 lt_cv_deplibs_check_method=pass_all
4661 ;;
4663 bsdi[45]*)
4664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4665 lt_cv_file_magic_cmd='/usr/bin/file -L'
4666 lt_cv_file_magic_test_file=/shlib/libc.so
4667 ;;
4669 cygwin*)
4670 # func_win32_libid is a shell function defined in ltmain.sh
4671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4672 lt_cv_file_magic_cmd='func_win32_libid'
4673 ;;
4675 mingw* | pw32*)
4676 # Base MSYS/MinGW do not provide the 'file' command needed by
4677 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4678 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4679 lt_cv_file_magic_cmd='$OBJDUMP -f'
4680 ;;
4682 darwin* | rhapsody*)
4683 lt_cv_deplibs_check_method=pass_all
4684 ;;
4686 freebsd* | dragonfly*)
4687 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4688 case $host_cpu in
4689 i*86 )
4690 # Not sure whether the presence of OpenBSD here was a mistake.
4691 # Let's accept both of them until this is cleared up.
4692 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4693 lt_cv_file_magic_cmd=/usr/bin/file
4694 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4695 ;;
4696 esac
4697 else
4698 lt_cv_deplibs_check_method=pass_all
4699 fi
4700 ;;
4702 gnu*)
4703 lt_cv_deplibs_check_method=pass_all
4704 ;;
4706 hpux10.20* | hpux11*)
4707 lt_cv_file_magic_cmd=/usr/bin/file
4708 case $host_cpu in
4709 ia64*)
4710 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4711 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4712 ;;
4713 hppa*64*)
4714 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]'
4715 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4716 ;;
4717 *)
4718 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4719 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4720 ;;
4721 esac
4722 ;;
4724 interix3*)
4725 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4727 ;;
4729 irix5* | irix6* | nonstopux*)
4730 case $LD in
4731 *-32|*"-32 ") libmagic=32-bit;;
4732 *-n32|*"-n32 ") libmagic=N32;;
4733 *-64|*"-64 ") libmagic=64-bit;;
4734 *) libmagic=never-match;;
4735 esac
4736 lt_cv_deplibs_check_method=pass_all
4737 ;;
4739 # This must be Linux ELF.
4740 linux* | k*bsd*-gnu)
4741 lt_cv_deplibs_check_method=pass_all
4742 ;;
4744 netbsd* | netbsdelf*-gnu)
4745 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4747 else
4748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4749 fi
4750 ;;
4752 newos6*)
4753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4754 lt_cv_file_magic_cmd=/usr/bin/file
4755 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4756 ;;
4758 nto-qnx*)
4759 lt_cv_deplibs_check_method=unknown
4760 ;;
4762 openbsd*)
4763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4765 else
4766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4767 fi
4768 ;;
4770 osf3* | osf4* | osf5*)
4771 lt_cv_deplibs_check_method=pass_all
4772 ;;
4774 solaris*)
4775 lt_cv_deplibs_check_method=pass_all
4776 ;;
4778 sysv4 | sysv4.3*)
4779 case $host_vendor in
4780 motorola)
4781 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]'
4782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4783 ;;
4784 ncr)
4785 lt_cv_deplibs_check_method=pass_all
4786 ;;
4787 sequent)
4788 lt_cv_file_magic_cmd='/bin/file'
4789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4790 ;;
4791 sni)
4792 lt_cv_file_magic_cmd='/bin/file'
4793 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4794 lt_cv_file_magic_test_file=/lib/libc.so
4795 ;;
4796 siemens)
4797 lt_cv_deplibs_check_method=pass_all
4798 ;;
4799 pc)
4800 lt_cv_deplibs_check_method=pass_all
4801 ;;
4802 esac
4803 ;;
4805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4806 lt_cv_deplibs_check_method=pass_all
4807 ;;
4808 esac
4810 fi
4811 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4812 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4813 file_magic_cmd=$lt_cv_file_magic_cmd
4814 deplibs_check_method=$lt_cv_deplibs_check_method
4815 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4820 # If no C compiler was specified, use CC.
4821 LTCC=${LTCC-"$CC"}
4823 # If no C compiler flags were specified, use CFLAGS.
4824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4826 # Allow CC to be a program name with arguments.
4827 compiler=$CC
4830 # Check whether --enable-libtool-lock was given.
4831 if test "${enable_libtool_lock+set}" = set; then
4832 enableval=$enable_libtool_lock;
4833 fi
4835 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4837 # Some flags need to be propagated to the compiler or linker for good
4838 # libtool support.
4839 case $host in
4840 ia64-*-hpux*)
4841 # Find out which ABI we are using.
4842 echo 'int i;' > conftest.$ac_ext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; then
4848 case `/usr/bin/file conftest.$ac_objext` in
4849 *ELF-32*)
4850 HPUX_IA64_MODE="32"
4851 ;;
4852 *ELF-64*)
4853 HPUX_IA64_MODE="64"
4854 ;;
4855 esac
4856 fi
4857 rm -rf conftest*
4858 ;;
4859 *-*-irix6*)
4860 # Find out which ABI we are using.
4861 echo '#line 4861 "configure"' > conftest.$ac_ext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; then
4867 if test "$lt_cv_prog_gnu_ld" = yes; then
4868 case `/usr/bin/file conftest.$ac_objext` in
4869 *32-bit*)
4870 LD="${LD-ld} -melf32bsmip"
4871 ;;
4872 *N32*)
4873 LD="${LD-ld} -melf32bmipn32"
4874 ;;
4875 *64-bit*)
4876 LD="${LD-ld} -melf64bmip"
4877 ;;
4878 esac
4879 else
4880 case `/usr/bin/file conftest.$ac_objext` in
4881 *32-bit*)
4882 LD="${LD-ld} -32"
4883 ;;
4884 *N32*)
4885 LD="${LD-ld} -n32"
4886 ;;
4887 *64-bit*)
4888 LD="${LD-ld} -64"
4889 ;;
4890 esac
4891 fi
4892 fi
4893 rm -rf conftest*
4894 ;;
4896 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4897 # Find out which ABI we are using.
4898 echo 'int i;' > conftest.$ac_ext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; then
4904 case `/usr/bin/file conftest.o` in
4905 *32-bit*)
4906 case $host in
4907 x86_64-*linux*)
4908 LD="${LD-ld} -m elf_i386"
4909 ;;
4910 ppc64-*linux*|powerpc64-*linux*)
4911 LD="${LD-ld} -m elf32ppclinux"
4912 ;;
4913 s390x-*linux*)
4914 LD="${LD-ld} -m elf_s390"
4915 ;;
4916 sparc64-*linux*)
4917 LD="${LD-ld} -m elf32_sparc"
4918 ;;
4919 esac
4920 ;;
4921 *64-bit*)
4922 case $host in
4923 x86_64-*linux*)
4924 LD="${LD-ld} -m elf_x86_64"
4925 ;;
4926 ppc*-*linux*|powerpc*-*linux*)
4927 LD="${LD-ld} -m elf64ppc"
4928 ;;
4929 s390*-*linux*)
4930 LD="${LD-ld} -m elf64_s390"
4931 ;;
4932 sparc*-*linux*)
4933 LD="${LD-ld} -m elf64_sparc"
4934 ;;
4935 esac
4936 ;;
4937 esac
4938 fi
4939 rm -rf conftest*
4940 ;;
4942 *-*-sco3.2v5*)
4943 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4944 SAVE_CFLAGS="$CFLAGS"
4945 CFLAGS="$CFLAGS -belf"
4946 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4947 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4948 if test "${lt_cv_cc_needs_belf+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 ac_ext=c
4952 ac_cpp='$CPP $CPPFLAGS'
4953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4964 int
4965 main ()
4966 {
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (ac_try="$ac_link"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979 (eval "$ac_link") 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest$ac_exeext &&
4989 $as_test_x conftest$ac_exeext; then
4990 lt_cv_cc_needs_belf=yes
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 lt_cv_cc_needs_belf=no
4996 fi
4998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4999 conftest$ac_exeext conftest.$ac_ext
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006 fi
5007 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5008 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5011 CFLAGS="$SAVE_CFLAGS"
5012 fi
5013 ;;
5014 sparc*-*solaris*)
5015 # Find out which ABI we are using.
5016 echo 'int i;' > conftest.$ac_ext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; then
5022 case `/usr/bin/file conftest.o` in
5023 *64-bit*)
5024 case $lt_cv_prog_gnu_ld in
5025 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5026 *) LD="${LD-ld} -64" ;;
5027 esac
5028 ;;
5029 esac
5030 fi
5031 rm -rf conftest*
5032 ;;
5035 esac
5037 need_locks="$enable_libtool_lock"
5041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5043 if test "${ac_cv_header_stdc+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <stdlib.h>
5053 #include <stdarg.h>
5054 #include <string.h>
5055 #include <float.h>
5057 int
5058 main ()
5059 {
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (ac_try="$ac_compile"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072 (eval "$ac_compile") 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && {
5079 test -z "$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 } && test -s conftest.$ac_objext; then
5082 ac_cv_header_stdc=yes
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_cv_header_stdc=no
5088 fi
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 if test $ac_cv_header_stdc = yes; then
5093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 #include <string.h>
5102 _ACEOF
5103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5104 $EGREP "memchr" >/dev/null 2>&1; then
5105 :
5106 else
5107 ac_cv_header_stdc=no
5108 fi
5109 rm -f conftest*
5111 fi
5113 if test $ac_cv_header_stdc = yes; then
5114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <stdlib.h>
5123 _ACEOF
5124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5125 $EGREP "free" >/dev/null 2>&1; then
5126 :
5127 else
5128 ac_cv_header_stdc=no
5129 fi
5130 rm -f conftest*
5132 fi
5134 if test $ac_cv_header_stdc = yes; then
5135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5136 if test "$cross_compiling" = yes; then
5137 :
5138 else
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 #include <ctype.h>
5146 #include <stdlib.h>
5147 #if ((' ' & 0x0FF) == 0x020)
5148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5150 #else
5151 # define ISLOWER(c) \
5152 (('a' <= (c) && (c) <= 'i') \
5153 || ('j' <= (c) && (c) <= 'r') \
5154 || ('s' <= (c) && (c) <= 'z'))
5155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5156 #endif
5158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5159 int
5160 main ()
5161 {
5162 int i;
5163 for (i = 0; i < 256; i++)
5164 if (XOR (islower (i), ISLOWER (i))
5165 || toupper (i) != TOUPPER (i))
5166 return 2;
5167 return 0;
5168 }
5169 _ACEOF
5170 rm -f conftest$ac_exeext
5171 if { (ac_try="$ac_link"
5172 case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175 esac
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_link") 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5181 { (case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_try") 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 :
5191 else
5192 echo "$as_me: program exited with status $ac_status" >&5
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 ( exit $ac_status )
5197 ac_cv_header_stdc=no
5198 fi
5199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5200 fi
5203 fi
5204 fi
5205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5207 if test $ac_cv_header_stdc = yes; then
5209 cat >>confdefs.h <<\_ACEOF
5210 #define STDC_HEADERS 1
5211 _ACEOF
5213 fi
5215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5226 inttypes.h stdint.h unistd.h
5227 do
5228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 $ac_includes_default
5242 #include <$ac_header>
5243 _ACEOF
5244 rm -f conftest.$ac_objext
5245 if { (ac_try="$ac_compile"
5246 case "(($ac_try" in
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5249 esac
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251 (eval "$ac_compile") 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } && {
5258 test -z "$ac_c_werror_flag" ||
5259 test ! -s conftest.err
5260 } && test -s conftest.$ac_objext; then
5261 eval "$as_ac_Header=yes"
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 eval "$as_ac_Header=no"
5267 fi
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 fi
5271 ac_res=`eval echo '${'$as_ac_Header'}'`
5272 { echo "$as_me:$LINENO: result: $ac_res" >&5
5273 echo "${ECHO_T}$ac_res" >&6; }
5274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5275 cat >>confdefs.h <<_ACEOF
5276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5277 _ACEOF
5279 fi
5281 done
5285 for ac_header in dlfcn.h
5286 do
5287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 fi
5294 ac_res=`eval echo '${'$as_ac_Header'}'`
5295 { echo "$as_me:$LINENO: result: $ac_res" >&5
5296 echo "${ECHO_T}$ac_res" >&6; }
5297 else
5298 # Is the header compilable?
5299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5301 cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h. */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5307 $ac_includes_default
5308 #include <$ac_header>
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5312 case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_compile") 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest.$ac_objext; then
5327 ac_header_compiler=yes
5328 else
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 ac_header_compiler=no
5333 fi
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5337 echo "${ECHO_T}$ac_header_compiler" >&6; }
5339 # Is the header present?
5340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5342 cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 #include <$ac_header>
5349 _ACEOF
5350 if { (ac_try="$ac_cpp conftest.$ac_ext"
5351 case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } >/dev/null && {
5363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5364 test ! -s conftest.err
5365 }; then
5366 ac_header_preproc=yes
5367 else
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5371 ac_header_preproc=no
5372 fi
5374 rm -f conftest.err conftest.$ac_ext
5375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5376 echo "${ECHO_T}$ac_header_preproc" >&6; }
5378 # So? What about this header?
5379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5380 yes:no: )
5381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5385 ac_header_preproc=yes
5386 ;;
5387 no:yes:* )
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5401 ;;
5402 esac
5403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 eval "$as_ac_Header=\$ac_header_preproc"
5409 fi
5410 ac_res=`eval echo '${'$as_ac_Header'}'`
5411 { echo "$as_me:$LINENO: result: $ac_res" >&5
5412 echo "${ECHO_T}$ac_res" >&6; }
5414 fi
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418 _ACEOF
5420 fi
5422 done
5424 ac_ext=cpp
5425 ac_cpp='$CXXCPP $CPPFLAGS'
5426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5429 if test -z "$CXX"; then
5430 if test -n "$CCC"; then
5431 CXX=$CCC
5432 else
5433 if test -n "$ac_tool_prefix"; then
5434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5435 do
5436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5440 if test "${ac_cv_prog_CXX+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 if test -n "$CXX"; then
5444 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5461 fi
5462 fi
5463 CXX=$ac_cv_prog_CXX
5464 if test -n "$CXX"; then
5465 { echo "$as_me:$LINENO: result: $CXX" >&5
5466 echo "${ECHO_T}$CXX" >&6; }
5467 else
5468 { echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6; }
5470 fi
5473 test -n "$CXX" && break
5474 done
5475 fi
5476 if test -z "$CXX"; then
5477 ac_ct_CXX=$CXX
5478 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5479 do
5480 # Extract the first word of "$ac_prog", so it can be a program name with args.
5481 set dummy $ac_prog; ac_word=$2
5482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5484 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487 if test -n "$ac_ct_CXX"; then
5488 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_prog_ac_ct_CXX="$ac_prog"
5498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501 done
5502 done
5503 IFS=$as_save_IFS
5505 fi
5506 fi
5507 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5508 if test -n "$ac_ct_CXX"; then
5509 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5510 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5511 else
5512 { echo "$as_me:$LINENO: result: no" >&5
5513 echo "${ECHO_T}no" >&6; }
5514 fi
5517 test -n "$ac_ct_CXX" && break
5518 done
5520 if test "x$ac_ct_CXX" = x; then
5521 CXX="g++"
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5526 whose name does not start with the host triplet. If you think this
5527 configuration is useful to you, please write to autoconf@gnu.org." >&5
5528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5529 whose name does not start with the host triplet. If you think this
5530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5531 ac_tool_warned=yes ;;
5532 esac
5533 CXX=$ac_ct_CXX
5534 fi
5535 fi
5537 fi
5538 fi
5539 # Provide some information about the compiler.
5540 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5541 ac_compiler=`set X $ac_compile; echo $2`
5542 { (ac_try="$ac_compiler --version >&5"
5543 case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compiler --version >&5") 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }
5552 { (ac_try="$ac_compiler -v >&5"
5553 case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5556 esac
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_compiler -v >&5") 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }
5562 { (ac_try="$ac_compiler -V >&5"
5563 case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compiler -V >&5") 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }
5573 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5585 int
5586 main ()
5587 {
5588 #ifndef __GNUC__
5589 choke me
5590 #endif
5592 ;
5593 return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (ac_try="$ac_compile"
5598 case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_compile") 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && {
5610 test -z "$ac_cxx_werror_flag" ||
5611 test ! -s conftest.err
5612 } && test -s conftest.$ac_objext; then
5613 ac_compiler_gnu=yes
5614 else
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ac_compiler_gnu=no
5619 fi
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5624 fi
5625 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5626 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5627 GXX=`test $ac_compiler_gnu = yes && echo yes`
5628 ac_test_CXXFLAGS=${CXXFLAGS+set}
5629 ac_save_CXXFLAGS=$CXXFLAGS
5630 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5631 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5632 if test "${ac_cv_prog_cxx_g+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5636 ac_cxx_werror_flag=yes
5637 ac_cv_prog_cxx_g=no
5638 CXXFLAGS="-g"
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5646 int
5647 main ()
5648 {
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_cxx_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_prog_cxx_g=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 CXXFLAGS=""
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h. */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5684 int
5685 main ()
5686 {
5688 ;
5689 return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_cxx_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 :
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5715 CXXFLAGS="-g"
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5723 int
5724 main ()
5725 {
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (ac_try="$ac_compile"
5733 case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_cxx_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest.$ac_objext; then
5748 ac_cv_prog_cxx_g=yes
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5754 fi
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5764 fi
5765 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5766 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5767 if test "$ac_test_CXXFLAGS" = set; then
5768 CXXFLAGS=$ac_save_CXXFLAGS
5769 elif test $ac_cv_prog_cxx_g = yes; then
5770 if test "$GXX" = yes; then
5771 CXXFLAGS="-g -O2"
5772 else
5773 CXXFLAGS="-g"
5774 fi
5775 else
5776 if test "$GXX" = yes; then
5777 CXXFLAGS="-O2"
5778 else
5779 CXXFLAGS=
5780 fi
5781 fi
5782 ac_ext=cpp
5783 ac_cpp='$CXXCPP $CPPFLAGS'
5784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5788 depcc="$CXX" am_compiler_list=
5790 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5792 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5796 # We make a subdir and do the tests there. Otherwise we can end up
5797 # making bogus files that we don't know about and never remove. For
5798 # instance it was reported that on HP-UX the gcc test will end up
5799 # making a dummy file named `D' -- because `-MD' means `put the output
5800 # in D'.
5801 mkdir conftest.dir
5802 # Copy depcomp to subdir because otherwise we won't find it if we're
5803 # using a relative directory.
5804 cp "$am_depcomp" conftest.dir
5805 cd conftest.dir
5806 # We will build objects and dependencies in a subdirectory because
5807 # it helps to detect inapplicable dependency modes. For instance
5808 # both Tru64's cc and ICC support -MD to output dependencies as a
5809 # side effect of compilation, but ICC will put the dependencies in
5810 # the current directory while Tru64 will put them in the object
5811 # directory.
5812 mkdir sub
5814 am_cv_CXX_dependencies_compiler_type=none
5815 if test "$am_compiler_list" = ""; then
5816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5817 fi
5818 for depmode in $am_compiler_list; do
5819 # Setup a source with many dependencies, because some compilers
5820 # like to wrap large dependency lists on column 80 (with \), and
5821 # we should not choose a depcomp mode which is confused by this.
5822 #
5823 # We need to recreate these files for each test, as the compiler may
5824 # overwrite some of them when testing with obscure command lines.
5825 # This happens at least with the AIX C compiler.
5826 : > sub/conftest.c
5827 for i in 1 2 3 4 5 6; do
5828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5830 # Solaris 8's {/usr,}/bin/sh.
5831 touch sub/conftst$i.h
5832 done
5833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5835 case $depmode in
5836 nosideeffect)
5837 # after this tag, mechanisms are not by side-effect, so they'll
5838 # only be used when explicitly requested
5839 if test "x$enable_dependency_tracking" = xyes; then
5840 continue
5841 else
5842 break
5843 fi
5844 ;;
5845 none) break ;;
5846 esac
5847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5848 # mode. It turns out that the SunPro C++ compiler does not properly
5849 # handle `-M -o', and we need to detect this.
5850 if depmode=$depmode \
5851 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5853 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5854 >/dev/null 2>conftest.err &&
5855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5858 # icc doesn't choke on unknown options, it will just issue warnings
5859 # or remarks (even with -Werror). So we grep stderr for any message
5860 # that says an option was ignored or not supported.
5861 # When given -MP, icc 7.0 and 7.1 complain thusly:
5862 # icc: Command line warning: ignoring option '-M'; no argument required
5863 # The diagnosis changed in icc 8.0:
5864 # icc: Command line remark: option '-MP' not supported
5865 if (grep 'ignoring option' conftest.err ||
5866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5867 am_cv_CXX_dependencies_compiler_type=$depmode
5868 break
5869 fi
5870 fi
5871 done
5873 cd ..
5874 rm -rf conftest.dir
5875 else
5876 am_cv_CXX_dependencies_compiler_type=none
5877 fi
5879 fi
5880 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5881 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5882 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5886 if
5887 test "x$enable_dependency_tracking" != xno \
5888 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5889 am__fastdepCXX_TRUE=
5890 am__fastdepCXX_FALSE='#'
5891 else
5892 am__fastdepCXX_TRUE='#'
5893 am__fastdepCXX_FALSE=
5894 fi
5899 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5900 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5901 (test "X$CXX" != "Xg++"))) ; then
5902 ac_ext=cpp
5903 ac_cpp='$CXXCPP $CPPFLAGS'
5904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5907 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5908 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5909 if test -z "$CXXCPP"; then
5910 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 # Double quotes because CXXCPP needs to be expanded
5914 for CXXCPP in "$CXX -E" "/lib/cpp"
5915 do
5916 ac_preproc_ok=false
5917 for ac_cxx_preproc_warn_flag in '' yes
5918 do
5919 # Use a header file that comes with gcc, so configuring glibc
5920 # with a fresh cross-compiler works.
5921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5922 # <limits.h> exists even on freestanding compilers.
5923 # On the NeXT, cc -E runs the code through the compiler's parser,
5924 # not just through cpp. "Syntax error" is here to catch this case.
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h. */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 #ifdef __STDC__
5932 # include <limits.h>
5933 #else
5934 # include <assert.h>
5935 #endif
5936 Syntax error
5937 _ACEOF
5938 if { (ac_try="$ac_cpp conftest.$ac_ext"
5939 case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null && {
5951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5952 test ! -s conftest.err
5953 }; then
5954 :
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 # Broken: fails on valid input.
5960 continue
5961 fi
5963 rm -f conftest.err conftest.$ac_ext
5965 # OK, works on sane cases. Now check whether nonexistent headers
5966 # can be detected and how.
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <ac_nonexistent.h>
5974 _ACEOF
5975 if { (ac_try="$ac_cpp conftest.$ac_ext"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null && {
5988 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5989 test ! -s conftest.err
5990 }; then
5991 # Broken: success on invalid input.
5992 continue
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 # Passes both tests.
5998 ac_preproc_ok=:
5999 break
6000 fi
6002 rm -f conftest.err conftest.$ac_ext
6004 done
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then
6008 break
6009 fi
6011 done
6012 ac_cv_prog_CXXCPP=$CXXCPP
6014 fi
6015 CXXCPP=$ac_cv_prog_CXXCPP
6016 else
6017 ac_cv_prog_CXXCPP=$CXXCPP
6018 fi
6019 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6020 echo "${ECHO_T}$CXXCPP" >&6; }
6021 ac_preproc_ok=false
6022 for ac_cxx_preproc_warn_flag in '' yes
6023 do
6024 # Use a header file that comes with gcc, so configuring glibc
6025 # with a fresh cross-compiler works.
6026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6027 # <limits.h> exists even on freestanding compilers.
6028 # On the NeXT, cc -E runs the code through the compiler's parser,
6029 # not just through cpp. "Syntax error" is here to catch this case.
6030 cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h. */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 #ifdef __STDC__
6037 # include <limits.h>
6038 #else
6039 # include <assert.h>
6040 #endif
6041 Syntax error
6042 _ACEOF
6043 if { (ac_try="$ac_cpp conftest.$ac_ext"
6044 case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } >/dev/null && {
6056 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6057 test ! -s conftest.err
6058 }; then
6059 :
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 # Broken: fails on valid input.
6065 continue
6066 fi
6068 rm -f conftest.err conftest.$ac_ext
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h. */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 #include <ac_nonexistent.h>
6079 _ACEOF
6080 if { (ac_try="$ac_cpp conftest.$ac_ext"
6081 case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084 esac
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } >/dev/null && {
6093 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6094 test ! -s conftest.err
6095 }; then
6096 # Broken: success on invalid input.
6097 continue
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 # Passes both tests.
6103 ac_preproc_ok=:
6104 break
6105 fi
6107 rm -f conftest.err conftest.$ac_ext
6109 done
6110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6111 rm -f conftest.err conftest.$ac_ext
6112 if $ac_preproc_ok; then
6113 :
6114 else
6115 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6116 See \`config.log' for more details." >&5
6117 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6118 See \`config.log' for more details." >&2;}
6119 { (exit 1); exit 1; }; }
6120 fi
6122 ac_ext=cpp
6123 ac_cpp='$CXXCPP $CPPFLAGS'
6124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6128 fi
6131 ac_ext=f
6132 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6133 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6135 if test -n "$ac_tool_prefix"; then
6136 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
6137 do
6138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_prog_F77+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145 if test -n "$F77"; then
6146 ac_cv_prog_F77="$F77" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6163 fi
6164 fi
6165 F77=$ac_cv_prog_F77
6166 if test -n "$F77"; then
6167 { echo "$as_me:$LINENO: result: $F77" >&5
6168 echo "${ECHO_T}$F77" >&6; }
6169 else
6170 { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6172 fi
6175 test -n "$F77" && break
6176 done
6177 fi
6178 if test -z "$F77"; then
6179 ac_ct_F77=$F77
6180 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
6181 do
6182 # Extract the first word of "$ac_prog", so it can be a program name with args.
6183 set dummy $ac_prog; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 if test -n "$ac_ct_F77"; then
6190 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_F77="$ac_prog"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6207 fi
6208 fi
6209 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6210 if test -n "$ac_ct_F77"; then
6211 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6212 echo "${ECHO_T}$ac_ct_F77" >&6; }
6213 else
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6219 test -n "$ac_ct_F77" && break
6220 done
6222 if test "x$ac_ct_F77" = x; then
6223 F77=""
6224 else
6225 case $cross_compiling:$ac_tool_warned in
6226 yes:)
6227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6228 whose name does not start with the host triplet. If you think this
6229 configuration is useful to you, please write to autoconf@gnu.org." >&5
6230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6231 whose name does not start with the host triplet. If you think this
6232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6233 ac_tool_warned=yes ;;
6234 esac
6235 F77=$ac_ct_F77
6236 fi
6237 fi
6240 # Provide some information about the compiler.
6241 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6242 ac_compiler=`set X $ac_compile; echo $2`
6243 { (ac_try="$ac_compiler --version >&5"
6244 case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compiler --version >&5") 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }
6253 { (ac_try="$ac_compiler -v >&5"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compiler -v >&5") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }
6263 { (ac_try="$ac_compiler -V >&5"
6264 case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compiler -V >&5") 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }
6273 rm -f a.out
6275 # If we don't use `.F' as extension, the preprocessor is not run on the
6276 # input file. (Note that this only needs to work for GNU compilers.)
6277 ac_save_ext=$ac_ext
6278 ac_ext=F
6279 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6280 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6281 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 cat >conftest.$ac_ext <<_ACEOF
6285 program main
6286 #ifndef __GNUC__
6287 choke me
6288 #endif
6290 end
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6294 case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297 esac
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_compile") 2>conftest.er1
6300 ac_status=$?
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && {
6306 test -z "$ac_f77_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest.$ac_objext; then
6309 ac_compiler_gnu=yes
6310 else
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 ac_compiler_gnu=no
6315 fi
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6320 fi
6321 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6322 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6323 ac_ext=$ac_save_ext
6324 ac_test_FFLAGS=${FFLAGS+set}
6325 ac_save_FFLAGS=$FFLAGS
6326 FFLAGS=
6327 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6328 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6329 if test "${ac_cv_prog_f77_g+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332 FFLAGS=-g
6333 cat >conftest.$ac_ext <<_ACEOF
6334 program main
6336 end
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (ac_try="$ac_compile"
6340 case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_compile") 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && {
6352 test -z "$ac_f77_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest.$ac_objext; then
6355 ac_cv_prog_f77_g=yes
6356 else
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 ac_cv_prog_f77_g=no
6361 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6367 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6368 if test "$ac_test_FFLAGS" = set; then
6369 FFLAGS=$ac_save_FFLAGS
6370 elif test $ac_cv_prog_f77_g = yes; then
6371 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6372 FFLAGS="-g -O2"
6373 else
6374 FFLAGS="-g"
6375 fi
6376 else
6377 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6378 FFLAGS="-O2"
6379 else
6380 FFLAGS=
6381 fi
6382 fi
6384 G77=`test $ac_compiler_gnu = yes && echo yes`
6385 ac_ext=c
6386 ac_cpp='$CPP $CPPFLAGS'
6387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6395 # find the maximum length of command line arguments
6396 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6397 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6398 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 i=0
6402 teststring="ABCD"
6404 case $build_os in
6405 msdosdjgpp*)
6406 # On DJGPP, this test can blow up pretty badly due to problems in libc
6407 # (any single argument exceeding 2000 bytes causes a buffer overrun
6408 # during glob expansion). Even if it were fixed, the result of this
6409 # check would be larger than it should be.
6410 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6411 ;;
6413 gnu*)
6414 # Under GNU Hurd, this test is not required because there is
6415 # no limit to the length of command line arguments.
6416 # Libtool will interpret -1 as no limit whatsoever
6417 lt_cv_sys_max_cmd_len=-1;
6418 ;;
6420 cygwin* | mingw*)
6421 # On Win9x/ME, this test blows up -- it succeeds, but takes
6422 # about 5 minutes as the teststring grows exponentially.
6423 # Worse, since 9x/ME are not pre-emptively multitasking,
6424 # you end up with a "frozen" computer, even though with patience
6425 # the test eventually succeeds (with a max line length of 256k).
6426 # Instead, let's just punt: use the minimum linelength reported by
6427 # all of the supported platforms: 8192 (on NT/2K/XP).
6428 lt_cv_sys_max_cmd_len=8192;
6429 ;;
6431 amigaos*)
6432 # On AmigaOS with pdksh, this test takes hours, literally.
6433 # So we just punt and use a minimum line length of 8192.
6434 lt_cv_sys_max_cmd_len=8192;
6435 ;;
6437 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6438 # This has been around since 386BSD, at least. Likely further.
6439 if test -x /sbin/sysctl; then
6440 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6441 elif test -x /usr/sbin/sysctl; then
6442 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6443 else
6444 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6445 fi
6446 # And add a safety zone
6447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6449 ;;
6451 interix*)
6452 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6453 lt_cv_sys_max_cmd_len=196608
6454 ;;
6456 osf*)
6457 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6458 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6459 # nice to cause kernel panics so lets avoid the loop below.
6460 # First set a reasonable default.
6461 lt_cv_sys_max_cmd_len=16384
6462 #
6463 if test -x /sbin/sysconfig; then
6464 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6465 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6466 esac
6467 fi
6468 ;;
6469 sco3.2v5*)
6470 lt_cv_sys_max_cmd_len=102400
6471 ;;
6472 sysv5* | sco5v6* | sysv4.2uw2*)
6473 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6474 if test -n "$kargmax"; then
6475 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6476 else
6477 lt_cv_sys_max_cmd_len=32768
6478 fi
6479 ;;
6480 *)
6481 # If test is not a shell built-in, we'll probably end up computing a
6482 # maximum length that is only half of the actual maximum length, but
6483 # we can't tell.
6484 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6485 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6486 = "XX$teststring") >/dev/null 2>&1 &&
6487 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6488 lt_cv_sys_max_cmd_len=$new_result &&
6489 test $i != 17 # 1/2 MB should be enough
6490 do
6491 i=`expr $i + 1`
6492 teststring=$teststring$teststring
6493 done
6494 teststring=
6495 # Add a significant safety factor because C++ compilers can tack on massive
6496 # amounts of additional arguments before passing them to the linker.
6497 # It appears as though 1/2 is a usable value.
6498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6499 ;;
6500 esac
6502 fi
6504 if test -n $lt_cv_sys_max_cmd_len ; then
6505 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6506 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6507 else
6508 { echo "$as_me:$LINENO: result: none" >&5
6509 echo "${ECHO_T}none" >&6; }
6510 fi
6515 # Check for command to grab the raw symbol name followed by C symbol from nm.
6516 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6517 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6518 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6522 # These are sane defaults that work on at least a few old systems.
6523 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6525 # Character class describing NM global symbol codes.
6526 symcode='[BCDEGRST]'
6528 # Regexp to match symbols that can be accessed directly from C.
6529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6531 # Transform an extracted symbol line into a proper C declaration
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6534 # Transform an extracted symbol line into symbol name and symbol address
6535 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'"
6537 # Define system-specific variables.
6538 case $host_os in
6539 aix*)
6540 symcode='[BCDT]'
6541 ;;
6542 cygwin* | mingw* | pw32*)
6543 symcode='[ABCDGISTW]'
6544 ;;
6545 hpux*) # Its linker distinguishes data from code symbols
6546 if test "$host_cpu" = ia64; then
6547 symcode='[ABCDEGRST]'
6548 fi
6549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6550 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'"
6551 ;;
6552 linux* | k*bsd*-gnu)
6553 if test "$host_cpu" = ia64; then
6554 symcode='[ABCDGIRSTW]'
6555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556 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'"
6557 fi
6558 ;;
6559 irix* | nonstopux*)
6560 symcode='[BCDEGRST]'
6561 ;;
6562 osf*)
6563 symcode='[BCDEGQRST]'
6564 ;;
6565 solaris*)
6566 symcode='[BDRT]'
6567 ;;
6568 sco3.2v5*)
6569 symcode='[DT]'
6570 ;;
6571 sysv4.2uw2*)
6572 symcode='[DT]'
6573 ;;
6574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6575 symcode='[ABDT]'
6576 ;;
6577 sysv4)
6578 symcode='[DFNSTU]'
6579 ;;
6580 esac
6582 # Handle CRLF in mingw tool chain
6583 opt_cr=
6584 case $build_os in
6585 mingw*)
6586 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6587 ;;
6588 esac
6590 # If we're using GNU nm, then use its standard symbol codes.
6591 case `$NM -V 2>&1` in
6592 *GNU* | *'with BFD'*)
6593 symcode='[ABCDGIRSTW]' ;;
6594 esac
6596 # Try without a prefix undercore, then with it.
6597 for ac_symprfx in "" "_"; do
6599 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6600 symxfrm="\\1 $ac_symprfx\\2 \\2"
6602 # Write the raw and C identifiers.
6603 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6605 # Check to see that the pipe works correctly.
6606 pipe_works=no
6608 rm -f conftest*
6609 cat > conftest.$ac_ext <<EOF
6610 #ifdef __cplusplus
6611 extern "C" {
6612 #endif
6613 char nm_test_var;
6614 void nm_test_func(){}
6615 #ifdef __cplusplus
6616 }
6617 #endif
6618 int main(){nm_test_var='a';nm_test_func();return(0);}
6619 EOF
6621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; then
6626 # Now try to grab the symbols.
6627 nlist=conftest.nm
6628 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6629 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && test -s "$nlist"; then
6633 # Try sorting and uniquifying the output.
6634 if sort "$nlist" | uniq > "$nlist"T; then
6635 mv -f "$nlist"T "$nlist"
6636 else
6637 rm -f "$nlist"T
6638 fi
6640 # Make sure that we snagged all the symbols we need.
6641 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6642 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6643 cat <<EOF > conftest.$ac_ext
6644 #ifdef __cplusplus
6645 extern "C" {
6646 #endif
6648 EOF
6649 # Now generate the symbol file.
6650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6652 cat <<EOF >> conftest.$ac_ext
6653 #if defined (__STDC__) && __STDC__
6654 # define lt_ptr_t void *
6655 #else
6656 # define lt_ptr_t char *
6657 # define const
6658 #endif
6660 /* The mapping between symbol names and symbols. */
6661 const struct {
6662 const char *name;
6663 lt_ptr_t address;
6664 }
6665 lt_preloaded_symbols[] =
6666 {
6667 EOF
6668 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6669 cat <<\EOF >> conftest.$ac_ext
6670 {0, (lt_ptr_t) 0}
6671 };
6673 #ifdef __cplusplus
6674 }
6675 #endif
6676 EOF
6677 # Now try linking the two files.
6678 mv conftest.$ac_objext conftstm.$ac_objext
6679 lt_save_LIBS="$LIBS"
6680 lt_save_CFLAGS="$CFLAGS"
6681 LIBS="conftstm.$ac_objext"
6682 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6684 (eval $ac_link) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6688 pipe_works=yes
6689 fi
6690 LIBS="$lt_save_LIBS"
6691 CFLAGS="$lt_save_CFLAGS"
6692 else
6693 echo "cannot find nm_test_func in $nlist" >&5
6694 fi
6695 else
6696 echo "cannot find nm_test_var in $nlist" >&5
6697 fi
6698 else
6699 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6700 fi
6701 else
6702 echo "$progname: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6704 fi
6705 rm -f conftest* conftst*
6707 # Do not use the global_symbol_pipe unless it works.
6708 if test "$pipe_works" = yes; then
6709 break
6710 else
6711 lt_cv_sys_global_symbol_pipe=
6712 fi
6713 done
6715 fi
6717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6718 lt_cv_sys_global_symbol_to_cdecl=
6719 fi
6720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6721 { echo "$as_me:$LINENO: result: failed" >&5
6722 echo "${ECHO_T}failed" >&6; }
6723 else
6724 { echo "$as_me:$LINENO: result: ok" >&5
6725 echo "${ECHO_T}ok" >&6; }
6726 fi
6728 { echo "$as_me:$LINENO: checking for objdir" >&5
6729 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6730 if test "${lt_cv_objdir+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 rm -f .libs 2>/dev/null
6734 mkdir .libs 2>/dev/null
6735 if test -d .libs; then
6736 lt_cv_objdir=.libs
6737 else
6738 # MS-DOS does not allow filenames that begin with a dot.
6739 lt_cv_objdir=_libs
6740 fi
6741 rmdir .libs 2>/dev/null
6742 fi
6743 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6744 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6745 objdir=$lt_cv_objdir
6751 case $host_os in
6752 aix3*)
6753 # AIX sometimes has problems with the GCC collect2 program. For some
6754 # reason, if we set the COLLECT_NAMES environment variable, the problems
6755 # vanish in a puff of smoke.
6756 if test "X${COLLECT_NAMES+set}" != Xset; then
6757 COLLECT_NAMES=
6758 export COLLECT_NAMES
6759 fi
6760 ;;
6761 esac
6763 # Sed substitution that helps us do robust quoting. It backslashifies
6764 # metacharacters that are still active within double-quoted strings.
6765 Xsed='sed -e 1s/^X//'
6766 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6768 # Same as above, but do not quote variable references.
6769 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6771 # Sed substitution to delay expansion of an escaped shell variable in a
6772 # double_quote_subst'ed string.
6773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6775 # Sed substitution to avoid accidental globbing in evaled expressions
6776 no_glob_subst='s/\*/\\\*/g'
6778 # Constants:
6779 rm="rm -f"
6781 # Global variables:
6782 default_ofile=libtool
6783 can_build_shared=yes
6785 # All known linkers require a `.a' archive for static linking (except MSVC,
6786 # which needs '.lib').
6787 libext=a
6788 ltmain="$ac_aux_dir/ltmain.sh"
6789 ofile="$default_ofile"
6790 with_gnu_ld="$lt_cv_prog_gnu_ld"
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}ar; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_prog_AR+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 if test -n "$AR"; then
6801 ac_cv_prog_AR="$AR" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_AR="${ac_tool_prefix}ar"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6818 fi
6819 fi
6820 AR=$ac_cv_prog_AR
6821 if test -n "$AR"; then
6822 { echo "$as_me:$LINENO: result: $AR" >&5
6823 echo "${ECHO_T}$AR" >&6; }
6824 else
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6830 fi
6831 if test -z "$ac_cv_prog_AR"; then
6832 ac_ct_AR=$AR
6833 # Extract the first word of "ar", so it can be a program name with args.
6834 set dummy ar; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840 if test -n "$ac_ct_AR"; then
6841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_ac_ct_AR="ar"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6858 fi
6859 fi
6860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6861 if test -n "$ac_ct_AR"; then
6862 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6863 echo "${ECHO_T}$ac_ct_AR" >&6; }
6864 else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6867 fi
6869 if test "x$ac_ct_AR" = x; then
6870 AR="false"
6871 else
6872 case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6875 whose name does not start with the host triplet. If you think this
6876 configuration is useful to you, please write to autoconf@gnu.org." >&5
6877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet. If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882 AR=$ac_ct_AR
6883 fi
6884 else
6885 AR="$ac_cv_prog_AR"
6886 fi
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_prog_RANLIB+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 if test -n "$RANLIB"; then
6897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6914 fi
6915 fi
6916 RANLIB=$ac_cv_prog_RANLIB
6917 if test -n "$RANLIB"; then
6918 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6919 echo "${ECHO_T}$RANLIB" >&6; }
6920 else
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6923 fi
6926 fi
6927 if test -z "$ac_cv_prog_RANLIB"; then
6928 ac_ct_RANLIB=$RANLIB
6929 # Extract the first word of "ranlib", so it can be a program name with args.
6930 set dummy ranlib; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936 if test -n "$ac_ct_RANLIB"; then
6937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_RANLIB="ranlib"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6954 fi
6955 fi
6956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6957 if test -n "$ac_ct_RANLIB"; then
6958 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6959 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6960 else
6961 { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6963 fi
6965 if test "x$ac_ct_RANLIB" = x; then
6966 RANLIB=":"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969 yes:)
6970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6971 whose name does not start with the host triplet. If you think this
6972 configuration is useful to you, please write to autoconf@gnu.org." >&5
6973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6974 whose name does not start with the host triplet. If you think this
6975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978 RANLIB=$ac_ct_RANLIB
6979 fi
6980 else
6981 RANLIB="$ac_cv_prog_RANLIB"
6982 fi
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}strip; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_STRIP+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 if test -n "$STRIP"; then
6993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7010 fi
7011 fi
7012 STRIP=$ac_cv_prog_STRIP
7013 if test -n "$STRIP"; then
7014 { echo "$as_me:$LINENO: result: $STRIP" >&5
7015 echo "${ECHO_T}$STRIP" >&6; }
7016 else
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7022 fi
7023 if test -z "$ac_cv_prog_STRIP"; then
7024 ac_ct_STRIP=$STRIP
7025 # Extract the first word of "strip", so it can be a program name with args.
7026 set dummy strip; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 if test -n "$ac_ct_STRIP"; then
7033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7042 ac_cv_prog_ac_ct_STRIP="strip"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046 done
7047 done
7048 IFS=$as_save_IFS
7050 fi
7051 fi
7052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7053 if test -n "$ac_ct_STRIP"; then
7054 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7055 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7056 else
7057 { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7059 fi
7061 if test "x$ac_ct_STRIP" = x; then
7062 STRIP=":"
7063 else
7064 case $cross_compiling:$ac_tool_warned in
7065 yes:)
7066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet. If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&5
7069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet. If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7072 ac_tool_warned=yes ;;
7073 esac
7074 STRIP=$ac_ct_STRIP
7075 fi
7076 else
7077 STRIP="$ac_cv_prog_STRIP"
7078 fi
7081 old_CC="$CC"
7082 old_CFLAGS="$CFLAGS"
7084 # Set sane defaults for various variables
7085 test -z "$AR" && AR=ar
7086 test -z "$AR_FLAGS" && AR_FLAGS=cru
7087 test -z "$AS" && AS=as
7088 test -z "$CC" && CC=cc
7089 test -z "$LTCC" && LTCC=$CC
7090 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7091 test -z "$DLLTOOL" && DLLTOOL=dlltool
7092 test -z "$LD" && LD=ld
7093 test -z "$LN_S" && LN_S="ln -s"
7094 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7095 test -z "$NM" && NM=nm
7096 test -z "$SED" && SED=sed
7097 test -z "$OBJDUMP" && OBJDUMP=objdump
7098 test -z "$RANLIB" && RANLIB=:
7099 test -z "$STRIP" && STRIP=:
7100 test -z "$ac_objext" && ac_objext=o
7102 # Determine commands to create old-style static archives.
7103 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7104 old_postinstall_cmds='chmod 644 $oldlib'
7105 old_postuninstall_cmds=
7107 if test -n "$RANLIB"; then
7108 case $host_os in
7109 openbsd*)
7110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7111 ;;
7112 *)
7113 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7114 ;;
7115 esac
7116 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7117 fi
7119 for cc_temp in $compiler""; do
7120 case $cc_temp in
7121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7123 \-*) ;;
7124 *) break;;
7125 esac
7126 done
7127 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7130 # Only perform the check for file, if the check method requires it
7131 case $deplibs_check_method in
7132 file_magic*)
7133 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7134 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7135 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7136 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 case $MAGIC_CMD in
7140 [\\/*] | ?:[\\/]*)
7141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7142 ;;
7143 *)
7144 lt_save_MAGIC_CMD="$MAGIC_CMD"
7145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7146 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7147 for ac_dir in $ac_dummy; do
7148 IFS="$lt_save_ifs"
7149 test -z "$ac_dir" && ac_dir=.
7150 if test -f $ac_dir/${ac_tool_prefix}file; then
7151 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7152 if test -n "$file_magic_test_file"; then
7153 case $deplibs_check_method in
7154 "file_magic "*)
7155 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7156 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7157 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7158 $EGREP "$file_magic_regex" > /dev/null; then
7159 :
7160 else
7161 cat <<EOF 1>&2
7163 *** Warning: the command libtool uses to detect shared libraries,
7164 *** $file_magic_cmd, produces output that libtool cannot recognize.
7165 *** The result is that libtool may fail to recognize shared libraries
7166 *** as such. This will affect the creation of libtool libraries that
7167 *** depend on shared libraries, but programs linked with such libtool
7168 *** libraries will work regardless of this problem. Nevertheless, you
7169 *** may want to report the problem to your system manager and/or to
7170 *** bug-libtool@gnu.org
7172 EOF
7173 fi ;;
7174 esac
7175 fi
7176 break
7177 fi
7178 done
7179 IFS="$lt_save_ifs"
7180 MAGIC_CMD="$lt_save_MAGIC_CMD"
7181 ;;
7182 esac
7183 fi
7185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7186 if test -n "$MAGIC_CMD"; then
7187 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7188 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7189 else
7190 { echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6; }
7192 fi
7194 if test -z "$lt_cv_path_MAGIC_CMD"; then
7195 if test -n "$ac_tool_prefix"; then
7196 { echo "$as_me:$LINENO: checking for file" >&5
7197 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7198 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 case $MAGIC_CMD in
7202 [\\/*] | ?:[\\/]*)
7203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7204 ;;
7205 *)
7206 lt_save_MAGIC_CMD="$MAGIC_CMD"
7207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7209 for ac_dir in $ac_dummy; do
7210 IFS="$lt_save_ifs"
7211 test -z "$ac_dir" && ac_dir=.
7212 if test -f $ac_dir/file; then
7213 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7214 if test -n "$file_magic_test_file"; then
7215 case $deplibs_check_method in
7216 "file_magic "*)
7217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7220 $EGREP "$file_magic_regex" > /dev/null; then
7221 :
7222 else
7223 cat <<EOF 1>&2
7225 *** Warning: the command libtool uses to detect shared libraries,
7226 *** $file_magic_cmd, produces output that libtool cannot recognize.
7227 *** The result is that libtool may fail to recognize shared libraries
7228 *** as such. This will affect the creation of libtool libraries that
7229 *** depend on shared libraries, but programs linked with such libtool
7230 *** libraries will work regardless of this problem. Nevertheless, you
7231 *** may want to report the problem to your system manager and/or to
7232 *** bug-libtool@gnu.org
7234 EOF
7235 fi ;;
7236 esac
7237 fi
7238 break
7239 fi
7240 done
7241 IFS="$lt_save_ifs"
7242 MAGIC_CMD="$lt_save_MAGIC_CMD"
7243 ;;
7244 esac
7245 fi
7247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7248 if test -n "$MAGIC_CMD"; then
7249 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7250 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7251 else
7252 { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7254 fi
7256 else
7257 MAGIC_CMD=:
7258 fi
7259 fi
7261 fi
7262 ;;
7263 esac
7265 enable_dlopen=no
7266 enable_win32_dll=no
7268 # Check whether --enable-libtool-lock was given.
7269 if test "${enable_libtool_lock+set}" = set; then
7270 enableval=$enable_libtool_lock;
7271 fi
7273 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7276 # Check whether --with-pic was given.
7277 if test "${with_pic+set}" = set; then
7278 withval=$with_pic; pic_mode="$withval"
7279 else
7280 pic_mode=default
7281 fi
7283 test -z "$pic_mode" && pic_mode=default
7285 # Use C for the default configuration in the libtool script
7286 tagname=
7287 lt_save_CC="$CC"
7288 ac_ext=c
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295 # Source file extension for C test sources.
7296 ac_ext=c
7298 # Object file extension for compiled C test sources.
7299 objext=o
7300 objext=$objext
7302 # Code to be used in simple compile tests
7303 lt_simple_compile_test_code="int some_variable = 0;\n"
7305 # Code to be used in simple link tests
7306 lt_simple_link_test_code='int main(){return(0);}\n'
7309 # If no C compiler was specified, use CC.
7310 LTCC=${LTCC-"$CC"}
7312 # If no C compiler flags were specified, use CFLAGS.
7313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7315 # Allow CC to be a program name with arguments.
7316 compiler=$CC
7319 # save warnings/boilerplate of simple test code
7320 ac_outfile=conftest.$ac_objext
7321 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7323 _lt_compiler_boilerplate=`cat conftest.err`
7324 $rm conftest*
7326 ac_outfile=conftest.$ac_objext
7327 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7329 _lt_linker_boilerplate=`cat conftest.err`
7330 $rm conftest*
7334 lt_prog_compiler_no_builtin_flag=
7336 if test "$GCC" = yes; then
7337 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7340 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7341 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7342 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 lt_cv_prog_compiler_rtti_exceptions=no
7346 ac_outfile=conftest.$ac_objext
7347 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7348 lt_compiler_flag="-fno-rtti -fno-exceptions"
7349 # Insert the option either (1) after the last *FLAGS variable, or
7350 # (2) before a word containing "conftest.", or (3) at the end.
7351 # Note that $ac_compile itself does not contain backslashes and begins
7352 # with a dollar sign (not a hyphen), so the echo should work correctly.
7353 # The option is referenced via a variable to avoid confusing sed.
7354 lt_compile=`echo "$ac_compile" | $SED \
7355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357 -e 's:$: $lt_compiler_flag:'`
7358 (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359 (eval "$lt_compile" 2>conftest.err)
7360 ac_status=$?
7361 cat conftest.err >&5
7362 echo "$as_me:7362: \$? = $ac_status" >&5
7363 if (exit $ac_status) && test -s "$ac_outfile"; then
7364 # The compiler can only warn and ignore the option if not recognized
7365 # So say no if there are warnings other than the usual output.
7366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7369 lt_cv_prog_compiler_rtti_exceptions=yes
7370 fi
7371 fi
7372 $rm conftest*
7374 fi
7375 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7376 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7378 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7379 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7380 else
7381 :
7382 fi
7384 fi
7386 lt_prog_compiler_wl=
7387 lt_prog_compiler_pic=
7388 lt_prog_compiler_static=
7390 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7391 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7393 if test "$GCC" = yes; then
7394 lt_prog_compiler_wl='-Wl,'
7395 lt_prog_compiler_static='-static'
7397 case $host_os in
7398 aix*)
7399 # All AIX code is PIC.
7400 if test "$host_cpu" = ia64; then
7401 # AIX 5 now supports IA64 processor
7402 lt_prog_compiler_static='-Bstatic'
7403 fi
7404 ;;
7406 amigaos*)
7407 # FIXME: we need at least 68020 code to build shared libraries, but
7408 # adding the `-m68020' flag to GCC prevents building anything better,
7409 # like `-m68040'.
7410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7411 ;;
7413 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7414 # PIC is the default for these OSes.
7415 ;;
7417 mingw* | pw32* | os2*)
7418 # This hack is so that the source file can tell whether it is being
7419 # built for inclusion in a dll (and should export symbols for example).
7420 lt_prog_compiler_pic='-DDLL_EXPORT'
7421 ;;
7423 darwin* | rhapsody*)
7424 # PIC is the default on this platform
7425 # Common symbols not allowed in MH_DYLIB files
7426 lt_prog_compiler_pic='-fno-common'
7427 ;;
7429 interix3*)
7430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7431 # Instead, we relocate shared libraries at runtime.
7432 ;;
7434 msdosdjgpp*)
7435 # Just because we use GCC doesn't mean we suddenly get shared libraries
7436 # on systems that don't support them.
7437 lt_prog_compiler_can_build_shared=no
7438 enable_shared=no
7439 ;;
7441 sysv4*MP*)
7442 if test -d /usr/nec; then
7443 lt_prog_compiler_pic=-Kconform_pic
7444 fi
7445 ;;
7447 hpux*)
7448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7449 # not for PA HP-UX.
7450 case $host_cpu in
7451 hppa*64*|ia64*)
7452 # +Z the default
7453 ;;
7454 *)
7455 lt_prog_compiler_pic='-fPIC'
7456 ;;
7457 esac
7458 ;;
7460 *)
7461 lt_prog_compiler_pic='-fPIC'
7462 ;;
7463 esac
7464 else
7465 # PORTME Check for flag to pass linker flags through the system compiler.
7466 case $host_os in
7467 aix*)
7468 lt_prog_compiler_wl='-Wl,'
7469 if test "$host_cpu" = ia64; then
7470 # AIX 5 now supports IA64 processor
7471 lt_prog_compiler_static='-Bstatic'
7472 else
7473 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7474 fi
7475 ;;
7476 darwin*)
7477 # PIC is the default on this platform
7478 # Common symbols not allowed in MH_DYLIB files
7479 case $cc_basename in
7480 xlc*)
7481 lt_prog_compiler_pic='-qnocommon'
7482 lt_prog_compiler_wl='-Wl,'
7483 ;;
7484 esac
7485 ;;
7487 mingw* | pw32* | os2*)
7488 # This hack is so that the source file can tell whether it is being
7489 # built for inclusion in a dll (and should export symbols for example).
7490 lt_prog_compiler_pic='-DDLL_EXPORT'
7491 ;;
7493 hpux9* | hpux10* | hpux11*)
7494 lt_prog_compiler_wl='-Wl,'
7495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7496 # not for PA HP-UX.
7497 case $host_cpu in
7498 hppa*64*|ia64*)
7499 # +Z the default
7500 ;;
7501 *)
7502 lt_prog_compiler_pic='+Z'
7503 ;;
7504 esac
7505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7506 lt_prog_compiler_static='${wl}-a ${wl}archive'
7507 ;;
7509 irix5* | irix6* | nonstopux*)
7510 lt_prog_compiler_wl='-Wl,'
7511 # PIC (with -KPIC) is the default.
7512 lt_prog_compiler_static='-non_shared'
7513 ;;
7515 newsos6)
7516 lt_prog_compiler_pic='-KPIC'
7517 lt_prog_compiler_static='-Bstatic'
7518 ;;
7520 linux* | k*bsd*-gnu)
7521 case $cc_basename in
7522 icc* | ecc*)
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-KPIC'
7525 lt_prog_compiler_static='-static'
7526 ;;
7527 pgcc* | pgf77* | pgf90* | pgf95*)
7528 # Portland Group compilers (*not* the Pentium gcc compiler,
7529 # which looks to be a dead project)
7530 lt_prog_compiler_wl='-Wl,'
7531 lt_prog_compiler_pic='-fpic'
7532 lt_prog_compiler_static='-Bstatic'
7533 ;;
7534 ccc*)
7535 lt_prog_compiler_wl='-Wl,'
7536 # All Alpha code is PIC.
7537 lt_prog_compiler_static='-non_shared'
7538 ;;
7539 esac
7540 ;;
7542 osf3* | osf4* | osf5*)
7543 lt_prog_compiler_wl='-Wl,'
7544 # All OSF/1 code is PIC.
7545 lt_prog_compiler_static='-non_shared'
7546 ;;
7548 solaris*)
7549 lt_prog_compiler_pic='-KPIC'
7550 lt_prog_compiler_static='-Bstatic'
7551 case $cc_basename in
7552 f77* | f90* | f95*)
7553 lt_prog_compiler_wl='-Qoption ld ';;
7554 *)
7555 lt_prog_compiler_wl='-Wl,';;
7556 esac
7557 ;;
7559 sunos4*)
7560 lt_prog_compiler_wl='-Qoption ld '
7561 lt_prog_compiler_pic='-PIC'
7562 lt_prog_compiler_static='-Bstatic'
7563 ;;
7565 sysv4 | sysv4.2uw2* | sysv4.3*)
7566 lt_prog_compiler_wl='-Wl,'
7567 lt_prog_compiler_pic='-KPIC'
7568 lt_prog_compiler_static='-Bstatic'
7569 ;;
7571 sysv4*MP*)
7572 if test -d /usr/nec ;then
7573 lt_prog_compiler_pic='-Kconform_pic'
7574 lt_prog_compiler_static='-Bstatic'
7575 fi
7576 ;;
7578 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_pic='-KPIC'
7581 lt_prog_compiler_static='-Bstatic'
7582 ;;
7584 unicos*)
7585 lt_prog_compiler_wl='-Wl,'
7586 lt_prog_compiler_can_build_shared=no
7587 ;;
7589 uts4*)
7590 lt_prog_compiler_pic='-pic'
7591 lt_prog_compiler_static='-Bstatic'
7592 ;;
7594 *)
7595 lt_prog_compiler_can_build_shared=no
7596 ;;
7597 esac
7598 fi
7600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7601 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7603 #
7604 # Check to make sure the PIC flag actually works.
7605 #
7606 if test -n "$lt_prog_compiler_pic"; then
7608 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7609 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7610 if test "${lt_prog_compiler_pic_works+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613 lt_prog_compiler_pic_works=no
7614 ac_outfile=conftest.$ac_objext
7615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7616 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7617 # Insert the option either (1) after the last *FLAGS variable, or
7618 # (2) before a word containing "conftest.", or (3) at the end.
7619 # Note that $ac_compile itself does not contain backslashes and begins
7620 # with a dollar sign (not a hyphen), so the echo should work correctly.
7621 # The option is referenced via a variable to avoid confusing sed.
7622 lt_compile=`echo "$ac_compile" | $SED \
7623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7625 -e 's:$: $lt_compiler_flag:'`
7626 (eval echo "\"\$as_me:7626: $lt_compile\"" >&5)
7627 (eval "$lt_compile" 2>conftest.err)
7628 ac_status=$?
7629 cat conftest.err >&5
7630 echo "$as_me:7630: \$? = $ac_status" >&5
7631 if (exit $ac_status) && test -s "$ac_outfile"; then
7632 # The compiler can only warn and ignore the option if not recognized
7633 # So say no if there are warnings other than the usual output.
7634 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7637 lt_prog_compiler_pic_works=yes
7638 fi
7639 fi
7640 $rm conftest*
7642 fi
7643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7644 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7646 if test x"$lt_prog_compiler_pic_works" = xyes; then
7647 case $lt_prog_compiler_pic in
7648 "" | " "*) ;;
7649 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7650 esac
7651 else
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_can_build_shared=no
7654 fi
7656 fi
7657 case $host_os in
7658 # For platforms which do not support PIC, -DPIC is meaningless:
7659 *djgpp*)
7660 lt_prog_compiler_pic=
7661 ;;
7662 *)
7663 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7664 ;;
7665 esac
7667 #
7668 # Check to make sure the static flag actually works.
7669 #
7670 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7671 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7672 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7673 if test "${lt_prog_compiler_static_works+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676 lt_prog_compiler_static_works=no
7677 save_LDFLAGS="$LDFLAGS"
7678 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7679 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7681 # The linker can only warn and ignore the option if not recognized
7682 # So say no if there are warnings
7683 if test -s conftest.err; then
7684 # Append any errors to the config.log.
7685 cat conftest.err 1>&5
7686 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7688 if diff conftest.exp conftest.er2 >/dev/null; then
7689 lt_prog_compiler_static_works=yes
7690 fi
7691 else
7692 lt_prog_compiler_static_works=yes
7693 fi
7694 fi
7695 $rm conftest*
7696 LDFLAGS="$save_LDFLAGS"
7698 fi
7699 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7700 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7702 if test x"$lt_prog_compiler_static_works" = xyes; then
7703 :
7704 else
7705 lt_prog_compiler_static=
7706 fi
7709 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7710 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7711 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714 lt_cv_prog_compiler_c_o=no
7715 $rm -r conftest 2>/dev/null
7716 mkdir conftest
7717 cd conftest
7718 mkdir out
7719 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7721 lt_compiler_flag="-o out/conftest2.$ac_objext"
7722 # Insert the option either (1) after the last *FLAGS variable, or
7723 # (2) before a word containing "conftest.", or (3) at the end.
7724 # Note that $ac_compile itself does not contain backslashes and begins
7725 # with a dollar sign (not a hyphen), so the echo should work correctly.
7726 lt_compile=`echo "$ac_compile" | $SED \
7727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7729 -e 's:$: $lt_compiler_flag:'`
7730 (eval echo "\"\$as_me:7730: $lt_compile\"" >&5)
7731 (eval "$lt_compile" 2>out/conftest.err)
7732 ac_status=$?
7733 cat out/conftest.err >&5
7734 echo "$as_me:7734: \$? = $ac_status" >&5
7735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7736 then
7737 # The compiler can only warn and ignore the option if not recognized
7738 # So say no if there are warnings
7739 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7742 lt_cv_prog_compiler_c_o=yes
7743 fi
7744 fi
7745 chmod u+w . 2>&5
7746 $rm conftest*
7747 # SGI C++ compiler will create directory out/ii_files/ for
7748 # template instantiation
7749 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7750 $rm out/* && rmdir out
7751 cd ..
7752 rmdir conftest
7753 $rm conftest*
7755 fi
7756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7757 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7760 hard_links="nottested"
7761 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7762 # do not overwrite the value of need_locks provided by the user
7763 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7764 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7765 hard_links=yes
7766 $rm conftest*
7767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7768 touch conftest.a
7769 ln conftest.a conftest.b 2>&5 || hard_links=no
7770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7771 { echo "$as_me:$LINENO: result: $hard_links" >&5
7772 echo "${ECHO_T}$hard_links" >&6; }
7773 if test "$hard_links" = no; then
7774 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7775 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7776 need_locks=warn
7777 fi
7778 else
7779 need_locks=no
7780 fi
7782 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7783 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7785 runpath_var=
7786 allow_undefined_flag=
7787 enable_shared_with_static_runtimes=no
7788 archive_cmds=
7789 archive_expsym_cmds=
7790 old_archive_From_new_cmds=
7791 old_archive_from_expsyms_cmds=
7792 export_dynamic_flag_spec=
7793 whole_archive_flag_spec=
7794 thread_safe_flag_spec=
7795 hardcode_libdir_flag_spec=
7796 hardcode_libdir_flag_spec_ld=
7797 hardcode_libdir_separator=
7798 hardcode_direct=no
7799 hardcode_minus_L=no
7800 hardcode_shlibpath_var=unsupported
7801 link_all_deplibs=unknown
7802 hardcode_automatic=no
7803 module_cmds=
7804 module_expsym_cmds=
7805 always_export_symbols=no
7806 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7807 # include_expsyms should be a list of space-separated symbols to be *always*
7808 # included in the symbol list
7809 include_expsyms=
7810 # exclude_expsyms can be an extended regexp of symbols to exclude
7811 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7812 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7813 # as well as any symbol that contains `d'.
7814 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7815 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7816 # platforms (ab)use it in PIC code, but their linkers get confused if
7817 # the symbol is explicitly referenced. Since portable code cannot
7818 # rely on this symbol name, it's probably fine to never include it in
7819 # preloaded symbol tables.
7820 extract_expsyms_cmds=
7821 # Just being paranoid about ensuring that cc_basename is set.
7822 for cc_temp in $compiler""; do
7823 case $cc_temp in
7824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7826 \-*) ;;
7827 *) break;;
7828 esac
7829 done
7830 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7832 case $host_os in
7833 cygwin* | mingw* | pw32*)
7834 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7835 # When not using gcc, we currently assume that we are using
7836 # Microsoft Visual C++.
7837 if test "$GCC" != yes; then
7838 with_gnu_ld=no
7839 fi
7840 ;;
7841 interix*)
7842 # we just hope/assume this is gcc and not c89 (= MSVC++)
7843 with_gnu_ld=yes
7844 ;;
7845 openbsd*)
7846 with_gnu_ld=no
7847 ;;
7848 esac
7850 ld_shlibs=yes
7851 if test "$with_gnu_ld" = yes; then
7852 # If archive_cmds runs LD, not CC, wlarc should be empty
7853 wlarc='${wl}'
7855 # Set some defaults for GNU ld with shared library support. These
7856 # are reset later if shared libraries are not supported. Putting them
7857 # here allows them to be overridden if necessary.
7858 runpath_var=LD_RUN_PATH
7859 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7860 export_dynamic_flag_spec='${wl}--export-dynamic'
7861 # ancient GNU ld didn't support --whole-archive et. al.
7862 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7863 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7864 else
7865 whole_archive_flag_spec=
7866 fi
7867 supports_anon_versioning=no
7868 case `$LD -v 2>/dev/null` in
7869 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7870 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7871 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7872 *\ 2.11.*) ;; # other 2.11 versions
7873 *) supports_anon_versioning=yes ;;
7874 esac
7876 # See if GNU ld supports shared libraries.
7877 case $host_os in
7878 aix3* | aix4* | aix5*)
7879 # On AIX/PPC, the GNU linker is very broken
7880 if test "$host_cpu" != ia64; then
7881 ld_shlibs=no
7882 cat <<EOF 1>&2
7884 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7885 *** to be unable to reliably create shared libraries on AIX.
7886 *** Therefore, libtool is disabling shared libraries support. If you
7887 *** really care for shared libraries, you may want to modify your PATH
7888 *** so that a non-GNU linker is found, and then restart.
7890 EOF
7891 fi
7892 ;;
7894 amigaos*)
7895 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)'
7896 hardcode_libdir_flag_spec='-L$libdir'
7897 hardcode_minus_L=yes
7899 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7900 # that the semantics of dynamic libraries on AmigaOS, at least up
7901 # to version 4, is to share data among multiple programs linked
7902 # with the same dynamic library. Since this doesn't match the
7903 # behavior of shared libraries on other platforms, we can't use
7904 # them.
7905 ld_shlibs=no
7906 ;;
7908 beos*)
7909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7910 allow_undefined_flag=unsupported
7911 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7912 # support --undefined. This deserves some investigation. FIXME
7913 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7914 else
7915 ld_shlibs=no
7916 fi
7917 ;;
7919 cygwin* | mingw* | pw32*)
7920 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7921 # as there is no search path for DLLs.
7922 hardcode_libdir_flag_spec='-L$libdir'
7923 allow_undefined_flag=unsupported
7924 always_export_symbols=no
7925 enable_shared_with_static_runtimes=yes
7926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7928 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7930 # If the export-symbols file already is a .def file (1st line
7931 # is EXPORTS), use it as is; otherwise, prepend...
7932 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7933 cp $export_symbols $output_objdir/$soname.def;
7934 else
7935 echo EXPORTS > $output_objdir/$soname.def;
7936 cat $export_symbols >> $output_objdir/$soname.def;
7937 fi~
7938 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7939 else
7940 ld_shlibs=no
7941 fi
7942 ;;
7944 interix3*)
7945 hardcode_direct=no
7946 hardcode_shlibpath_var=no
7947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7948 export_dynamic_flag_spec='${wl}-E'
7949 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7950 # Instead, shared libraries are loaded at an image base (0x10000000 by
7951 # default) and relocated if they conflict, which is a slow very memory
7952 # consuming and fragmenting process. To avoid this, we pick a random,
7953 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7954 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7955 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7956 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'
7957 ;;
7959 linux* | k*bsd*-gnu)
7960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7961 tmp_addflag=
7962 case $cc_basename,$host_cpu in
7963 pgcc*) # Portland Group C compiler
7964 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'
7965 tmp_addflag=' $pic_flag'
7966 ;;
7967 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7968 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'
7969 tmp_addflag=' $pic_flag -Mnomain' ;;
7970 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7971 tmp_addflag=' -i_dynamic' ;;
7972 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7973 tmp_addflag=' -i_dynamic -nofor_main' ;;
7974 ifc* | ifort*) # Intel Fortran compiler
7975 tmp_addflag=' -nofor_main' ;;
7976 esac
7977 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7979 if test $supports_anon_versioning = yes; then
7980 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7982 $echo "local: *; };" >> $output_objdir/$libname.ver~
7983 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7984 fi
7985 link_all_deplibs=no
7986 else
7987 ld_shlibs=no
7988 fi
7989 ;;
7991 netbsd* | netbsdelf*-gnu)
7992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7993 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7994 wlarc=
7995 else
7996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7998 fi
7999 ;;
8001 solaris*)
8002 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8003 ld_shlibs=no
8004 cat <<EOF 1>&2
8006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8007 *** create shared libraries on Solaris systems. Therefore, libtool
8008 *** is disabling shared libraries support. We urge you to upgrade GNU
8009 *** binutils to release 2.9.1 or newer. Another option is to modify
8010 *** your PATH or compiler configuration so that the native linker is
8011 *** used, and then restart.
8013 EOF
8014 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8017 else
8018 ld_shlibs=no
8019 fi
8020 ;;
8022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8023 case `$LD -v 2>&1` in
8024 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8025 ld_shlibs=no
8026 cat <<_LT_EOF 1>&2
8028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8029 *** reliably create shared libraries on SCO systems. Therefore, libtool
8030 *** is disabling shared libraries support. We urge you to upgrade GNU
8031 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8032 *** your PATH or compiler configuration so that the native linker is
8033 *** used, and then restart.
8035 _LT_EOF
8036 ;;
8037 *)
8038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8039 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8042 else
8043 ld_shlibs=no
8044 fi
8045 ;;
8046 esac
8047 ;;
8049 sunos4*)
8050 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8051 wlarc=
8052 hardcode_direct=yes
8053 hardcode_shlibpath_var=no
8054 ;;
8056 *)
8057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8060 else
8061 ld_shlibs=no
8062 fi
8063 ;;
8064 esac
8066 if test "$ld_shlibs" = no; then
8067 runpath_var=
8068 hardcode_libdir_flag_spec=
8069 export_dynamic_flag_spec=
8070 whole_archive_flag_spec=
8071 fi
8072 else
8073 # PORTME fill in a description of your system's linker (not GNU ld)
8074 case $host_os in
8075 aix3*)
8076 allow_undefined_flag=unsupported
8077 always_export_symbols=yes
8078 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'
8079 # Note: this linker hardcodes the directories in LIBPATH if there
8080 # are no directories specified by -L.
8081 hardcode_minus_L=yes
8082 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8083 # Neither direct hardcoding nor static linking is supported with a
8084 # broken collect2.
8085 hardcode_direct=unsupported
8086 fi
8087 ;;
8089 aix4* | aix5*)
8090 if test "$host_cpu" = ia64; then
8091 # On IA64, the linker does run time linking by default, so we don't
8092 # have to do anything special.
8093 aix_use_runtimelinking=no
8094 exp_sym_flag='-Bexport'
8095 no_entry_flag=""
8096 else
8097 # If we're using GNU nm, then we don't want the "-C" option.
8098 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8099 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8100 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'
8101 else
8102 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'
8103 fi
8104 aix_use_runtimelinking=no
8106 # Test if we are trying to use run time linking or normal
8107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8108 # need to do runtime linking.
8109 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8110 for ld_flag in $LDFLAGS; do
8111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8112 aix_use_runtimelinking=yes
8113 break
8114 fi
8115 done
8116 ;;
8117 esac
8119 exp_sym_flag='-bexport'
8120 no_entry_flag='-bnoentry'
8121 fi
8123 # When large executables or shared objects are built, AIX ld can
8124 # have problems creating the table of contents. If linking a library
8125 # or program results in "error TOC overflow" add -mminimal-toc to
8126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8129 archive_cmds=''
8130 hardcode_direct=yes
8131 hardcode_libdir_separator=':'
8132 link_all_deplibs=yes
8134 if test "$GCC" = yes; then
8135 case $host_os in aix4.[012]|aix4.[012].*)
8136 # We only want to do this on AIX 4.2 and lower, the check
8137 # below for broken collect2 doesn't work under 4.3+
8138 collect2name=`${CC} -print-prog-name=collect2`
8139 if test -f "$collect2name" && \
8140 strings "$collect2name" | grep resolve_lib_name >/dev/null
8141 then
8142 # We have reworked collect2
8143 hardcode_direct=yes
8144 else
8145 # We have old collect2
8146 hardcode_direct=unsupported
8147 # It fails to find uninstalled libraries when the uninstalled
8148 # path is not listed in the libpath. Setting hardcode_minus_L
8149 # to unsupported forces relinking
8150 hardcode_minus_L=yes
8151 hardcode_libdir_flag_spec='-L$libdir'
8152 hardcode_libdir_separator=
8153 fi
8154 ;;
8155 esac
8156 shared_flag='-shared'
8157 if test "$aix_use_runtimelinking" = yes; then
8158 shared_flag="$shared_flag "'${wl}-G'
8159 fi
8160 else
8161 # not using gcc
8162 if test "$host_cpu" = ia64; then
8163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8164 # chokes on -Wl,-G. The following line is correct:
8165 shared_flag='-G'
8166 else
8167 if test "$aix_use_runtimelinking" = yes; then
8168 shared_flag='${wl}-G'
8169 else
8170 shared_flag='${wl}-bM:SRE'
8171 fi
8172 fi
8173 fi
8175 # It seems that -bexpall does not export symbols beginning with
8176 # underscore (_), so it is better to generate a list of symbols to export.
8177 always_export_symbols=yes
8178 if test "$aix_use_runtimelinking" = yes; then
8179 # Warning - without using the other runtime loading flags (-brtl),
8180 # -berok will link without error, but may produce a broken library.
8181 allow_undefined_flag='-berok'
8182 # Determine the default libpath from the value encoded in an empty executable.
8183 cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h. */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8190 int
8191 main ()
8192 {
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext conftest$ac_exeext
8199 if { (ac_try="$ac_link"
8200 case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_link") 2>conftest.er1
8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } && {
8212 test -z "$ac_c_werror_flag" ||
8213 test ! -s conftest.err
8214 } && test -s conftest$ac_exeext &&
8215 $as_test_x conftest$ac_exeext; then
8217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8218 }'`
8219 # Check for a 64-bit object if we didn't find anything.
8220 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; }
8221 }'`; fi
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8227 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8230 conftest$ac_exeext conftest.$ac_ext
8231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8234 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"
8235 else
8236 if test "$host_cpu" = ia64; then
8237 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8238 allow_undefined_flag="-z nodefs"
8239 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"
8240 else
8241 # Determine the default libpath from the value encoded in an empty executable.
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8249 int
8250 main ()
8251 {
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8259 case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_link") 2>conftest.er1
8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } && {
8271 test -z "$ac_c_werror_flag" ||
8272 test ! -s conftest.err
8273 } && test -s conftest$ac_exeext &&
8274 $as_test_x conftest$ac_exeext; then
8276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8277 }'`
8278 # Check for a 64-bit object if we didn't find anything.
8279 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; }
8280 }'`; fi
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8286 fi
8288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289 conftest$ac_exeext conftest.$ac_ext
8290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8293 # Warning - without using the other run time loading flags,
8294 # -berok will link without error, but may produce a broken library.
8295 no_undefined_flag=' ${wl}-bernotok'
8296 allow_undefined_flag=' ${wl}-berok'
8297 # Exported symbols can be pulled into shared objects from archives
8298 whole_archive_flag_spec='$convenience'
8299 archive_cmds_need_lc=yes
8300 # This is similar to how AIX traditionally builds its shared libraries.
8301 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'
8302 fi
8303 fi
8304 ;;
8306 amigaos*)
8307 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)'
8308 hardcode_libdir_flag_spec='-L$libdir'
8309 hardcode_minus_L=yes
8310 # see comment about different semantics on the GNU ld section
8311 ld_shlibs=no
8312 ;;
8314 bsdi[45]*)
8315 export_dynamic_flag_spec=-rdynamic
8316 ;;
8318 cygwin* | mingw* | pw32*)
8319 # When not using gcc, we currently assume that we are using
8320 # Microsoft Visual C++.
8321 # hardcode_libdir_flag_spec is actually meaningless, as there is
8322 # no search path for DLLs.
8323 hardcode_libdir_flag_spec=' '
8324 allow_undefined_flag=unsupported
8325 # Tell ltmain to make .lib files, not .a files.
8326 libext=lib
8327 # Tell ltmain to make .dll files, not .so files.
8328 shrext_cmds=".dll"
8329 # FIXME: Setting linknames here is a bad hack.
8330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8331 # The linker will automatically build a .lib file if we build a DLL.
8332 old_archive_From_new_cmds='true'
8333 # FIXME: Should let the user specify the lib program.
8334 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8335 fix_srcfile_path='`cygpath -w "$srcfile"`'
8336 enable_shared_with_static_runtimes=yes
8337 ;;
8339 darwin* | rhapsody*)
8340 case $host_os in
8341 rhapsody* | darwin1.[012])
8342 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8343 ;;
8344 *) # Darwin 1.3 on
8345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8346 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8347 else
8348 case ${MACOSX_DEPLOYMENT_TARGET} in
8349 10.[012])
8350 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8351 ;;
8352 10.*)
8353 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8354 ;;
8355 esac
8356 fi
8357 ;;
8358 esac
8359 archive_cmds_need_lc=no
8360 hardcode_direct=no
8361 hardcode_automatic=yes
8362 hardcode_shlibpath_var=unsupported
8363 whole_archive_flag_spec=''
8364 link_all_deplibs=yes
8365 if test "$GCC" = yes ; then
8366 output_verbose_link_cmd='echo'
8367 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8368 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8370 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}'
8371 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}'
8372 else
8373 case $cc_basename in
8374 xlc*)
8375 output_verbose_link_cmd='echo'
8376 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8377 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8379 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}'
8380 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}'
8381 ;;
8382 *)
8383 ld_shlibs=no
8384 ;;
8385 esac
8386 fi
8387 ;;
8389 dgux*)
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_libdir_flag_spec='-L$libdir'
8392 hardcode_shlibpath_var=no
8393 ;;
8395 freebsd1*)
8396 ld_shlibs=no
8397 ;;
8399 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8400 # support. Future versions do this automatically, but an explicit c++rt0.o
8401 # does not break anything, and helps significantly (at the cost of a little
8402 # extra space).
8403 freebsd2.2*)
8404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8405 hardcode_libdir_flag_spec='-R$libdir'
8406 hardcode_direct=yes
8407 hardcode_shlibpath_var=no
8408 ;;
8410 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8411 freebsd2*)
8412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8413 hardcode_direct=yes
8414 hardcode_minus_L=yes
8415 hardcode_shlibpath_var=no
8416 ;;
8418 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8419 freebsd* | dragonfly*)
8420 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8421 hardcode_libdir_flag_spec='-R$libdir'
8422 hardcode_direct=yes
8423 hardcode_shlibpath_var=no
8424 ;;
8426 hpux9*)
8427 if test "$GCC" = yes; then
8428 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'
8429 else
8430 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'
8431 fi
8432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8433 hardcode_libdir_separator=:
8434 hardcode_direct=yes
8436 # hardcode_minus_L: Not really in the search PATH,
8437 # but as the default location of the library.
8438 hardcode_minus_L=yes
8439 export_dynamic_flag_spec='${wl}-E'
8440 ;;
8442 hpux10*)
8443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8445 else
8446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8447 fi
8448 if test "$with_gnu_ld" = no; then
8449 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8450 hardcode_libdir_separator=:
8452 hardcode_direct=yes
8453 export_dynamic_flag_spec='${wl}-E'
8455 # hardcode_minus_L: Not really in the search PATH,
8456 # but as the default location of the library.
8457 hardcode_minus_L=yes
8458 fi
8459 ;;
8461 hpux11*)
8462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8463 case $host_cpu in
8464 hppa*64*)
8465 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466 ;;
8467 ia64*)
8468 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8469 ;;
8470 *)
8471 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8472 ;;
8473 esac
8474 else
8475 case $host_cpu in
8476 hppa*64*)
8477 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8478 ;;
8479 ia64*)
8480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8481 ;;
8482 *)
8483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8484 ;;
8485 esac
8486 fi
8487 if test "$with_gnu_ld" = no; then
8488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489 hardcode_libdir_separator=:
8491 case $host_cpu in
8492 hppa*64*|ia64*)
8493 hardcode_libdir_flag_spec_ld='+b $libdir'
8494 hardcode_direct=no
8495 hardcode_shlibpath_var=no
8496 ;;
8497 *)
8498 hardcode_direct=yes
8499 export_dynamic_flag_spec='${wl}-E'
8501 # hardcode_minus_L: Not really in the search PATH,
8502 # but as the default location of the library.
8503 hardcode_minus_L=yes
8504 ;;
8505 esac
8506 fi
8507 ;;
8509 irix5* | irix6* | nonstopux*)
8510 if test "$GCC" = yes; then
8511 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'
8512 else
8513 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'
8514 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8515 fi
8516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8517 hardcode_libdir_separator=:
8518 link_all_deplibs=yes
8519 ;;
8521 netbsd* | netbsdelf*-gnu)
8522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8524 else
8525 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8526 fi
8527 hardcode_libdir_flag_spec='-R$libdir'
8528 hardcode_direct=yes
8529 hardcode_shlibpath_var=no
8530 ;;
8532 newsos6)
8533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8534 hardcode_direct=yes
8535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536 hardcode_libdir_separator=:
8537 hardcode_shlibpath_var=no
8538 ;;
8540 openbsd*)
8541 hardcode_direct=yes
8542 hardcode_shlibpath_var=no
8543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8545 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8547 export_dynamic_flag_spec='${wl}-E'
8548 else
8549 case $host_os in
8550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8552 hardcode_libdir_flag_spec='-R$libdir'
8553 ;;
8554 *)
8555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8557 ;;
8558 esac
8559 fi
8560 ;;
8562 os2*)
8563 hardcode_libdir_flag_spec='-L$libdir'
8564 hardcode_minus_L=yes
8565 allow_undefined_flag=unsupported
8566 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'
8567 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8568 ;;
8570 osf3*)
8571 if test "$GCC" = yes; then
8572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8573 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'
8574 else
8575 allow_undefined_flag=' -expect_unresolved \*'
8576 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'
8577 fi
8578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8579 hardcode_libdir_separator=:
8580 ;;
8582 osf4* | osf5*) # as osf3* with the addition of -msym flag
8583 if test "$GCC" = yes; then
8584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8585 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'
8586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8587 else
8588 allow_undefined_flag=' -expect_unresolved \*'
8589 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'
8590 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8591 $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'
8593 # Both c and cxx compiler support -rpath directly
8594 hardcode_libdir_flag_spec='-rpath $libdir'
8595 fi
8596 hardcode_libdir_separator=:
8597 ;;
8599 solaris*)
8600 no_undefined_flag=' -z text'
8601 if test "$GCC" = yes; then
8602 wlarc='${wl}'
8603 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8606 else
8607 wlarc=''
8608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8609 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8611 fi
8612 hardcode_libdir_flag_spec='-R$libdir'
8613 hardcode_shlibpath_var=no
8614 case $host_os in
8615 solaris2.[0-5] | solaris2.[0-5].*) ;;
8616 *)
8617 # The compiler driver will combine linker options so we
8618 # cannot just pass the convience library names through
8619 # without $wl, iff we do not link with $LD.
8620 # Luckily, gcc supports the same syntax we need for Sun Studio.
8621 # Supported since Solaris 2.6 (maybe 2.5.1?)
8622 case $wlarc in
8623 '')
8624 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8625 *)
8626 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' ;;
8627 esac ;;
8628 esac
8629 link_all_deplibs=yes
8630 ;;
8632 sunos4*)
8633 if test "x$host_vendor" = xsequent; then
8634 # Use $CC to link under sequent, because it throws in some extra .o
8635 # files that make .init and .fini sections work.
8636 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8637 else
8638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8639 fi
8640 hardcode_libdir_flag_spec='-L$libdir'
8641 hardcode_direct=yes
8642 hardcode_minus_L=yes
8643 hardcode_shlibpath_var=no
8644 ;;
8646 sysv4)
8647 case $host_vendor in
8648 sni)
8649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_direct=yes # is this really true???
8651 ;;
8652 siemens)
8653 ## LD is ld it makes a PLAMLIB
8654 ## CC just makes a GrossModule.
8655 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8656 reload_cmds='$CC -r -o $output$reload_objs'
8657 hardcode_direct=no
8658 ;;
8659 motorola)
8660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8662 ;;
8663 esac
8664 runpath_var='LD_RUN_PATH'
8665 hardcode_shlibpath_var=no
8666 ;;
8668 sysv4.3*)
8669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_shlibpath_var=no
8671 export_dynamic_flag_spec='-Bexport'
8672 ;;
8674 sysv4*MP*)
8675 if test -d /usr/nec; then
8676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8677 hardcode_shlibpath_var=no
8678 runpath_var=LD_RUN_PATH
8679 hardcode_runpath_var=yes
8680 ld_shlibs=yes
8681 fi
8682 ;;
8684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8685 no_undefined_flag='${wl}-z,text'
8686 archive_cmds_need_lc=no
8687 hardcode_shlibpath_var=no
8688 runpath_var='LD_RUN_PATH'
8690 if test "$GCC" = yes; then
8691 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8693 else
8694 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8695 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8696 fi
8697 ;;
8699 sysv5* | sco3.2v5* | sco5v6*)
8700 # Note: We can NOT use -z defs as we might desire, because we do not
8701 # link with -lc, and that would cause any symbols used from libc to
8702 # always be unresolved, which means just about no library would
8703 # ever link correctly. If we're not using GNU ld we use -z text
8704 # though, which does catch some bad symbols but isn't as heavy-handed
8705 # as -z defs.
8706 no_undefined_flag='${wl}-z,text'
8707 allow_undefined_flag='${wl}-z,nodefs'
8708 archive_cmds_need_lc=no
8709 hardcode_shlibpath_var=no
8710 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8711 hardcode_libdir_separator=':'
8712 link_all_deplibs=yes
8713 export_dynamic_flag_spec='${wl}-Bexport'
8714 runpath_var='LD_RUN_PATH'
8716 if test "$GCC" = yes; then
8717 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 else
8720 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722 fi
8723 ;;
8725 uts4*)
8726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727 hardcode_libdir_flag_spec='-L$libdir'
8728 hardcode_shlibpath_var=no
8729 ;;
8731 *)
8732 ld_shlibs=no
8733 ;;
8734 esac
8735 fi
8737 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8738 echo "${ECHO_T}$ld_shlibs" >&6; }
8739 test "$ld_shlibs" = no && can_build_shared=no
8741 #
8742 # Do we need to explicitly link libc?
8743 #
8744 case "x$archive_cmds_need_lc" in
8745 x|xyes)
8746 # Assume -lc should be added
8747 archive_cmds_need_lc=yes
8749 if test "$enable_shared" = yes && test "$GCC" = yes; then
8750 case $archive_cmds in
8751 *'~'*)
8752 # FIXME: we may have to deal with multi-command sequences.
8753 ;;
8754 '$CC '*)
8755 # Test whether the compiler implicitly links with -lc since on some
8756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8757 # to ld, don't add -lc before -lgcc.
8758 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8760 $rm conftest*
8761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } 2>conftest.err; then
8768 soname=conftest
8769 lib=conftest
8770 libobjs=conftest.$ac_objext
8771 deplibs=
8772 wl=$lt_prog_compiler_wl
8773 pic_flag=$lt_prog_compiler_pic
8774 compiler_flags=-v
8775 linker_flags=-v
8776 verstring=
8777 output_objdir=.
8778 libname=conftest
8779 lt_save_allow_undefined_flag=$allow_undefined_flag
8780 allow_undefined_flag=
8781 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8782 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }
8786 then
8787 archive_cmds_need_lc=no
8788 else
8789 archive_cmds_need_lc=yes
8790 fi
8791 allow_undefined_flag=$lt_save_allow_undefined_flag
8792 else
8793 cat conftest.err 1>&5
8794 fi
8795 $rm conftest*
8796 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8797 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8798 ;;
8799 esac
8800 fi
8801 ;;
8802 esac
8804 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8805 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8806 library_names_spec=
8807 libname_spec='lib$name'
8808 soname_spec=
8809 shrext_cmds=".so"
8810 postinstall_cmds=
8811 postuninstall_cmds=
8812 finish_cmds=
8813 finish_eval=
8814 shlibpath_var=
8815 shlibpath_overrides_runpath=unknown
8816 version_type=none
8817 dynamic_linker="$host_os ld.so"
8818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8819 if test "$GCC" = yes; then
8820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8821 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8822 # if the path contains ";" then we assume it to be the separator
8823 # otherwise default to the standard path separator (i.e. ":") - it is
8824 # assumed that no part of a normal pathname contains ";" but that should
8825 # okay in the real world where ";" in dirpaths is itself problematic.
8826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8827 else
8828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8829 fi
8830 else
8831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8832 fi
8833 need_lib_prefix=unknown
8834 hardcode_into_libs=no
8836 # when you set need_version to no, make sure it does not cause -set_version
8837 # flags to be left without arguments
8838 need_version=unknown
8840 case $host_os in
8841 aix3*)
8842 version_type=linux
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8844 shlibpath_var=LIBPATH
8846 # AIX 3 has no versioning support, so we append a major version to the name.
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 ;;
8850 aix4* | aix5*)
8851 version_type=linux
8852 need_lib_prefix=no
8853 need_version=no
8854 hardcode_into_libs=yes
8855 if test "$host_cpu" = ia64; then
8856 # AIX 5 supports IA64
8857 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8858 shlibpath_var=LD_LIBRARY_PATH
8859 else
8860 # With GCC up to 2.95.x, collect2 would create an import file
8861 # for dependence libraries. The import file would start with
8862 # the line `#! .'. This would cause the generated library to
8863 # depend on `.', always an invalid library. This was fixed in
8864 # development snapshots of GCC prior to 3.0.
8865 case $host_os in
8866 aix4 | aix4.[01] | aix4.[01].*)
8867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8868 echo ' yes '
8869 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8870 :
8871 else
8872 can_build_shared=no
8873 fi
8874 ;;
8875 esac
8876 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8877 # soname into executable. Probably we can add versioning support to
8878 # collect2, so additional links can be useful in future.
8879 if test "$aix_use_runtimelinking" = yes; then
8880 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8881 # instead of lib<name>.a to let people know that these are not
8882 # typical AIX shared libraries.
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8884 else
8885 # We preserve .a as extension for shared libraries through AIX4.2
8886 # and later when we are not doing run time linking.
8887 library_names_spec='${libname}${release}.a $libname.a'
8888 soname_spec='${libname}${release}${shared_ext}$major'
8889 fi
8890 shlibpath_var=LIBPATH
8891 fi
8892 ;;
8894 amigaos*)
8895 library_names_spec='$libname.ixlibrary $libname.a'
8896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8897 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'
8898 ;;
8900 beos*)
8901 library_names_spec='${libname}${shared_ext}'
8902 dynamic_linker="$host_os ld.so"
8903 shlibpath_var=LIBRARY_PATH
8904 ;;
8906 bsdi[45]*)
8907 version_type=linux
8908 need_version=no
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8912 shlibpath_var=LD_LIBRARY_PATH
8913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8915 # the default ld.so.conf also contains /usr/contrib/lib and
8916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8917 # libtool to hard-code these into programs
8918 ;;
8920 cygwin* | mingw* | pw32*)
8921 version_type=windows
8922 shrext_cmds=".dll"
8923 need_version=no
8924 need_lib_prefix=no
8926 case $GCC,$host_os in
8927 yes,cygwin* | yes,mingw* | yes,pw32*)
8928 library_names_spec='$libname.dll.a'
8929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8930 postinstall_cmds='base_file=`basename \${file}`~
8931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8932 dldir=$destdir/`dirname \$dlpath`~
8933 test -d \$dldir || mkdir -p \$dldir~
8934 $install_prog $dir/$dlname \$dldir/$dlname~
8935 chmod a+x \$dldir/$dlname'
8936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8937 dlpath=$dir/\$dldll~
8938 $rm \$dlpath'
8939 shlibpath_overrides_runpath=yes
8941 case $host_os in
8942 cygwin*)
8943 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8944 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8945 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8946 ;;
8947 mingw*)
8948 # MinGW DLLs use traditional 'lib' prefix
8949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8950 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8951 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8952 # It is most probably a Windows format PATH printed by
8953 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8954 # path with ; separators, and with drive letters. We can handle the
8955 # drive letters (cygwin fileutils understands them), so leave them,
8956 # especially as we might pass files found there to a mingw objdump,
8957 # which wouldn't understand a cygwinified path. Ahh.
8958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8959 else
8960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8961 fi
8962 ;;
8963 pw32*)
8964 # pw32 DLLs use 'pw' prefix rather than 'lib'
8965 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966 ;;
8967 esac
8968 ;;
8970 *)
8971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8972 ;;
8973 esac
8974 dynamic_linker='Win32 ld.exe'
8975 # FIXME: first we should search . and the directory the executable is in
8976 shlibpath_var=PATH
8977 ;;
8979 darwin* | rhapsody*)
8980 dynamic_linker="$host_os dyld"
8981 version_type=darwin
8982 need_lib_prefix=no
8983 need_version=no
8984 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8985 soname_spec='${libname}${release}${major}$shared_ext'
8986 shlibpath_overrides_runpath=yes
8987 shlibpath_var=DYLD_LIBRARY_PATH
8988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8989 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8990 if test "$GCC" = yes; then
8991 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"`
8992 else
8993 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8994 fi
8995 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8996 ;;
8998 dgux*)
8999 version_type=linux
9000 need_lib_prefix=no
9001 need_version=no
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 ;;
9007 freebsd1*)
9008 dynamic_linker=no
9009 ;;
9011 freebsd* | dragonfly*)
9012 # DragonFly does not have aout. When/if they implement a new
9013 # versioning mechanism, adjust this.
9014 if test -x /usr/bin/objformat; then
9015 objformat=`/usr/bin/objformat`
9016 else
9017 case $host_os in
9018 freebsd[123]*) objformat=aout ;;
9019 *) objformat=elf ;;
9020 esac
9021 fi
9022 version_type=freebsd-$objformat
9023 case $version_type in
9024 freebsd-elf*)
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9026 need_version=no
9027 need_lib_prefix=no
9028 ;;
9029 freebsd-*)
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9031 need_version=yes
9032 ;;
9033 esac
9034 shlibpath_var=LD_LIBRARY_PATH
9035 case $host_os in
9036 freebsd2*)
9037 shlibpath_overrides_runpath=yes
9038 ;;
9039 freebsd3.[01]* | freebsdelf3.[01]*)
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9042 ;;
9043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9045 shlibpath_overrides_runpath=no
9046 hardcode_into_libs=yes
9047 ;;
9048 freebsd*) # from 4.6 on
9049 shlibpath_overrides_runpath=yes
9050 hardcode_into_libs=yes
9051 ;;
9052 esac
9053 ;;
9055 gnu*)
9056 version_type=linux
9057 need_lib_prefix=no
9058 need_version=no
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 hardcode_into_libs=yes
9063 ;;
9065 hpux9* | hpux10* | hpux11*)
9066 # Give a soname corresponding to the major version so that dld.sl refuses to
9067 # link against other versions.
9068 version_type=sunos
9069 need_lib_prefix=no
9070 need_version=no
9071 case $host_cpu in
9072 ia64*)
9073 shrext_cmds='.so'
9074 hardcode_into_libs=yes
9075 dynamic_linker="$host_os dld.so"
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 if test "X$HPUX_IA64_MODE" = X32; then
9081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9082 else
9083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9084 fi
9085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9086 ;;
9087 hppa*64*)
9088 shrext_cmds='.sl'
9089 hardcode_into_libs=yes
9090 dynamic_linker="$host_os dld.sl"
9091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9097 ;;
9098 *)
9099 shrext_cmds='.sl'
9100 dynamic_linker="$host_os dld.sl"
9101 shlibpath_var=SHLIB_PATH
9102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 ;;
9106 esac
9107 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9108 postinstall_cmds='chmod 555 $lib'
9109 ;;
9111 interix3*)
9112 version_type=linux
9113 need_lib_prefix=no
9114 need_version=no
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9121 ;;
9123 irix5* | irix6* | nonstopux*)
9124 case $host_os in
9125 nonstopux*) version_type=nonstopux ;;
9126 *)
9127 if test "$lt_cv_prog_gnu_ld" = yes; then
9128 version_type=linux
9129 else
9130 version_type=irix
9131 fi ;;
9132 esac
9133 need_lib_prefix=no
9134 need_version=no
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9137 case $host_os in
9138 irix5* | nonstopux*)
9139 libsuff= shlibsuff=
9140 ;;
9141 *)
9142 case $LD in # libtool.m4 will add one of these switches to LD
9143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9144 libsuff= shlibsuff= libmagic=32-bit;;
9145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9146 libsuff=32 shlibsuff=N32 libmagic=N32;;
9147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9149 *) libsuff= shlibsuff= libmagic=never-match;;
9150 esac
9151 ;;
9152 esac
9153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9154 shlibpath_overrides_runpath=no
9155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9157 hardcode_into_libs=yes
9158 ;;
9160 # No shared lib support for Linux oldld, aout, or coff.
9161 linux*oldld* | linux*aout* | linux*coff*)
9162 dynamic_linker=no
9163 ;;
9165 # This must be Linux ELF.
9166 linux* | k*bsd*-gnu)
9167 version_type=linux
9168 need_lib_prefix=no
9169 need_version=no
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=no
9175 # This implies no fast_install, which is unacceptable.
9176 # Some rework will be needed to allow for fast_install
9177 # before this can be enabled.
9178 hardcode_into_libs=yes
9180 # Append ld.so.conf contents to the search path
9181 if test -f /etc/ld.so.conf; then
9182 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' ' '`
9183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9184 fi
9186 # We used to test for /lib/ld.so.1 and disable shared libraries on
9187 # powerpc, because MkLinux only supported shared libraries with the
9188 # GNU dynamic linker. Since this was broken with cross compilers,
9189 # most powerpc-linux boxes support dynamic linking these days and
9190 # people can always --disable-shared, the test was removed, and we
9191 # assume the GNU/Linux dynamic linker is in use.
9192 dynamic_linker='GNU/Linux ld.so'
9193 ;;
9195 netbsdelf*-gnu)
9196 version_type=linux
9197 need_lib_prefix=no
9198 need_version=no
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=no
9203 hardcode_into_libs=yes
9204 dynamic_linker='NetBSD ld.elf_so'
9205 ;;
9207 netbsd*)
9208 version_type=sunos
9209 need_lib_prefix=no
9210 need_version=no
9211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9214 dynamic_linker='NetBSD (a.out) ld.so'
9215 else
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 dynamic_linker='NetBSD ld.elf_so'
9219 fi
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes
9222 hardcode_into_libs=yes
9223 ;;
9225 newsos6)
9226 version_type=linux
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 shlibpath_overrides_runpath=yes
9230 ;;
9232 nto-qnx*)
9233 version_type=linux
9234 need_lib_prefix=no
9235 need_version=no
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9240 ;;
9242 openbsd*)
9243 version_type=sunos
9244 sys_lib_dlsearch_path_spec="/usr/lib"
9245 need_lib_prefix=no
9246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9247 case $host_os in
9248 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9249 *) need_version=no ;;
9250 esac
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9255 case $host_os in
9256 openbsd2.[89] | openbsd2.[89].*)
9257 shlibpath_overrides_runpath=no
9258 ;;
9259 *)
9260 shlibpath_overrides_runpath=yes
9261 ;;
9262 esac
9263 else
9264 shlibpath_overrides_runpath=yes
9265 fi
9266 ;;
9268 os2*)
9269 libname_spec='$name'
9270 shrext_cmds=".dll"
9271 need_lib_prefix=no
9272 library_names_spec='$libname${shared_ext} $libname.a'
9273 dynamic_linker='OS/2 ld.exe'
9274 shlibpath_var=LIBPATH
9275 ;;
9277 osf3* | osf4* | osf5*)
9278 version_type=osf
9279 need_lib_prefix=no
9280 need_version=no
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9286 ;;
9288 solaris*)
9289 version_type=linux
9290 need_lib_prefix=no
9291 need_version=no
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9296 hardcode_into_libs=yes
9297 # ldd complains unless libraries are executable
9298 postinstall_cmds='chmod +x $lib'
9299 ;;
9301 sunos4*)
9302 version_type=sunos
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9307 if test "$with_gnu_ld" = yes; then
9308 need_lib_prefix=no
9309 fi
9310 need_version=yes
9311 ;;
9313 sysv4 | sysv4.3*)
9314 version_type=linux
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 case $host_vendor in
9319 sni)
9320 shlibpath_overrides_runpath=no
9321 need_lib_prefix=no
9322 export_dynamic_flag_spec='${wl}-Blargedynsym'
9323 runpath_var=LD_RUN_PATH
9324 ;;
9325 siemens)
9326 need_lib_prefix=no
9327 ;;
9328 motorola)
9329 need_lib_prefix=no
9330 need_version=no
9331 shlibpath_overrides_runpath=no
9332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9333 ;;
9334 esac
9335 ;;
9337 sysv4*MP*)
9338 if test -d /usr/nec ;then
9339 version_type=linux
9340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9341 soname_spec='$libname${shared_ext}.$major'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 fi
9344 ;;
9346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9347 version_type=freebsd-elf
9348 need_lib_prefix=no
9349 need_version=no
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 hardcode_into_libs=yes
9354 if test "$with_gnu_ld" = yes; then
9355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9356 shlibpath_overrides_runpath=no
9357 else
9358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9359 shlibpath_overrides_runpath=yes
9360 case $host_os in
9361 sco3.2v5*)
9362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9363 ;;
9364 esac
9365 fi
9366 sys_lib_dlsearch_path_spec='/usr/lib'
9367 ;;
9369 uts4*)
9370 version_type=linux
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 ;;
9376 *)
9377 dynamic_linker=no
9378 ;;
9379 esac
9380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9381 echo "${ECHO_T}$dynamic_linker" >&6; }
9382 test "$dynamic_linker" = no && can_build_shared=no
9384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9385 if test "$GCC" = yes; then
9386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9387 fi
9389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9391 hardcode_action=
9392 if test -n "$hardcode_libdir_flag_spec" || \
9393 test -n "$runpath_var" || \
9394 test "X$hardcode_automatic" = "Xyes" ; then
9396 # We can hardcode non-existant directories.
9397 if test "$hardcode_direct" != no &&
9398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9399 # have to relink, otherwise we might link with an installed library
9400 # when we should be linking with a yet-to-be-installed one
9401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9402 test "$hardcode_minus_L" != no; then
9403 # Linking always hardcodes the temporary library directory.
9404 hardcode_action=relink
9405 else
9406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9407 hardcode_action=immediate
9408 fi
9409 else
9410 # We cannot hardcode anything, or else we can only hardcode existing
9411 # directories.
9412 hardcode_action=unsupported
9413 fi
9414 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9415 echo "${ECHO_T}$hardcode_action" >&6; }
9417 if test "$hardcode_action" = relink; then
9418 # Fast installation is not supported
9419 enable_fast_install=no
9420 elif test "$shlibpath_overrides_runpath" = yes ||
9421 test "$enable_shared" = no; then
9422 # Fast installation is not necessary
9423 enable_fast_install=needless
9424 fi
9426 striplib=
9427 old_striplib=
9428 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9430 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9431 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9432 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9433 { echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6; }
9435 else
9436 # FIXME - insert some real tests, host_os isn't really good enough
9437 case $host_os in
9438 darwin*)
9439 if test -n "$STRIP" ; then
9440 striplib="$STRIP -x"
9441 { echo "$as_me:$LINENO: result: yes" >&5
9442 echo "${ECHO_T}yes" >&6; }
9443 else
9444 { echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6; }
9446 fi
9447 ;;
9448 *)
9449 { echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6; }
9451 ;;
9452 esac
9453 fi
9455 if test "x$enable_dlopen" != xyes; then
9456 enable_dlopen=unknown
9457 enable_dlopen_self=unknown
9458 enable_dlopen_self_static=unknown
9459 else
9460 lt_cv_dlopen=no
9461 lt_cv_dlopen_libs=
9463 case $host_os in
9464 beos*)
9465 lt_cv_dlopen="load_add_on"
9466 lt_cv_dlopen_libs=
9467 lt_cv_dlopen_self=yes
9468 ;;
9470 mingw* | pw32*)
9471 lt_cv_dlopen="LoadLibrary"
9472 lt_cv_dlopen_libs=
9473 ;;
9475 cygwin*)
9476 lt_cv_dlopen="dlopen"
9477 lt_cv_dlopen_libs=
9478 ;;
9480 darwin*)
9481 # if libdl is installed we need to link against it
9482 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 ac_check_lib_save_LIBS=$LIBS
9488 LIBS="-ldl $LIBS"
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h. */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9496 /* Override any GCC internal prototype to avoid an error.
9497 Use char because int might match the return type of a GCC
9498 builtin and then its argument prototype would still apply. */
9499 #ifdef __cplusplus
9500 extern "C"
9501 #endif
9502 char dlopen ();
9503 int
9504 main ()
9505 {
9506 return dlopen ();
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (ac_try="$ac_link"
9513 case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_link") 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest$ac_exeext &&
9528 $as_test_x conftest$ac_exeext; then
9529 ac_cv_lib_dl_dlopen=yes
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_cv_lib_dl_dlopen=no
9535 fi
9537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9538 conftest$ac_exeext conftest.$ac_ext
9539 LIBS=$ac_check_lib_save_LIBS
9540 fi
9541 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9542 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9543 if test $ac_cv_lib_dl_dlopen = yes; then
9544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9545 else
9547 lt_cv_dlopen="dyld"
9548 lt_cv_dlopen_libs=
9549 lt_cv_dlopen_self=yes
9551 fi
9553 ;;
9555 *)
9556 { echo "$as_me:$LINENO: checking for shl_load" >&5
9557 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9558 if test "${ac_cv_func_shl_load+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9569 #define shl_load innocuous_shl_load
9571 /* System header to define __stub macros and hopefully few prototypes,
9572 which can conflict with char shl_load (); below.
9573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9574 <limits.h> exists even on freestanding compilers. */
9576 #ifdef __STDC__
9577 # include <limits.h>
9578 #else
9579 # include <assert.h>
9580 #endif
9582 #undef shl_load
9584 /* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 char shl_load ();
9591 /* The GNU C library defines this for functions which it implements
9592 to always fail with ENOSYS. Some functions are actually named
9593 something starting with __ and the normal name is an alias. */
9594 #if defined __stub_shl_load || defined __stub___shl_load
9595 choke me
9596 #endif
9598 int
9599 main ()
9600 {
9601 return shl_load ();
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_func_shl_load=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_func_shl_load=no
9630 fi
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9634 fi
9635 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9636 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9637 if test $ac_cv_func_shl_load = yes; then
9638 lt_cv_dlopen="shl_load"
9639 else
9640 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9641 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9642 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 ac_check_lib_save_LIBS=$LIBS
9646 LIBS="-ldld $LIBS"
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 char shl_load ();
9661 int
9662 main ()
9663 {
9664 return shl_load ();
9665 ;
9666 return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (ac_try="$ac_link"
9671 case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674 esac
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_link") 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_c_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest$ac_exeext &&
9686 $as_test_x conftest$ac_exeext; then
9687 ac_cv_lib_dld_shl_load=yes
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_cv_lib_dld_shl_load=no
9693 fi
9695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9698 fi
9699 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9700 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9701 if test $ac_cv_lib_dld_shl_load = yes; then
9702 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9703 else
9704 { echo "$as_me:$LINENO: checking for dlopen" >&5
9705 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9706 if test "${ac_cv_func_dlopen+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9717 #define dlopen innocuous_dlopen
9719 /* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char dlopen (); below.
9721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9722 <limits.h> exists even on freestanding compilers. */
9724 #ifdef __STDC__
9725 # include <limits.h>
9726 #else
9727 # include <assert.h>
9728 #endif
9730 #undef dlopen
9732 /* Override any GCC internal prototype to avoid an error.
9733 Use char because int might match the return type of a GCC
9734 builtin and then its argument prototype would still apply. */
9735 #ifdef __cplusplus
9736 extern "C"
9737 #endif
9738 char dlopen ();
9739 /* The GNU C library defines this for functions which it implements
9740 to always fail with ENOSYS. Some functions are actually named
9741 something starting with __ and the normal name is an alias. */
9742 #if defined __stub_dlopen || defined __stub___dlopen
9743 choke me
9744 #endif
9746 int
9747 main ()
9748 {
9749 return dlopen ();
9750 ;
9751 return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (ac_try="$ac_link"
9756 case "(($ac_try" in
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9759 esac
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761 (eval "$ac_link") 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest$ac_exeext &&
9771 $as_test_x conftest$ac_exeext; then
9772 ac_cv_func_dlopen=yes
9773 else
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_cv_func_dlopen=no
9778 fi
9780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9781 conftest$ac_exeext conftest.$ac_ext
9782 fi
9783 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9784 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9785 if test $ac_cv_func_dlopen = yes; then
9786 lt_cv_dlopen="dlopen"
9787 else
9788 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 ac_check_lib_save_LIBS=$LIBS
9794 LIBS="-ldl $LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9802 /* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 char dlopen ();
9809 int
9810 main ()
9811 {
9812 return dlopen ();
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext &&
9834 $as_test_x conftest$ac_exeext; then
9835 ac_cv_lib_dl_dlopen=yes
9836 else
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9840 ac_cv_lib_dl_dlopen=no
9841 fi
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS
9846 fi
9847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9848 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9849 if test $ac_cv_lib_dl_dlopen = yes; then
9850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9851 else
9852 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9853 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9854 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 ac_check_lib_save_LIBS=$LIBS
9858 LIBS="-lsvld $LIBS"
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h. */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 char dlopen ();
9873 int
9874 main ()
9875 {
9876 return dlopen ();
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 rm -f conftest.$ac_objext conftest$ac_exeext
9882 if { (ac_try="$ac_link"
9883 case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886 esac
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_link") 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } && {
9895 test -z "$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 } && test -s conftest$ac_exeext &&
9898 $as_test_x conftest$ac_exeext; then
9899 ac_cv_lib_svld_dlopen=yes
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_cv_lib_svld_dlopen=no
9905 fi
9907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9908 conftest$ac_exeext conftest.$ac_ext
9909 LIBS=$ac_check_lib_save_LIBS
9910 fi
9911 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9912 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9913 if test $ac_cv_lib_svld_dlopen = yes; then
9914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9915 else
9916 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9917 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9918 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 ac_check_lib_save_LIBS=$LIBS
9922 LIBS="-ldld $LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9930 /* Override any GCC internal prototype to avoid an error.
9931 Use char because int might match the return type of a GCC
9932 builtin and then its argument prototype would still apply. */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 char dld_link ();
9937 int
9938 main ()
9939 {
9940 return dld_link ();
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9947 case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && {
9959 test -z "$ac_c_werror_flag" ||
9960 test ! -s conftest.err
9961 } && test -s conftest$ac_exeext &&
9962 $as_test_x conftest$ac_exeext; then
9963 ac_cv_lib_dld_dld_link=yes
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 ac_cv_lib_dld_dld_link=no
9969 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9972 conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9977 if test $ac_cv_lib_dld_dld_link = yes; then
9978 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9979 fi
9982 fi
9985 fi
9988 fi
9991 fi
9994 fi
9996 ;;
9997 esac
9999 if test "x$lt_cv_dlopen" != xno; then
10000 enable_dlopen=yes
10001 else
10002 enable_dlopen=no
10003 fi
10005 case $lt_cv_dlopen in
10006 dlopen)
10007 save_CPPFLAGS="$CPPFLAGS"
10008 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10010 save_LDFLAGS="$LDFLAGS"
10011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10013 save_LIBS="$LIBS"
10014 LIBS="$lt_cv_dlopen_libs $LIBS"
10016 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10017 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10018 if test "${lt_cv_dlopen_self+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 if test "$cross_compiling" = yes; then :
10022 lt_cv_dlopen_self=cross
10023 else
10024 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10025 lt_status=$lt_dlunknown
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10027 "configure"
10028 #include "confdefs.h"
10030 #if HAVE_DLFCN_H
10031 #include <dlfcn.h>
10032 #endif
10034 #include <stdio.h>
10036 #ifdef RTLD_GLOBAL
10037 # define LT_DLGLOBAL RTLD_GLOBAL
10038 #else
10039 # ifdef DL_GLOBAL
10040 # define LT_DLGLOBAL DL_GLOBAL
10041 # else
10042 # define LT_DLGLOBAL 0
10043 # endif
10044 #endif
10046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10047 find out it does not work in some platform. */
10048 #ifndef LT_DLLAZY_OR_NOW
10049 # ifdef RTLD_LAZY
10050 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10051 # else
10052 # ifdef DL_LAZY
10053 # define LT_DLLAZY_OR_NOW DL_LAZY
10054 # else
10055 # ifdef RTLD_NOW
10056 # define LT_DLLAZY_OR_NOW RTLD_NOW
10057 # else
10058 # ifdef DL_NOW
10059 # define LT_DLLAZY_OR_NOW DL_NOW
10060 # else
10061 # define LT_DLLAZY_OR_NOW 0
10062 # endif
10063 # endif
10064 # endif
10065 # endif
10066 #endif
10068 #ifdef __cplusplus
10069 extern "C" void exit (int);
10070 #endif
10072 void fnord() { int i=42;}
10073 int main ()
10074 {
10075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10076 int status = $lt_dlunknown;
10078 if (self)
10079 {
10080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10081 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10082 /* dlclose (self); */
10083 }
10084 else
10085 puts (dlerror ());
10087 exit (status);
10088 }
10089 EOF
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091 (eval $ac_link) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10095 (./conftest; exit; ) >&5 2>/dev/null
10096 lt_status=$?
10097 case x$lt_status in
10098 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10099 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10100 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10101 esac
10102 else :
10103 # compilation failed
10104 lt_cv_dlopen_self=no
10105 fi
10106 fi
10107 rm -fr conftest*
10110 fi
10111 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10114 if test "x$lt_cv_dlopen_self" = xyes; then
10115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10116 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10118 if test "${lt_cv_dlopen_self_static+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 if test "$cross_compiling" = yes; then :
10122 lt_cv_dlopen_self_static=cross
10123 else
10124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10125 lt_status=$lt_dlunknown
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10127 "configure"
10128 #include "confdefs.h"
10130 #if HAVE_DLFCN_H
10131 #include <dlfcn.h>
10132 #endif
10134 #include <stdio.h>
10136 #ifdef RTLD_GLOBAL
10137 # define LT_DLGLOBAL RTLD_GLOBAL
10138 #else
10139 # ifdef DL_GLOBAL
10140 # define LT_DLGLOBAL DL_GLOBAL
10141 # else
10142 # define LT_DLGLOBAL 0
10143 # endif
10144 #endif
10146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10147 find out it does not work in some platform. */
10148 #ifndef LT_DLLAZY_OR_NOW
10149 # ifdef RTLD_LAZY
10150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10151 # else
10152 # ifdef DL_LAZY
10153 # define LT_DLLAZY_OR_NOW DL_LAZY
10154 # else
10155 # ifdef RTLD_NOW
10156 # define LT_DLLAZY_OR_NOW RTLD_NOW
10157 # else
10158 # ifdef DL_NOW
10159 # define LT_DLLAZY_OR_NOW DL_NOW
10160 # else
10161 # define LT_DLLAZY_OR_NOW 0
10162 # endif
10163 # endif
10164 # endif
10165 # endif
10166 #endif
10168 #ifdef __cplusplus
10169 extern "C" void exit (int);
10170 #endif
10172 void fnord() { int i=42;}
10173 int main ()
10174 {
10175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10176 int status = $lt_dlunknown;
10178 if (self)
10179 {
10180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10182 /* dlclose (self); */
10183 }
10184 else
10185 puts (dlerror ());
10187 exit (status);
10188 }
10189 EOF
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10195 (./conftest; exit; ) >&5 2>/dev/null
10196 lt_status=$?
10197 case x$lt_status in
10198 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10199 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10200 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10201 esac
10202 else :
10203 # compilation failed
10204 lt_cv_dlopen_self_static=no
10205 fi
10206 fi
10207 rm -fr conftest*
10210 fi
10211 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10212 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10213 fi
10215 CPPFLAGS="$save_CPPFLAGS"
10216 LDFLAGS="$save_LDFLAGS"
10217 LIBS="$save_LIBS"
10218 ;;
10219 esac
10221 case $lt_cv_dlopen_self in
10222 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10223 *) enable_dlopen_self=unknown ;;
10224 esac
10226 case $lt_cv_dlopen_self_static in
10227 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10228 *) enable_dlopen_self_static=unknown ;;
10229 esac
10230 fi
10233 # Report which library types will actually be built
10234 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10235 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10236 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10237 echo "${ECHO_T}$can_build_shared" >&6; }
10239 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10240 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10241 test "$can_build_shared" = "no" && enable_shared=no
10243 # On AIX, shared libraries and static libraries use the same namespace, and
10244 # are all built from PIC.
10245 case $host_os in
10246 aix3*)
10247 test "$enable_shared" = yes && enable_static=no
10248 if test -n "$RANLIB"; then
10249 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10250 postinstall_cmds='$RANLIB $lib'
10251 fi
10252 ;;
10254 aix4* | aix5*)
10255 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10256 test "$enable_shared" = yes && enable_static=no
10257 fi
10258 ;;
10259 esac
10260 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10261 echo "${ECHO_T}$enable_shared" >&6; }
10263 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10264 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10265 # Make sure either enable_shared or enable_static is yes.
10266 test "$enable_shared" = yes || enable_static=yes
10267 { echo "$as_me:$LINENO: result: $enable_static" >&5
10268 echo "${ECHO_T}$enable_static" >&6; }
10270 # The else clause should only fire when bootstrapping the
10271 # libtool distribution, otherwise you forgot to ship ltmain.sh
10272 # with your package, and you will get complaints that there are
10273 # no rules to generate ltmain.sh.
10274 if test -f "$ltmain"; then
10275 # See if we are running on zsh, and set the options which allow our commands through
10276 # without removal of \ escapes.
10277 if test -n "${ZSH_VERSION+set}" ; then
10278 setopt NO_GLOB_SUBST
10279 fi
10280 # Now quote all the things that may contain metacharacters while being
10281 # careful not to overquote the AC_SUBSTed values. We take copies of the
10282 # variables and quote the copies for generation of the libtool script.
10283 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10284 SED SHELL STRIP \
10285 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10286 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10287 deplibs_check_method reload_flag reload_cmds need_locks \
10288 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10289 lt_cv_sys_global_symbol_to_c_name_address \
10290 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10291 old_postinstall_cmds old_postuninstall_cmds \
10292 compiler \
10293 CC \
10294 LD \
10295 lt_prog_compiler_wl \
10296 lt_prog_compiler_pic \
10297 lt_prog_compiler_static \
10298 lt_prog_compiler_no_builtin_flag \
10299 export_dynamic_flag_spec \
10300 thread_safe_flag_spec \
10301 whole_archive_flag_spec \
10302 enable_shared_with_static_runtimes \
10303 old_archive_cmds \
10304 old_archive_from_new_cmds \
10305 predep_objects \
10306 postdep_objects \
10307 predeps \
10308 postdeps \
10309 compiler_lib_search_path \
10310 archive_cmds \
10311 archive_expsym_cmds \
10312 postinstall_cmds \
10313 postuninstall_cmds \
10314 old_archive_from_expsyms_cmds \
10315 allow_undefined_flag \
10316 no_undefined_flag \
10317 export_symbols_cmds \
10318 hardcode_libdir_flag_spec \
10319 hardcode_libdir_flag_spec_ld \
10320 hardcode_libdir_separator \
10321 hardcode_automatic \
10322 module_cmds \
10323 module_expsym_cmds \
10324 lt_cv_prog_compiler_c_o \
10325 exclude_expsyms \
10326 include_expsyms; do
10328 case $var in
10329 old_archive_cmds | \
10330 old_archive_from_new_cmds | \
10331 archive_cmds | \
10332 archive_expsym_cmds | \
10333 module_cmds | \
10334 module_expsym_cmds | \
10335 old_archive_from_expsyms_cmds | \
10336 export_symbols_cmds | \
10337 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10338 postinstall_cmds | postuninstall_cmds | \
10339 old_postinstall_cmds | old_postuninstall_cmds | \
10340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10341 # Double-quote double-evaled strings.
10342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10343 ;;
10344 *)
10345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10346 ;;
10347 esac
10348 done
10350 case $lt_echo in
10351 *'\$0 --fallback-echo"')
10352 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10353 ;;
10354 esac
10356 cfgfile="${ofile}T"
10357 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10358 $rm -f "$cfgfile"
10359 { echo "$as_me:$LINENO: creating $ofile" >&5
10360 echo "$as_me: creating $ofile" >&6;}
10362 cat <<__EOF__ >> "$cfgfile"
10363 #! $SHELL
10365 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10366 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10368 #
10369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10370 # Free Software Foundation, Inc.
10371 #
10372 # This file is part of GNU Libtool:
10373 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10374 #
10375 # This program is free software; you can redistribute it and/or modify
10376 # it under the terms of the GNU General Public License as published by
10377 # the Free Software Foundation; either version 2 of the License, or
10378 # (at your option) any later version.
10379 #
10380 # This program is distributed in the hope that it will be useful, but
10381 # WITHOUT ANY WARRANTY; without even the implied warranty of
10382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10383 # General Public License for more details.
10384 #
10385 # You should have received a copy of the GNU General Public License
10386 # along with this program; if not, write to the Free Software
10387 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10388 #
10389 # As a special exception to the GNU General Public License, if you
10390 # distribute this file as part of a program that contains a
10391 # configuration script generated by Autoconf, you may include it under
10392 # the same distribution terms that you use for the rest of that program.
10394 # A sed program that does not truncate output.
10395 SED=$lt_SED
10397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10398 Xsed="$SED -e 1s/^X//"
10400 # The HP-UX ksh and POSIX shell print the target directory to stdout
10401 # if CDPATH is set.
10402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10404 # The names of the tagged configurations supported by this script.
10405 available_tags=
10407 # ### BEGIN LIBTOOL CONFIG
10409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10411 # Shell to use when invoking shell scripts.
10412 SHELL=$lt_SHELL
10414 # Whether or not to build shared libraries.
10415 build_libtool_libs=$enable_shared
10417 # Whether or not to build static libraries.
10418 build_old_libs=$enable_static
10420 # Whether or not to add -lc for building shared libraries.
10421 build_libtool_need_lc=$archive_cmds_need_lc
10423 # Whether or not to disallow shared libs when runtime libs are static
10424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10426 # Whether or not to optimize for fast installation.
10427 fast_install=$enable_fast_install
10429 # The host system.
10430 host_alias=$host_alias
10431 host=$host
10432 host_os=$host_os
10434 # The build system.
10435 build_alias=$build_alias
10436 build=$build
10437 build_os=$build_os
10439 # An echo program that does not interpret backslashes.
10440 echo=$lt_echo
10442 # The archiver.
10443 AR=$lt_AR
10444 AR_FLAGS=$lt_AR_FLAGS
10446 # A C compiler.
10447 LTCC=$lt_LTCC
10449 # LTCC compiler flags.
10450 LTCFLAGS=$lt_LTCFLAGS
10452 # A language-specific compiler.
10453 CC=$lt_compiler
10455 # Is the compiler the GNU C compiler?
10456 with_gcc=$GCC
10458 # An ERE matcher.
10459 EGREP=$lt_EGREP
10461 # The linker used to build libraries.
10462 LD=$lt_LD
10464 # Whether we need hard or soft links.
10465 LN_S=$lt_LN_S
10467 # A BSD-compatible nm program.
10468 NM=$lt_NM
10470 # A symbol stripping program
10471 STRIP=$lt_STRIP
10473 # Used to examine libraries when file_magic_cmd begins "file"
10474 MAGIC_CMD=$MAGIC_CMD
10476 # Used on cygwin: DLL creation program.
10477 DLLTOOL="$DLLTOOL"
10479 # Used on cygwin: object dumper.
10480 OBJDUMP="$OBJDUMP"
10482 # Used on cygwin: assembler.
10483 AS="$AS"
10485 # The name of the directory that contains temporary libtool files.
10486 objdir=$objdir
10488 # How to create reloadable object files.
10489 reload_flag=$lt_reload_flag
10490 reload_cmds=$lt_reload_cmds
10492 # How to pass a linker flag through the compiler.
10493 wl=$lt_lt_prog_compiler_wl
10495 # Object file suffix (normally "o").
10496 objext="$ac_objext"
10498 # Old archive suffix (normally "a").
10499 libext="$libext"
10501 # Shared library suffix (normally ".so").
10502 shrext_cmds='$shrext_cmds'
10504 # Executable file suffix (normally "").
10505 exeext="$exeext"
10507 # Additional compiler flags for building library objects.
10508 pic_flag=$lt_lt_prog_compiler_pic
10509 pic_mode=$pic_mode
10511 # What is the maximum length of a command?
10512 max_cmd_len=$lt_cv_sys_max_cmd_len
10514 # Does compiler simultaneously support -c and -o options?
10515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10517 # Must we lock files when doing compilation?
10518 need_locks=$lt_need_locks
10520 # Do we need the lib prefix for modules?
10521 need_lib_prefix=$need_lib_prefix
10523 # Do we need a version for libraries?
10524 need_version=$need_version
10526 # Whether dlopen is supported.
10527 dlopen_support=$enable_dlopen
10529 # Whether dlopen of programs is supported.
10530 dlopen_self=$enable_dlopen_self
10532 # Whether dlopen of statically linked programs is supported.
10533 dlopen_self_static=$enable_dlopen_self_static
10535 # Compiler flag to prevent dynamic linking.
10536 link_static_flag=$lt_lt_prog_compiler_static
10538 # Compiler flag to turn off builtin functions.
10539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10541 # Compiler flag to allow reflexive dlopens.
10542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10544 # Compiler flag to generate shared objects directly from archives.
10545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10547 # Compiler flag to generate thread-safe objects.
10548 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10550 # Library versioning type.
10551 version_type=$version_type
10553 # Format of library name prefix.
10554 libname_spec=$lt_libname_spec
10556 # List of archive names. First name is the real one, the rest are links.
10557 # The last name is the one that the linker finds with -lNAME.
10558 library_names_spec=$lt_library_names_spec
10560 # The coded name of the library, if different from the real name.
10561 soname_spec=$lt_soname_spec
10563 # Commands used to build and install an old-style archive.
10564 RANLIB=$lt_RANLIB
10565 old_archive_cmds=$lt_old_archive_cmds
10566 old_postinstall_cmds=$lt_old_postinstall_cmds
10567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10569 # Create an old-style archive from a shared archive.
10570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10572 # Create a temporary old-style archive to link instead of a shared archive.
10573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10575 # Commands used to build and install a shared archive.
10576 archive_cmds=$lt_archive_cmds
10577 archive_expsym_cmds=$lt_archive_expsym_cmds
10578 postinstall_cmds=$lt_postinstall_cmds
10579 postuninstall_cmds=$lt_postuninstall_cmds
10581 # Commands used to build a loadable module (assumed same as above if empty)
10582 module_cmds=$lt_module_cmds
10583 module_expsym_cmds=$lt_module_expsym_cmds
10585 # Commands to strip libraries.
10586 old_striplib=$lt_old_striplib
10587 striplib=$lt_striplib
10589 # Dependencies to place before the objects being linked to create a
10590 # shared library.
10591 predep_objects=$lt_predep_objects
10593 # Dependencies to place after the objects being linked to create a
10594 # shared library.
10595 postdep_objects=$lt_postdep_objects
10597 # Dependencies to place before the objects being linked to create a
10598 # shared library.
10599 predeps=$lt_predeps
10601 # Dependencies to place after the objects being linked to create a
10602 # shared library.
10603 postdeps=$lt_postdeps
10605 # The library search path used internally by the compiler when linking
10606 # a shared library.
10607 compiler_lib_search_path=$lt_compiler_lib_search_path
10609 # Method to check whether dependent libraries are shared objects.
10610 deplibs_check_method=$lt_deplibs_check_method
10612 # Command to use when deplibs_check_method == file_magic.
10613 file_magic_cmd=$lt_file_magic_cmd
10615 # Flag that allows shared libraries with undefined symbols to be built.
10616 allow_undefined_flag=$lt_allow_undefined_flag
10618 # Flag that forces no undefined symbols.
10619 no_undefined_flag=$lt_no_undefined_flag
10621 # Commands used to finish a libtool library installation in a directory.
10622 finish_cmds=$lt_finish_cmds
10624 # Same as above, but a single script fragment to be evaled but not shown.
10625 finish_eval=$lt_finish_eval
10627 # Take the output of nm and produce a listing of raw symbols and C names.
10628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10630 # Transform the output of nm in a proper C declaration
10631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10633 # Transform the output of nm in a C name address pair
10634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10636 # This is the shared library runtime path variable.
10637 runpath_var=$runpath_var
10639 # This is the shared library path variable.
10640 shlibpath_var=$shlibpath_var
10642 # Is shlibpath searched before the hard-coded library search path?
10643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10645 # How to hardcode a shared library path into an executable.
10646 hardcode_action=$hardcode_action
10648 # Whether we should hardcode library paths into libraries.
10649 hardcode_into_libs=$hardcode_into_libs
10651 # Flag to hardcode \$libdir into a binary during linking.
10652 # This must work even if \$libdir does not exist.
10653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10655 # If ld is used when linking, flag to hardcode \$libdir into
10656 # a binary during linking. This must work even if \$libdir does
10657 # not exist.
10658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10660 # Whether we need a single -rpath flag with a separated argument.
10661 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10664 # resulting binary.
10665 hardcode_direct=$hardcode_direct
10667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10668 # resulting binary.
10669 hardcode_minus_L=$hardcode_minus_L
10671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10672 # the resulting binary.
10673 hardcode_shlibpath_var=$hardcode_shlibpath_var
10675 # Set to yes if building a shared library automatically hardcodes DIR into the library
10676 # and all subsequent libraries and executables linked against it.
10677 hardcode_automatic=$hardcode_automatic
10679 # Variables whose values should be saved in libtool wrapper scripts and
10680 # restored at relink time.
10681 variables_saved_for_relink="$variables_saved_for_relink"
10683 # Whether libtool must link a program against all its dependency libraries.
10684 link_all_deplibs=$link_all_deplibs
10686 # Compile-time system search path for libraries
10687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10689 # Run-time system search path for libraries
10690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10692 # Fix the shell variable \$srcfile for the compiler.
10693 fix_srcfile_path="$fix_srcfile_path"
10695 # Set to yes if exported symbols are required.
10696 always_export_symbols=$always_export_symbols
10698 # The commands to list exported symbols.
10699 export_symbols_cmds=$lt_export_symbols_cmds
10701 # The commands to extract the exported symbol list from a shared archive.
10702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10704 # Symbols that should not be listed in the preloaded symbols.
10705 exclude_expsyms=$lt_exclude_expsyms
10707 # Symbols that must always be exported.
10708 include_expsyms=$lt_include_expsyms
10710 # ### END LIBTOOL CONFIG
10712 __EOF__
10715 case $host_os in
10716 aix3*)
10717 cat <<\EOF >> "$cfgfile"
10719 # AIX sometimes has problems with the GCC collect2 program. For some
10720 # reason, if we set the COLLECT_NAMES environment variable, the problems
10721 # vanish in a puff of smoke.
10722 if test "X${COLLECT_NAMES+set}" != Xset; then
10723 COLLECT_NAMES=
10724 export COLLECT_NAMES
10725 fi
10726 EOF
10727 ;;
10728 esac
10730 # We use sed instead of cat because bash on DJGPP gets confused if
10731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10732 # text mode, it properly converts lines to CR/LF. This bash problem
10733 # is reportedly fixed, but why not run on old versions too?
10734 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10736 mv -f "$cfgfile" "$ofile" || \
10737 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10738 chmod +x "$ofile"
10740 else
10741 # If there is no Makefile yet, we rely on a make rule to execute
10742 # `config.status --recheck' to rerun these tests and create the
10743 # libtool script then.
10744 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10745 if test -f "$ltmain_in"; then
10746 test -f Makefile && make "$ltmain"
10747 fi
10748 fi
10751 ac_ext=c
10752 ac_cpp='$CPP $CPPFLAGS'
10753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10757 CC="$lt_save_CC"
10760 # Check whether --with-tags was given.
10761 if test "${with_tags+set}" = set; then
10762 withval=$with_tags; tagnames="$withval"
10763 fi
10766 if test -f "$ltmain" && test -n "$tagnames"; then
10767 if test ! -f "${ofile}"; then
10768 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10769 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10770 fi
10772 if test -z "$LTCC"; then
10773 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10774 if test -z "$LTCC"; then
10775 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10776 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10777 else
10778 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10779 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10780 fi
10781 fi
10782 if test -z "$LTCFLAGS"; then
10783 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10784 fi
10786 # Extract list of available tagged configurations in $ofile.
10787 # Note that this assumes the entire list is on one line.
10788 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10791 for tagname in $tagnames; do
10792 IFS="$lt_save_ifs"
10793 # Check whether tagname contains only valid characters
10794 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10795 "") ;;
10796 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10797 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10798 { (exit 1); exit 1; }; }
10799 ;;
10800 esac
10802 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10803 then
10804 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10805 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10806 { (exit 1); exit 1; }; }
10807 fi
10809 # Update the list of available tags.
10810 if test -n "$tagname"; then
10811 echo appending configuration tag \"$tagname\" to $ofile
10813 case $tagname in
10814 CXX)
10815 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10816 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10817 (test "X$CXX" != "Xg++"))) ; then
10818 ac_ext=cpp
10819 ac_cpp='$CXXCPP $CPPFLAGS'
10820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10827 archive_cmds_need_lc_CXX=no
10828 allow_undefined_flag_CXX=
10829 always_export_symbols_CXX=no
10830 archive_expsym_cmds_CXX=
10831 export_dynamic_flag_spec_CXX=
10832 hardcode_direct_CXX=no
10833 hardcode_libdir_flag_spec_CXX=
10834 hardcode_libdir_flag_spec_ld_CXX=
10835 hardcode_libdir_separator_CXX=
10836 hardcode_minus_L_CXX=no
10837 hardcode_shlibpath_var_CXX=unsupported
10838 hardcode_automatic_CXX=no
10839 module_cmds_CXX=
10840 module_expsym_cmds_CXX=
10841 link_all_deplibs_CXX=unknown
10842 old_archive_cmds_CXX=$old_archive_cmds
10843 no_undefined_flag_CXX=
10844 whole_archive_flag_spec_CXX=
10845 enable_shared_with_static_runtimes_CXX=no
10847 # Dependencies to place before and after the object being linked:
10848 predep_objects_CXX=
10849 postdep_objects_CXX=
10850 predeps_CXX=
10851 postdeps_CXX=
10852 compiler_lib_search_path_CXX=
10854 # Source file extension for C++ test sources.
10855 ac_ext=cpp
10857 # Object file extension for compiled C++ test sources.
10858 objext=o
10859 objext_CXX=$objext
10861 # Code to be used in simple compile tests
10862 lt_simple_compile_test_code="int some_variable = 0;\n"
10864 # Code to be used in simple link tests
10865 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10869 # If no C compiler was specified, use CC.
10870 LTCC=${LTCC-"$CC"}
10872 # If no C compiler flags were specified, use CFLAGS.
10873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10875 # Allow CC to be a program name with arguments.
10876 compiler=$CC
10879 # save warnings/boilerplate of simple test code
10880 ac_outfile=conftest.$ac_objext
10881 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10883 _lt_compiler_boilerplate=`cat conftest.err`
10884 $rm conftest*
10886 ac_outfile=conftest.$ac_objext
10887 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10889 _lt_linker_boilerplate=`cat conftest.err`
10890 $rm conftest*
10893 # Allow CC to be a program name with arguments.
10894 lt_save_CC=$CC
10895 lt_save_LD=$LD
10896 lt_save_GCC=$GCC
10897 GCC=$GXX
10898 lt_save_with_gnu_ld=$with_gnu_ld
10899 lt_save_path_LD=$lt_cv_path_LD
10900 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10901 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10902 else
10903 $as_unset lt_cv_prog_gnu_ld
10904 fi
10905 if test -n "${lt_cv_path_LDCXX+set}"; then
10906 lt_cv_path_LD=$lt_cv_path_LDCXX
10907 else
10908 $as_unset lt_cv_path_LD
10909 fi
10910 test -z "${LDCXX+set}" || LD=$LDCXX
10911 CC=${CXX-"c++"}
10912 compiler=$CC
10913 compiler_CXX=$CC
10914 for cc_temp in $compiler""; do
10915 case $cc_temp in
10916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10918 \-*) ;;
10919 *) break;;
10920 esac
10921 done
10922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10925 # We don't want -fno-exception wen compiling C++ code, so set the
10926 # no_builtin_flag separately
10927 if test "$GXX" = yes; then
10928 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10929 else
10930 lt_prog_compiler_no_builtin_flag_CXX=
10931 fi
10933 if test "$GXX" = yes; then
10934 # Set up default GNU C++ configuration
10937 # Check whether --with-gnu-ld was given.
10938 if test "${with_gnu_ld+set}" = set; then
10939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10940 else
10941 with_gnu_ld=no
10942 fi
10944 ac_prog=ld
10945 if test "$GCC" = yes; then
10946 # Check if gcc -print-prog-name=ld gives a path.
10947 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10948 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10949 case $host in
10950 *-*-mingw*)
10951 # gcc leaves a trailing carriage return which upsets mingw
10952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10953 *)
10954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10955 esac
10956 case $ac_prog in
10957 # Accept absolute paths.
10958 [\\/]* | ?:[\\/]*)
10959 re_direlt='/[^/][^/]*/\.\./'
10960 # Canonicalize the pathname of ld
10961 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10963 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10964 done
10965 test -z "$LD" && LD="$ac_prog"
10966 ;;
10967 "")
10968 # If it fails, then pretend we aren't using GCC.
10969 ac_prog=ld
10970 ;;
10971 *)
10972 # If it is relative, then search for the first ld in PATH.
10973 with_gnu_ld=unknown
10974 ;;
10975 esac
10976 elif test "$with_gnu_ld" = yes; then
10977 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10978 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10979 else
10980 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10981 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10982 fi
10983 if test "${lt_cv_path_LD+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 else
10986 if test -z "$LD"; then
10987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10988 for ac_dir in $PATH; do
10989 IFS="$lt_save_ifs"
10990 test -z "$ac_dir" && ac_dir=.
10991 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10992 lt_cv_path_LD="$ac_dir/$ac_prog"
10993 # Check to see if the program is GNU ld. I'd rather use --version,
10994 # but apparently some variants of GNU ld only accept -v.
10995 # Break only if it was the GNU/non-GNU ld that we prefer.
10996 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10997 *GNU* | *'with BFD'*)
10998 test "$with_gnu_ld" != no && break
10999 ;;
11000 *)
11001 test "$with_gnu_ld" != yes && break
11002 ;;
11003 esac
11004 fi
11005 done
11006 IFS="$lt_save_ifs"
11007 else
11008 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11009 fi
11010 fi
11012 LD="$lt_cv_path_LD"
11013 if test -n "$LD"; then
11014 { echo "$as_me:$LINENO: result: $LD" >&5
11015 echo "${ECHO_T}$LD" >&6; }
11016 else
11017 { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11019 fi
11020 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11021 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11022 { (exit 1); exit 1; }; }
11023 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11024 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11025 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11029 case `$LD -v 2>&1 </dev/null` in
11030 *GNU* | *'with BFD'*)
11031 lt_cv_prog_gnu_ld=yes
11032 ;;
11033 *)
11034 lt_cv_prog_gnu_ld=no
11035 ;;
11036 esac
11037 fi
11038 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11039 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11040 with_gnu_ld=$lt_cv_prog_gnu_ld
11044 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11045 # archiving commands below assume that GNU ld is being used.
11046 if test "$with_gnu_ld" = yes; then
11047 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048 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'
11050 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11051 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11053 # If archive_cmds runs LD, not CC, wlarc should be empty
11054 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11055 # investigate it a little bit more. (MM)
11056 wlarc='${wl}'
11058 # ancient GNU ld didn't support --whole-archive et. al.
11059 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11060 grep 'no-whole-archive' > /dev/null; then
11061 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11062 else
11063 whole_archive_flag_spec_CXX=
11064 fi
11065 else
11066 with_gnu_ld=no
11067 wlarc=
11069 # A generic and very simple default shared library creation
11070 # command for GNU C++ for the case where it uses the native
11071 # linker, instead of GNU ld. If possible, this setting should
11072 # overridden to take advantage of the native linker features on
11073 # the platform it is being used on.
11074 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11075 fi
11077 # Commands to make compiler produce verbose output that lists
11078 # what "hidden" libraries, object files and flags are used when
11079 # linking a shared library.
11080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11082 else
11083 GXX=no
11084 with_gnu_ld=no
11085 wlarc=
11086 fi
11088 # PORTME: fill in a description of your system's C++ link characteristics
11089 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11090 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11091 ld_shlibs_CXX=yes
11092 case $host_os in
11093 aix3*)
11094 # FIXME: insert proper C++ library support
11095 ld_shlibs_CXX=no
11096 ;;
11097 aix4* | aix5*)
11098 if test "$host_cpu" = ia64; then
11099 # On IA64, the linker does run time linking by default, so we don't
11100 # have to do anything special.
11101 aix_use_runtimelinking=no
11102 exp_sym_flag='-Bexport'
11103 no_entry_flag=""
11104 else
11105 aix_use_runtimelinking=no
11107 # Test if we are trying to use run time linking or normal
11108 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11109 # need to do runtime linking.
11110 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11111 for ld_flag in $LDFLAGS; do
11112 case $ld_flag in
11113 *-brtl*)
11114 aix_use_runtimelinking=yes
11115 break
11116 ;;
11117 esac
11118 done
11119 ;;
11120 esac
11122 exp_sym_flag='-bexport'
11123 no_entry_flag='-bnoentry'
11124 fi
11126 # When large executables or shared objects are built, AIX ld can
11127 # have problems creating the table of contents. If linking a library
11128 # or program results in "error TOC overflow" add -mminimal-toc to
11129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11132 archive_cmds_CXX=''
11133 hardcode_direct_CXX=yes
11134 hardcode_libdir_separator_CXX=':'
11135 link_all_deplibs_CXX=yes
11137 if test "$GXX" = yes; then
11138 case $host_os in aix4.[012]|aix4.[012].*)
11139 # We only want to do this on AIX 4.2 and lower, the check
11140 # below for broken collect2 doesn't work under 4.3+
11141 collect2name=`${CC} -print-prog-name=collect2`
11142 if test -f "$collect2name" && \
11143 strings "$collect2name" | grep resolve_lib_name >/dev/null
11144 then
11145 # We have reworked collect2
11146 hardcode_direct_CXX=yes
11147 else
11148 # We have old collect2
11149 hardcode_direct_CXX=unsupported
11150 # It fails to find uninstalled libraries when the uninstalled
11151 # path is not listed in the libpath. Setting hardcode_minus_L
11152 # to unsupported forces relinking
11153 hardcode_minus_L_CXX=yes
11154 hardcode_libdir_flag_spec_CXX='-L$libdir'
11155 hardcode_libdir_separator_CXX=
11156 fi
11157 ;;
11158 esac
11159 shared_flag='-shared'
11160 if test "$aix_use_runtimelinking" = yes; then
11161 shared_flag="$shared_flag "'${wl}-G'
11162 fi
11163 else
11164 # not using gcc
11165 if test "$host_cpu" = ia64; then
11166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11167 # chokes on -Wl,-G. The following line is correct:
11168 shared_flag='-G'
11169 else
11170 if test "$aix_use_runtimelinking" = yes; then
11171 shared_flag='${wl}-G'
11172 else
11173 shared_flag='${wl}-bM:SRE'
11174 fi
11175 fi
11176 fi
11178 # It seems that -bexpall does not export symbols beginning with
11179 # underscore (_), so it is better to generate a list of symbols to export.
11180 always_export_symbols_CXX=yes
11181 if test "$aix_use_runtimelinking" = yes; then
11182 # Warning - without using the other runtime loading flags (-brtl),
11183 # -berok will link without error, but may produce a broken library.
11184 allow_undefined_flag_CXX='-berok'
11185 # Determine the default libpath from the value encoded in an empty executable.
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11193 int
11194 main ()
11195 {
11197 ;
11198 return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (ac_try="$ac_link"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_link") 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } && {
11215 test -z "$ac_cxx_werror_flag" ||
11216 test ! -s conftest.err
11217 } && test -s conftest$ac_exeext &&
11218 $as_test_x conftest$ac_exeext; then
11220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11221 }'`
11222 # Check for a 64-bit object if we didn't find anything.
11223 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; }
11224 }'`; fi
11225 else
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11230 fi
11232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11233 conftest$ac_exeext conftest.$ac_ext
11234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11238 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"
11239 else
11240 if test "$host_cpu" = ia64; then
11241 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11242 allow_undefined_flag_CXX="-z nodefs"
11243 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"
11244 else
11245 # Determine the default libpath from the value encoded in an empty executable.
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h. */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11253 int
11254 main ()
11255 {
11257 ;
11258 return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_link") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_cxx_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest$ac_exeext &&
11278 $as_test_x conftest$ac_exeext; then
11280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11281 }'`
11282 # Check for a 64-bit object if we didn't find anything.
11283 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; }
11284 }'`; fi
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11290 fi
11292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11293 conftest$ac_exeext conftest.$ac_ext
11294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11297 # Warning - without using the other run time loading flags,
11298 # -berok will link without error, but may produce a broken library.
11299 no_undefined_flag_CXX=' ${wl}-bernotok'
11300 allow_undefined_flag_CXX=' ${wl}-berok'
11301 # Exported symbols can be pulled into shared objects from archives
11302 whole_archive_flag_spec_CXX='$convenience'
11303 archive_cmds_need_lc_CXX=yes
11304 # This is similar to how AIX traditionally builds its shared libraries.
11305 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'
11306 fi
11307 fi
11308 ;;
11310 beos*)
11311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11312 allow_undefined_flag_CXX=unsupported
11313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11314 # support --undefined. This deserves some investigation. FIXME
11315 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11316 else
11317 ld_shlibs_CXX=no
11318 fi
11319 ;;
11321 chorus*)
11322 case $cc_basename in
11323 *)
11324 # FIXME: insert proper C++ library support
11325 ld_shlibs_CXX=no
11326 ;;
11327 esac
11328 ;;
11330 cygwin* | mingw* | pw32*)
11331 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11332 # as there is no search path for DLLs.
11333 hardcode_libdir_flag_spec_CXX='-L$libdir'
11334 allow_undefined_flag_CXX=unsupported
11335 always_export_symbols_CXX=no
11336 enable_shared_with_static_runtimes_CXX=yes
11338 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11339 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'
11340 # If the export-symbols file already is a .def file (1st line
11341 # is EXPORTS), use it as is; otherwise, prepend...
11342 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11343 cp $export_symbols $output_objdir/$soname.def;
11344 else
11345 echo EXPORTS > $output_objdir/$soname.def;
11346 cat $export_symbols >> $output_objdir/$soname.def;
11347 fi~
11348 $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'
11349 else
11350 ld_shlibs_CXX=no
11351 fi
11352 ;;
11353 darwin* | rhapsody*)
11354 case $host_os in
11355 rhapsody* | darwin1.[012])
11356 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11357 ;;
11358 *) # Darwin 1.3 on
11359 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11360 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11361 else
11362 case ${MACOSX_DEPLOYMENT_TARGET} in
11363 10.[012])
11364 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11365 ;;
11366 10.*)
11367 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11368 ;;
11369 esac
11370 fi
11371 ;;
11372 esac
11373 archive_cmds_need_lc_CXX=no
11374 hardcode_direct_CXX=no
11375 hardcode_automatic_CXX=yes
11376 hardcode_shlibpath_var_CXX=unsupported
11377 whole_archive_flag_spec_CXX=''
11378 link_all_deplibs_CXX=yes
11380 if test "$GXX" = yes ; then
11381 lt_int_apple_cc_single_mod=no
11382 output_verbose_link_cmd='echo'
11383 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11384 lt_int_apple_cc_single_mod=yes
11385 fi
11386 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11387 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11388 else
11389 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'
11390 fi
11391 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11393 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11394 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}'
11395 else
11396 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}'
11397 fi
11398 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}'
11399 else
11400 case $cc_basename in
11401 xlc*)
11402 output_verbose_link_cmd='echo'
11403 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'
11404 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11405 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11406 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}'
11407 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}'
11408 ;;
11409 *)
11410 ld_shlibs_CXX=no
11411 ;;
11412 esac
11413 fi
11414 ;;
11416 dgux*)
11417 case $cc_basename in
11418 ec++*)
11419 # FIXME: insert proper C++ library support
11420 ld_shlibs_CXX=no
11421 ;;
11422 ghcx*)
11423 # Green Hills C++ Compiler
11424 # FIXME: insert proper C++ library support
11425 ld_shlibs_CXX=no
11426 ;;
11427 *)
11428 # FIXME: insert proper C++ library support
11429 ld_shlibs_CXX=no
11430 ;;
11431 esac
11432 ;;
11433 freebsd[12]*)
11434 # C++ shared libraries reported to be fairly broken before switch to ELF
11435 ld_shlibs_CXX=no
11436 ;;
11437 freebsd-elf*)
11438 archive_cmds_need_lc_CXX=no
11439 ;;
11440 freebsd* | dragonfly*)
11441 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11442 # conventions
11443 ld_shlibs_CXX=yes
11444 ;;
11445 gnu*)
11446 ;;
11447 hpux9*)
11448 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11449 hardcode_libdir_separator_CXX=:
11450 export_dynamic_flag_spec_CXX='${wl}-E'
11451 hardcode_direct_CXX=yes
11452 hardcode_minus_L_CXX=yes # Not in the search PATH,
11453 # but as the default
11454 # location of the library.
11456 case $cc_basename in
11457 CC*)
11458 # FIXME: insert proper C++ library support
11459 ld_shlibs_CXX=no
11460 ;;
11461 aCC*)
11462 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'
11463 # Commands to make compiler produce verbose output that lists
11464 # what "hidden" libraries, object files and flags are used when
11465 # linking a shared library.
11466 #
11467 # There doesn't appear to be a way to prevent this compiler from
11468 # explicitly linking system object files so we need to strip them
11469 # from the output so that they don't get included in the library
11470 # dependencies.
11471 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'
11472 ;;
11473 *)
11474 if test "$GXX" = yes; then
11475 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'
11476 else
11477 # FIXME: insert proper C++ library support
11478 ld_shlibs_CXX=no
11479 fi
11480 ;;
11481 esac
11482 ;;
11483 hpux10*|hpux11*)
11484 if test $with_gnu_ld = no; then
11485 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11486 hardcode_libdir_separator_CXX=:
11488 case $host_cpu in
11489 hppa*64*|ia64*)
11490 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11491 ;;
11492 *)
11493 export_dynamic_flag_spec_CXX='${wl}-E'
11494 ;;
11495 esac
11496 fi
11497 case $host_cpu in
11498 hppa*64*|ia64*)
11499 hardcode_direct_CXX=no
11500 hardcode_shlibpath_var_CXX=no
11501 ;;
11502 *)
11503 hardcode_direct_CXX=yes
11504 hardcode_minus_L_CXX=yes # Not in the search PATH,
11505 # but as the default
11506 # location of the library.
11507 ;;
11508 esac
11510 case $cc_basename in
11511 CC*)
11512 # FIXME: insert proper C++ library support
11513 ld_shlibs_CXX=no
11514 ;;
11515 aCC*)
11516 case $host_cpu in
11517 hppa*64*)
11518 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519 ;;
11520 ia64*)
11521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11522 ;;
11523 *)
11524 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11525 ;;
11526 esac
11527 # Commands to make compiler produce verbose output that lists
11528 # what "hidden" libraries, object files and flags are used when
11529 # linking a shared library.
11530 #
11531 # There doesn't appear to be a way to prevent this compiler from
11532 # explicitly linking system object files so we need to strip them
11533 # from the output so that they don't get included in the library
11534 # dependencies.
11535 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'
11536 ;;
11537 *)
11538 if test "$GXX" = yes; then
11539 if test $with_gnu_ld = no; then
11540 case $host_cpu in
11541 hppa*64*)
11542 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11543 ;;
11544 ia64*)
11545 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11546 ;;
11547 *)
11548 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'
11549 ;;
11550 esac
11551 fi
11552 else
11553 # FIXME: insert proper C++ library support
11554 ld_shlibs_CXX=no
11555 fi
11556 ;;
11557 esac
11558 ;;
11559 interix3*)
11560 hardcode_direct_CXX=no
11561 hardcode_shlibpath_var_CXX=no
11562 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11563 export_dynamic_flag_spec_CXX='${wl}-E'
11564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11565 # Instead, shared libraries are loaded at an image base (0x10000000 by
11566 # default) and relocated if they conflict, which is a slow very memory
11567 # consuming and fragmenting process. To avoid this, we pick a random,
11568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11570 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'
11571 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'
11572 ;;
11573 irix5* | irix6*)
11574 case $cc_basename in
11575 CC*)
11576 # SGI C++
11577 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'
11579 # Archives containing C++ object files must be created using
11580 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11581 # necessary to make sure instantiated templates are included
11582 # in the archive.
11583 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11584 ;;
11585 *)
11586 if test "$GXX" = yes; then
11587 if test "$with_gnu_ld" = no; then
11588 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'
11589 else
11590 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'
11591 fi
11592 fi
11593 link_all_deplibs_CXX=yes
11594 ;;
11595 esac
11596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11597 hardcode_libdir_separator_CXX=:
11598 ;;
11599 linux* | k*bsd*-gnu)
11600 case $cc_basename in
11601 KCC*)
11602 # Kuck and Associates, Inc. (KAI) C++ Compiler
11604 # KCC will only create a shared library if the output file
11605 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11606 # to its proper name (with version) after linking.
11607 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'
11608 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'
11609 # Commands to make compiler produce verbose output that lists
11610 # what "hidden" libraries, object files and flags are used when
11611 # linking a shared library.
11612 #
11613 # There doesn't appear to be a way to prevent this compiler from
11614 # explicitly linking system object files so we need to strip them
11615 # from the output so that they don't get included in the library
11616 # dependencies.
11617 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'
11619 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11622 # Archives containing C++ object files must be created using
11623 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11624 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11625 ;;
11626 icpc*)
11627 # Intel C++
11628 with_gnu_ld=yes
11629 # version 8.0 and above of icpc choke on multiply defined symbols
11630 # if we add $predep_objects and $postdep_objects, however 7.1 and
11631 # earlier do not add the objects themselves.
11632 case `$CC -V 2>&1` in
11633 *"Version 7."*)
11634 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11635 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'
11636 ;;
11637 *) # Version 8.0 or newer
11638 tmp_idyn=
11639 case $host_cpu in
11640 ia64*) tmp_idyn=' -i_dynamic';;
11641 esac
11642 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11643 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'
11644 ;;
11645 esac
11646 archive_cmds_need_lc_CXX=no
11647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11649 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11650 ;;
11651 pgCC*)
11652 # Portland Group C++ compiler
11653 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11654 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'
11656 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11657 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11658 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'
11659 ;;
11660 cxx*)
11661 # Compaq C++
11662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11663 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'
11665 runpath_var=LD_RUN_PATH
11666 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11667 hardcode_libdir_separator_CXX=:
11669 # Commands to make compiler produce verbose output that lists
11670 # what "hidden" libraries, object files and flags are used when
11671 # linking a shared library.
11672 #
11673 # There doesn't appear to be a way to prevent this compiler from
11674 # explicitly linking system object files so we need to strip them
11675 # from the output so that they don't get included in the library
11676 # dependencies.
11677 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'
11678 ;;
11679 esac
11680 ;;
11681 lynxos*)
11682 # FIXME: insert proper C++ library support
11683 ld_shlibs_CXX=no
11684 ;;
11685 m88k*)
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 ;;
11689 mvs*)
11690 case $cc_basename in
11691 cxx*)
11692 # FIXME: insert proper C++ library support
11693 ld_shlibs_CXX=no
11694 ;;
11695 *)
11696 # FIXME: insert proper C++ library support
11697 ld_shlibs_CXX=no
11698 ;;
11699 esac
11700 ;;
11701 netbsd* | netbsdelf*-gnu)
11702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11703 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11704 wlarc=
11705 hardcode_libdir_flag_spec_CXX='-R$libdir'
11706 hardcode_direct_CXX=yes
11707 hardcode_shlibpath_var_CXX=no
11708 fi
11709 # Workaround some broken pre-1.5 toolchains
11710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11711 ;;
11712 openbsd2*)
11713 # C++ shared libraries are fairly broken
11714 ld_shlibs_CXX=no
11715 ;;
11716 openbsd*)
11717 hardcode_direct_CXX=yes
11718 hardcode_shlibpath_var_CXX=no
11719 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11722 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11723 export_dynamic_flag_spec_CXX='${wl}-E'
11724 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11725 fi
11726 output_verbose_link_cmd='echo'
11727 ;;
11728 osf3*)
11729 case $cc_basename in
11730 KCC*)
11731 # Kuck and Associates, Inc. (KAI) C++ Compiler
11733 # KCC will only create a shared library if the output file
11734 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11735 # to its proper name (with version) after linking.
11736 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'
11738 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11739 hardcode_libdir_separator_CXX=:
11741 # Archives containing C++ object files must be created using
11742 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11743 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11745 ;;
11746 RCC*)
11747 # Rational C++ 2.4.1
11748 # FIXME: insert proper C++ library support
11749 ld_shlibs_CXX=no
11750 ;;
11751 cxx*)
11752 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11753 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'
11755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11756 hardcode_libdir_separator_CXX=:
11758 # Commands to make compiler produce verbose output that lists
11759 # what "hidden" libraries, object files and flags are used when
11760 # linking a shared library.
11761 #
11762 # There doesn't appear to be a way to prevent this compiler from
11763 # explicitly linking system object files so we need to strip them
11764 # from the output so that they don't get included in the library
11765 # dependencies.
11766 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'
11767 ;;
11768 *)
11769 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11770 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11771 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'
11773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11774 hardcode_libdir_separator_CXX=:
11776 # Commands to make compiler produce verbose output that lists
11777 # what "hidden" libraries, object files and flags are used when
11778 # linking a shared library.
11779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11781 else
11782 # FIXME: insert proper C++ library support
11783 ld_shlibs_CXX=no
11784 fi
11785 ;;
11786 esac
11787 ;;
11788 osf4* | osf5*)
11789 case $cc_basename in
11790 KCC*)
11791 # Kuck and Associates, Inc. (KAI) C++ Compiler
11793 # KCC will only create a shared library if the output file
11794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11795 # to its proper name (with version) after linking.
11796 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'
11798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11799 hardcode_libdir_separator_CXX=:
11801 # Archives containing C++ object files must be created using
11802 # the KAI C++ compiler.
11803 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11804 ;;
11805 RCC*)
11806 # Rational C++ 2.4.1
11807 # FIXME: insert proper C++ library support
11808 ld_shlibs_CXX=no
11809 ;;
11810 cxx*)
11811 allow_undefined_flag_CXX=' -expect_unresolved \*'
11812 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'
11813 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11814 echo "-hidden">> $lib.exp~
11815 $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~
11816 $rm $lib.exp'
11818 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11819 hardcode_libdir_separator_CXX=:
11821 # Commands to make compiler produce verbose output that lists
11822 # what "hidden" libraries, object files and flags are used when
11823 # linking a shared library.
11824 #
11825 # There doesn't appear to be a way to prevent this compiler from
11826 # explicitly linking system object files so we need to strip them
11827 # from the output so that they don't get included in the library
11828 # dependencies.
11829 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'
11830 ;;
11831 *)
11832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11834 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'
11836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11837 hardcode_libdir_separator_CXX=:
11839 # Commands to make compiler produce verbose output that lists
11840 # what "hidden" libraries, object files and flags are used when
11841 # linking a shared library.
11842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11844 else
11845 # FIXME: insert proper C++ library support
11846 ld_shlibs_CXX=no
11847 fi
11848 ;;
11849 esac
11850 ;;
11851 psos*)
11852 # FIXME: insert proper C++ library support
11853 ld_shlibs_CXX=no
11854 ;;
11855 sunos4*)
11856 case $cc_basename in
11857 CC*)
11858 # Sun C++ 4.x
11859 # FIXME: insert proper C++ library support
11860 ld_shlibs_CXX=no
11861 ;;
11862 lcc*)
11863 # Lucid
11864 # FIXME: insert proper C++ library support
11865 ld_shlibs_CXX=no
11866 ;;
11867 *)
11868 # FIXME: insert proper C++ library support
11869 ld_shlibs_CXX=no
11870 ;;
11871 esac
11872 ;;
11873 solaris*)
11874 case $cc_basename in
11875 CC*)
11876 # Sun C++ 4.2, 5.x and Centerline C++
11877 archive_cmds_need_lc_CXX=yes
11878 no_undefined_flag_CXX=' -zdefs'
11879 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11880 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11881 $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'
11883 hardcode_libdir_flag_spec_CXX='-R$libdir'
11884 hardcode_shlibpath_var_CXX=no
11885 case $host_os in
11886 solaris2.[0-5] | solaris2.[0-5].*) ;;
11887 *)
11888 # The C++ compiler is used as linker so we must use $wl
11889 # flag to pass the commands to the underlying system
11890 # linker. We must also pass each convience library through
11891 # to the system linker between allextract/defaultextract.
11892 # The C++ compiler will combine linker options so we
11893 # cannot just pass the convience library names through
11894 # without $wl.
11895 # Supported since Solaris 2.6 (maybe 2.5.1?)
11896 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'
11897 ;;
11898 esac
11899 link_all_deplibs_CXX=yes
11901 output_verbose_link_cmd='echo'
11903 # Archives containing C++ object files must be created using
11904 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11905 # necessary to make sure instantiated templates are included
11906 # in the archive.
11907 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11908 ;;
11909 gcx*)
11910 # Green Hills C++ Compiler
11911 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11913 # The C++ compiler must be used to create the archive.
11914 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11915 ;;
11916 *)
11917 # GNU C++ compiler with Solaris linker
11918 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11919 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11920 if $CC --version | grep -v '^2\.7' > /dev/null; then
11921 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11922 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11923 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11925 # Commands to make compiler produce verbose output that lists
11926 # what "hidden" libraries, object files and flags are used when
11927 # linking a shared library.
11928 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11929 else
11930 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11931 # platform.
11932 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11933 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11934 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11936 # Commands to make compiler produce verbose output that lists
11937 # what "hidden" libraries, object files and flags are used when
11938 # linking a shared library.
11939 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11940 fi
11942 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11943 fi
11944 ;;
11945 esac
11946 ;;
11947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11948 no_undefined_flag_CXX='${wl}-z,text'
11949 archive_cmds_need_lc_CXX=no
11950 hardcode_shlibpath_var_CXX=no
11951 runpath_var='LD_RUN_PATH'
11953 case $cc_basename in
11954 CC*)
11955 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957 ;;
11958 *)
11959 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11961 ;;
11962 esac
11963 ;;
11964 sysv5* | sco3.2v5* | sco5v6*)
11965 # Note: We can NOT use -z defs as we might desire, because we do not
11966 # link with -lc, and that would cause any symbols used from libc to
11967 # always be unresolved, which means just about no library would
11968 # ever link correctly. If we're not using GNU ld we use -z text
11969 # though, which does catch some bad symbols but isn't as heavy-handed
11970 # as -z defs.
11971 # For security reasons, it is highly recommended that you always
11972 # use absolute paths for naming shared libraries, and exclude the
11973 # DT_RUNPATH tag from executables and libraries. But doing so
11974 # requires that you compile everything twice, which is a pain.
11975 # So that behaviour is only enabled if SCOABSPATH is set to a
11976 # non-empty value in the environment. Most likely only useful for
11977 # creating official distributions of packages.
11978 # This is a hack until libtool officially supports absolute path
11979 # names for shared libraries.
11980 no_undefined_flag_CXX='${wl}-z,text'
11981 allow_undefined_flag_CXX='${wl}-z,nodefs'
11982 archive_cmds_need_lc_CXX=no
11983 hardcode_shlibpath_var_CXX=no
11984 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11985 hardcode_libdir_separator_CXX=':'
11986 link_all_deplibs_CXX=yes
11987 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11988 runpath_var='LD_RUN_PATH'
11990 case $cc_basename in
11991 CC*)
11992 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11994 ;;
11995 *)
11996 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11997 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11998 ;;
11999 esac
12000 ;;
12001 tandem*)
12002 case $cc_basename in
12003 NCC*)
12004 # NonStop-UX NCC 3.20
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12007 ;;
12008 *)
12009 # FIXME: insert proper C++ library support
12010 ld_shlibs_CXX=no
12011 ;;
12012 esac
12013 ;;
12014 vxworks*)
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12017 ;;
12018 *)
12019 # FIXME: insert proper C++ library support
12020 ld_shlibs_CXX=no
12021 ;;
12022 esac
12023 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12024 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12025 test "$ld_shlibs_CXX" = no && can_build_shared=no
12027 GCC_CXX="$GXX"
12028 LD_CXX="$LD"
12031 cat > conftest.$ac_ext <<EOF
12032 class Foo
12033 {
12034 public:
12035 Foo (void) { a = 0; }
12036 private:
12037 int a;
12038 };
12039 EOF
12041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; then
12046 # Parse the compiler output and extract the necessary
12047 # objects, libraries and library flags.
12049 # Sentinel used to keep track of whether or not we are before
12050 # the conftest object file.
12051 pre_test_object_deps_done=no
12053 # The `*' in the case matches for architectures that use `case' in
12054 # $output_verbose_cmd can trigger glob expansion during the loop
12055 # eval without this substitution.
12056 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12058 for p in `eval $output_verbose_link_cmd`; do
12059 case $p in
12061 -L* | -R* | -l*)
12062 # Some compilers place space between "-{L,R}" and the path.
12063 # Remove the space.
12064 if test $p = "-L" \
12065 || test $p = "-R"; then
12066 prev=$p
12067 continue
12068 else
12069 prev=
12070 fi
12072 if test "$pre_test_object_deps_done" = no; then
12073 case $p in
12074 -L* | -R*)
12075 # Internal compiler library paths should come after those
12076 # provided the user. The postdeps already come after the
12077 # user supplied libs so there is no need to process them.
12078 if test -z "$compiler_lib_search_path_CXX"; then
12079 compiler_lib_search_path_CXX="${prev}${p}"
12080 else
12081 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12082 fi
12083 ;;
12084 # The "-l" case would never come before the object being
12085 # linked, so don't bother handling this case.
12086 esac
12087 else
12088 if test -z "$postdeps_CXX"; then
12089 postdeps_CXX="${prev}${p}"
12090 else
12091 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12092 fi
12093 fi
12094 ;;
12096 *.$objext)
12097 # This assumes that the test object file only shows up
12098 # once in the compiler output.
12099 if test "$p" = "conftest.$objext"; then
12100 pre_test_object_deps_done=yes
12101 continue
12102 fi
12104 if test "$pre_test_object_deps_done" = no; then
12105 if test -z "$predep_objects_CXX"; then
12106 predep_objects_CXX="$p"
12107 else
12108 predep_objects_CXX="$predep_objects_CXX $p"
12109 fi
12110 else
12111 if test -z "$postdep_objects_CXX"; then
12112 postdep_objects_CXX="$p"
12113 else
12114 postdep_objects_CXX="$postdep_objects_CXX $p"
12115 fi
12116 fi
12117 ;;
12119 *) ;; # Ignore the rest.
12121 esac
12122 done
12124 # Clean up.
12125 rm -f a.out a.exe
12126 else
12127 echo "libtool.m4: error: problem compiling CXX test program"
12128 fi
12130 $rm -f confest.$objext
12132 # PORTME: override above test on systems where it is broken
12133 case $host_os in
12134 interix3*)
12135 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12136 # hack all around it, let's just trust "g++" to DTRT.
12137 predep_objects_CXX=
12138 postdep_objects_CXX=
12139 postdeps_CXX=
12140 ;;
12142 solaris*)
12143 case $cc_basename in
12144 CC*)
12145 # Adding this requires a known-good setup of shared libraries for
12146 # Sun compiler versions before 5.6, else PIC objects from an old
12147 # archive will be linked into the output, leading to subtle bugs.
12148 postdeps_CXX='-lCstd -lCrun'
12149 ;;
12150 esac
12151 ;;
12152 esac
12155 case " $postdeps_CXX " in
12156 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12157 esac
12159 lt_prog_compiler_wl_CXX=
12160 lt_prog_compiler_pic_CXX=
12161 lt_prog_compiler_static_CXX=
12163 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12164 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12166 # C++ specific cases for pic, static, wl, etc.
12167 if test "$GXX" = yes; then
12168 lt_prog_compiler_wl_CXX='-Wl,'
12169 lt_prog_compiler_static_CXX='-static'
12171 case $host_os in
12172 aix*)
12173 # All AIX code is PIC.
12174 if test "$host_cpu" = ia64; then
12175 # AIX 5 now supports IA64 processor
12176 lt_prog_compiler_static_CXX='-Bstatic'
12177 fi
12178 ;;
12179 amigaos*)
12180 # FIXME: we need at least 68020 code to build shared libraries, but
12181 # adding the `-m68020' flag to GCC prevents building anything better,
12182 # like `-m68040'.
12183 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12184 ;;
12185 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12186 # PIC is the default for these OSes.
12187 ;;
12188 mingw* | os2* | pw32*)
12189 # This hack is so that the source file can tell whether it is being
12190 # built for inclusion in a dll (and should export symbols for example).
12191 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12192 ;;
12193 darwin* | rhapsody*)
12194 # PIC is the default on this platform
12195 # Common symbols not allowed in MH_DYLIB files
12196 lt_prog_compiler_pic_CXX='-fno-common'
12197 ;;
12198 *djgpp*)
12199 # DJGPP does not support shared libraries at all
12200 lt_prog_compiler_pic_CXX=
12201 ;;
12202 interix3*)
12203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12204 # Instead, we relocate shared libraries at runtime.
12205 ;;
12206 sysv4*MP*)
12207 if test -d /usr/nec; then
12208 lt_prog_compiler_pic_CXX=-Kconform_pic
12209 fi
12210 ;;
12211 hpux*)
12212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12213 # not for PA HP-UX.
12214 case $host_cpu in
12215 hppa*64*|ia64*)
12216 ;;
12217 *)
12218 lt_prog_compiler_pic_CXX='-fPIC'
12219 ;;
12220 esac
12221 ;;
12222 *)
12223 lt_prog_compiler_pic_CXX='-fPIC'
12224 ;;
12225 esac
12226 else
12227 case $host_os in
12228 aix4* | aix5*)
12229 # All AIX code is PIC.
12230 if test "$host_cpu" = ia64; then
12231 # AIX 5 now supports IA64 processor
12232 lt_prog_compiler_static_CXX='-Bstatic'
12233 else
12234 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12235 fi
12236 ;;
12237 chorus*)
12238 case $cc_basename in
12239 cxch68*)
12240 # Green Hills C++ Compiler
12241 # _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"
12242 ;;
12243 esac
12244 ;;
12245 darwin*)
12246 # PIC is the default on this platform
12247 # Common symbols not allowed in MH_DYLIB files
12248 case $cc_basename in
12249 xlc*)
12250 lt_prog_compiler_pic_CXX='-qnocommon'
12251 lt_prog_compiler_wl_CXX='-Wl,'
12252 ;;
12253 esac
12254 ;;
12255 dgux*)
12256 case $cc_basename in
12257 ec++*)
12258 lt_prog_compiler_pic_CXX='-KPIC'
12259 ;;
12260 ghcx*)
12261 # Green Hills C++ Compiler
12262 lt_prog_compiler_pic_CXX='-pic'
12263 ;;
12264 *)
12265 ;;
12266 esac
12267 ;;
12268 freebsd* | dragonfly*)
12269 # FreeBSD uses GNU C++
12270 ;;
12271 hpux9* | hpux10* | hpux11*)
12272 case $cc_basename in
12273 CC*)
12274 lt_prog_compiler_wl_CXX='-Wl,'
12275 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12276 if test "$host_cpu" != ia64; then
12277 lt_prog_compiler_pic_CXX='+Z'
12278 fi
12279 ;;
12280 aCC*)
12281 lt_prog_compiler_wl_CXX='-Wl,'
12282 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12283 case $host_cpu in
12284 hppa*64*|ia64*)
12285 # +Z the default
12286 ;;
12287 *)
12288 lt_prog_compiler_pic_CXX='+Z'
12289 ;;
12290 esac
12291 ;;
12292 *)
12293 ;;
12294 esac
12295 ;;
12296 interix*)
12297 # This is c89, which is MS Visual C++ (no shared libs)
12298 # Anyone wants to do a port?
12299 ;;
12300 irix5* | irix6* | nonstopux*)
12301 case $cc_basename in
12302 CC*)
12303 lt_prog_compiler_wl_CXX='-Wl,'
12304 lt_prog_compiler_static_CXX='-non_shared'
12305 # CC pic flag -KPIC is the default.
12306 ;;
12307 *)
12308 ;;
12309 esac
12310 ;;
12311 linux* | k*bsd*-gnu)
12312 case $cc_basename in
12313 KCC*)
12314 # KAI C++ Compiler
12315 lt_prog_compiler_wl_CXX='--backend -Wl,'
12316 lt_prog_compiler_pic_CXX='-fPIC'
12317 ;;
12318 icpc* | ecpc*)
12319 # Intel C++
12320 lt_prog_compiler_wl_CXX='-Wl,'
12321 lt_prog_compiler_pic_CXX='-KPIC'
12322 lt_prog_compiler_static_CXX='-static'
12323 ;;
12324 pgCC*)
12325 # Portland Group C++ compiler.
12326 lt_prog_compiler_wl_CXX='-Wl,'
12327 lt_prog_compiler_pic_CXX='-fpic'
12328 lt_prog_compiler_static_CXX='-Bstatic'
12329 ;;
12330 cxx*)
12331 # Compaq C++
12332 # Make sure the PIC flag is empty. It appears that all Alpha
12333 # Linux and Compaq Tru64 Unix objects are PIC.
12334 lt_prog_compiler_pic_CXX=
12335 lt_prog_compiler_static_CXX='-non_shared'
12336 ;;
12337 *)
12338 ;;
12339 esac
12340 ;;
12341 lynxos*)
12342 ;;
12343 m88k*)
12344 ;;
12345 mvs*)
12346 case $cc_basename in
12347 cxx*)
12348 lt_prog_compiler_pic_CXX='-W c,exportall'
12349 ;;
12350 *)
12351 ;;
12352 esac
12353 ;;
12354 netbsd* | netbsdelf*-gnu)
12355 ;;
12356 osf3* | osf4* | osf5*)
12357 case $cc_basename in
12358 KCC*)
12359 lt_prog_compiler_wl_CXX='--backend -Wl,'
12360 ;;
12361 RCC*)
12362 # Rational C++ 2.4.1
12363 lt_prog_compiler_pic_CXX='-pic'
12364 ;;
12365 cxx*)
12366 # Digital/Compaq C++
12367 lt_prog_compiler_wl_CXX='-Wl,'
12368 # Make sure the PIC flag is empty. It appears that all Alpha
12369 # Linux and Compaq Tru64 Unix objects are PIC.
12370 lt_prog_compiler_pic_CXX=
12371 lt_prog_compiler_static_CXX='-non_shared'
12372 ;;
12373 *)
12374 ;;
12375 esac
12376 ;;
12377 psos*)
12378 ;;
12379 solaris*)
12380 case $cc_basename in
12381 CC*)
12382 # Sun C++ 4.2, 5.x and Centerline C++
12383 lt_prog_compiler_pic_CXX='-KPIC'
12384 lt_prog_compiler_static_CXX='-Bstatic'
12385 lt_prog_compiler_wl_CXX='-Qoption ld '
12386 ;;
12387 gcx*)
12388 # Green Hills C++ Compiler
12389 lt_prog_compiler_pic_CXX='-PIC'
12390 ;;
12391 *)
12392 ;;
12393 esac
12394 ;;
12395 sunos4*)
12396 case $cc_basename in
12397 CC*)
12398 # Sun C++ 4.x
12399 lt_prog_compiler_pic_CXX='-pic'
12400 lt_prog_compiler_static_CXX='-Bstatic'
12401 ;;
12402 lcc*)
12403 # Lucid
12404 lt_prog_compiler_pic_CXX='-pic'
12405 ;;
12406 *)
12407 ;;
12408 esac
12409 ;;
12410 tandem*)
12411 case $cc_basename in
12412 NCC*)
12413 # NonStop-UX NCC 3.20
12414 lt_prog_compiler_pic_CXX='-KPIC'
12415 ;;
12416 *)
12417 ;;
12418 esac
12419 ;;
12420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12421 case $cc_basename in
12422 CC*)
12423 lt_prog_compiler_wl_CXX='-Wl,'
12424 lt_prog_compiler_pic_CXX='-KPIC'
12425 lt_prog_compiler_static_CXX='-Bstatic'
12426 ;;
12427 esac
12428 ;;
12429 vxworks*)
12430 ;;
12431 *)
12432 lt_prog_compiler_can_build_shared_CXX=no
12433 ;;
12434 esac
12435 fi
12437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12438 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12440 #
12441 # Check to make sure the PIC flag actually works.
12442 #
12443 if test -n "$lt_prog_compiler_pic_CXX"; then
12445 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12447 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450 lt_prog_compiler_pic_works_CXX=no
12451 ac_outfile=conftest.$ac_objext
12452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12453 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12454 # Insert the option either (1) after the last *FLAGS variable, or
12455 # (2) before a word containing "conftest.", or (3) at the end.
12456 # Note that $ac_compile itself does not contain backslashes and begins
12457 # with a dollar sign (not a hyphen), so the echo should work correctly.
12458 # The option is referenced via a variable to avoid confusing sed.
12459 lt_compile=`echo "$ac_compile" | $SED \
12460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12462 -e 's:$: $lt_compiler_flag:'`
12463 (eval echo "\"\$as_me:12463: $lt_compile\"" >&5)
12464 (eval "$lt_compile" 2>conftest.err)
12465 ac_status=$?
12466 cat conftest.err >&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 if (exit $ac_status) && test -s "$ac_outfile"; then
12469 # The compiler can only warn and ignore the option if not recognized
12470 # So say no if there are warnings other than the usual output.
12471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12474 lt_prog_compiler_pic_works_CXX=yes
12475 fi
12476 fi
12477 $rm conftest*
12479 fi
12480 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12481 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12483 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12484 case $lt_prog_compiler_pic_CXX in
12485 "" | " "*) ;;
12486 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12487 esac
12488 else
12489 lt_prog_compiler_pic_CXX=
12490 lt_prog_compiler_can_build_shared_CXX=no
12491 fi
12493 fi
12494 case $host_os in
12495 # For platforms which do not support PIC, -DPIC is meaningless:
12496 *djgpp*)
12497 lt_prog_compiler_pic_CXX=
12498 ;;
12499 *)
12500 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12501 ;;
12502 esac
12504 #
12505 # Check to make sure the static flag actually works.
12506 #
12507 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12508 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12509 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12510 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513 lt_prog_compiler_static_works_CXX=no
12514 save_LDFLAGS="$LDFLAGS"
12515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12516 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12518 # The linker can only warn and ignore the option if not recognized
12519 # So say no if there are warnings
12520 if test -s conftest.err; then
12521 # Append any errors to the config.log.
12522 cat conftest.err 1>&5
12523 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12525 if diff conftest.exp conftest.er2 >/dev/null; then
12526 lt_prog_compiler_static_works_CXX=yes
12527 fi
12528 else
12529 lt_prog_compiler_static_works_CXX=yes
12530 fi
12531 fi
12532 $rm conftest*
12533 LDFLAGS="$save_LDFLAGS"
12535 fi
12536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12537 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12539 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12540 :
12541 else
12542 lt_prog_compiler_static_CXX=
12543 fi
12546 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12548 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551 lt_cv_prog_compiler_c_o_CXX=no
12552 $rm -r conftest 2>/dev/null
12553 mkdir conftest
12554 cd conftest
12555 mkdir out
12556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12558 lt_compiler_flag="-o out/conftest2.$ac_objext"
12559 # Insert the option either (1) after the last *FLAGS variable, or
12560 # (2) before a word containing "conftest.", or (3) at the end.
12561 # Note that $ac_compile itself does not contain backslashes and begins
12562 # with a dollar sign (not a hyphen), so the echo should work correctly.
12563 lt_compile=`echo "$ac_compile" | $SED \
12564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12566 -e 's:$: $lt_compiler_flag:'`
12567 (eval echo "\"\$as_me:12567: $lt_compile\"" >&5)
12568 (eval "$lt_compile" 2>out/conftest.err)
12569 ac_status=$?
12570 cat out/conftest.err >&5
12571 echo "$as_me:12571: \$? = $ac_status" >&5
12572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12573 then
12574 # The compiler can only warn and ignore the option if not recognized
12575 # So say no if there are warnings
12576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12579 lt_cv_prog_compiler_c_o_CXX=yes
12580 fi
12581 fi
12582 chmod u+w . 2>&5
12583 $rm conftest*
12584 # SGI C++ compiler will create directory out/ii_files/ for
12585 # template instantiation
12586 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12587 $rm out/* && rmdir out
12588 cd ..
12589 rmdir conftest
12590 $rm conftest*
12592 fi
12593 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12597 hard_links="nottested"
12598 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12599 # do not overwrite the value of need_locks provided by the user
12600 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12601 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12602 hard_links=yes
12603 $rm conftest*
12604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12605 touch conftest.a
12606 ln conftest.a conftest.b 2>&5 || hard_links=no
12607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12608 { echo "$as_me:$LINENO: result: $hard_links" >&5
12609 echo "${ECHO_T}$hard_links" >&6; }
12610 if test "$hard_links" = no; then
12611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12612 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12613 need_locks=warn
12614 fi
12615 else
12616 need_locks=no
12617 fi
12619 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12622 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12623 case $host_os in
12624 aix4* | aix5*)
12625 # If we're using GNU nm, then we don't want the "-C" option.
12626 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12627 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12628 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'
12629 else
12630 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'
12631 fi
12632 ;;
12633 pw32*)
12634 export_symbols_cmds_CXX="$ltdll_cmds"
12635 ;;
12636 cygwin* | mingw*)
12637 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'
12638 ;;
12639 linux* | k*bsd*-gnu)
12640 link_all_deplibs_CXX=no
12641 ;;
12642 *)
12643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12644 ;;
12645 esac
12647 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12648 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12649 test "$ld_shlibs_CXX" = no && can_build_shared=no
12651 #
12652 # Do we need to explicitly link libc?
12653 #
12654 case "x$archive_cmds_need_lc_CXX" in
12655 x|xyes)
12656 # Assume -lc should be added
12657 archive_cmds_need_lc_CXX=yes
12659 if test "$enable_shared" = yes && test "$GCC" = yes; then
12660 case $archive_cmds_CXX in
12661 *'~'*)
12662 # FIXME: we may have to deal with multi-command sequences.
12663 ;;
12664 '$CC '*)
12665 # Test whether the compiler implicitly links with -lc since on some
12666 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12667 # to ld, don't add -lc before -lgcc.
12668 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12669 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12670 $rm conftest*
12671 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12674 (eval $ac_compile) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } 2>conftest.err; then
12678 soname=conftest
12679 lib=conftest
12680 libobjs=conftest.$ac_objext
12681 deplibs=
12682 wl=$lt_prog_compiler_wl_CXX
12683 pic_flag=$lt_prog_compiler_pic_CXX
12684 compiler_flags=-v
12685 linker_flags=-v
12686 verstring=
12687 output_objdir=.
12688 libname=conftest
12689 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12690 allow_undefined_flag_CXX=
12691 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12692 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }
12696 then
12697 archive_cmds_need_lc_CXX=no
12698 else
12699 archive_cmds_need_lc_CXX=yes
12700 fi
12701 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12702 else
12703 cat conftest.err 1>&5
12704 fi
12705 $rm conftest*
12706 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12707 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12708 ;;
12709 esac
12710 fi
12711 ;;
12712 esac
12714 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12715 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12716 library_names_spec=
12717 libname_spec='lib$name'
12718 soname_spec=
12719 shrext_cmds=".so"
12720 postinstall_cmds=
12721 postuninstall_cmds=
12722 finish_cmds=
12723 finish_eval=
12724 shlibpath_var=
12725 shlibpath_overrides_runpath=unknown
12726 version_type=none
12727 dynamic_linker="$host_os ld.so"
12728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12729 if test "$GCC" = yes; then
12730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12731 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12732 # if the path contains ";" then we assume it to be the separator
12733 # otherwise default to the standard path separator (i.e. ":") - it is
12734 # assumed that no part of a normal pathname contains ";" but that should
12735 # okay in the real world where ";" in dirpaths is itself problematic.
12736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12737 else
12738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12739 fi
12740 else
12741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12742 fi
12743 need_lib_prefix=unknown
12744 hardcode_into_libs=no
12746 # when you set need_version to no, make sure it does not cause -set_version
12747 # flags to be left without arguments
12748 need_version=unknown
12750 case $host_os in
12751 aix3*)
12752 version_type=linux
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12754 shlibpath_var=LIBPATH
12756 # AIX 3 has no versioning support, so we append a major version to the name.
12757 soname_spec='${libname}${release}${shared_ext}$major'
12758 ;;
12760 aix4* | aix5*)
12761 version_type=linux
12762 need_lib_prefix=no
12763 need_version=no
12764 hardcode_into_libs=yes
12765 if test "$host_cpu" = ia64; then
12766 # AIX 5 supports IA64
12767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12768 shlibpath_var=LD_LIBRARY_PATH
12769 else
12770 # With GCC up to 2.95.x, collect2 would create an import file
12771 # for dependence libraries. The import file would start with
12772 # the line `#! .'. This would cause the generated library to
12773 # depend on `.', always an invalid library. This was fixed in
12774 # development snapshots of GCC prior to 3.0.
12775 case $host_os in
12776 aix4 | aix4.[01] | aix4.[01].*)
12777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12778 echo ' yes '
12779 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12780 :
12781 else
12782 can_build_shared=no
12783 fi
12784 ;;
12785 esac
12786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12787 # soname into executable. Probably we can add versioning support to
12788 # collect2, so additional links can be useful in future.
12789 if test "$aix_use_runtimelinking" = yes; then
12790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12791 # instead of lib<name>.a to let people know that these are not
12792 # typical AIX shared libraries.
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794 else
12795 # We preserve .a as extension for shared libraries through AIX4.2
12796 # and later when we are not doing run time linking.
12797 library_names_spec='${libname}${release}.a $libname.a'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 fi
12800 shlibpath_var=LIBPATH
12801 fi
12802 ;;
12804 amigaos*)
12805 library_names_spec='$libname.ixlibrary $libname.a'
12806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12807 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'
12808 ;;
12810 beos*)
12811 library_names_spec='${libname}${shared_ext}'
12812 dynamic_linker="$host_os ld.so"
12813 shlibpath_var=LIBRARY_PATH
12814 ;;
12816 bsdi[45]*)
12817 version_type=linux
12818 need_version=no
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12822 shlibpath_var=LD_LIBRARY_PATH
12823 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12824 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12825 # the default ld.so.conf also contains /usr/contrib/lib and
12826 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12827 # libtool to hard-code these into programs
12828 ;;
12830 cygwin* | mingw* | pw32*)
12831 version_type=windows
12832 shrext_cmds=".dll"
12833 need_version=no
12834 need_lib_prefix=no
12836 case $GCC,$host_os in
12837 yes,cygwin* | yes,mingw* | yes,pw32*)
12838 library_names_spec='$libname.dll.a'
12839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12840 postinstall_cmds='base_file=`basename \${file}`~
12841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12842 dldir=$destdir/`dirname \$dlpath`~
12843 test -d \$dldir || mkdir -p \$dldir~
12844 $install_prog $dir/$dlname \$dldir/$dlname~
12845 chmod a+x \$dldir/$dlname'
12846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12847 dlpath=$dir/\$dldll~
12848 $rm \$dlpath'
12849 shlibpath_overrides_runpath=yes
12851 case $host_os in
12852 cygwin*)
12853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12854 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12855 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12856 ;;
12857 mingw*)
12858 # MinGW DLLs use traditional 'lib' prefix
12859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12860 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12861 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12862 # It is most probably a Windows format PATH printed by
12863 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12864 # path with ; separators, and with drive letters. We can handle the
12865 # drive letters (cygwin fileutils understands them), so leave them,
12866 # especially as we might pass files found there to a mingw objdump,
12867 # which wouldn't understand a cygwinified path. Ahh.
12868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12869 else
12870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12871 fi
12872 ;;
12873 pw32*)
12874 # pw32 DLLs use 'pw' prefix rather than 'lib'
12875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12876 ;;
12877 esac
12878 ;;
12880 *)
12881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12882 ;;
12883 esac
12884 dynamic_linker='Win32 ld.exe'
12885 # FIXME: first we should search . and the directory the executable is in
12886 shlibpath_var=PATH
12887 ;;
12889 darwin* | rhapsody*)
12890 dynamic_linker="$host_os dyld"
12891 version_type=darwin
12892 need_lib_prefix=no
12893 need_version=no
12894 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12895 soname_spec='${libname}${release}${major}$shared_ext'
12896 shlibpath_overrides_runpath=yes
12897 shlibpath_var=DYLD_LIBRARY_PATH
12898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12899 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12900 if test "$GCC" = yes; then
12901 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"`
12902 else
12903 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12904 fi
12905 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12906 ;;
12908 dgux*)
12909 version_type=linux
12910 need_lib_prefix=no
12911 need_version=no
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12913 soname_spec='${libname}${release}${shared_ext}$major'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 ;;
12917 freebsd1*)
12918 dynamic_linker=no
12919 ;;
12921 freebsd* | dragonfly*)
12922 # DragonFly does not have aout. When/if they implement a new
12923 # versioning mechanism, adjust this.
12924 if test -x /usr/bin/objformat; then
12925 objformat=`/usr/bin/objformat`
12926 else
12927 case $host_os in
12928 freebsd[123]*) objformat=aout ;;
12929 *) objformat=elf ;;
12930 esac
12931 fi
12932 version_type=freebsd-$objformat
12933 case $version_type in
12934 freebsd-elf*)
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12936 need_version=no
12937 need_lib_prefix=no
12938 ;;
12939 freebsd-*)
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12941 need_version=yes
12942 ;;
12943 esac
12944 shlibpath_var=LD_LIBRARY_PATH
12945 case $host_os in
12946 freebsd2*)
12947 shlibpath_overrides_runpath=yes
12948 ;;
12949 freebsd3.[01]* | freebsdelf3.[01]*)
12950 shlibpath_overrides_runpath=yes
12951 hardcode_into_libs=yes
12952 ;;
12953 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12954 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12955 shlibpath_overrides_runpath=no
12956 hardcode_into_libs=yes
12957 ;;
12958 freebsd*) # from 4.6 on
12959 shlibpath_overrides_runpath=yes
12960 hardcode_into_libs=yes
12961 ;;
12962 esac
12963 ;;
12965 gnu*)
12966 version_type=linux
12967 need_lib_prefix=no
12968 need_version=no
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 hardcode_into_libs=yes
12973 ;;
12975 hpux9* | hpux10* | hpux11*)
12976 # Give a soname corresponding to the major version so that dld.sl refuses to
12977 # link against other versions.
12978 version_type=sunos
12979 need_lib_prefix=no
12980 need_version=no
12981 case $host_cpu in
12982 ia64*)
12983 shrext_cmds='.so'
12984 hardcode_into_libs=yes
12985 dynamic_linker="$host_os dld.so"
12986 shlibpath_var=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 if test "X$HPUX_IA64_MODE" = X32; then
12991 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12992 else
12993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12994 fi
12995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12996 ;;
12997 hppa*64*)
12998 shrext_cmds='.sl'
12999 hardcode_into_libs=yes
13000 dynamic_linker="$host_os dld.sl"
13001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004 soname_spec='${libname}${release}${shared_ext}$major'
13005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13007 ;;
13008 *)
13009 shrext_cmds='.sl'
13010 dynamic_linker="$host_os dld.sl"
13011 shlibpath_var=SHLIB_PATH
13012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014 soname_spec='${libname}${release}${shared_ext}$major'
13015 ;;
13016 esac
13017 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13018 postinstall_cmds='chmod 555 $lib'
13019 ;;
13021 interix3*)
13022 version_type=linux
13023 need_lib_prefix=no
13024 need_version=no
13025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13026 soname_spec='${libname}${release}${shared_ext}$major'
13027 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13028 shlibpath_var=LD_LIBRARY_PATH
13029 shlibpath_overrides_runpath=no
13030 hardcode_into_libs=yes
13031 ;;
13033 irix5* | irix6* | nonstopux*)
13034 case $host_os in
13035 nonstopux*) version_type=nonstopux ;;
13036 *)
13037 if test "$lt_cv_prog_gnu_ld" = yes; then
13038 version_type=linux
13039 else
13040 version_type=irix
13041 fi ;;
13042 esac
13043 need_lib_prefix=no
13044 need_version=no
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13047 case $host_os in
13048 irix5* | nonstopux*)
13049 libsuff= shlibsuff=
13050 ;;
13051 *)
13052 case $LD in # libtool.m4 will add one of these switches to LD
13053 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13054 libsuff= shlibsuff= libmagic=32-bit;;
13055 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13056 libsuff=32 shlibsuff=N32 libmagic=N32;;
13057 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13058 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13059 *) libsuff= shlibsuff= libmagic=never-match;;
13060 esac
13061 ;;
13062 esac
13063 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13064 shlibpath_overrides_runpath=no
13065 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13066 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13067 hardcode_into_libs=yes
13068 ;;
13070 # No shared lib support for Linux oldld, aout, or coff.
13071 linux*oldld* | linux*aout* | linux*coff*)
13072 dynamic_linker=no
13073 ;;
13075 # This must be Linux ELF.
13076 linux* | k*bsd*-gnu)
13077 version_type=linux
13078 need_lib_prefix=no
13079 need_version=no
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081 soname_spec='${libname}${release}${shared_ext}$major'
13082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13083 shlibpath_var=LD_LIBRARY_PATH
13084 shlibpath_overrides_runpath=no
13085 # This implies no fast_install, which is unacceptable.
13086 # Some rework will be needed to allow for fast_install
13087 # before this can be enabled.
13088 hardcode_into_libs=yes
13090 # Append ld.so.conf contents to the search path
13091 if test -f /etc/ld.so.conf; then
13092 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' ' '`
13093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13094 fi
13096 # We used to test for /lib/ld.so.1 and disable shared libraries on
13097 # powerpc, because MkLinux only supported shared libraries with the
13098 # GNU dynamic linker. Since this was broken with cross compilers,
13099 # most powerpc-linux boxes support dynamic linking these days and
13100 # people can always --disable-shared, the test was removed, and we
13101 # assume the GNU/Linux dynamic linker is in use.
13102 dynamic_linker='GNU/Linux ld.so'
13103 ;;
13105 netbsdelf*-gnu)
13106 version_type=linux
13107 need_lib_prefix=no
13108 need_version=no
13109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13110 soname_spec='${libname}${release}${shared_ext}$major'
13111 shlibpath_var=LD_LIBRARY_PATH
13112 shlibpath_overrides_runpath=no
13113 hardcode_into_libs=yes
13114 dynamic_linker='NetBSD ld.elf_so'
13115 ;;
13117 netbsd*)
13118 version_type=sunos
13119 need_lib_prefix=no
13120 need_version=no
13121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13124 dynamic_linker='NetBSD (a.out) ld.so'
13125 else
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 dynamic_linker='NetBSD ld.elf_so'
13129 fi
13130 shlibpath_var=LD_LIBRARY_PATH
13131 shlibpath_overrides_runpath=yes
13132 hardcode_into_libs=yes
13133 ;;
13135 newsos6)
13136 version_type=linux
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13138 shlibpath_var=LD_LIBRARY_PATH
13139 shlibpath_overrides_runpath=yes
13140 ;;
13142 nto-qnx*)
13143 version_type=linux
13144 need_lib_prefix=no
13145 need_version=no
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 soname_spec='${libname}${release}${shared_ext}$major'
13148 shlibpath_var=LD_LIBRARY_PATH
13149 shlibpath_overrides_runpath=yes
13150 ;;
13152 openbsd*)
13153 version_type=sunos
13154 sys_lib_dlsearch_path_spec="/usr/lib"
13155 need_lib_prefix=no
13156 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13157 case $host_os in
13158 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13159 *) need_version=no ;;
13160 esac
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13163 shlibpath_var=LD_LIBRARY_PATH
13164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13165 case $host_os in
13166 openbsd2.[89] | openbsd2.[89].*)
13167 shlibpath_overrides_runpath=no
13168 ;;
13169 *)
13170 shlibpath_overrides_runpath=yes
13171 ;;
13172 esac
13173 else
13174 shlibpath_overrides_runpath=yes
13175 fi
13176 ;;
13178 os2*)
13179 libname_spec='$name'
13180 shrext_cmds=".dll"
13181 need_lib_prefix=no
13182 library_names_spec='$libname${shared_ext} $libname.a'
13183 dynamic_linker='OS/2 ld.exe'
13184 shlibpath_var=LIBPATH
13185 ;;
13187 osf3* | osf4* | osf5*)
13188 version_type=osf
13189 need_lib_prefix=no
13190 need_version=no
13191 soname_spec='${libname}${release}${shared_ext}$major'
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13195 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13196 ;;
13198 solaris*)
13199 version_type=linux
13200 need_lib_prefix=no
13201 need_version=no
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 shlibpath_var=LD_LIBRARY_PATH
13205 shlibpath_overrides_runpath=yes
13206 hardcode_into_libs=yes
13207 # ldd complains unless libraries are executable
13208 postinstall_cmds='chmod +x $lib'
13209 ;;
13211 sunos4*)
13212 version_type=sunos
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13214 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13215 shlibpath_var=LD_LIBRARY_PATH
13216 shlibpath_overrides_runpath=yes
13217 if test "$with_gnu_ld" = yes; then
13218 need_lib_prefix=no
13219 fi
13220 need_version=yes
13221 ;;
13223 sysv4 | sysv4.3*)
13224 version_type=linux
13225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226 soname_spec='${libname}${release}${shared_ext}$major'
13227 shlibpath_var=LD_LIBRARY_PATH
13228 case $host_vendor in
13229 sni)
13230 shlibpath_overrides_runpath=no
13231 need_lib_prefix=no
13232 export_dynamic_flag_spec='${wl}-Blargedynsym'
13233 runpath_var=LD_RUN_PATH
13234 ;;
13235 siemens)
13236 need_lib_prefix=no
13237 ;;
13238 motorola)
13239 need_lib_prefix=no
13240 need_version=no
13241 shlibpath_overrides_runpath=no
13242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13243 ;;
13244 esac
13245 ;;
13247 sysv4*MP*)
13248 if test -d /usr/nec ;then
13249 version_type=linux
13250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13251 soname_spec='$libname${shared_ext}.$major'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 fi
13254 ;;
13256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13257 version_type=freebsd-elf
13258 need_lib_prefix=no
13259 need_version=no
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13261 soname_spec='${libname}${release}${shared_ext}$major'
13262 shlibpath_var=LD_LIBRARY_PATH
13263 hardcode_into_libs=yes
13264 if test "$with_gnu_ld" = yes; then
13265 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13266 shlibpath_overrides_runpath=no
13267 else
13268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13269 shlibpath_overrides_runpath=yes
13270 case $host_os in
13271 sco3.2v5*)
13272 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13273 ;;
13274 esac
13275 fi
13276 sys_lib_dlsearch_path_spec='/usr/lib'
13277 ;;
13279 uts4*)
13280 version_type=linux
13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282 soname_spec='${libname}${release}${shared_ext}$major'
13283 shlibpath_var=LD_LIBRARY_PATH
13284 ;;
13286 *)
13287 dynamic_linker=no
13288 ;;
13289 esac
13290 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13291 echo "${ECHO_T}$dynamic_linker" >&6; }
13292 test "$dynamic_linker" = no && can_build_shared=no
13294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13295 if test "$GCC" = yes; then
13296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13297 fi
13299 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13300 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13301 hardcode_action_CXX=
13302 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13303 test -n "$runpath_var_CXX" || \
13304 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13306 # We can hardcode non-existant directories.
13307 if test "$hardcode_direct_CXX" != no &&
13308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13309 # have to relink, otherwise we might link with an installed library
13310 # when we should be linking with a yet-to-be-installed one
13311 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13312 test "$hardcode_minus_L_CXX" != no; then
13313 # Linking always hardcodes the temporary library directory.
13314 hardcode_action_CXX=relink
13315 else
13316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13317 hardcode_action_CXX=immediate
13318 fi
13319 else
13320 # We cannot hardcode anything, or else we can only hardcode existing
13321 # directories.
13322 hardcode_action_CXX=unsupported
13323 fi
13324 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13325 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13327 if test "$hardcode_action_CXX" = relink; then
13328 # Fast installation is not supported
13329 enable_fast_install=no
13330 elif test "$shlibpath_overrides_runpath" = yes ||
13331 test "$enable_shared" = no; then
13332 # Fast installation is not necessary
13333 enable_fast_install=needless
13334 fi
13337 # The else clause should only fire when bootstrapping the
13338 # libtool distribution, otherwise you forgot to ship ltmain.sh
13339 # with your package, and you will get complaints that there are
13340 # no rules to generate ltmain.sh.
13341 if test -f "$ltmain"; then
13342 # See if we are running on zsh, and set the options which allow our commands through
13343 # without removal of \ escapes.
13344 if test -n "${ZSH_VERSION+set}" ; then
13345 setopt NO_GLOB_SUBST
13346 fi
13347 # Now quote all the things that may contain metacharacters while being
13348 # careful not to overquote the AC_SUBSTed values. We take copies of the
13349 # variables and quote the copies for generation of the libtool script.
13350 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13351 SED SHELL STRIP \
13352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13354 deplibs_check_method reload_flag reload_cmds need_locks \
13355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13356 lt_cv_sys_global_symbol_to_c_name_address \
13357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13358 old_postinstall_cmds old_postuninstall_cmds \
13359 compiler_CXX \
13360 CC_CXX \
13361 LD_CXX \
13362 lt_prog_compiler_wl_CXX \
13363 lt_prog_compiler_pic_CXX \
13364 lt_prog_compiler_static_CXX \
13365 lt_prog_compiler_no_builtin_flag_CXX \
13366 export_dynamic_flag_spec_CXX \
13367 thread_safe_flag_spec_CXX \
13368 whole_archive_flag_spec_CXX \
13369 enable_shared_with_static_runtimes_CXX \
13370 old_archive_cmds_CXX \
13371 old_archive_from_new_cmds_CXX \
13372 predep_objects_CXX \
13373 postdep_objects_CXX \
13374 predeps_CXX \
13375 postdeps_CXX \
13376 compiler_lib_search_path_CXX \
13377 archive_cmds_CXX \
13378 archive_expsym_cmds_CXX \
13379 postinstall_cmds_CXX \
13380 postuninstall_cmds_CXX \
13381 old_archive_from_expsyms_cmds_CXX \
13382 allow_undefined_flag_CXX \
13383 no_undefined_flag_CXX \
13384 export_symbols_cmds_CXX \
13385 hardcode_libdir_flag_spec_CXX \
13386 hardcode_libdir_flag_spec_ld_CXX \
13387 hardcode_libdir_separator_CXX \
13388 hardcode_automatic_CXX \
13389 module_cmds_CXX \
13390 module_expsym_cmds_CXX \
13391 lt_cv_prog_compiler_c_o_CXX \
13392 exclude_expsyms_CXX \
13393 include_expsyms_CXX; do
13395 case $var in
13396 old_archive_cmds_CXX | \
13397 old_archive_from_new_cmds_CXX | \
13398 archive_cmds_CXX | \
13399 archive_expsym_cmds_CXX | \
13400 module_cmds_CXX | \
13401 module_expsym_cmds_CXX | \
13402 old_archive_from_expsyms_cmds_CXX | \
13403 export_symbols_cmds_CXX | \
13404 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13405 postinstall_cmds | postuninstall_cmds | \
13406 old_postinstall_cmds | old_postuninstall_cmds | \
13407 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13408 # Double-quote double-evaled strings.
13409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13410 ;;
13411 *)
13412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13413 ;;
13414 esac
13415 done
13417 case $lt_echo in
13418 *'\$0 --fallback-echo"')
13419 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13420 ;;
13421 esac
13423 cfgfile="$ofile"
13425 cat <<__EOF__ >> "$cfgfile"
13426 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13428 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13430 # Shell to use when invoking shell scripts.
13431 SHELL=$lt_SHELL
13433 # Whether or not to build shared libraries.
13434 build_libtool_libs=$enable_shared
13436 # Whether or not to build static libraries.
13437 build_old_libs=$enable_static
13439 # Whether or not to add -lc for building shared libraries.
13440 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13442 # Whether or not to disallow shared libs when runtime libs are static
13443 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13445 # Whether or not to optimize for fast installation.
13446 fast_install=$enable_fast_install
13448 # The host system.
13449 host_alias=$host_alias
13450 host=$host
13451 host_os=$host_os
13453 # The build system.
13454 build_alias=$build_alias
13455 build=$build
13456 build_os=$build_os
13458 # An echo program that does not interpret backslashes.
13459 echo=$lt_echo
13461 # The archiver.
13462 AR=$lt_AR
13463 AR_FLAGS=$lt_AR_FLAGS
13465 # A C compiler.
13466 LTCC=$lt_LTCC
13468 # LTCC compiler flags.
13469 LTCFLAGS=$lt_LTCFLAGS
13471 # A language-specific compiler.
13472 CC=$lt_compiler_CXX
13474 # Is the compiler the GNU C compiler?
13475 with_gcc=$GCC_CXX
13477 # An ERE matcher.
13478 EGREP=$lt_EGREP
13480 # The linker used to build libraries.
13481 LD=$lt_LD_CXX
13483 # Whether we need hard or soft links.
13484 LN_S=$lt_LN_S
13486 # A BSD-compatible nm program.
13487 NM=$lt_NM
13489 # A symbol stripping program
13490 STRIP=$lt_STRIP
13492 # Used to examine libraries when file_magic_cmd begins "file"
13493 MAGIC_CMD=$MAGIC_CMD
13495 # Used on cygwin: DLL creation program.
13496 DLLTOOL="$DLLTOOL"
13498 # Used on cygwin: object dumper.
13499 OBJDUMP="$OBJDUMP"
13501 # Used on cygwin: assembler.
13502 AS="$AS"
13504 # The name of the directory that contains temporary libtool files.
13505 objdir=$objdir
13507 # How to create reloadable object files.
13508 reload_flag=$lt_reload_flag
13509 reload_cmds=$lt_reload_cmds
13511 # How to pass a linker flag through the compiler.
13512 wl=$lt_lt_prog_compiler_wl_CXX
13514 # Object file suffix (normally "o").
13515 objext="$ac_objext"
13517 # Old archive suffix (normally "a").
13518 libext="$libext"
13520 # Shared library suffix (normally ".so").
13521 shrext_cmds='$shrext_cmds'
13523 # Executable file suffix (normally "").
13524 exeext="$exeext"
13526 # Additional compiler flags for building library objects.
13527 pic_flag=$lt_lt_prog_compiler_pic_CXX
13528 pic_mode=$pic_mode
13530 # What is the maximum length of a command?
13531 max_cmd_len=$lt_cv_sys_max_cmd_len
13533 # Does compiler simultaneously support -c and -o options?
13534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13536 # Must we lock files when doing compilation?
13537 need_locks=$lt_need_locks
13539 # Do we need the lib prefix for modules?
13540 need_lib_prefix=$need_lib_prefix
13542 # Do we need a version for libraries?
13543 need_version=$need_version
13545 # Whether dlopen is supported.
13546 dlopen_support=$enable_dlopen
13548 # Whether dlopen of programs is supported.
13549 dlopen_self=$enable_dlopen_self
13551 # Whether dlopen of statically linked programs is supported.
13552 dlopen_self_static=$enable_dlopen_self_static
13554 # Compiler flag to prevent dynamic linking.
13555 link_static_flag=$lt_lt_prog_compiler_static_CXX
13557 # Compiler flag to turn off builtin functions.
13558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13560 # Compiler flag to allow reflexive dlopens.
13561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13563 # Compiler flag to generate shared objects directly from archives.
13564 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13566 # Compiler flag to generate thread-safe objects.
13567 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13569 # Library versioning type.
13570 version_type=$version_type
13572 # Format of library name prefix.
13573 libname_spec=$lt_libname_spec
13575 # List of archive names. First name is the real one, the rest are links.
13576 # The last name is the one that the linker finds with -lNAME.
13577 library_names_spec=$lt_library_names_spec
13579 # The coded name of the library, if different from the real name.
13580 soname_spec=$lt_soname_spec
13582 # Commands used to build and install an old-style archive.
13583 RANLIB=$lt_RANLIB
13584 old_archive_cmds=$lt_old_archive_cmds_CXX
13585 old_postinstall_cmds=$lt_old_postinstall_cmds
13586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13588 # Create an old-style archive from a shared archive.
13589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13591 # Create a temporary old-style archive to link instead of a shared archive.
13592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13594 # Commands used to build and install a shared archive.
13595 archive_cmds=$lt_archive_cmds_CXX
13596 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13597 postinstall_cmds=$lt_postinstall_cmds
13598 postuninstall_cmds=$lt_postuninstall_cmds
13600 # Commands used to build a loadable module (assumed same as above if empty)
13601 module_cmds=$lt_module_cmds_CXX
13602 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13604 # Commands to strip libraries.
13605 old_striplib=$lt_old_striplib
13606 striplib=$lt_striplib
13608 # Dependencies to place before the objects being linked to create a
13609 # shared library.
13610 predep_objects=$lt_predep_objects_CXX
13612 # Dependencies to place after the objects being linked to create a
13613 # shared library.
13614 postdep_objects=$lt_postdep_objects_CXX
13616 # Dependencies to place before the objects being linked to create a
13617 # shared library.
13618 predeps=$lt_predeps_CXX
13620 # Dependencies to place after the objects being linked to create a
13621 # shared library.
13622 postdeps=$lt_postdeps_CXX
13624 # The library search path used internally by the compiler when linking
13625 # a shared library.
13626 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13628 # Method to check whether dependent libraries are shared objects.
13629 deplibs_check_method=$lt_deplibs_check_method
13631 # Command to use when deplibs_check_method == file_magic.
13632 file_magic_cmd=$lt_file_magic_cmd
13634 # Flag that allows shared libraries with undefined symbols to be built.
13635 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13637 # Flag that forces no undefined symbols.
13638 no_undefined_flag=$lt_no_undefined_flag_CXX
13640 # Commands used to finish a libtool library installation in a directory.
13641 finish_cmds=$lt_finish_cmds
13643 # Same as above, but a single script fragment to be evaled but not shown.
13644 finish_eval=$lt_finish_eval
13646 # Take the output of nm and produce a listing of raw symbols and C names.
13647 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13649 # Transform the output of nm in a proper C declaration
13650 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13652 # Transform the output of nm in a C name address pair
13653 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13655 # This is the shared library runtime path variable.
13656 runpath_var=$runpath_var
13658 # This is the shared library path variable.
13659 shlibpath_var=$shlibpath_var
13661 # Is shlibpath searched before the hard-coded library search path?
13662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13664 # How to hardcode a shared library path into an executable.
13665 hardcode_action=$hardcode_action_CXX
13667 # Whether we should hardcode library paths into libraries.
13668 hardcode_into_libs=$hardcode_into_libs
13670 # Flag to hardcode \$libdir into a binary during linking.
13671 # This must work even if \$libdir does not exist.
13672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13674 # If ld is used when linking, flag to hardcode \$libdir into
13675 # a binary during linking. This must work even if \$libdir does
13676 # not exist.
13677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13679 # Whether we need a single -rpath flag with a separated argument.
13680 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13682 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13683 # resulting binary.
13684 hardcode_direct=$hardcode_direct_CXX
13686 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13687 # resulting binary.
13688 hardcode_minus_L=$hardcode_minus_L_CXX
13690 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13691 # the resulting binary.
13692 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13694 # Set to yes if building a shared library automatically hardcodes DIR into the library
13695 # and all subsequent libraries and executables linked against it.
13696 hardcode_automatic=$hardcode_automatic_CXX
13698 # Variables whose values should be saved in libtool wrapper scripts and
13699 # restored at relink time.
13700 variables_saved_for_relink="$variables_saved_for_relink"
13702 # Whether libtool must link a program against all its dependency libraries.
13703 link_all_deplibs=$link_all_deplibs_CXX
13705 # Compile-time system search path for libraries
13706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13708 # Run-time system search path for libraries
13709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13711 # Fix the shell variable \$srcfile for the compiler.
13712 fix_srcfile_path="$fix_srcfile_path_CXX"
13714 # Set to yes if exported symbols are required.
13715 always_export_symbols=$always_export_symbols_CXX
13717 # The commands to list exported symbols.
13718 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13720 # The commands to extract the exported symbol list from a shared archive.
13721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13723 # Symbols that should not be listed in the preloaded symbols.
13724 exclude_expsyms=$lt_exclude_expsyms_CXX
13726 # Symbols that must always be exported.
13727 include_expsyms=$lt_include_expsyms_CXX
13729 # ### END LIBTOOL TAG CONFIG: $tagname
13731 __EOF__
13734 else
13735 # If there is no Makefile yet, we rely on a make rule to execute
13736 # `config.status --recheck' to rerun these tests and create the
13737 # libtool script then.
13738 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13739 if test -f "$ltmain_in"; then
13740 test -f Makefile && make "$ltmain"
13741 fi
13742 fi
13745 ac_ext=c
13746 ac_cpp='$CPP $CPPFLAGS'
13747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13751 CC=$lt_save_CC
13752 LDCXX=$LD
13753 LD=$lt_save_LD
13754 GCC=$lt_save_GCC
13755 with_gnu_ldcxx=$with_gnu_ld
13756 with_gnu_ld=$lt_save_with_gnu_ld
13757 lt_cv_path_LDCXX=$lt_cv_path_LD
13758 lt_cv_path_LD=$lt_save_path_LD
13759 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13760 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13762 else
13763 tagname=""
13764 fi
13765 ;;
13767 F77)
13768 if test -n "$F77" && test "X$F77" != "Xno"; then
13770 ac_ext=f
13771 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13772 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13773 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13776 archive_cmds_need_lc_F77=no
13777 allow_undefined_flag_F77=
13778 always_export_symbols_F77=no
13779 archive_expsym_cmds_F77=
13780 export_dynamic_flag_spec_F77=
13781 hardcode_direct_F77=no
13782 hardcode_libdir_flag_spec_F77=
13783 hardcode_libdir_flag_spec_ld_F77=
13784 hardcode_libdir_separator_F77=
13785 hardcode_minus_L_F77=no
13786 hardcode_automatic_F77=no
13787 module_cmds_F77=
13788 module_expsym_cmds_F77=
13789 link_all_deplibs_F77=unknown
13790 old_archive_cmds_F77=$old_archive_cmds
13791 no_undefined_flag_F77=
13792 whole_archive_flag_spec_F77=
13793 enable_shared_with_static_runtimes_F77=no
13795 # Source file extension for f77 test sources.
13796 ac_ext=f
13798 # Object file extension for compiled f77 test sources.
13799 objext=o
13800 objext_F77=$objext
13802 # Code to be used in simple compile tests
13803 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13805 # Code to be used in simple link tests
13806 lt_simple_link_test_code=" program t\n end\n"
13808 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13810 # If no C compiler was specified, use CC.
13811 LTCC=${LTCC-"$CC"}
13813 # If no C compiler flags were specified, use CFLAGS.
13814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13816 # Allow CC to be a program name with arguments.
13817 compiler=$CC
13820 # save warnings/boilerplate of simple test code
13821 ac_outfile=conftest.$ac_objext
13822 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13824 _lt_compiler_boilerplate=`cat conftest.err`
13825 $rm conftest*
13827 ac_outfile=conftest.$ac_objext
13828 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13830 _lt_linker_boilerplate=`cat conftest.err`
13831 $rm conftest*
13834 # Allow CC to be a program name with arguments.
13835 lt_save_CC="$CC"
13836 CC=${F77-"f77"}
13837 compiler=$CC
13838 compiler_F77=$CC
13839 for cc_temp in $compiler""; do
13840 case $cc_temp in
13841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13843 \-*) ;;
13844 *) break;;
13845 esac
13846 done
13847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13850 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13851 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13852 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13853 echo "${ECHO_T}$can_build_shared" >&6; }
13855 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13856 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13857 test "$can_build_shared" = "no" && enable_shared=no
13859 # On AIX, shared libraries and static libraries use the same namespace, and
13860 # are all built from PIC.
13861 case $host_os in
13862 aix3*)
13863 test "$enable_shared" = yes && enable_static=no
13864 if test -n "$RANLIB"; then
13865 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13866 postinstall_cmds='$RANLIB $lib'
13867 fi
13868 ;;
13869 aix4* | aix5*)
13870 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13871 test "$enable_shared" = yes && enable_static=no
13872 fi
13873 ;;
13874 esac
13875 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13876 echo "${ECHO_T}$enable_shared" >&6; }
13878 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13879 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13880 # Make sure either enable_shared or enable_static is yes.
13881 test "$enable_shared" = yes || enable_static=yes
13882 { echo "$as_me:$LINENO: result: $enable_static" >&5
13883 echo "${ECHO_T}$enable_static" >&6; }
13885 GCC_F77="$G77"
13886 LD_F77="$LD"
13888 lt_prog_compiler_wl_F77=
13889 lt_prog_compiler_pic_F77=
13890 lt_prog_compiler_static_F77=
13892 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13893 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13895 if test "$GCC" = yes; then
13896 lt_prog_compiler_wl_F77='-Wl,'
13897 lt_prog_compiler_static_F77='-static'
13899 case $host_os in
13900 aix*)
13901 # All AIX code is PIC.
13902 if test "$host_cpu" = ia64; then
13903 # AIX 5 now supports IA64 processor
13904 lt_prog_compiler_static_F77='-Bstatic'
13905 fi
13906 ;;
13908 amigaos*)
13909 # FIXME: we need at least 68020 code to build shared libraries, but
13910 # adding the `-m68020' flag to GCC prevents building anything better,
13911 # like `-m68040'.
13912 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13913 ;;
13915 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13916 # PIC is the default for these OSes.
13917 ;;
13919 mingw* | pw32* | os2*)
13920 # This hack is so that the source file can tell whether it is being
13921 # built for inclusion in a dll (and should export symbols for example).
13922 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13923 ;;
13925 darwin* | rhapsody*)
13926 # PIC is the default on this platform
13927 # Common symbols not allowed in MH_DYLIB files
13928 lt_prog_compiler_pic_F77='-fno-common'
13929 ;;
13931 interix3*)
13932 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13933 # Instead, we relocate shared libraries at runtime.
13934 ;;
13936 msdosdjgpp*)
13937 # Just because we use GCC doesn't mean we suddenly get shared libraries
13938 # on systems that don't support them.
13939 lt_prog_compiler_can_build_shared_F77=no
13940 enable_shared=no
13941 ;;
13943 sysv4*MP*)
13944 if test -d /usr/nec; then
13945 lt_prog_compiler_pic_F77=-Kconform_pic
13946 fi
13947 ;;
13949 hpux*)
13950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13951 # not for PA HP-UX.
13952 case $host_cpu in
13953 hppa*64*|ia64*)
13954 # +Z the default
13955 ;;
13956 *)
13957 lt_prog_compiler_pic_F77='-fPIC'
13958 ;;
13959 esac
13960 ;;
13962 *)
13963 lt_prog_compiler_pic_F77='-fPIC'
13964 ;;
13965 esac
13966 else
13967 # PORTME Check for flag to pass linker flags through the system compiler.
13968 case $host_os in
13969 aix*)
13970 lt_prog_compiler_wl_F77='-Wl,'
13971 if test "$host_cpu" = ia64; then
13972 # AIX 5 now supports IA64 processor
13973 lt_prog_compiler_static_F77='-Bstatic'
13974 else
13975 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13976 fi
13977 ;;
13978 darwin*)
13979 # PIC is the default on this platform
13980 # Common symbols not allowed in MH_DYLIB files
13981 case $cc_basename in
13982 xlc*)
13983 lt_prog_compiler_pic_F77='-qnocommon'
13984 lt_prog_compiler_wl_F77='-Wl,'
13985 ;;
13986 esac
13987 ;;
13989 mingw* | pw32* | os2*)
13990 # This hack is so that the source file can tell whether it is being
13991 # built for inclusion in a dll (and should export symbols for example).
13992 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13993 ;;
13995 hpux9* | hpux10* | hpux11*)
13996 lt_prog_compiler_wl_F77='-Wl,'
13997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13998 # not for PA HP-UX.
13999 case $host_cpu in
14000 hppa*64*|ia64*)
14001 # +Z the default
14002 ;;
14003 *)
14004 lt_prog_compiler_pic_F77='+Z'
14005 ;;
14006 esac
14007 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14008 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14009 ;;
14011 irix5* | irix6* | nonstopux*)
14012 lt_prog_compiler_wl_F77='-Wl,'
14013 # PIC (with -KPIC) is the default.
14014 lt_prog_compiler_static_F77='-non_shared'
14015 ;;
14017 newsos6)
14018 lt_prog_compiler_pic_F77='-KPIC'
14019 lt_prog_compiler_static_F77='-Bstatic'
14020 ;;
14022 linux* | k*bsd*-gnu)
14023 case $cc_basename in
14024 icc* | ecc*)
14025 lt_prog_compiler_wl_F77='-Wl,'
14026 lt_prog_compiler_pic_F77='-KPIC'
14027 lt_prog_compiler_static_F77='-static'
14028 ;;
14029 pgcc* | pgf77* | pgf90* | pgf95*)
14030 # Portland Group compilers (*not* the Pentium gcc compiler,
14031 # which looks to be a dead project)
14032 lt_prog_compiler_wl_F77='-Wl,'
14033 lt_prog_compiler_pic_F77='-fpic'
14034 lt_prog_compiler_static_F77='-Bstatic'
14035 ;;
14036 ccc*)
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 # All Alpha code is PIC.
14039 lt_prog_compiler_static_F77='-non_shared'
14040 ;;
14041 esac
14042 ;;
14044 osf3* | osf4* | osf5*)
14045 lt_prog_compiler_wl_F77='-Wl,'
14046 # All OSF/1 code is PIC.
14047 lt_prog_compiler_static_F77='-non_shared'
14048 ;;
14050 solaris*)
14051 lt_prog_compiler_pic_F77='-KPIC'
14052 lt_prog_compiler_static_F77='-Bstatic'
14053 case $cc_basename in
14054 f77* | f90* | f95*)
14055 lt_prog_compiler_wl_F77='-Qoption ld ';;
14056 *)
14057 lt_prog_compiler_wl_F77='-Wl,';;
14058 esac
14059 ;;
14061 sunos4*)
14062 lt_prog_compiler_wl_F77='-Qoption ld '
14063 lt_prog_compiler_pic_F77='-PIC'
14064 lt_prog_compiler_static_F77='-Bstatic'
14065 ;;
14067 sysv4 | sysv4.2uw2* | sysv4.3*)
14068 lt_prog_compiler_wl_F77='-Wl,'
14069 lt_prog_compiler_pic_F77='-KPIC'
14070 lt_prog_compiler_static_F77='-Bstatic'
14071 ;;
14073 sysv4*MP*)
14074 if test -d /usr/nec ;then
14075 lt_prog_compiler_pic_F77='-Kconform_pic'
14076 lt_prog_compiler_static_F77='-Bstatic'
14077 fi
14078 ;;
14080 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14081 lt_prog_compiler_wl_F77='-Wl,'
14082 lt_prog_compiler_pic_F77='-KPIC'
14083 lt_prog_compiler_static_F77='-Bstatic'
14084 ;;
14086 unicos*)
14087 lt_prog_compiler_wl_F77='-Wl,'
14088 lt_prog_compiler_can_build_shared_F77=no
14089 ;;
14091 uts4*)
14092 lt_prog_compiler_pic_F77='-pic'
14093 lt_prog_compiler_static_F77='-Bstatic'
14094 ;;
14096 *)
14097 lt_prog_compiler_can_build_shared_F77=no
14098 ;;
14099 esac
14100 fi
14102 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14103 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14105 #
14106 # Check to make sure the PIC flag actually works.
14107 #
14108 if test -n "$lt_prog_compiler_pic_F77"; then
14110 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14111 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14112 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115 lt_prog_compiler_pic_works_F77=no
14116 ac_outfile=conftest.$ac_objext
14117 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14118 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14119 # Insert the option either (1) after the last *FLAGS variable, or
14120 # (2) before a word containing "conftest.", or (3) at the end.
14121 # Note that $ac_compile itself does not contain backslashes and begins
14122 # with a dollar sign (not a hyphen), so the echo should work correctly.
14123 # The option is referenced via a variable to avoid confusing sed.
14124 lt_compile=`echo "$ac_compile" | $SED \
14125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14127 -e 's:$: $lt_compiler_flag:'`
14128 (eval echo "\"\$as_me:14128: $lt_compile\"" >&5)
14129 (eval "$lt_compile" 2>conftest.err)
14130 ac_status=$?
14131 cat conftest.err >&5
14132 echo "$as_me:14132: \$? = $ac_status" >&5
14133 if (exit $ac_status) && test -s "$ac_outfile"; then
14134 # The compiler can only warn and ignore the option if not recognized
14135 # So say no if there are warnings other than the usual output.
14136 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14139 lt_prog_compiler_pic_works_F77=yes
14140 fi
14141 fi
14142 $rm conftest*
14144 fi
14145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14146 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14148 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14149 case $lt_prog_compiler_pic_F77 in
14150 "" | " "*) ;;
14151 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14152 esac
14153 else
14154 lt_prog_compiler_pic_F77=
14155 lt_prog_compiler_can_build_shared_F77=no
14156 fi
14158 fi
14159 case $host_os in
14160 # For platforms which do not support PIC, -DPIC is meaningless:
14161 *djgpp*)
14162 lt_prog_compiler_pic_F77=
14163 ;;
14164 *)
14165 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14166 ;;
14167 esac
14169 #
14170 # Check to make sure the static flag actually works.
14171 #
14172 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14173 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14174 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14175 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178 lt_prog_compiler_static_works_F77=no
14179 save_LDFLAGS="$LDFLAGS"
14180 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14181 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14183 # The linker can only warn and ignore the option if not recognized
14184 # So say no if there are warnings
14185 if test -s conftest.err; then
14186 # Append any errors to the config.log.
14187 cat conftest.err 1>&5
14188 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14190 if diff conftest.exp conftest.er2 >/dev/null; then
14191 lt_prog_compiler_static_works_F77=yes
14192 fi
14193 else
14194 lt_prog_compiler_static_works_F77=yes
14195 fi
14196 fi
14197 $rm conftest*
14198 LDFLAGS="$save_LDFLAGS"
14200 fi
14201 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14202 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14204 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14205 :
14206 else
14207 lt_prog_compiler_static_F77=
14208 fi
14211 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14212 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14213 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216 lt_cv_prog_compiler_c_o_F77=no
14217 $rm -r conftest 2>/dev/null
14218 mkdir conftest
14219 cd conftest
14220 mkdir out
14221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14223 lt_compiler_flag="-o out/conftest2.$ac_objext"
14224 # Insert the option either (1) after the last *FLAGS variable, or
14225 # (2) before a word containing "conftest.", or (3) at the end.
14226 # Note that $ac_compile itself does not contain backslashes and begins
14227 # with a dollar sign (not a hyphen), so the echo should work correctly.
14228 lt_compile=`echo "$ac_compile" | $SED \
14229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14231 -e 's:$: $lt_compiler_flag:'`
14232 (eval echo "\"\$as_me:14232: $lt_compile\"" >&5)
14233 (eval "$lt_compile" 2>out/conftest.err)
14234 ac_status=$?
14235 cat out/conftest.err >&5
14236 echo "$as_me:14236: \$? = $ac_status" >&5
14237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14238 then
14239 # The compiler can only warn and ignore the option if not recognized
14240 # So say no if there are warnings
14241 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14244 lt_cv_prog_compiler_c_o_F77=yes
14245 fi
14246 fi
14247 chmod u+w . 2>&5
14248 $rm conftest*
14249 # SGI C++ compiler will create directory out/ii_files/ for
14250 # template instantiation
14251 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14252 $rm out/* && rmdir out
14253 cd ..
14254 rmdir conftest
14255 $rm conftest*
14257 fi
14258 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14259 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14262 hard_links="nottested"
14263 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14264 # do not overwrite the value of need_locks provided by the user
14265 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14266 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14267 hard_links=yes
14268 $rm conftest*
14269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14270 touch conftest.a
14271 ln conftest.a conftest.b 2>&5 || hard_links=no
14272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14273 { echo "$as_me:$LINENO: result: $hard_links" >&5
14274 echo "${ECHO_T}$hard_links" >&6; }
14275 if test "$hard_links" = no; then
14276 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14277 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14278 need_locks=warn
14279 fi
14280 else
14281 need_locks=no
14282 fi
14284 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14285 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14287 runpath_var=
14288 allow_undefined_flag_F77=
14289 enable_shared_with_static_runtimes_F77=no
14290 archive_cmds_F77=
14291 archive_expsym_cmds_F77=
14292 old_archive_From_new_cmds_F77=
14293 old_archive_from_expsyms_cmds_F77=
14294 export_dynamic_flag_spec_F77=
14295 whole_archive_flag_spec_F77=
14296 thread_safe_flag_spec_F77=
14297 hardcode_libdir_flag_spec_F77=
14298 hardcode_libdir_flag_spec_ld_F77=
14299 hardcode_libdir_separator_F77=
14300 hardcode_direct_F77=no
14301 hardcode_minus_L_F77=no
14302 hardcode_shlibpath_var_F77=unsupported
14303 link_all_deplibs_F77=unknown
14304 hardcode_automatic_F77=no
14305 module_cmds_F77=
14306 module_expsym_cmds_F77=
14307 always_export_symbols_F77=no
14308 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14309 # include_expsyms should be a list of space-separated symbols to be *always*
14310 # included in the symbol list
14311 include_expsyms_F77=
14312 # exclude_expsyms can be an extended regexp of symbols to exclude
14313 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14314 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14315 # as well as any symbol that contains `d'.
14316 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14317 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14318 # platforms (ab)use it in PIC code, but their linkers get confused if
14319 # the symbol is explicitly referenced. Since portable code cannot
14320 # rely on this symbol name, it's probably fine to never include it in
14321 # preloaded symbol tables.
14322 extract_expsyms_cmds=
14323 # Just being paranoid about ensuring that cc_basename is set.
14324 for cc_temp in $compiler""; do
14325 case $cc_temp in
14326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14328 \-*) ;;
14329 *) break;;
14330 esac
14331 done
14332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14334 case $host_os in
14335 cygwin* | mingw* | pw32*)
14336 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14337 # When not using gcc, we currently assume that we are using
14338 # Microsoft Visual C++.
14339 if test "$GCC" != yes; then
14340 with_gnu_ld=no
14341 fi
14342 ;;
14343 interix*)
14344 # we just hope/assume this is gcc and not c89 (= MSVC++)
14345 with_gnu_ld=yes
14346 ;;
14347 openbsd*)
14348 with_gnu_ld=no
14349 ;;
14350 esac
14352 ld_shlibs_F77=yes
14353 if test "$with_gnu_ld" = yes; then
14354 # If archive_cmds runs LD, not CC, wlarc should be empty
14355 wlarc='${wl}'
14357 # Set some defaults for GNU ld with shared library support. These
14358 # are reset later if shared libraries are not supported. Putting them
14359 # here allows them to be overridden if necessary.
14360 runpath_var=LD_RUN_PATH
14361 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14362 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14363 # ancient GNU ld didn't support --whole-archive et. al.
14364 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14365 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14366 else
14367 whole_archive_flag_spec_F77=
14368 fi
14369 supports_anon_versioning=no
14370 case `$LD -v 2>/dev/null` in
14371 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14372 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14373 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14374 *\ 2.11.*) ;; # other 2.11 versions
14375 *) supports_anon_versioning=yes ;;
14376 esac
14378 # See if GNU ld supports shared libraries.
14379 case $host_os in
14380 aix3* | aix4* | aix5*)
14381 # On AIX/PPC, the GNU linker is very broken
14382 if test "$host_cpu" != ia64; then
14383 ld_shlibs_F77=no
14384 cat <<EOF 1>&2
14386 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14387 *** to be unable to reliably create shared libraries on AIX.
14388 *** Therefore, libtool is disabling shared libraries support. If you
14389 *** really care for shared libraries, you may want to modify your PATH
14390 *** so that a non-GNU linker is found, and then restart.
14392 EOF
14393 fi
14394 ;;
14396 amigaos*)
14397 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)'
14398 hardcode_libdir_flag_spec_F77='-L$libdir'
14399 hardcode_minus_L_F77=yes
14401 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14402 # that the semantics of dynamic libraries on AmigaOS, at least up
14403 # to version 4, is to share data among multiple programs linked
14404 # with the same dynamic library. Since this doesn't match the
14405 # behavior of shared libraries on other platforms, we can't use
14406 # them.
14407 ld_shlibs_F77=no
14408 ;;
14410 beos*)
14411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14412 allow_undefined_flag_F77=unsupported
14413 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14414 # support --undefined. This deserves some investigation. FIXME
14415 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14416 else
14417 ld_shlibs_F77=no
14418 fi
14419 ;;
14421 cygwin* | mingw* | pw32*)
14422 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14423 # as there is no search path for DLLs.
14424 hardcode_libdir_flag_spec_F77='-L$libdir'
14425 allow_undefined_flag_F77=unsupported
14426 always_export_symbols_F77=no
14427 enable_shared_with_static_runtimes_F77=yes
14428 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14430 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14431 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14432 # If the export-symbols file already is a .def file (1st line
14433 # is EXPORTS), use it as is; otherwise, prepend...
14434 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14435 cp $export_symbols $output_objdir/$soname.def;
14436 else
14437 echo EXPORTS > $output_objdir/$soname.def;
14438 cat $export_symbols >> $output_objdir/$soname.def;
14439 fi~
14440 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14441 else
14442 ld_shlibs_F77=no
14443 fi
14444 ;;
14446 interix3*)
14447 hardcode_direct_F77=no
14448 hardcode_shlibpath_var_F77=no
14449 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14450 export_dynamic_flag_spec_F77='${wl}-E'
14451 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14452 # Instead, shared libraries are loaded at an image base (0x10000000 by
14453 # default) and relocated if they conflict, which is a slow very memory
14454 # consuming and fragmenting process. To avoid this, we pick a random,
14455 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14456 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14457 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'
14458 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'
14459 ;;
14461 linux* | k*bsd*-gnu)
14462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14463 tmp_addflag=
14464 case $cc_basename,$host_cpu in
14465 pgcc*) # Portland Group C compiler
14466 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'
14467 tmp_addflag=' $pic_flag'
14468 ;;
14469 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14470 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'
14471 tmp_addflag=' $pic_flag -Mnomain' ;;
14472 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14473 tmp_addflag=' -i_dynamic' ;;
14474 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14475 tmp_addflag=' -i_dynamic -nofor_main' ;;
14476 ifc* | ifort*) # Intel Fortran compiler
14477 tmp_addflag=' -nofor_main' ;;
14478 esac
14479 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481 if test $supports_anon_versioning = yes; then
14482 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14484 $echo "local: *; };" >> $output_objdir/$libname.ver~
14485 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14486 fi
14487 link_all_deplibs_F77=no
14488 else
14489 ld_shlibs_F77=no
14490 fi
14491 ;;
14493 netbsd* | netbsdelf*-gnu)
14494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14495 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14496 wlarc=
14497 else
14498 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14499 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14500 fi
14501 ;;
14503 solaris*)
14504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14505 ld_shlibs_F77=no
14506 cat <<EOF 1>&2
14508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14509 *** create shared libraries on Solaris systems. Therefore, libtool
14510 *** is disabling shared libraries support. We urge you to upgrade GNU
14511 *** binutils to release 2.9.1 or newer. Another option is to modify
14512 *** your PATH or compiler configuration so that the native linker is
14513 *** used, and then restart.
14515 EOF
14516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14518 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14519 else
14520 ld_shlibs_F77=no
14521 fi
14522 ;;
14524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14525 case `$LD -v 2>&1` in
14526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14527 ld_shlibs_F77=no
14528 cat <<_LT_EOF 1>&2
14530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14531 *** reliably create shared libraries on SCO systems. Therefore, libtool
14532 *** is disabling shared libraries support. We urge you to upgrade GNU
14533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14534 *** your PATH or compiler configuration so that the native linker is
14535 *** used, and then restart.
14537 _LT_EOF
14538 ;;
14539 *)
14540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14541 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14542 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14543 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14544 else
14545 ld_shlibs_F77=no
14546 fi
14547 ;;
14548 esac
14549 ;;
14551 sunos4*)
14552 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14553 wlarc=
14554 hardcode_direct_F77=yes
14555 hardcode_shlibpath_var_F77=no
14556 ;;
14558 *)
14559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14560 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14561 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14562 else
14563 ld_shlibs_F77=no
14564 fi
14565 ;;
14566 esac
14568 if test "$ld_shlibs_F77" = no; then
14569 runpath_var=
14570 hardcode_libdir_flag_spec_F77=
14571 export_dynamic_flag_spec_F77=
14572 whole_archive_flag_spec_F77=
14573 fi
14574 else
14575 # PORTME fill in a description of your system's linker (not GNU ld)
14576 case $host_os in
14577 aix3*)
14578 allow_undefined_flag_F77=unsupported
14579 always_export_symbols_F77=yes
14580 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'
14581 # Note: this linker hardcodes the directories in LIBPATH if there
14582 # are no directories specified by -L.
14583 hardcode_minus_L_F77=yes
14584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14585 # Neither direct hardcoding nor static linking is supported with a
14586 # broken collect2.
14587 hardcode_direct_F77=unsupported
14588 fi
14589 ;;
14591 aix4* | aix5*)
14592 if test "$host_cpu" = ia64; then
14593 # On IA64, the linker does run time linking by default, so we don't
14594 # have to do anything special.
14595 aix_use_runtimelinking=no
14596 exp_sym_flag='-Bexport'
14597 no_entry_flag=""
14598 else
14599 # If we're using GNU nm, then we don't want the "-C" option.
14600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14602 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'
14603 else
14604 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'
14605 fi
14606 aix_use_runtimelinking=no
14608 # Test if we are trying to use run time linking or normal
14609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14610 # need to do runtime linking.
14611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14612 for ld_flag in $LDFLAGS; do
14613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14614 aix_use_runtimelinking=yes
14615 break
14616 fi
14617 done
14618 ;;
14619 esac
14621 exp_sym_flag='-bexport'
14622 no_entry_flag='-bnoentry'
14623 fi
14625 # When large executables or shared objects are built, AIX ld can
14626 # have problems creating the table of contents. If linking a library
14627 # or program results in "error TOC overflow" add -mminimal-toc to
14628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14631 archive_cmds_F77=''
14632 hardcode_direct_F77=yes
14633 hardcode_libdir_separator_F77=':'
14634 link_all_deplibs_F77=yes
14636 if test "$GCC" = yes; then
14637 case $host_os in aix4.[012]|aix4.[012].*)
14638 # We only want to do this on AIX 4.2 and lower, the check
14639 # below for broken collect2 doesn't work under 4.3+
14640 collect2name=`${CC} -print-prog-name=collect2`
14641 if test -f "$collect2name" && \
14642 strings "$collect2name" | grep resolve_lib_name >/dev/null
14643 then
14644 # We have reworked collect2
14645 hardcode_direct_F77=yes
14646 else
14647 # We have old collect2
14648 hardcode_direct_F77=unsupported
14649 # It fails to find uninstalled libraries when the uninstalled
14650 # path is not listed in the libpath. Setting hardcode_minus_L
14651 # to unsupported forces relinking
14652 hardcode_minus_L_F77=yes
14653 hardcode_libdir_flag_spec_F77='-L$libdir'
14654 hardcode_libdir_separator_F77=
14655 fi
14656 ;;
14657 esac
14658 shared_flag='-shared'
14659 if test "$aix_use_runtimelinking" = yes; then
14660 shared_flag="$shared_flag "'${wl}-G'
14661 fi
14662 else
14663 # not using gcc
14664 if test "$host_cpu" = ia64; then
14665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14666 # chokes on -Wl,-G. The following line is correct:
14667 shared_flag='-G'
14668 else
14669 if test "$aix_use_runtimelinking" = yes; then
14670 shared_flag='${wl}-G'
14671 else
14672 shared_flag='${wl}-bM:SRE'
14673 fi
14674 fi
14675 fi
14677 # It seems that -bexpall does not export symbols beginning with
14678 # underscore (_), so it is better to generate a list of symbols to export.
14679 always_export_symbols_F77=yes
14680 if test "$aix_use_runtimelinking" = yes; then
14681 # Warning - without using the other runtime loading flags (-brtl),
14682 # -berok will link without error, but may produce a broken library.
14683 allow_undefined_flag_F77='-berok'
14684 # Determine the default libpath from the value encoded in an empty executable.
14685 cat >conftest.$ac_ext <<_ACEOF
14686 program main
14688 end
14689 _ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (ac_try="$ac_link"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_link") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_f77_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext &&
14707 $as_test_x conftest$ac_exeext; then
14709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14710 }'`
14711 # Check for a 64-bit object if we didn't find anything.
14712 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; }
14713 }'`; fi
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14719 fi
14721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14722 conftest$ac_exeext conftest.$ac_ext
14723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14725 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14726 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"
14727 else
14728 if test "$host_cpu" = ia64; then
14729 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14730 allow_undefined_flag_F77="-z nodefs"
14731 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"
14732 else
14733 # Determine the default libpath from the value encoded in an empty executable.
14734 cat >conftest.$ac_ext <<_ACEOF
14735 program main
14737 end
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (ac_try="$ac_link"
14741 case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744 esac
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_link") 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } && {
14753 test -z "$ac_f77_werror_flag" ||
14754 test ! -s conftest.err
14755 } && test -s conftest$ac_exeext &&
14756 $as_test_x conftest$ac_exeext; then
14758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14759 }'`
14760 # Check for a 64-bit object if we didn't find anything.
14761 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; }
14762 }'`; fi
14763 else
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14768 fi
14770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14771 conftest$ac_exeext conftest.$ac_ext
14772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14774 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14775 # Warning - without using the other run time loading flags,
14776 # -berok will link without error, but may produce a broken library.
14777 no_undefined_flag_F77=' ${wl}-bernotok'
14778 allow_undefined_flag_F77=' ${wl}-berok'
14779 # Exported symbols can be pulled into shared objects from archives
14780 whole_archive_flag_spec_F77='$convenience'
14781 archive_cmds_need_lc_F77=yes
14782 # This is similar to how AIX traditionally builds its shared libraries.
14783 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'
14784 fi
14785 fi
14786 ;;
14788 amigaos*)
14789 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)'
14790 hardcode_libdir_flag_spec_F77='-L$libdir'
14791 hardcode_minus_L_F77=yes
14792 # see comment about different semantics on the GNU ld section
14793 ld_shlibs_F77=no
14794 ;;
14796 bsdi[45]*)
14797 export_dynamic_flag_spec_F77=-rdynamic
14798 ;;
14800 cygwin* | mingw* | pw32*)
14801 # When not using gcc, we currently assume that we are using
14802 # Microsoft Visual C++.
14803 # hardcode_libdir_flag_spec is actually meaningless, as there is
14804 # no search path for DLLs.
14805 hardcode_libdir_flag_spec_F77=' '
14806 allow_undefined_flag_F77=unsupported
14807 # Tell ltmain to make .lib files, not .a files.
14808 libext=lib
14809 # Tell ltmain to make .dll files, not .so files.
14810 shrext_cmds=".dll"
14811 # FIXME: Setting linknames here is a bad hack.
14812 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14813 # The linker will automatically build a .lib file if we build a DLL.
14814 old_archive_From_new_cmds_F77='true'
14815 # FIXME: Should let the user specify the lib program.
14816 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14817 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14818 enable_shared_with_static_runtimes_F77=yes
14819 ;;
14821 darwin* | rhapsody*)
14822 case $host_os in
14823 rhapsody* | darwin1.[012])
14824 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14825 ;;
14826 *) # Darwin 1.3 on
14827 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14828 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14829 else
14830 case ${MACOSX_DEPLOYMENT_TARGET} in
14831 10.[012])
14832 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14833 ;;
14834 10.*)
14835 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14836 ;;
14837 esac
14838 fi
14839 ;;
14840 esac
14841 archive_cmds_need_lc_F77=no
14842 hardcode_direct_F77=no
14843 hardcode_automatic_F77=yes
14844 hardcode_shlibpath_var_F77=unsupported
14845 whole_archive_flag_spec_F77=''
14846 link_all_deplibs_F77=yes
14847 if test "$GCC" = yes ; then
14848 output_verbose_link_cmd='echo'
14849 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14850 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14851 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14852 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}'
14853 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}'
14854 else
14855 case $cc_basename in
14856 xlc*)
14857 output_verbose_link_cmd='echo'
14858 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14859 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14861 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}'
14862 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}'
14863 ;;
14864 *)
14865 ld_shlibs_F77=no
14866 ;;
14867 esac
14868 fi
14869 ;;
14871 dgux*)
14872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873 hardcode_libdir_flag_spec_F77='-L$libdir'
14874 hardcode_shlibpath_var_F77=no
14875 ;;
14877 freebsd1*)
14878 ld_shlibs_F77=no
14879 ;;
14881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14882 # support. Future versions do this automatically, but an explicit c++rt0.o
14883 # does not break anything, and helps significantly (at the cost of a little
14884 # extra space).
14885 freebsd2.2*)
14886 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14887 hardcode_libdir_flag_spec_F77='-R$libdir'
14888 hardcode_direct_F77=yes
14889 hardcode_shlibpath_var_F77=no
14890 ;;
14892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14893 freebsd2*)
14894 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_direct_F77=yes
14896 hardcode_minus_L_F77=yes
14897 hardcode_shlibpath_var_F77=no
14898 ;;
14900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14901 freebsd* | dragonfly*)
14902 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14903 hardcode_libdir_flag_spec_F77='-R$libdir'
14904 hardcode_direct_F77=yes
14905 hardcode_shlibpath_var_F77=no
14906 ;;
14908 hpux9*)
14909 if test "$GCC" = yes; then
14910 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'
14911 else
14912 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'
14913 fi
14914 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14915 hardcode_libdir_separator_F77=:
14916 hardcode_direct_F77=yes
14918 # hardcode_minus_L: Not really in the search PATH,
14919 # but as the default location of the library.
14920 hardcode_minus_L_F77=yes
14921 export_dynamic_flag_spec_F77='${wl}-E'
14922 ;;
14924 hpux10*)
14925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14926 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14927 else
14928 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14929 fi
14930 if test "$with_gnu_ld" = no; then
14931 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14932 hardcode_libdir_separator_F77=:
14934 hardcode_direct_F77=yes
14935 export_dynamic_flag_spec_F77='${wl}-E'
14937 # hardcode_minus_L: Not really in the search PATH,
14938 # but as the default location of the library.
14939 hardcode_minus_L_F77=yes
14940 fi
14941 ;;
14943 hpux11*)
14944 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14945 case $host_cpu in
14946 hppa*64*)
14947 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 ;;
14949 ia64*)
14950 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14951 ;;
14952 *)
14953 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14954 ;;
14955 esac
14956 else
14957 case $host_cpu in
14958 hppa*64*)
14959 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 ;;
14961 ia64*)
14962 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14963 ;;
14964 *)
14965 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14966 ;;
14967 esac
14968 fi
14969 if test "$with_gnu_ld" = no; then
14970 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14971 hardcode_libdir_separator_F77=:
14973 case $host_cpu in
14974 hppa*64*|ia64*)
14975 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14976 hardcode_direct_F77=no
14977 hardcode_shlibpath_var_F77=no
14978 ;;
14979 *)
14980 hardcode_direct_F77=yes
14981 export_dynamic_flag_spec_F77='${wl}-E'
14983 # hardcode_minus_L: Not really in the search PATH,
14984 # but as the default location of the library.
14985 hardcode_minus_L_F77=yes
14986 ;;
14987 esac
14988 fi
14989 ;;
14991 irix5* | irix6* | nonstopux*)
14992 if test "$GCC" = yes; then
14993 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'
14994 else
14995 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'
14996 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14997 fi
14998 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14999 hardcode_libdir_separator_F77=:
15000 link_all_deplibs_F77=yes
15001 ;;
15003 netbsd* | netbsdelf*-gnu)
15004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15005 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15006 else
15007 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15008 fi
15009 hardcode_libdir_flag_spec_F77='-R$libdir'
15010 hardcode_direct_F77=yes
15011 hardcode_shlibpath_var_F77=no
15012 ;;
15014 newsos6)
15015 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016 hardcode_direct_F77=yes
15017 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15018 hardcode_libdir_separator_F77=:
15019 hardcode_shlibpath_var_F77=no
15020 ;;
15022 openbsd*)
15023 hardcode_direct_F77=yes
15024 hardcode_shlibpath_var_F77=no
15025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15026 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15027 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15028 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15029 export_dynamic_flag_spec_F77='${wl}-E'
15030 else
15031 case $host_os in
15032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15033 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15034 hardcode_libdir_flag_spec_F77='-R$libdir'
15035 ;;
15036 *)
15037 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15038 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15039 ;;
15040 esac
15041 fi
15042 ;;
15044 os2*)
15045 hardcode_libdir_flag_spec_F77='-L$libdir'
15046 hardcode_minus_L_F77=yes
15047 allow_undefined_flag_F77=unsupported
15048 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'
15049 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15050 ;;
15052 osf3*)
15053 if test "$GCC" = yes; then
15054 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15055 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'
15056 else
15057 allow_undefined_flag_F77=' -expect_unresolved \*'
15058 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'
15059 fi
15060 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15061 hardcode_libdir_separator_F77=:
15062 ;;
15064 osf4* | osf5*) # as osf3* with the addition of -msym flag
15065 if test "$GCC" = yes; then
15066 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15067 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'
15068 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15069 else
15070 allow_undefined_flag_F77=' -expect_unresolved \*'
15071 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'
15072 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~
15073 $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'
15075 # Both c and cxx compiler support -rpath directly
15076 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15077 fi
15078 hardcode_libdir_separator_F77=:
15079 ;;
15081 solaris*)
15082 no_undefined_flag_F77=' -z text'
15083 if test "$GCC" = yes; then
15084 wlarc='${wl}'
15085 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15086 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15087 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15088 else
15089 wlarc=''
15090 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15091 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15092 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15093 fi
15094 hardcode_libdir_flag_spec_F77='-R$libdir'
15095 hardcode_shlibpath_var_F77=no
15096 case $host_os in
15097 solaris2.[0-5] | solaris2.[0-5].*) ;;
15098 *)
15099 # The compiler driver will combine linker options so we
15100 # cannot just pass the convience library names through
15101 # without $wl, iff we do not link with $LD.
15102 # Luckily, gcc supports the same syntax we need for Sun Studio.
15103 # Supported since Solaris 2.6 (maybe 2.5.1?)
15104 case $wlarc in
15105 '')
15106 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15107 *)
15108 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' ;;
15109 esac ;;
15110 esac
15111 link_all_deplibs_F77=yes
15112 ;;
15114 sunos4*)
15115 if test "x$host_vendor" = xsequent; then
15116 # Use $CC to link under sequent, because it throws in some extra .o
15117 # files that make .init and .fini sections work.
15118 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15119 else
15120 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15121 fi
15122 hardcode_libdir_flag_spec_F77='-L$libdir'
15123 hardcode_direct_F77=yes
15124 hardcode_minus_L_F77=yes
15125 hardcode_shlibpath_var_F77=no
15126 ;;
15128 sysv4)
15129 case $host_vendor in
15130 sni)
15131 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132 hardcode_direct_F77=yes # is this really true???
15133 ;;
15134 siemens)
15135 ## LD is ld it makes a PLAMLIB
15136 ## CC just makes a GrossModule.
15137 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15138 reload_cmds_F77='$CC -r -o $output$reload_objs'
15139 hardcode_direct_F77=no
15140 ;;
15141 motorola)
15142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15144 ;;
15145 esac
15146 runpath_var='LD_RUN_PATH'
15147 hardcode_shlibpath_var_F77=no
15148 ;;
15150 sysv4.3*)
15151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_shlibpath_var_F77=no
15153 export_dynamic_flag_spec_F77='-Bexport'
15154 ;;
15156 sysv4*MP*)
15157 if test -d /usr/nec; then
15158 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15159 hardcode_shlibpath_var_F77=no
15160 runpath_var=LD_RUN_PATH
15161 hardcode_runpath_var=yes
15162 ld_shlibs_F77=yes
15163 fi
15164 ;;
15166 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15167 no_undefined_flag_F77='${wl}-z,text'
15168 archive_cmds_need_lc_F77=no
15169 hardcode_shlibpath_var_F77=no
15170 runpath_var='LD_RUN_PATH'
15172 if test "$GCC" = yes; then
15173 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15174 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15175 else
15176 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15177 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15178 fi
15179 ;;
15181 sysv5* | sco3.2v5* | sco5v6*)
15182 # Note: We can NOT use -z defs as we might desire, because we do not
15183 # link with -lc, and that would cause any symbols used from libc to
15184 # always be unresolved, which means just about no library would
15185 # ever link correctly. If we're not using GNU ld we use -z text
15186 # though, which does catch some bad symbols but isn't as heavy-handed
15187 # as -z defs.
15188 no_undefined_flag_F77='${wl}-z,text'
15189 allow_undefined_flag_F77='${wl}-z,nodefs'
15190 archive_cmds_need_lc_F77=no
15191 hardcode_shlibpath_var_F77=no
15192 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15193 hardcode_libdir_separator_F77=':'
15194 link_all_deplibs_F77=yes
15195 export_dynamic_flag_spec_F77='${wl}-Bexport'
15196 runpath_var='LD_RUN_PATH'
15198 if test "$GCC" = yes; then
15199 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15200 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15201 else
15202 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15204 fi
15205 ;;
15207 uts4*)
15208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15209 hardcode_libdir_flag_spec_F77='-L$libdir'
15210 hardcode_shlibpath_var_F77=no
15211 ;;
15213 *)
15214 ld_shlibs_F77=no
15215 ;;
15216 esac
15217 fi
15219 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15220 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15221 test "$ld_shlibs_F77" = no && can_build_shared=no
15223 #
15224 # Do we need to explicitly link libc?
15225 #
15226 case "x$archive_cmds_need_lc_F77" in
15227 x|xyes)
15228 # Assume -lc should be added
15229 archive_cmds_need_lc_F77=yes
15231 if test "$enable_shared" = yes && test "$GCC" = yes; then
15232 case $archive_cmds_F77 in
15233 *'~'*)
15234 # FIXME: we may have to deal with multi-command sequences.
15235 ;;
15236 '$CC '*)
15237 # Test whether the compiler implicitly links with -lc since on some
15238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15239 # to ld, don't add -lc before -lgcc.
15240 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15241 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15242 $rm conftest*
15243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246 (eval $ac_compile) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } 2>conftest.err; then
15250 soname=conftest
15251 lib=conftest
15252 libobjs=conftest.$ac_objext
15253 deplibs=
15254 wl=$lt_prog_compiler_wl_F77
15255 pic_flag=$lt_prog_compiler_pic_F77
15256 compiler_flags=-v
15257 linker_flags=-v
15258 verstring=
15259 output_objdir=.
15260 libname=conftest
15261 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15262 allow_undefined_flag_F77=
15263 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15264 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }
15268 then
15269 archive_cmds_need_lc_F77=no
15270 else
15271 archive_cmds_need_lc_F77=yes
15272 fi
15273 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15274 else
15275 cat conftest.err 1>&5
15276 fi
15277 $rm conftest*
15278 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15279 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15280 ;;
15281 esac
15282 fi
15283 ;;
15284 esac
15286 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15287 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15288 library_names_spec=
15289 libname_spec='lib$name'
15290 soname_spec=
15291 shrext_cmds=".so"
15292 postinstall_cmds=
15293 postuninstall_cmds=
15294 finish_cmds=
15295 finish_eval=
15296 shlibpath_var=
15297 shlibpath_overrides_runpath=unknown
15298 version_type=none
15299 dynamic_linker="$host_os ld.so"
15300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15301 if test "$GCC" = yes; then
15302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15303 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15304 # if the path contains ";" then we assume it to be the separator
15305 # otherwise default to the standard path separator (i.e. ":") - it is
15306 # assumed that no part of a normal pathname contains ";" but that should
15307 # okay in the real world where ";" in dirpaths is itself problematic.
15308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15309 else
15310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15311 fi
15312 else
15313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15314 fi
15315 need_lib_prefix=unknown
15316 hardcode_into_libs=no
15318 # when you set need_version to no, make sure it does not cause -set_version
15319 # flags to be left without arguments
15320 need_version=unknown
15322 case $host_os in
15323 aix3*)
15324 version_type=linux
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15326 shlibpath_var=LIBPATH
15328 # AIX 3 has no versioning support, so we append a major version to the name.
15329 soname_spec='${libname}${release}${shared_ext}$major'
15330 ;;
15332 aix4* | aix5*)
15333 version_type=linux
15334 need_lib_prefix=no
15335 need_version=no
15336 hardcode_into_libs=yes
15337 if test "$host_cpu" = ia64; then
15338 # AIX 5 supports IA64
15339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 else
15342 # With GCC up to 2.95.x, collect2 would create an import file
15343 # for dependence libraries. The import file would start with
15344 # the line `#! .'. This would cause the generated library to
15345 # depend on `.', always an invalid library. This was fixed in
15346 # development snapshots of GCC prior to 3.0.
15347 case $host_os in
15348 aix4 | aix4.[01] | aix4.[01].*)
15349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15350 echo ' yes '
15351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15352 :
15353 else
15354 can_build_shared=no
15355 fi
15356 ;;
15357 esac
15358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15359 # soname into executable. Probably we can add versioning support to
15360 # collect2, so additional links can be useful in future.
15361 if test "$aix_use_runtimelinking" = yes; then
15362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15363 # instead of lib<name>.a to let people know that these are not
15364 # typical AIX shared libraries.
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366 else
15367 # We preserve .a as extension for shared libraries through AIX4.2
15368 # and later when we are not doing run time linking.
15369 library_names_spec='${libname}${release}.a $libname.a'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 fi
15372 shlibpath_var=LIBPATH
15373 fi
15374 ;;
15376 amigaos*)
15377 library_names_spec='$libname.ixlibrary $libname.a'
15378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15379 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'
15380 ;;
15382 beos*)
15383 library_names_spec='${libname}${shared_ext}'
15384 dynamic_linker="$host_os ld.so"
15385 shlibpath_var=LIBRARY_PATH
15386 ;;
15388 bsdi[45]*)
15389 version_type=linux
15390 need_version=no
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15397 # the default ld.so.conf also contains /usr/contrib/lib and
15398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15399 # libtool to hard-code these into programs
15400 ;;
15402 cygwin* | mingw* | pw32*)
15403 version_type=windows
15404 shrext_cmds=".dll"
15405 need_version=no
15406 need_lib_prefix=no
15408 case $GCC,$host_os in
15409 yes,cygwin* | yes,mingw* | yes,pw32*)
15410 library_names_spec='$libname.dll.a'
15411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15412 postinstall_cmds='base_file=`basename \${file}`~
15413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15414 dldir=$destdir/`dirname \$dlpath`~
15415 test -d \$dldir || mkdir -p \$dldir~
15416 $install_prog $dir/$dlname \$dldir/$dlname~
15417 chmod a+x \$dldir/$dlname'
15418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15419 dlpath=$dir/\$dldll~
15420 $rm \$dlpath'
15421 shlibpath_overrides_runpath=yes
15423 case $host_os in
15424 cygwin*)
15425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15427 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15428 ;;
15429 mingw*)
15430 # MinGW DLLs use traditional 'lib' prefix
15431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15433 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15434 # It is most probably a Windows format PATH printed by
15435 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15436 # path with ; separators, and with drive letters. We can handle the
15437 # drive letters (cygwin fileutils understands them), so leave them,
15438 # especially as we might pass files found there to a mingw objdump,
15439 # which wouldn't understand a cygwinified path. Ahh.
15440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15441 else
15442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15443 fi
15444 ;;
15445 pw32*)
15446 # pw32 DLLs use 'pw' prefix rather than 'lib'
15447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15448 ;;
15449 esac
15450 ;;
15452 *)
15453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15454 ;;
15455 esac
15456 dynamic_linker='Win32 ld.exe'
15457 # FIXME: first we should search . and the directory the executable is in
15458 shlibpath_var=PATH
15459 ;;
15461 darwin* | rhapsody*)
15462 dynamic_linker="$host_os dyld"
15463 version_type=darwin
15464 need_lib_prefix=no
15465 need_version=no
15466 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15467 soname_spec='${libname}${release}${major}$shared_ext'
15468 shlibpath_overrides_runpath=yes
15469 shlibpath_var=DYLD_LIBRARY_PATH
15470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15471 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15472 if test "$GCC" = yes; then
15473 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"`
15474 else
15475 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15476 fi
15477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15478 ;;
15480 dgux*)
15481 version_type=linux
15482 need_lib_prefix=no
15483 need_version=no
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 ;;
15489 freebsd1*)
15490 dynamic_linker=no
15491 ;;
15493 freebsd* | dragonfly*)
15494 # DragonFly does not have aout. When/if they implement a new
15495 # versioning mechanism, adjust this.
15496 if test -x /usr/bin/objformat; then
15497 objformat=`/usr/bin/objformat`
15498 else
15499 case $host_os in
15500 freebsd[123]*) objformat=aout ;;
15501 *) objformat=elf ;;
15502 esac
15503 fi
15504 version_type=freebsd-$objformat
15505 case $version_type in
15506 freebsd-elf*)
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15508 need_version=no
15509 need_lib_prefix=no
15510 ;;
15511 freebsd-*)
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15513 need_version=yes
15514 ;;
15515 esac
15516 shlibpath_var=LD_LIBRARY_PATH
15517 case $host_os in
15518 freebsd2*)
15519 shlibpath_overrides_runpath=yes
15520 ;;
15521 freebsd3.[01]* | freebsdelf3.[01]*)
15522 shlibpath_overrides_runpath=yes
15523 hardcode_into_libs=yes
15524 ;;
15525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15527 shlibpath_overrides_runpath=no
15528 hardcode_into_libs=yes
15529 ;;
15530 freebsd*) # from 4.6 on
15531 shlibpath_overrides_runpath=yes
15532 hardcode_into_libs=yes
15533 ;;
15534 esac
15535 ;;
15537 gnu*)
15538 version_type=linux
15539 need_lib_prefix=no
15540 need_version=no
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 hardcode_into_libs=yes
15545 ;;
15547 hpux9* | hpux10* | hpux11*)
15548 # Give a soname corresponding to the major version so that dld.sl refuses to
15549 # link against other versions.
15550 version_type=sunos
15551 need_lib_prefix=no
15552 need_version=no
15553 case $host_cpu in
15554 ia64*)
15555 shrext_cmds='.so'
15556 hardcode_into_libs=yes
15557 dynamic_linker="$host_os dld.so"
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 if test "X$HPUX_IA64_MODE" = X32; then
15563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15564 else
15565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15566 fi
15567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15568 ;;
15569 hppa*64*)
15570 shrext_cmds='.sl'
15571 hardcode_into_libs=yes
15572 dynamic_linker="$host_os dld.sl"
15573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15579 ;;
15580 *)
15581 shrext_cmds='.sl'
15582 dynamic_linker="$host_os dld.sl"
15583 shlibpath_var=SHLIB_PATH
15584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 ;;
15588 esac
15589 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15590 postinstall_cmds='chmod 555 $lib'
15591 ;;
15593 interix3*)
15594 version_type=linux
15595 need_lib_prefix=no
15596 need_version=no
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15598 soname_spec='${libname}${release}${shared_ext}$major'
15599 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15600 shlibpath_var=LD_LIBRARY_PATH
15601 shlibpath_overrides_runpath=no
15602 hardcode_into_libs=yes
15603 ;;
15605 irix5* | irix6* | nonstopux*)
15606 case $host_os in
15607 nonstopux*) version_type=nonstopux ;;
15608 *)
15609 if test "$lt_cv_prog_gnu_ld" = yes; then
15610 version_type=linux
15611 else
15612 version_type=irix
15613 fi ;;
15614 esac
15615 need_lib_prefix=no
15616 need_version=no
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15619 case $host_os in
15620 irix5* | nonstopux*)
15621 libsuff= shlibsuff=
15622 ;;
15623 *)
15624 case $LD in # libtool.m4 will add one of these switches to LD
15625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15626 libsuff= shlibsuff= libmagic=32-bit;;
15627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15628 libsuff=32 shlibsuff=N32 libmagic=N32;;
15629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15631 *) libsuff= shlibsuff= libmagic=never-match;;
15632 esac
15633 ;;
15634 esac
15635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15636 shlibpath_overrides_runpath=no
15637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15639 hardcode_into_libs=yes
15640 ;;
15642 # No shared lib support for Linux oldld, aout, or coff.
15643 linux*oldld* | linux*aout* | linux*coff*)
15644 dynamic_linker=no
15645 ;;
15647 # This must be Linux ELF.
15648 linux* | k*bsd*-gnu)
15649 version_type=linux
15650 need_lib_prefix=no
15651 need_version=no
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 shlibpath_overrides_runpath=no
15657 # This implies no fast_install, which is unacceptable.
15658 # Some rework will be needed to allow for fast_install
15659 # before this can be enabled.
15660 hardcode_into_libs=yes
15662 # Append ld.so.conf contents to the search path
15663 if test -f /etc/ld.so.conf; then
15664 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' ' '`
15665 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15666 fi
15668 # We used to test for /lib/ld.so.1 and disable shared libraries on
15669 # powerpc, because MkLinux only supported shared libraries with the
15670 # GNU dynamic linker. Since this was broken with cross compilers,
15671 # most powerpc-linux boxes support dynamic linking these days and
15672 # people can always --disable-shared, the test was removed, and we
15673 # assume the GNU/Linux dynamic linker is in use.
15674 dynamic_linker='GNU/Linux ld.so'
15675 ;;
15677 netbsdelf*-gnu)
15678 version_type=linux
15679 need_lib_prefix=no
15680 need_version=no
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 shlibpath_overrides_runpath=no
15685 hardcode_into_libs=yes
15686 dynamic_linker='NetBSD ld.elf_so'
15687 ;;
15689 netbsd*)
15690 version_type=sunos
15691 need_lib_prefix=no
15692 need_version=no
15693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15696 dynamic_linker='NetBSD (a.out) ld.so'
15697 else
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15699 soname_spec='${libname}${release}${shared_ext}$major'
15700 dynamic_linker='NetBSD ld.elf_so'
15701 fi
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15704 hardcode_into_libs=yes
15705 ;;
15707 newsos6)
15708 version_type=linux
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710 shlibpath_var=LD_LIBRARY_PATH
15711 shlibpath_overrides_runpath=yes
15712 ;;
15714 nto-qnx*)
15715 version_type=linux
15716 need_lib_prefix=no
15717 need_version=no
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=yes
15722 ;;
15724 openbsd*)
15725 version_type=sunos
15726 sys_lib_dlsearch_path_spec="/usr/lib"
15727 need_lib_prefix=no
15728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15729 case $host_os in
15730 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15731 *) need_version=no ;;
15732 esac
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15737 case $host_os in
15738 openbsd2.[89] | openbsd2.[89].*)
15739 shlibpath_overrides_runpath=no
15740 ;;
15741 *)
15742 shlibpath_overrides_runpath=yes
15743 ;;
15744 esac
15745 else
15746 shlibpath_overrides_runpath=yes
15747 fi
15748 ;;
15750 os2*)
15751 libname_spec='$name'
15752 shrext_cmds=".dll"
15753 need_lib_prefix=no
15754 library_names_spec='$libname${shared_ext} $libname.a'
15755 dynamic_linker='OS/2 ld.exe'
15756 shlibpath_var=LIBPATH
15757 ;;
15759 osf3* | osf4* | osf5*)
15760 version_type=osf
15761 need_lib_prefix=no
15762 need_version=no
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 shlibpath_var=LD_LIBRARY_PATH
15766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15768 ;;
15770 solaris*)
15771 version_type=linux
15772 need_lib_prefix=no
15773 need_version=no
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 shlibpath_overrides_runpath=yes
15778 hardcode_into_libs=yes
15779 # ldd complains unless libraries are executable
15780 postinstall_cmds='chmod +x $lib'
15781 ;;
15783 sunos4*)
15784 version_type=sunos
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15786 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 shlibpath_overrides_runpath=yes
15789 if test "$with_gnu_ld" = yes; then
15790 need_lib_prefix=no
15791 fi
15792 need_version=yes
15793 ;;
15795 sysv4 | sysv4.3*)
15796 version_type=linux
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798 soname_spec='${libname}${release}${shared_ext}$major'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 case $host_vendor in
15801 sni)
15802 shlibpath_overrides_runpath=no
15803 need_lib_prefix=no
15804 export_dynamic_flag_spec='${wl}-Blargedynsym'
15805 runpath_var=LD_RUN_PATH
15806 ;;
15807 siemens)
15808 need_lib_prefix=no
15809 ;;
15810 motorola)
15811 need_lib_prefix=no
15812 need_version=no
15813 shlibpath_overrides_runpath=no
15814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15815 ;;
15816 esac
15817 ;;
15819 sysv4*MP*)
15820 if test -d /usr/nec ;then
15821 version_type=linux
15822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15823 soname_spec='$libname${shared_ext}.$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 fi
15826 ;;
15828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15829 version_type=freebsd-elf
15830 need_lib_prefix=no
15831 need_version=no
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 shlibpath_var=LD_LIBRARY_PATH
15835 hardcode_into_libs=yes
15836 if test "$with_gnu_ld" = yes; then
15837 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15838 shlibpath_overrides_runpath=no
15839 else
15840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15841 shlibpath_overrides_runpath=yes
15842 case $host_os in
15843 sco3.2v5*)
15844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15845 ;;
15846 esac
15847 fi
15848 sys_lib_dlsearch_path_spec='/usr/lib'
15849 ;;
15851 uts4*)
15852 version_type=linux
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 shlibpath_var=LD_LIBRARY_PATH
15856 ;;
15858 *)
15859 dynamic_linker=no
15860 ;;
15861 esac
15862 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15863 echo "${ECHO_T}$dynamic_linker" >&6; }
15864 test "$dynamic_linker" = no && can_build_shared=no
15866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15867 if test "$GCC" = yes; then
15868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15869 fi
15871 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15873 hardcode_action_F77=
15874 if test -n "$hardcode_libdir_flag_spec_F77" || \
15875 test -n "$runpath_var_F77" || \
15876 test "X$hardcode_automatic_F77" = "Xyes" ; then
15878 # We can hardcode non-existant directories.
15879 if test "$hardcode_direct_F77" != no &&
15880 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15881 # have to relink, otherwise we might link with an installed library
15882 # when we should be linking with a yet-to-be-installed one
15883 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15884 test "$hardcode_minus_L_F77" != no; then
15885 # Linking always hardcodes the temporary library directory.
15886 hardcode_action_F77=relink
15887 else
15888 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15889 hardcode_action_F77=immediate
15890 fi
15891 else
15892 # We cannot hardcode anything, or else we can only hardcode existing
15893 # directories.
15894 hardcode_action_F77=unsupported
15895 fi
15896 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15897 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15899 if test "$hardcode_action_F77" = relink; then
15900 # Fast installation is not supported
15901 enable_fast_install=no
15902 elif test "$shlibpath_overrides_runpath" = yes ||
15903 test "$enable_shared" = no; then
15904 # Fast installation is not necessary
15905 enable_fast_install=needless
15906 fi
15909 # The else clause should only fire when bootstrapping the
15910 # libtool distribution, otherwise you forgot to ship ltmain.sh
15911 # with your package, and you will get complaints that there are
15912 # no rules to generate ltmain.sh.
15913 if test -f "$ltmain"; then
15914 # See if we are running on zsh, and set the options which allow our commands through
15915 # without removal of \ escapes.
15916 if test -n "${ZSH_VERSION+set}" ; then
15917 setopt NO_GLOB_SUBST
15918 fi
15919 # Now quote all the things that may contain metacharacters while being
15920 # careful not to overquote the AC_SUBSTed values. We take copies of the
15921 # variables and quote the copies for generation of the libtool script.
15922 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15923 SED SHELL STRIP \
15924 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15925 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15926 deplibs_check_method reload_flag reload_cmds need_locks \
15927 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15928 lt_cv_sys_global_symbol_to_c_name_address \
15929 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15930 old_postinstall_cmds old_postuninstall_cmds \
15931 compiler_F77 \
15932 CC_F77 \
15933 LD_F77 \
15934 lt_prog_compiler_wl_F77 \
15935 lt_prog_compiler_pic_F77 \
15936 lt_prog_compiler_static_F77 \
15937 lt_prog_compiler_no_builtin_flag_F77 \
15938 export_dynamic_flag_spec_F77 \
15939 thread_safe_flag_spec_F77 \
15940 whole_archive_flag_spec_F77 \
15941 enable_shared_with_static_runtimes_F77 \
15942 old_archive_cmds_F77 \
15943 old_archive_from_new_cmds_F77 \
15944 predep_objects_F77 \
15945 postdep_objects_F77 \
15946 predeps_F77 \
15947 postdeps_F77 \
15948 compiler_lib_search_path_F77 \
15949 archive_cmds_F77 \
15950 archive_expsym_cmds_F77 \
15951 postinstall_cmds_F77 \
15952 postuninstall_cmds_F77 \
15953 old_archive_from_expsyms_cmds_F77 \
15954 allow_undefined_flag_F77 \
15955 no_undefined_flag_F77 \
15956 export_symbols_cmds_F77 \
15957 hardcode_libdir_flag_spec_F77 \
15958 hardcode_libdir_flag_spec_ld_F77 \
15959 hardcode_libdir_separator_F77 \
15960 hardcode_automatic_F77 \
15961 module_cmds_F77 \
15962 module_expsym_cmds_F77 \
15963 lt_cv_prog_compiler_c_o_F77 \
15964 exclude_expsyms_F77 \
15965 include_expsyms_F77; do
15967 case $var in
15968 old_archive_cmds_F77 | \
15969 old_archive_from_new_cmds_F77 | \
15970 archive_cmds_F77 | \
15971 archive_expsym_cmds_F77 | \
15972 module_cmds_F77 | \
15973 module_expsym_cmds_F77 | \
15974 old_archive_from_expsyms_cmds_F77 | \
15975 export_symbols_cmds_F77 | \
15976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15977 postinstall_cmds | postuninstall_cmds | \
15978 old_postinstall_cmds | old_postuninstall_cmds | \
15979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15980 # Double-quote double-evaled strings.
15981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15982 ;;
15983 *)
15984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15985 ;;
15986 esac
15987 done
15989 case $lt_echo in
15990 *'\$0 --fallback-echo"')
15991 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15992 ;;
15993 esac
15995 cfgfile="$ofile"
15997 cat <<__EOF__ >> "$cfgfile"
15998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16002 # Shell to use when invoking shell scripts.
16003 SHELL=$lt_SHELL
16005 # Whether or not to build shared libraries.
16006 build_libtool_libs=$enable_shared
16008 # Whether or not to build static libraries.
16009 build_old_libs=$enable_static
16011 # Whether or not to add -lc for building shared libraries.
16012 build_libtool_need_lc=$archive_cmds_need_lc_F77
16014 # Whether or not to disallow shared libs when runtime libs are static
16015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16017 # Whether or not to optimize for fast installation.
16018 fast_install=$enable_fast_install
16020 # The host system.
16021 host_alias=$host_alias
16022 host=$host
16023 host_os=$host_os
16025 # The build system.
16026 build_alias=$build_alias
16027 build=$build
16028 build_os=$build_os
16030 # An echo program that does not interpret backslashes.
16031 echo=$lt_echo
16033 # The archiver.
16034 AR=$lt_AR
16035 AR_FLAGS=$lt_AR_FLAGS
16037 # A C compiler.
16038 LTCC=$lt_LTCC
16040 # LTCC compiler flags.
16041 LTCFLAGS=$lt_LTCFLAGS
16043 # A language-specific compiler.
16044 CC=$lt_compiler_F77
16046 # Is the compiler the GNU C compiler?
16047 with_gcc=$GCC_F77
16049 # An ERE matcher.
16050 EGREP=$lt_EGREP
16052 # The linker used to build libraries.
16053 LD=$lt_LD_F77
16055 # Whether we need hard or soft links.
16056 LN_S=$lt_LN_S
16058 # A BSD-compatible nm program.
16059 NM=$lt_NM
16061 # A symbol stripping program
16062 STRIP=$lt_STRIP
16064 # Used to examine libraries when file_magic_cmd begins "file"
16065 MAGIC_CMD=$MAGIC_CMD
16067 # Used on cygwin: DLL creation program.
16068 DLLTOOL="$DLLTOOL"
16070 # Used on cygwin: object dumper.
16071 OBJDUMP="$OBJDUMP"
16073 # Used on cygwin: assembler.
16074 AS="$AS"
16076 # The name of the directory that contains temporary libtool files.
16077 objdir=$objdir
16079 # How to create reloadable object files.
16080 reload_flag=$lt_reload_flag
16081 reload_cmds=$lt_reload_cmds
16083 # How to pass a linker flag through the compiler.
16084 wl=$lt_lt_prog_compiler_wl_F77
16086 # Object file suffix (normally "o").
16087 objext="$ac_objext"
16089 # Old archive suffix (normally "a").
16090 libext="$libext"
16092 # Shared library suffix (normally ".so").
16093 shrext_cmds='$shrext_cmds'
16095 # Executable file suffix (normally "").
16096 exeext="$exeext"
16098 # Additional compiler flags for building library objects.
16099 pic_flag=$lt_lt_prog_compiler_pic_F77
16100 pic_mode=$pic_mode
16102 # What is the maximum length of a command?
16103 max_cmd_len=$lt_cv_sys_max_cmd_len
16105 # Does compiler simultaneously support -c and -o options?
16106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16108 # Must we lock files when doing compilation?
16109 need_locks=$lt_need_locks
16111 # Do we need the lib prefix for modules?
16112 need_lib_prefix=$need_lib_prefix
16114 # Do we need a version for libraries?
16115 need_version=$need_version
16117 # Whether dlopen is supported.
16118 dlopen_support=$enable_dlopen
16120 # Whether dlopen of programs is supported.
16121 dlopen_self=$enable_dlopen_self
16123 # Whether dlopen of statically linked programs is supported.
16124 dlopen_self_static=$enable_dlopen_self_static
16126 # Compiler flag to prevent dynamic linking.
16127 link_static_flag=$lt_lt_prog_compiler_static_F77
16129 # Compiler flag to turn off builtin functions.
16130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16132 # Compiler flag to allow reflexive dlopens.
16133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16135 # Compiler flag to generate shared objects directly from archives.
16136 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16138 # Compiler flag to generate thread-safe objects.
16139 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16141 # Library versioning type.
16142 version_type=$version_type
16144 # Format of library name prefix.
16145 libname_spec=$lt_libname_spec
16147 # List of archive names. First name is the real one, the rest are links.
16148 # The last name is the one that the linker finds with -lNAME.
16149 library_names_spec=$lt_library_names_spec
16151 # The coded name of the library, if different from the real name.
16152 soname_spec=$lt_soname_spec
16154 # Commands used to build and install an old-style archive.
16155 RANLIB=$lt_RANLIB
16156 old_archive_cmds=$lt_old_archive_cmds_F77
16157 old_postinstall_cmds=$lt_old_postinstall_cmds
16158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16160 # Create an old-style archive from a shared archive.
16161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16163 # Create a temporary old-style archive to link instead of a shared archive.
16164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16166 # Commands used to build and install a shared archive.
16167 archive_cmds=$lt_archive_cmds_F77
16168 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16169 postinstall_cmds=$lt_postinstall_cmds
16170 postuninstall_cmds=$lt_postuninstall_cmds
16172 # Commands used to build a loadable module (assumed same as above if empty)
16173 module_cmds=$lt_module_cmds_F77
16174 module_expsym_cmds=$lt_module_expsym_cmds_F77
16176 # Commands to strip libraries.
16177 old_striplib=$lt_old_striplib
16178 striplib=$lt_striplib
16180 # Dependencies to place before the objects being linked to create a
16181 # shared library.
16182 predep_objects=$lt_predep_objects_F77
16184 # Dependencies to place after the objects being linked to create a
16185 # shared library.
16186 postdep_objects=$lt_postdep_objects_F77
16188 # Dependencies to place before the objects being linked to create a
16189 # shared library.
16190 predeps=$lt_predeps_F77
16192 # Dependencies to place after the objects being linked to create a
16193 # shared library.
16194 postdeps=$lt_postdeps_F77
16196 # The library search path used internally by the compiler when linking
16197 # a shared library.
16198 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16200 # Method to check whether dependent libraries are shared objects.
16201 deplibs_check_method=$lt_deplibs_check_method
16203 # Command to use when deplibs_check_method == file_magic.
16204 file_magic_cmd=$lt_file_magic_cmd
16206 # Flag that allows shared libraries with undefined symbols to be built.
16207 allow_undefined_flag=$lt_allow_undefined_flag_F77
16209 # Flag that forces no undefined symbols.
16210 no_undefined_flag=$lt_no_undefined_flag_F77
16212 # Commands used to finish a libtool library installation in a directory.
16213 finish_cmds=$lt_finish_cmds
16215 # Same as above, but a single script fragment to be evaled but not shown.
16216 finish_eval=$lt_finish_eval
16218 # Take the output of nm and produce a listing of raw symbols and C names.
16219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16221 # Transform the output of nm in a proper C declaration
16222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16224 # Transform the output of nm in a C name address pair
16225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16227 # This is the shared library runtime path variable.
16228 runpath_var=$runpath_var
16230 # This is the shared library path variable.
16231 shlibpath_var=$shlibpath_var
16233 # Is shlibpath searched before the hard-coded library search path?
16234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16236 # How to hardcode a shared library path into an executable.
16237 hardcode_action=$hardcode_action_F77
16239 # Whether we should hardcode library paths into libraries.
16240 hardcode_into_libs=$hardcode_into_libs
16242 # Flag to hardcode \$libdir into a binary during linking.
16243 # This must work even if \$libdir does not exist.
16244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16246 # If ld is used when linking, flag to hardcode \$libdir into
16247 # a binary during linking. This must work even if \$libdir does
16248 # not exist.
16249 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16251 # Whether we need a single -rpath flag with a separated argument.
16252 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16254 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16255 # resulting binary.
16256 hardcode_direct=$hardcode_direct_F77
16258 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16259 # resulting binary.
16260 hardcode_minus_L=$hardcode_minus_L_F77
16262 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16263 # the resulting binary.
16264 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16266 # Set to yes if building a shared library automatically hardcodes DIR into the library
16267 # and all subsequent libraries and executables linked against it.
16268 hardcode_automatic=$hardcode_automatic_F77
16270 # Variables whose values should be saved in libtool wrapper scripts and
16271 # restored at relink time.
16272 variables_saved_for_relink="$variables_saved_for_relink"
16274 # Whether libtool must link a program against all its dependency libraries.
16275 link_all_deplibs=$link_all_deplibs_F77
16277 # Compile-time system search path for libraries
16278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16280 # Run-time system search path for libraries
16281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16283 # Fix the shell variable \$srcfile for the compiler.
16284 fix_srcfile_path="$fix_srcfile_path_F77"
16286 # Set to yes if exported symbols are required.
16287 always_export_symbols=$always_export_symbols_F77
16289 # The commands to list exported symbols.
16290 export_symbols_cmds=$lt_export_symbols_cmds_F77
16292 # The commands to extract the exported symbol list from a shared archive.
16293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16295 # Symbols that should not be listed in the preloaded symbols.
16296 exclude_expsyms=$lt_exclude_expsyms_F77
16298 # Symbols that must always be exported.
16299 include_expsyms=$lt_include_expsyms_F77
16301 # ### END LIBTOOL TAG CONFIG: $tagname
16303 __EOF__
16306 else
16307 # If there is no Makefile yet, we rely on a make rule to execute
16308 # `config.status --recheck' to rerun these tests and create the
16309 # libtool script then.
16310 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16311 if test -f "$ltmain_in"; then
16312 test -f Makefile && make "$ltmain"
16313 fi
16314 fi
16317 ac_ext=c
16318 ac_cpp='$CPP $CPPFLAGS'
16319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16323 CC="$lt_save_CC"
16325 else
16326 tagname=""
16327 fi
16328 ;;
16330 GCJ)
16331 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16334 # Source file extension for Java test sources.
16335 ac_ext=java
16337 # Object file extension for compiled Java test sources.
16338 objext=o
16339 objext_GCJ=$objext
16341 # Code to be used in simple compile tests
16342 lt_simple_compile_test_code="class foo {}\n"
16344 # Code to be used in simple link tests
16345 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16347 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16349 # If no C compiler was specified, use CC.
16350 LTCC=${LTCC-"$CC"}
16352 # If no C compiler flags were specified, use CFLAGS.
16353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16355 # Allow CC to be a program name with arguments.
16356 compiler=$CC
16359 # save warnings/boilerplate of simple test code
16360 ac_outfile=conftest.$ac_objext
16361 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16363 _lt_compiler_boilerplate=`cat conftest.err`
16364 $rm conftest*
16366 ac_outfile=conftest.$ac_objext
16367 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16369 _lt_linker_boilerplate=`cat conftest.err`
16370 $rm conftest*
16373 # Allow CC to be a program name with arguments.
16374 lt_save_CC="$CC"
16375 CC=${GCJ-"gcj"}
16376 compiler=$CC
16377 compiler_GCJ=$CC
16378 for cc_temp in $compiler""; do
16379 case $cc_temp in
16380 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16381 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16382 \-*) ;;
16383 *) break;;
16384 esac
16385 done
16386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16389 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16390 archive_cmds_need_lc_GCJ=no
16392 old_archive_cmds_GCJ=$old_archive_cmds
16395 lt_prog_compiler_no_builtin_flag_GCJ=
16397 if test "$GCC" = yes; then
16398 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16401 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16402 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16403 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406 lt_cv_prog_compiler_rtti_exceptions=no
16407 ac_outfile=conftest.$ac_objext
16408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16409 lt_compiler_flag="-fno-rtti -fno-exceptions"
16410 # Insert the option either (1) after the last *FLAGS variable, or
16411 # (2) before a word containing "conftest.", or (3) at the end.
16412 # Note that $ac_compile itself does not contain backslashes and begins
16413 # with a dollar sign (not a hyphen), so the echo should work correctly.
16414 # The option is referenced via a variable to avoid confusing sed.
16415 lt_compile=`echo "$ac_compile" | $SED \
16416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16418 -e 's:$: $lt_compiler_flag:'`
16419 (eval echo "\"\$as_me:16419: $lt_compile\"" >&5)
16420 (eval "$lt_compile" 2>conftest.err)
16421 ac_status=$?
16422 cat conftest.err >&5
16423 echo "$as_me:16423: \$? = $ac_status" >&5
16424 if (exit $ac_status) && test -s "$ac_outfile"; then
16425 # The compiler can only warn and ignore the option if not recognized
16426 # So say no if there are warnings other than the usual output.
16427 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16430 lt_cv_prog_compiler_rtti_exceptions=yes
16431 fi
16432 fi
16433 $rm conftest*
16435 fi
16436 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16437 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16440 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16441 else
16442 :
16443 fi
16445 fi
16447 lt_prog_compiler_wl_GCJ=
16448 lt_prog_compiler_pic_GCJ=
16449 lt_prog_compiler_static_GCJ=
16451 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16454 if test "$GCC" = yes; then
16455 lt_prog_compiler_wl_GCJ='-Wl,'
16456 lt_prog_compiler_static_GCJ='-static'
16458 case $host_os in
16459 aix*)
16460 # All AIX code is PIC.
16461 if test "$host_cpu" = ia64; then
16462 # AIX 5 now supports IA64 processor
16463 lt_prog_compiler_static_GCJ='-Bstatic'
16464 fi
16465 ;;
16467 amigaos*)
16468 # FIXME: we need at least 68020 code to build shared libraries, but
16469 # adding the `-m68020' flag to GCC prevents building anything better,
16470 # like `-m68040'.
16471 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16472 ;;
16474 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16475 # PIC is the default for these OSes.
16476 ;;
16478 mingw* | pw32* | os2*)
16479 # This hack is so that the source file can tell whether it is being
16480 # built for inclusion in a dll (and should export symbols for example).
16481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16482 ;;
16484 darwin* | rhapsody*)
16485 # PIC is the default on this platform
16486 # Common symbols not allowed in MH_DYLIB files
16487 lt_prog_compiler_pic_GCJ='-fno-common'
16488 ;;
16490 interix3*)
16491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16492 # Instead, we relocate shared libraries at runtime.
16493 ;;
16495 msdosdjgpp*)
16496 # Just because we use GCC doesn't mean we suddenly get shared libraries
16497 # on systems that don't support them.
16498 lt_prog_compiler_can_build_shared_GCJ=no
16499 enable_shared=no
16500 ;;
16502 sysv4*MP*)
16503 if test -d /usr/nec; then
16504 lt_prog_compiler_pic_GCJ=-Kconform_pic
16505 fi
16506 ;;
16508 hpux*)
16509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16510 # not for PA HP-UX.
16511 case $host_cpu in
16512 hppa*64*|ia64*)
16513 # +Z the default
16514 ;;
16515 *)
16516 lt_prog_compiler_pic_GCJ='-fPIC'
16517 ;;
16518 esac
16519 ;;
16521 *)
16522 lt_prog_compiler_pic_GCJ='-fPIC'
16523 ;;
16524 esac
16525 else
16526 # PORTME Check for flag to pass linker flags through the system compiler.
16527 case $host_os in
16528 aix*)
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 if test "$host_cpu" = ia64; then
16531 # AIX 5 now supports IA64 processor
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16533 else
16534 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16535 fi
16536 ;;
16537 darwin*)
16538 # PIC is the default on this platform
16539 # Common symbols not allowed in MH_DYLIB files
16540 case $cc_basename in
16541 xlc*)
16542 lt_prog_compiler_pic_GCJ='-qnocommon'
16543 lt_prog_compiler_wl_GCJ='-Wl,'
16544 ;;
16545 esac
16546 ;;
16548 mingw* | pw32* | os2*)
16549 # This hack is so that the source file can tell whether it is being
16550 # built for inclusion in a dll (and should export symbols for example).
16551 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16552 ;;
16554 hpux9* | hpux10* | hpux11*)
16555 lt_prog_compiler_wl_GCJ='-Wl,'
16556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16557 # not for PA HP-UX.
16558 case $host_cpu in
16559 hppa*64*|ia64*)
16560 # +Z the default
16561 ;;
16562 *)
16563 lt_prog_compiler_pic_GCJ='+Z'
16564 ;;
16565 esac
16566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16567 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16568 ;;
16570 irix5* | irix6* | nonstopux*)
16571 lt_prog_compiler_wl_GCJ='-Wl,'
16572 # PIC (with -KPIC) is the default.
16573 lt_prog_compiler_static_GCJ='-non_shared'
16574 ;;
16576 newsos6)
16577 lt_prog_compiler_pic_GCJ='-KPIC'
16578 lt_prog_compiler_static_GCJ='-Bstatic'
16579 ;;
16581 linux* | k*bsd*-gnu)
16582 case $cc_basename in
16583 icc* | ecc*)
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16585 lt_prog_compiler_pic_GCJ='-KPIC'
16586 lt_prog_compiler_static_GCJ='-static'
16587 ;;
16588 pgcc* | pgf77* | pgf90* | pgf95*)
16589 # Portland Group compilers (*not* the Pentium gcc compiler,
16590 # which looks to be a dead project)
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 lt_prog_compiler_pic_GCJ='-fpic'
16593 lt_prog_compiler_static_GCJ='-Bstatic'
16594 ;;
16595 ccc*)
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 # All Alpha code is PIC.
16598 lt_prog_compiler_static_GCJ='-non_shared'
16599 ;;
16600 esac
16601 ;;
16603 osf3* | osf4* | osf5*)
16604 lt_prog_compiler_wl_GCJ='-Wl,'
16605 # All OSF/1 code is PIC.
16606 lt_prog_compiler_static_GCJ='-non_shared'
16607 ;;
16609 solaris*)
16610 lt_prog_compiler_pic_GCJ='-KPIC'
16611 lt_prog_compiler_static_GCJ='-Bstatic'
16612 case $cc_basename in
16613 f77* | f90* | f95*)
16614 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16615 *)
16616 lt_prog_compiler_wl_GCJ='-Wl,';;
16617 esac
16618 ;;
16620 sunos4*)
16621 lt_prog_compiler_wl_GCJ='-Qoption ld '
16622 lt_prog_compiler_pic_GCJ='-PIC'
16623 lt_prog_compiler_static_GCJ='-Bstatic'
16624 ;;
16626 sysv4 | sysv4.2uw2* | sysv4.3*)
16627 lt_prog_compiler_wl_GCJ='-Wl,'
16628 lt_prog_compiler_pic_GCJ='-KPIC'
16629 lt_prog_compiler_static_GCJ='-Bstatic'
16630 ;;
16632 sysv4*MP*)
16633 if test -d /usr/nec ;then
16634 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16635 lt_prog_compiler_static_GCJ='-Bstatic'
16636 fi
16637 ;;
16639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16640 lt_prog_compiler_wl_GCJ='-Wl,'
16641 lt_prog_compiler_pic_GCJ='-KPIC'
16642 lt_prog_compiler_static_GCJ='-Bstatic'
16643 ;;
16645 unicos*)
16646 lt_prog_compiler_wl_GCJ='-Wl,'
16647 lt_prog_compiler_can_build_shared_GCJ=no
16648 ;;
16650 uts4*)
16651 lt_prog_compiler_pic_GCJ='-pic'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16653 ;;
16655 *)
16656 lt_prog_compiler_can_build_shared_GCJ=no
16657 ;;
16658 esac
16659 fi
16661 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16662 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16664 #
16665 # Check to make sure the PIC flag actually works.
16666 #
16667 if test -n "$lt_prog_compiler_pic_GCJ"; then
16669 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16671 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674 lt_prog_compiler_pic_works_GCJ=no
16675 ac_outfile=conftest.$ac_objext
16676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16677 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16678 # Insert the option either (1) after the last *FLAGS variable, or
16679 # (2) before a word containing "conftest.", or (3) at the end.
16680 # Note that $ac_compile itself does not contain backslashes and begins
16681 # with a dollar sign (not a hyphen), so the echo should work correctly.
16682 # The option is referenced via a variable to avoid confusing sed.
16683 lt_compile=`echo "$ac_compile" | $SED \
16684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16686 -e 's:$: $lt_compiler_flag:'`
16687 (eval echo "\"\$as_me:16687: $lt_compile\"" >&5)
16688 (eval "$lt_compile" 2>conftest.err)
16689 ac_status=$?
16690 cat conftest.err >&5
16691 echo "$as_me:16691: \$? = $ac_status" >&5
16692 if (exit $ac_status) && test -s "$ac_outfile"; then
16693 # The compiler can only warn and ignore the option if not recognized
16694 # So say no if there are warnings other than the usual output.
16695 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16698 lt_prog_compiler_pic_works_GCJ=yes
16699 fi
16700 fi
16701 $rm conftest*
16703 fi
16704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16705 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16707 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16708 case $lt_prog_compiler_pic_GCJ in
16709 "" | " "*) ;;
16710 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16711 esac
16712 else
16713 lt_prog_compiler_pic_GCJ=
16714 lt_prog_compiler_can_build_shared_GCJ=no
16715 fi
16717 fi
16718 case $host_os in
16719 # For platforms which do not support PIC, -DPIC is meaningless:
16720 *djgpp*)
16721 lt_prog_compiler_pic_GCJ=
16722 ;;
16723 *)
16724 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16725 ;;
16726 esac
16728 #
16729 # Check to make sure the static flag actually works.
16730 #
16731 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16732 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16733 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16734 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737 lt_prog_compiler_static_works_GCJ=no
16738 save_LDFLAGS="$LDFLAGS"
16739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16740 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16742 # The linker can only warn and ignore the option if not recognized
16743 # So say no if there are warnings
16744 if test -s conftest.err; then
16745 # Append any errors to the config.log.
16746 cat conftest.err 1>&5
16747 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16749 if diff conftest.exp conftest.er2 >/dev/null; then
16750 lt_prog_compiler_static_works_GCJ=yes
16751 fi
16752 else
16753 lt_prog_compiler_static_works_GCJ=yes
16754 fi
16755 fi
16756 $rm conftest*
16757 LDFLAGS="$save_LDFLAGS"
16759 fi
16760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16761 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16763 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16764 :
16765 else
16766 lt_prog_compiler_static_GCJ=
16767 fi
16770 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16772 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775 lt_cv_prog_compiler_c_o_GCJ=no
16776 $rm -r conftest 2>/dev/null
16777 mkdir conftest
16778 cd conftest
16779 mkdir out
16780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16782 lt_compiler_flag="-o out/conftest2.$ac_objext"
16783 # Insert the option either (1) after the last *FLAGS variable, or
16784 # (2) before a word containing "conftest.", or (3) at the end.
16785 # Note that $ac_compile itself does not contain backslashes and begins
16786 # with a dollar sign (not a hyphen), so the echo should work correctly.
16787 lt_compile=`echo "$ac_compile" | $SED \
16788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16790 -e 's:$: $lt_compiler_flag:'`
16791 (eval echo "\"\$as_me:16791: $lt_compile\"" >&5)
16792 (eval "$lt_compile" 2>out/conftest.err)
16793 ac_status=$?
16794 cat out/conftest.err >&5
16795 echo "$as_me:16795: \$? = $ac_status" >&5
16796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16797 then
16798 # The compiler can only warn and ignore the option if not recognized
16799 # So say no if there are warnings
16800 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16803 lt_cv_prog_compiler_c_o_GCJ=yes
16804 fi
16805 fi
16806 chmod u+w . 2>&5
16807 $rm conftest*
16808 # SGI C++ compiler will create directory out/ii_files/ for
16809 # template instantiation
16810 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16811 $rm out/* && rmdir out
16812 cd ..
16813 rmdir conftest
16814 $rm conftest*
16816 fi
16817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16821 hard_links="nottested"
16822 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16823 # do not overwrite the value of need_locks provided by the user
16824 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16826 hard_links=yes
16827 $rm conftest*
16828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16829 touch conftest.a
16830 ln conftest.a conftest.b 2>&5 || hard_links=no
16831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16832 { echo "$as_me:$LINENO: result: $hard_links" >&5
16833 echo "${ECHO_T}$hard_links" >&6; }
16834 if test "$hard_links" = no; then
16835 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16837 need_locks=warn
16838 fi
16839 else
16840 need_locks=no
16841 fi
16843 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16846 runpath_var=
16847 allow_undefined_flag_GCJ=
16848 enable_shared_with_static_runtimes_GCJ=no
16849 archive_cmds_GCJ=
16850 archive_expsym_cmds_GCJ=
16851 old_archive_From_new_cmds_GCJ=
16852 old_archive_from_expsyms_cmds_GCJ=
16853 export_dynamic_flag_spec_GCJ=
16854 whole_archive_flag_spec_GCJ=
16855 thread_safe_flag_spec_GCJ=
16856 hardcode_libdir_flag_spec_GCJ=
16857 hardcode_libdir_flag_spec_ld_GCJ=
16858 hardcode_libdir_separator_GCJ=
16859 hardcode_direct_GCJ=no
16860 hardcode_minus_L_GCJ=no
16861 hardcode_shlibpath_var_GCJ=unsupported
16862 link_all_deplibs_GCJ=unknown
16863 hardcode_automatic_GCJ=no
16864 module_cmds_GCJ=
16865 module_expsym_cmds_GCJ=
16866 always_export_symbols_GCJ=no
16867 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16868 # include_expsyms should be a list of space-separated symbols to be *always*
16869 # included in the symbol list
16870 include_expsyms_GCJ=
16871 # exclude_expsyms can be an extended regexp of symbols to exclude
16872 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16874 # as well as any symbol that contains `d'.
16875 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16877 # platforms (ab)use it in PIC code, but their linkers get confused if
16878 # the symbol is explicitly referenced. Since portable code cannot
16879 # rely on this symbol name, it's probably fine to never include it in
16880 # preloaded symbol tables.
16881 extract_expsyms_cmds=
16882 # Just being paranoid about ensuring that cc_basename is set.
16883 for cc_temp in $compiler""; do
16884 case $cc_temp in
16885 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16886 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16887 \-*) ;;
16888 *) break;;
16889 esac
16890 done
16891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16893 case $host_os in
16894 cygwin* | mingw* | pw32*)
16895 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16896 # When not using gcc, we currently assume that we are using
16897 # Microsoft Visual C++.
16898 if test "$GCC" != yes; then
16899 with_gnu_ld=no
16900 fi
16901 ;;
16902 interix*)
16903 # we just hope/assume this is gcc and not c89 (= MSVC++)
16904 with_gnu_ld=yes
16905 ;;
16906 openbsd*)
16907 with_gnu_ld=no
16908 ;;
16909 esac
16911 ld_shlibs_GCJ=yes
16912 if test "$with_gnu_ld" = yes; then
16913 # If archive_cmds runs LD, not CC, wlarc should be empty
16914 wlarc='${wl}'
16916 # Set some defaults for GNU ld with shared library support. These
16917 # are reset later if shared libraries are not supported. Putting them
16918 # here allows them to be overridden if necessary.
16919 runpath_var=LD_RUN_PATH
16920 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16921 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16922 # ancient GNU ld didn't support --whole-archive et. al.
16923 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16924 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16925 else
16926 whole_archive_flag_spec_GCJ=
16927 fi
16928 supports_anon_versioning=no
16929 case `$LD -v 2>/dev/null` in
16930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16933 *\ 2.11.*) ;; # other 2.11 versions
16934 *) supports_anon_versioning=yes ;;
16935 esac
16937 # See if GNU ld supports shared libraries.
16938 case $host_os in
16939 aix3* | aix4* | aix5*)
16940 # On AIX/PPC, the GNU linker is very broken
16941 if test "$host_cpu" != ia64; then
16942 ld_shlibs_GCJ=no
16943 cat <<EOF 1>&2
16945 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16946 *** to be unable to reliably create shared libraries on AIX.
16947 *** Therefore, libtool is disabling shared libraries support. If you
16948 *** really care for shared libraries, you may want to modify your PATH
16949 *** so that a non-GNU linker is found, and then restart.
16951 EOF
16952 fi
16953 ;;
16955 amigaos*)
16956 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)'
16957 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16958 hardcode_minus_L_GCJ=yes
16960 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16961 # that the semantics of dynamic libraries on AmigaOS, at least up
16962 # to version 4, is to share data among multiple programs linked
16963 # with the same dynamic library. Since this doesn't match the
16964 # behavior of shared libraries on other platforms, we can't use
16965 # them.
16966 ld_shlibs_GCJ=no
16967 ;;
16969 beos*)
16970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16971 allow_undefined_flag_GCJ=unsupported
16972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16973 # support --undefined. This deserves some investigation. FIXME
16974 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975 else
16976 ld_shlibs_GCJ=no
16977 fi
16978 ;;
16980 cygwin* | mingw* | pw32*)
16981 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16982 # as there is no search path for DLLs.
16983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16984 allow_undefined_flag_GCJ=unsupported
16985 always_export_symbols_GCJ=no
16986 enable_shared_with_static_runtimes_GCJ=yes
16987 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16989 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16990 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16991 # If the export-symbols file already is a .def file (1st line
16992 # is EXPORTS), use it as is; otherwise, prepend...
16993 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16994 cp $export_symbols $output_objdir/$soname.def;
16995 else
16996 echo EXPORTS > $output_objdir/$soname.def;
16997 cat $export_symbols >> $output_objdir/$soname.def;
16998 fi~
16999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17000 else
17001 ld_shlibs_GCJ=no
17002 fi
17003 ;;
17005 interix3*)
17006 hardcode_direct_GCJ=no
17007 hardcode_shlibpath_var_GCJ=no
17008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17009 export_dynamic_flag_spec_GCJ='${wl}-E'
17010 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17011 # Instead, shared libraries are loaded at an image base (0x10000000 by
17012 # default) and relocated if they conflict, which is a slow very memory
17013 # consuming and fragmenting process. To avoid this, we pick a random,
17014 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17015 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17016 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'
17017 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'
17018 ;;
17020 linux* | k*bsd*-gnu)
17021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17022 tmp_addflag=
17023 case $cc_basename,$host_cpu in
17024 pgcc*) # Portland Group C compiler
17025 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'
17026 tmp_addflag=' $pic_flag'
17027 ;;
17028 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17029 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'
17030 tmp_addflag=' $pic_flag -Mnomain' ;;
17031 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17032 tmp_addflag=' -i_dynamic' ;;
17033 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17034 tmp_addflag=' -i_dynamic -nofor_main' ;;
17035 ifc* | ifort*) # Intel Fortran compiler
17036 tmp_addflag=' -nofor_main' ;;
17037 esac
17038 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17040 if test $supports_anon_versioning = yes; then
17041 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17043 $echo "local: *; };" >> $output_objdir/$libname.ver~
17044 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17045 fi
17046 link_all_deplibs_GCJ=no
17047 else
17048 ld_shlibs_GCJ=no
17049 fi
17050 ;;
17052 netbsd* | netbsdelf*-gnu)
17053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17054 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17055 wlarc=
17056 else
17057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17059 fi
17060 ;;
17062 solaris*)
17063 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17064 ld_shlibs_GCJ=no
17065 cat <<EOF 1>&2
17067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17068 *** create shared libraries on Solaris systems. Therefore, libtool
17069 *** is disabling shared libraries support. We urge you to upgrade GNU
17070 *** binutils to release 2.9.1 or newer. Another option is to modify
17071 *** your PATH or compiler configuration so that the native linker is
17072 *** used, and then restart.
17074 EOF
17075 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17078 else
17079 ld_shlibs_GCJ=no
17080 fi
17081 ;;
17083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17084 case `$LD -v 2>&1` in
17085 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17086 ld_shlibs_GCJ=no
17087 cat <<_LT_EOF 1>&2
17089 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17090 *** reliably create shared libraries on SCO systems. Therefore, libtool
17091 *** is disabling shared libraries support. We urge you to upgrade GNU
17092 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17093 *** your PATH or compiler configuration so that the native linker is
17094 *** used, and then restart.
17096 _LT_EOF
17097 ;;
17098 *)
17099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17100 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17101 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17102 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17103 else
17104 ld_shlibs_GCJ=no
17105 fi
17106 ;;
17107 esac
17108 ;;
17110 sunos4*)
17111 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17112 wlarc=
17113 hardcode_direct_GCJ=yes
17114 hardcode_shlibpath_var_GCJ=no
17115 ;;
17117 *)
17118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17119 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17120 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17121 else
17122 ld_shlibs_GCJ=no
17123 fi
17124 ;;
17125 esac
17127 if test "$ld_shlibs_GCJ" = no; then
17128 runpath_var=
17129 hardcode_libdir_flag_spec_GCJ=
17130 export_dynamic_flag_spec_GCJ=
17131 whole_archive_flag_spec_GCJ=
17132 fi
17133 else
17134 # PORTME fill in a description of your system's linker (not GNU ld)
17135 case $host_os in
17136 aix3*)
17137 allow_undefined_flag_GCJ=unsupported
17138 always_export_symbols_GCJ=yes
17139 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'
17140 # Note: this linker hardcodes the directories in LIBPATH if there
17141 # are no directories specified by -L.
17142 hardcode_minus_L_GCJ=yes
17143 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17144 # Neither direct hardcoding nor static linking is supported with a
17145 # broken collect2.
17146 hardcode_direct_GCJ=unsupported
17147 fi
17148 ;;
17150 aix4* | aix5*)
17151 if test "$host_cpu" = ia64; then
17152 # On IA64, the linker does run time linking by default, so we don't
17153 # have to do anything special.
17154 aix_use_runtimelinking=no
17155 exp_sym_flag='-Bexport'
17156 no_entry_flag=""
17157 else
17158 # If we're using GNU nm, then we don't want the "-C" option.
17159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17160 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17161 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'
17162 else
17163 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'
17164 fi
17165 aix_use_runtimelinking=no
17167 # Test if we are trying to use run time linking or normal
17168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17169 # need to do runtime linking.
17170 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17171 for ld_flag in $LDFLAGS; do
17172 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17173 aix_use_runtimelinking=yes
17174 break
17175 fi
17176 done
17177 ;;
17178 esac
17180 exp_sym_flag='-bexport'
17181 no_entry_flag='-bnoentry'
17182 fi
17184 # When large executables or shared objects are built, AIX ld can
17185 # have problems creating the table of contents. If linking a library
17186 # or program results in "error TOC overflow" add -mminimal-toc to
17187 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17188 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17190 archive_cmds_GCJ=''
17191 hardcode_direct_GCJ=yes
17192 hardcode_libdir_separator_GCJ=':'
17193 link_all_deplibs_GCJ=yes
17195 if test "$GCC" = yes; then
17196 case $host_os in aix4.[012]|aix4.[012].*)
17197 # We only want to do this on AIX 4.2 and lower, the check
17198 # below for broken collect2 doesn't work under 4.3+
17199 collect2name=`${CC} -print-prog-name=collect2`
17200 if test -f "$collect2name" && \
17201 strings "$collect2name" | grep resolve_lib_name >/dev/null
17202 then
17203 # We have reworked collect2
17204 hardcode_direct_GCJ=yes
17205 else
17206 # We have old collect2
17207 hardcode_direct_GCJ=unsupported
17208 # It fails to find uninstalled libraries when the uninstalled
17209 # path is not listed in the libpath. Setting hardcode_minus_L
17210 # to unsupported forces relinking
17211 hardcode_minus_L_GCJ=yes
17212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17213 hardcode_libdir_separator_GCJ=
17214 fi
17215 ;;
17216 esac
17217 shared_flag='-shared'
17218 if test "$aix_use_runtimelinking" = yes; then
17219 shared_flag="$shared_flag "'${wl}-G'
17220 fi
17221 else
17222 # not using gcc
17223 if test "$host_cpu" = ia64; then
17224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17225 # chokes on -Wl,-G. The following line is correct:
17226 shared_flag='-G'
17227 else
17228 if test "$aix_use_runtimelinking" = yes; then
17229 shared_flag='${wl}-G'
17230 else
17231 shared_flag='${wl}-bM:SRE'
17232 fi
17233 fi
17234 fi
17236 # It seems that -bexpall does not export symbols beginning with
17237 # underscore (_), so it is better to generate a list of symbols to export.
17238 always_export_symbols_GCJ=yes
17239 if test "$aix_use_runtimelinking" = yes; then
17240 # Warning - without using the other runtime loading flags (-brtl),
17241 # -berok will link without error, but may produce a broken library.
17242 allow_undefined_flag_GCJ='-berok'
17243 # Determine the default libpath from the value encoded in an empty executable.
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17251 int
17252 main ()
17253 {
17255 ;
17256 return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17267 ac_status=$?
17268 grep -v '^ *+' conftest.er1 >conftest.err
17269 rm -f conftest.er1
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } && {
17273 test -z "$ac_c_werror_flag" ||
17274 test ! -s conftest.err
17275 } && test -s conftest$ac_exeext &&
17276 $as_test_x conftest$ac_exeext; then
17278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17279 }'`
17280 # Check for a 64-bit object if we didn't find anything.
17281 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; }
17282 }'`; fi
17283 else
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17288 fi
17290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17291 conftest$ac_exeext conftest.$ac_ext
17292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17294 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17295 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"
17296 else
17297 if test "$host_cpu" = ia64; then
17298 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17299 allow_undefined_flag_GCJ="-z nodefs"
17300 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"
17301 else
17302 # Determine the default libpath from the value encoded in an empty executable.
17303 cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h. */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17310 int
17311 main ()
17312 {
17314 ;
17315 return 0;
17316 }
17317 _ACEOF
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323 esac
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17326 ac_status=$?
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest$ac_exeext &&
17335 $as_test_x conftest$ac_exeext; then
17337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17338 }'`
17339 # Check for a 64-bit object if we didn't find anything.
17340 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; }
17341 }'`; fi
17342 else
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17347 fi
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350 conftest$ac_exeext conftest.$ac_ext
17351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17353 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17354 # Warning - without using the other run time loading flags,
17355 # -berok will link without error, but may produce a broken library.
17356 no_undefined_flag_GCJ=' ${wl}-bernotok'
17357 allow_undefined_flag_GCJ=' ${wl}-berok'
17358 # Exported symbols can be pulled into shared objects from archives
17359 whole_archive_flag_spec_GCJ='$convenience'
17360 archive_cmds_need_lc_GCJ=yes
17361 # This is similar to how AIX traditionally builds its shared libraries.
17362 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'
17363 fi
17364 fi
17365 ;;
17367 amigaos*)
17368 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)'
17369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17370 hardcode_minus_L_GCJ=yes
17371 # see comment about different semantics on the GNU ld section
17372 ld_shlibs_GCJ=no
17373 ;;
17375 bsdi[45]*)
17376 export_dynamic_flag_spec_GCJ=-rdynamic
17377 ;;
17379 cygwin* | mingw* | pw32*)
17380 # When not using gcc, we currently assume that we are using
17381 # Microsoft Visual C++.
17382 # hardcode_libdir_flag_spec is actually meaningless, as there is
17383 # no search path for DLLs.
17384 hardcode_libdir_flag_spec_GCJ=' '
17385 allow_undefined_flag_GCJ=unsupported
17386 # Tell ltmain to make .lib files, not .a files.
17387 libext=lib
17388 # Tell ltmain to make .dll files, not .so files.
17389 shrext_cmds=".dll"
17390 # FIXME: Setting linknames here is a bad hack.
17391 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17392 # The linker will automatically build a .lib file if we build a DLL.
17393 old_archive_From_new_cmds_GCJ='true'
17394 # FIXME: Should let the user specify the lib program.
17395 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17396 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17397 enable_shared_with_static_runtimes_GCJ=yes
17398 ;;
17400 darwin* | rhapsody*)
17401 case $host_os in
17402 rhapsody* | darwin1.[012])
17403 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17404 ;;
17405 *) # Darwin 1.3 on
17406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17407 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17408 else
17409 case ${MACOSX_DEPLOYMENT_TARGET} in
17410 10.[012])
17411 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17412 ;;
17413 10.*)
17414 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17415 ;;
17416 esac
17417 fi
17418 ;;
17419 esac
17420 archive_cmds_need_lc_GCJ=no
17421 hardcode_direct_GCJ=no
17422 hardcode_automatic_GCJ=yes
17423 hardcode_shlibpath_var_GCJ=unsupported
17424 whole_archive_flag_spec_GCJ=''
17425 link_all_deplibs_GCJ=yes
17426 if test "$GCC" = yes ; then
17427 output_verbose_link_cmd='echo'
17428 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17429 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17430 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17431 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}'
17432 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}'
17433 else
17434 case $cc_basename in
17435 xlc*)
17436 output_verbose_link_cmd='echo'
17437 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17438 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17440 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}'
17441 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}'
17442 ;;
17443 *)
17444 ld_shlibs_GCJ=no
17445 ;;
17446 esac
17447 fi
17448 ;;
17450 dgux*)
17451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17453 hardcode_shlibpath_var_GCJ=no
17454 ;;
17456 freebsd1*)
17457 ld_shlibs_GCJ=no
17458 ;;
17460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17461 # support. Future versions do this automatically, but an explicit c++rt0.o
17462 # does not break anything, and helps significantly (at the cost of a little
17463 # extra space).
17464 freebsd2.2*)
17465 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17466 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17467 hardcode_direct_GCJ=yes
17468 hardcode_shlibpath_var_GCJ=no
17469 ;;
17471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17472 freebsd2*)
17473 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17474 hardcode_direct_GCJ=yes
17475 hardcode_minus_L_GCJ=yes
17476 hardcode_shlibpath_var_GCJ=no
17477 ;;
17479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17480 freebsd* | dragonfly*)
17481 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17482 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17483 hardcode_direct_GCJ=yes
17484 hardcode_shlibpath_var_GCJ=no
17485 ;;
17487 hpux9*)
17488 if test "$GCC" = yes; then
17489 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'
17490 else
17491 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'
17492 fi
17493 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17494 hardcode_libdir_separator_GCJ=:
17495 hardcode_direct_GCJ=yes
17497 # hardcode_minus_L: Not really in the search PATH,
17498 # but as the default location of the library.
17499 hardcode_minus_L_GCJ=yes
17500 export_dynamic_flag_spec_GCJ='${wl}-E'
17501 ;;
17503 hpux10*)
17504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17505 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17506 else
17507 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17508 fi
17509 if test "$with_gnu_ld" = no; then
17510 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17511 hardcode_libdir_separator_GCJ=:
17513 hardcode_direct_GCJ=yes
17514 export_dynamic_flag_spec_GCJ='${wl}-E'
17516 # hardcode_minus_L: Not really in the search PATH,
17517 # but as the default location of the library.
17518 hardcode_minus_L_GCJ=yes
17519 fi
17520 ;;
17522 hpux11*)
17523 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17524 case $host_cpu in
17525 hppa*64*)
17526 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17527 ;;
17528 ia64*)
17529 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17530 ;;
17531 *)
17532 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17533 ;;
17534 esac
17535 else
17536 case $host_cpu in
17537 hppa*64*)
17538 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17539 ;;
17540 ia64*)
17541 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17542 ;;
17543 *)
17544 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17545 ;;
17546 esac
17547 fi
17548 if test "$with_gnu_ld" = no; then
17549 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17550 hardcode_libdir_separator_GCJ=:
17552 case $host_cpu in
17553 hppa*64*|ia64*)
17554 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17555 hardcode_direct_GCJ=no
17556 hardcode_shlibpath_var_GCJ=no
17557 ;;
17558 *)
17559 hardcode_direct_GCJ=yes
17560 export_dynamic_flag_spec_GCJ='${wl}-E'
17562 # hardcode_minus_L: Not really in the search PATH,
17563 # but as the default location of the library.
17564 hardcode_minus_L_GCJ=yes
17565 ;;
17566 esac
17567 fi
17568 ;;
17570 irix5* | irix6* | nonstopux*)
17571 if test "$GCC" = yes; then
17572 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'
17573 else
17574 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'
17575 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17576 fi
17577 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17578 hardcode_libdir_separator_GCJ=:
17579 link_all_deplibs_GCJ=yes
17580 ;;
17582 netbsd* | netbsdelf*-gnu)
17583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17584 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17585 else
17586 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17587 fi
17588 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17589 hardcode_direct_GCJ=yes
17590 hardcode_shlibpath_var_GCJ=no
17591 ;;
17593 newsos6)
17594 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17595 hardcode_direct_GCJ=yes
17596 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17597 hardcode_libdir_separator_GCJ=:
17598 hardcode_shlibpath_var_GCJ=no
17599 ;;
17601 openbsd*)
17602 hardcode_direct_GCJ=yes
17603 hardcode_shlibpath_var_GCJ=no
17604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17605 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17606 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17607 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17608 export_dynamic_flag_spec_GCJ='${wl}-E'
17609 else
17610 case $host_os in
17611 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17612 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17614 ;;
17615 *)
17616 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17617 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17618 ;;
17619 esac
17620 fi
17621 ;;
17623 os2*)
17624 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17625 hardcode_minus_L_GCJ=yes
17626 allow_undefined_flag_GCJ=unsupported
17627 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'
17628 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17629 ;;
17631 osf3*)
17632 if test "$GCC" = yes; then
17633 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17634 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'
17635 else
17636 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17637 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'
17638 fi
17639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17640 hardcode_libdir_separator_GCJ=:
17641 ;;
17643 osf4* | osf5*) # as osf3* with the addition of -msym flag
17644 if test "$GCC" = yes; then
17645 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17646 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'
17647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17648 else
17649 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17650 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'
17651 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~
17652 $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'
17654 # Both c and cxx compiler support -rpath directly
17655 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17656 fi
17657 hardcode_libdir_separator_GCJ=:
17658 ;;
17660 solaris*)
17661 no_undefined_flag_GCJ=' -z text'
17662 if test "$GCC" = yes; then
17663 wlarc='${wl}'
17664 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17665 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17666 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17667 else
17668 wlarc=''
17669 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17670 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17671 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17672 fi
17673 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17674 hardcode_shlibpath_var_GCJ=no
17675 case $host_os in
17676 solaris2.[0-5] | solaris2.[0-5].*) ;;
17677 *)
17678 # The compiler driver will combine linker options so we
17679 # cannot just pass the convience library names through
17680 # without $wl, iff we do not link with $LD.
17681 # Luckily, gcc supports the same syntax we need for Sun Studio.
17682 # Supported since Solaris 2.6 (maybe 2.5.1?)
17683 case $wlarc in
17684 '')
17685 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17686 *)
17687 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' ;;
17688 esac ;;
17689 esac
17690 link_all_deplibs_GCJ=yes
17691 ;;
17693 sunos4*)
17694 if test "x$host_vendor" = xsequent; then
17695 # Use $CC to link under sequent, because it throws in some extra .o
17696 # files that make .init and .fini sections work.
17697 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17698 else
17699 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17700 fi
17701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17702 hardcode_direct_GCJ=yes
17703 hardcode_minus_L_GCJ=yes
17704 hardcode_shlibpath_var_GCJ=no
17705 ;;
17707 sysv4)
17708 case $host_vendor in
17709 sni)
17710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17711 hardcode_direct_GCJ=yes # is this really true???
17712 ;;
17713 siemens)
17714 ## LD is ld it makes a PLAMLIB
17715 ## CC just makes a GrossModule.
17716 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17717 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17718 hardcode_direct_GCJ=no
17719 ;;
17720 motorola)
17721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17723 ;;
17724 esac
17725 runpath_var='LD_RUN_PATH'
17726 hardcode_shlibpath_var_GCJ=no
17727 ;;
17729 sysv4.3*)
17730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731 hardcode_shlibpath_var_GCJ=no
17732 export_dynamic_flag_spec_GCJ='-Bexport'
17733 ;;
17735 sysv4*MP*)
17736 if test -d /usr/nec; then
17737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738 hardcode_shlibpath_var_GCJ=no
17739 runpath_var=LD_RUN_PATH
17740 hardcode_runpath_var=yes
17741 ld_shlibs_GCJ=yes
17742 fi
17743 ;;
17745 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17746 no_undefined_flag_GCJ='${wl}-z,text'
17747 archive_cmds_need_lc_GCJ=no
17748 hardcode_shlibpath_var_GCJ=no
17749 runpath_var='LD_RUN_PATH'
17751 if test "$GCC" = yes; then
17752 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17753 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17754 else
17755 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757 fi
17758 ;;
17760 sysv5* | sco3.2v5* | sco5v6*)
17761 # Note: We can NOT use -z defs as we might desire, because we do not
17762 # link with -lc, and that would cause any symbols used from libc to
17763 # always be unresolved, which means just about no library would
17764 # ever link correctly. If we're not using GNU ld we use -z text
17765 # though, which does catch some bad symbols but isn't as heavy-handed
17766 # as -z defs.
17767 no_undefined_flag_GCJ='${wl}-z,text'
17768 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17769 archive_cmds_need_lc_GCJ=no
17770 hardcode_shlibpath_var_GCJ=no
17771 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17772 hardcode_libdir_separator_GCJ=':'
17773 link_all_deplibs_GCJ=yes
17774 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17775 runpath_var='LD_RUN_PATH'
17777 if test "$GCC" = yes; then
17778 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17779 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17780 else
17781 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17782 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783 fi
17784 ;;
17786 uts4*)
17787 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17789 hardcode_shlibpath_var_GCJ=no
17790 ;;
17792 *)
17793 ld_shlibs_GCJ=no
17794 ;;
17795 esac
17796 fi
17798 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17799 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17800 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17802 #
17803 # Do we need to explicitly link libc?
17804 #
17805 case "x$archive_cmds_need_lc_GCJ" in
17806 x|xyes)
17807 # Assume -lc should be added
17808 archive_cmds_need_lc_GCJ=yes
17810 if test "$enable_shared" = yes && test "$GCC" = yes; then
17811 case $archive_cmds_GCJ in
17812 *'~'*)
17813 # FIXME: we may have to deal with multi-command sequences.
17814 ;;
17815 '$CC '*)
17816 # Test whether the compiler implicitly links with -lc since on some
17817 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17818 # to ld, don't add -lc before -lgcc.
17819 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17820 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17821 $rm conftest*
17822 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17825 (eval $ac_compile) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } 2>conftest.err; then
17829 soname=conftest
17830 lib=conftest
17831 libobjs=conftest.$ac_objext
17832 deplibs=
17833 wl=$lt_prog_compiler_wl_GCJ
17834 pic_flag=$lt_prog_compiler_pic_GCJ
17835 compiler_flags=-v
17836 linker_flags=-v
17837 verstring=
17838 output_objdir=.
17839 libname=conftest
17840 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17841 allow_undefined_flag_GCJ=
17842 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17843 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }
17847 then
17848 archive_cmds_need_lc_GCJ=no
17849 else
17850 archive_cmds_need_lc_GCJ=yes
17851 fi
17852 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17853 else
17854 cat conftest.err 1>&5
17855 fi
17856 $rm conftest*
17857 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17858 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17859 ;;
17860 esac
17861 fi
17862 ;;
17863 esac
17865 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17866 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17867 library_names_spec=
17868 libname_spec='lib$name'
17869 soname_spec=
17870 shrext_cmds=".so"
17871 postinstall_cmds=
17872 postuninstall_cmds=
17873 finish_cmds=
17874 finish_eval=
17875 shlibpath_var=
17876 shlibpath_overrides_runpath=unknown
17877 version_type=none
17878 dynamic_linker="$host_os ld.so"
17879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17880 if test "$GCC" = yes; then
17881 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17882 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17883 # if the path contains ";" then we assume it to be the separator
17884 # otherwise default to the standard path separator (i.e. ":") - it is
17885 # assumed that no part of a normal pathname contains ";" but that should
17886 # okay in the real world where ";" in dirpaths is itself problematic.
17887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17888 else
17889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17890 fi
17891 else
17892 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17893 fi
17894 need_lib_prefix=unknown
17895 hardcode_into_libs=no
17897 # when you set need_version to no, make sure it does not cause -set_version
17898 # flags to be left without arguments
17899 need_version=unknown
17901 case $host_os in
17902 aix3*)
17903 version_type=linux
17904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17905 shlibpath_var=LIBPATH
17907 # AIX 3 has no versioning support, so we append a major version to the name.
17908 soname_spec='${libname}${release}${shared_ext}$major'
17909 ;;
17911 aix4* | aix5*)
17912 version_type=linux
17913 need_lib_prefix=no
17914 need_version=no
17915 hardcode_into_libs=yes
17916 if test "$host_cpu" = ia64; then
17917 # AIX 5 supports IA64
17918 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17919 shlibpath_var=LD_LIBRARY_PATH
17920 else
17921 # With GCC up to 2.95.x, collect2 would create an import file
17922 # for dependence libraries. The import file would start with
17923 # the line `#! .'. This would cause the generated library to
17924 # depend on `.', always an invalid library. This was fixed in
17925 # development snapshots of GCC prior to 3.0.
17926 case $host_os in
17927 aix4 | aix4.[01] | aix4.[01].*)
17928 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17929 echo ' yes '
17930 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17931 :
17932 else
17933 can_build_shared=no
17934 fi
17935 ;;
17936 esac
17937 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17938 # soname into executable. Probably we can add versioning support to
17939 # collect2, so additional links can be useful in future.
17940 if test "$aix_use_runtimelinking" = yes; then
17941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17942 # instead of lib<name>.a to let people know that these are not
17943 # typical AIX shared libraries.
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945 else
17946 # We preserve .a as extension for shared libraries through AIX4.2
17947 # and later when we are not doing run time linking.
17948 library_names_spec='${libname}${release}.a $libname.a'
17949 soname_spec='${libname}${release}${shared_ext}$major'
17950 fi
17951 shlibpath_var=LIBPATH
17952 fi
17953 ;;
17955 amigaos*)
17956 library_names_spec='$libname.ixlibrary $libname.a'
17957 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17958 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'
17959 ;;
17961 beos*)
17962 library_names_spec='${libname}${shared_ext}'
17963 dynamic_linker="$host_os ld.so"
17964 shlibpath_var=LIBRARY_PATH
17965 ;;
17967 bsdi[45]*)
17968 version_type=linux
17969 need_version=no
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971 soname_spec='${libname}${release}${shared_ext}$major'
17972 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17975 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17976 # the default ld.so.conf also contains /usr/contrib/lib and
17977 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17978 # libtool to hard-code these into programs
17979 ;;
17981 cygwin* | mingw* | pw32*)
17982 version_type=windows
17983 shrext_cmds=".dll"
17984 need_version=no
17985 need_lib_prefix=no
17987 case $GCC,$host_os in
17988 yes,cygwin* | yes,mingw* | yes,pw32*)
17989 library_names_spec='$libname.dll.a'
17990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17991 postinstall_cmds='base_file=`basename \${file}`~
17992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17993 dldir=$destdir/`dirname \$dlpath`~
17994 test -d \$dldir || mkdir -p \$dldir~
17995 $install_prog $dir/$dlname \$dldir/$dlname~
17996 chmod a+x \$dldir/$dlname'
17997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17998 dlpath=$dir/\$dldll~
17999 $rm \$dlpath'
18000 shlibpath_overrides_runpath=yes
18002 case $host_os in
18003 cygwin*)
18004 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18005 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18006 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18007 ;;
18008 mingw*)
18009 # MinGW DLLs use traditional 'lib' prefix
18010 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18012 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18013 # It is most probably a Windows format PATH printed by
18014 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18015 # path with ; separators, and with drive letters. We can handle the
18016 # drive letters (cygwin fileutils understands them), so leave them,
18017 # especially as we might pass files found there to a mingw objdump,
18018 # which wouldn't understand a cygwinified path. Ahh.
18019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18020 else
18021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18022 fi
18023 ;;
18024 pw32*)
18025 # pw32 DLLs use 'pw' prefix rather than 'lib'
18026 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18027 ;;
18028 esac
18029 ;;
18031 *)
18032 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18033 ;;
18034 esac
18035 dynamic_linker='Win32 ld.exe'
18036 # FIXME: first we should search . and the directory the executable is in
18037 shlibpath_var=PATH
18038 ;;
18040 darwin* | rhapsody*)
18041 dynamic_linker="$host_os dyld"
18042 version_type=darwin
18043 need_lib_prefix=no
18044 need_version=no
18045 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18046 soname_spec='${libname}${release}${major}$shared_ext'
18047 shlibpath_overrides_runpath=yes
18048 shlibpath_var=DYLD_LIBRARY_PATH
18049 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18050 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18051 if test "$GCC" = yes; then
18052 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"`
18053 else
18054 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18055 fi
18056 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18057 ;;
18059 dgux*)
18060 version_type=linux
18061 need_lib_prefix=no
18062 need_version=no
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18064 soname_spec='${libname}${release}${shared_ext}$major'
18065 shlibpath_var=LD_LIBRARY_PATH
18066 ;;
18068 freebsd1*)
18069 dynamic_linker=no
18070 ;;
18072 freebsd* | dragonfly*)
18073 # DragonFly does not have aout. When/if they implement a new
18074 # versioning mechanism, adjust this.
18075 if test -x /usr/bin/objformat; then
18076 objformat=`/usr/bin/objformat`
18077 else
18078 case $host_os in
18079 freebsd[123]*) objformat=aout ;;
18080 *) objformat=elf ;;
18081 esac
18082 fi
18083 version_type=freebsd-$objformat
18084 case $version_type in
18085 freebsd-elf*)
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18087 need_version=no
18088 need_lib_prefix=no
18089 ;;
18090 freebsd-*)
18091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18092 need_version=yes
18093 ;;
18094 esac
18095 shlibpath_var=LD_LIBRARY_PATH
18096 case $host_os in
18097 freebsd2*)
18098 shlibpath_overrides_runpath=yes
18099 ;;
18100 freebsd3.[01]* | freebsdelf3.[01]*)
18101 shlibpath_overrides_runpath=yes
18102 hardcode_into_libs=yes
18103 ;;
18104 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18105 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18106 shlibpath_overrides_runpath=no
18107 hardcode_into_libs=yes
18108 ;;
18109 freebsd*) # from 4.6 on
18110 shlibpath_overrides_runpath=yes
18111 hardcode_into_libs=yes
18112 ;;
18113 esac
18114 ;;
18116 gnu*)
18117 version_type=linux
18118 need_lib_prefix=no
18119 need_version=no
18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18121 soname_spec='${libname}${release}${shared_ext}$major'
18122 shlibpath_var=LD_LIBRARY_PATH
18123 hardcode_into_libs=yes
18124 ;;
18126 hpux9* | hpux10* | hpux11*)
18127 # Give a soname corresponding to the major version so that dld.sl refuses to
18128 # link against other versions.
18129 version_type=sunos
18130 need_lib_prefix=no
18131 need_version=no
18132 case $host_cpu in
18133 ia64*)
18134 shrext_cmds='.so'
18135 hardcode_into_libs=yes
18136 dynamic_linker="$host_os dld.so"
18137 shlibpath_var=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 if test "X$HPUX_IA64_MODE" = X32; then
18142 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18143 else
18144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18145 fi
18146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18147 ;;
18148 hppa*64*)
18149 shrext_cmds='.sl'
18150 hardcode_into_libs=yes
18151 dynamic_linker="$host_os dld.sl"
18152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155 soname_spec='${libname}${release}${shared_ext}$major'
18156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18158 ;;
18159 *)
18160 shrext_cmds='.sl'
18161 dynamic_linker="$host_os dld.sl"
18162 shlibpath_var=SHLIB_PATH
18163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18166 ;;
18167 esac
18168 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18169 postinstall_cmds='chmod 555 $lib'
18170 ;;
18172 interix3*)
18173 version_type=linux
18174 need_lib_prefix=no
18175 need_version=no
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18179 shlibpath_var=LD_LIBRARY_PATH
18180 shlibpath_overrides_runpath=no
18181 hardcode_into_libs=yes
18182 ;;
18184 irix5* | irix6* | nonstopux*)
18185 case $host_os in
18186 nonstopux*) version_type=nonstopux ;;
18187 *)
18188 if test "$lt_cv_prog_gnu_ld" = yes; then
18189 version_type=linux
18190 else
18191 version_type=irix
18192 fi ;;
18193 esac
18194 need_lib_prefix=no
18195 need_version=no
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18198 case $host_os in
18199 irix5* | nonstopux*)
18200 libsuff= shlibsuff=
18201 ;;
18202 *)
18203 case $LD in # libtool.m4 will add one of these switches to LD
18204 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18205 libsuff= shlibsuff= libmagic=32-bit;;
18206 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18207 libsuff=32 shlibsuff=N32 libmagic=N32;;
18208 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18209 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18210 *) libsuff= shlibsuff= libmagic=never-match;;
18211 esac
18212 ;;
18213 esac
18214 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18215 shlibpath_overrides_runpath=no
18216 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18217 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18218 hardcode_into_libs=yes
18219 ;;
18221 # No shared lib support for Linux oldld, aout, or coff.
18222 linux*oldld* | linux*aout* | linux*coff*)
18223 dynamic_linker=no
18224 ;;
18226 # This must be Linux ELF.
18227 linux* | k*bsd*-gnu)
18228 version_type=linux
18229 need_lib_prefix=no
18230 need_version=no
18231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232 soname_spec='${libname}${release}${shared_ext}$major'
18233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=no
18236 # This implies no fast_install, which is unacceptable.
18237 # Some rework will be needed to allow for fast_install
18238 # before this can be enabled.
18239 hardcode_into_libs=yes
18241 # Append ld.so.conf contents to the search path
18242 if test -f /etc/ld.so.conf; then
18243 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' ' '`
18244 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18245 fi
18247 # We used to test for /lib/ld.so.1 and disable shared libraries on
18248 # powerpc, because MkLinux only supported shared libraries with the
18249 # GNU dynamic linker. Since this was broken with cross compilers,
18250 # most powerpc-linux boxes support dynamic linking these days and
18251 # people can always --disable-shared, the test was removed, and we
18252 # assume the GNU/Linux dynamic linker is in use.
18253 dynamic_linker='GNU/Linux ld.so'
18254 ;;
18256 netbsdelf*-gnu)
18257 version_type=linux
18258 need_lib_prefix=no
18259 need_version=no
18260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18261 soname_spec='${libname}${release}${shared_ext}$major'
18262 shlibpath_var=LD_LIBRARY_PATH
18263 shlibpath_overrides_runpath=no
18264 hardcode_into_libs=yes
18265 dynamic_linker='NetBSD ld.elf_so'
18266 ;;
18268 netbsd*)
18269 version_type=sunos
18270 need_lib_prefix=no
18271 need_version=no
18272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18275 dynamic_linker='NetBSD (a.out) ld.so'
18276 else
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18278 soname_spec='${libname}${release}${shared_ext}$major'
18279 dynamic_linker='NetBSD ld.elf_so'
18280 fi
18281 shlibpath_var=LD_LIBRARY_PATH
18282 shlibpath_overrides_runpath=yes
18283 hardcode_into_libs=yes
18284 ;;
18286 newsos6)
18287 version_type=linux
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289 shlibpath_var=LD_LIBRARY_PATH
18290 shlibpath_overrides_runpath=yes
18291 ;;
18293 nto-qnx*)
18294 version_type=linux
18295 need_lib_prefix=no
18296 need_version=no
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298 soname_spec='${libname}${release}${shared_ext}$major'
18299 shlibpath_var=LD_LIBRARY_PATH
18300 shlibpath_overrides_runpath=yes
18301 ;;
18303 openbsd*)
18304 version_type=sunos
18305 sys_lib_dlsearch_path_spec="/usr/lib"
18306 need_lib_prefix=no
18307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18308 case $host_os in
18309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18310 *) need_version=no ;;
18311 esac
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18314 shlibpath_var=LD_LIBRARY_PATH
18315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18316 case $host_os in
18317 openbsd2.[89] | openbsd2.[89].*)
18318 shlibpath_overrides_runpath=no
18319 ;;
18320 *)
18321 shlibpath_overrides_runpath=yes
18322 ;;
18323 esac
18324 else
18325 shlibpath_overrides_runpath=yes
18326 fi
18327 ;;
18329 os2*)
18330 libname_spec='$name'
18331 shrext_cmds=".dll"
18332 need_lib_prefix=no
18333 library_names_spec='$libname${shared_ext} $libname.a'
18334 dynamic_linker='OS/2 ld.exe'
18335 shlibpath_var=LIBPATH
18336 ;;
18338 osf3* | osf4* | osf5*)
18339 version_type=osf
18340 need_lib_prefix=no
18341 need_version=no
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18347 ;;
18349 solaris*)
18350 version_type=linux
18351 need_lib_prefix=no
18352 need_version=no
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354 soname_spec='${libname}${release}${shared_ext}$major'
18355 shlibpath_var=LD_LIBRARY_PATH
18356 shlibpath_overrides_runpath=yes
18357 hardcode_into_libs=yes
18358 # ldd complains unless libraries are executable
18359 postinstall_cmds='chmod +x $lib'
18360 ;;
18362 sunos4*)
18363 version_type=sunos
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18366 shlibpath_var=LD_LIBRARY_PATH
18367 shlibpath_overrides_runpath=yes
18368 if test "$with_gnu_ld" = yes; then
18369 need_lib_prefix=no
18370 fi
18371 need_version=yes
18372 ;;
18374 sysv4 | sysv4.3*)
18375 version_type=linux
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377 soname_spec='${libname}${release}${shared_ext}$major'
18378 shlibpath_var=LD_LIBRARY_PATH
18379 case $host_vendor in
18380 sni)
18381 shlibpath_overrides_runpath=no
18382 need_lib_prefix=no
18383 export_dynamic_flag_spec='${wl}-Blargedynsym'
18384 runpath_var=LD_RUN_PATH
18385 ;;
18386 siemens)
18387 need_lib_prefix=no
18388 ;;
18389 motorola)
18390 need_lib_prefix=no
18391 need_version=no
18392 shlibpath_overrides_runpath=no
18393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18394 ;;
18395 esac
18396 ;;
18398 sysv4*MP*)
18399 if test -d /usr/nec ;then
18400 version_type=linux
18401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18402 soname_spec='$libname${shared_ext}.$major'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 fi
18405 ;;
18407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18408 version_type=freebsd-elf
18409 need_lib_prefix=no
18410 need_version=no
18411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 hardcode_into_libs=yes
18415 if test "$with_gnu_ld" = yes; then
18416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18417 shlibpath_overrides_runpath=no
18418 else
18419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18420 shlibpath_overrides_runpath=yes
18421 case $host_os in
18422 sco3.2v5*)
18423 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18424 ;;
18425 esac
18426 fi
18427 sys_lib_dlsearch_path_spec='/usr/lib'
18428 ;;
18430 uts4*)
18431 version_type=linux
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 shlibpath_var=LD_LIBRARY_PATH
18435 ;;
18437 *)
18438 dynamic_linker=no
18439 ;;
18440 esac
18441 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18442 echo "${ECHO_T}$dynamic_linker" >&6; }
18443 test "$dynamic_linker" = no && can_build_shared=no
18445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18446 if test "$GCC" = yes; then
18447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18448 fi
18450 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18452 hardcode_action_GCJ=
18453 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18454 test -n "$runpath_var_GCJ" || \
18455 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18457 # We can hardcode non-existant directories.
18458 if test "$hardcode_direct_GCJ" != no &&
18459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18460 # have to relink, otherwise we might link with an installed library
18461 # when we should be linking with a yet-to-be-installed one
18462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18463 test "$hardcode_minus_L_GCJ" != no; then
18464 # Linking always hardcodes the temporary library directory.
18465 hardcode_action_GCJ=relink
18466 else
18467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18468 hardcode_action_GCJ=immediate
18469 fi
18470 else
18471 # We cannot hardcode anything, or else we can only hardcode existing
18472 # directories.
18473 hardcode_action_GCJ=unsupported
18474 fi
18475 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18476 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18478 if test "$hardcode_action_GCJ" = relink; then
18479 # Fast installation is not supported
18480 enable_fast_install=no
18481 elif test "$shlibpath_overrides_runpath" = yes ||
18482 test "$enable_shared" = no; then
18483 # Fast installation is not necessary
18484 enable_fast_install=needless
18485 fi
18488 # The else clause should only fire when bootstrapping the
18489 # libtool distribution, otherwise you forgot to ship ltmain.sh
18490 # with your package, and you will get complaints that there are
18491 # no rules to generate ltmain.sh.
18492 if test -f "$ltmain"; then
18493 # See if we are running on zsh, and set the options which allow our commands through
18494 # without removal of \ escapes.
18495 if test -n "${ZSH_VERSION+set}" ; then
18496 setopt NO_GLOB_SUBST
18497 fi
18498 # Now quote all the things that may contain metacharacters while being
18499 # careful not to overquote the AC_SUBSTed values. We take copies of the
18500 # variables and quote the copies for generation of the libtool script.
18501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18502 SED SHELL STRIP \
18503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18505 deplibs_check_method reload_flag reload_cmds need_locks \
18506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18507 lt_cv_sys_global_symbol_to_c_name_address \
18508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18509 old_postinstall_cmds old_postuninstall_cmds \
18510 compiler_GCJ \
18511 CC_GCJ \
18512 LD_GCJ \
18513 lt_prog_compiler_wl_GCJ \
18514 lt_prog_compiler_pic_GCJ \
18515 lt_prog_compiler_static_GCJ \
18516 lt_prog_compiler_no_builtin_flag_GCJ \
18517 export_dynamic_flag_spec_GCJ \
18518 thread_safe_flag_spec_GCJ \
18519 whole_archive_flag_spec_GCJ \
18520 enable_shared_with_static_runtimes_GCJ \
18521 old_archive_cmds_GCJ \
18522 old_archive_from_new_cmds_GCJ \
18523 predep_objects_GCJ \
18524 postdep_objects_GCJ \
18525 predeps_GCJ \
18526 postdeps_GCJ \
18527 compiler_lib_search_path_GCJ \
18528 archive_cmds_GCJ \
18529 archive_expsym_cmds_GCJ \
18530 postinstall_cmds_GCJ \
18531 postuninstall_cmds_GCJ \
18532 old_archive_from_expsyms_cmds_GCJ \
18533 allow_undefined_flag_GCJ \
18534 no_undefined_flag_GCJ \
18535 export_symbols_cmds_GCJ \
18536 hardcode_libdir_flag_spec_GCJ \
18537 hardcode_libdir_flag_spec_ld_GCJ \
18538 hardcode_libdir_separator_GCJ \
18539 hardcode_automatic_GCJ \
18540 module_cmds_GCJ \
18541 module_expsym_cmds_GCJ \
18542 lt_cv_prog_compiler_c_o_GCJ \
18543 exclude_expsyms_GCJ \
18544 include_expsyms_GCJ; do
18546 case $var in
18547 old_archive_cmds_GCJ | \
18548 old_archive_from_new_cmds_GCJ | \
18549 archive_cmds_GCJ | \
18550 archive_expsym_cmds_GCJ | \
18551 module_cmds_GCJ | \
18552 module_expsym_cmds_GCJ | \
18553 old_archive_from_expsyms_cmds_GCJ | \
18554 export_symbols_cmds_GCJ | \
18555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18556 postinstall_cmds | postuninstall_cmds | \
18557 old_postinstall_cmds | old_postuninstall_cmds | \
18558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18559 # Double-quote double-evaled strings.
18560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18561 ;;
18562 *)
18563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18564 ;;
18565 esac
18566 done
18568 case $lt_echo in
18569 *'\$0 --fallback-echo"')
18570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18571 ;;
18572 esac
18574 cfgfile="$ofile"
18576 cat <<__EOF__ >> "$cfgfile"
18577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18581 # Shell to use when invoking shell scripts.
18582 SHELL=$lt_SHELL
18584 # Whether or not to build shared libraries.
18585 build_libtool_libs=$enable_shared
18587 # Whether or not to build static libraries.
18588 build_old_libs=$enable_static
18590 # Whether or not to add -lc for building shared libraries.
18591 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18593 # Whether or not to disallow shared libs when runtime libs are static
18594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18596 # Whether or not to optimize for fast installation.
18597 fast_install=$enable_fast_install
18599 # The host system.
18600 host_alias=$host_alias
18601 host=$host
18602 host_os=$host_os
18604 # The build system.
18605 build_alias=$build_alias
18606 build=$build
18607 build_os=$build_os
18609 # An echo program that does not interpret backslashes.
18610 echo=$lt_echo
18612 # The archiver.
18613 AR=$lt_AR
18614 AR_FLAGS=$lt_AR_FLAGS
18616 # A C compiler.
18617 LTCC=$lt_LTCC
18619 # LTCC compiler flags.
18620 LTCFLAGS=$lt_LTCFLAGS
18622 # A language-specific compiler.
18623 CC=$lt_compiler_GCJ
18625 # Is the compiler the GNU C compiler?
18626 with_gcc=$GCC_GCJ
18628 # An ERE matcher.
18629 EGREP=$lt_EGREP
18631 # The linker used to build libraries.
18632 LD=$lt_LD_GCJ
18634 # Whether we need hard or soft links.
18635 LN_S=$lt_LN_S
18637 # A BSD-compatible nm program.
18638 NM=$lt_NM
18640 # A symbol stripping program
18641 STRIP=$lt_STRIP
18643 # Used to examine libraries when file_magic_cmd begins "file"
18644 MAGIC_CMD=$MAGIC_CMD
18646 # Used on cygwin: DLL creation program.
18647 DLLTOOL="$DLLTOOL"
18649 # Used on cygwin: object dumper.
18650 OBJDUMP="$OBJDUMP"
18652 # Used on cygwin: assembler.
18653 AS="$AS"
18655 # The name of the directory that contains temporary libtool files.
18656 objdir=$objdir
18658 # How to create reloadable object files.
18659 reload_flag=$lt_reload_flag
18660 reload_cmds=$lt_reload_cmds
18662 # How to pass a linker flag through the compiler.
18663 wl=$lt_lt_prog_compiler_wl_GCJ
18665 # Object file suffix (normally "o").
18666 objext="$ac_objext"
18668 # Old archive suffix (normally "a").
18669 libext="$libext"
18671 # Shared library suffix (normally ".so").
18672 shrext_cmds='$shrext_cmds'
18674 # Executable file suffix (normally "").
18675 exeext="$exeext"
18677 # Additional compiler flags for building library objects.
18678 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18679 pic_mode=$pic_mode
18681 # What is the maximum length of a command?
18682 max_cmd_len=$lt_cv_sys_max_cmd_len
18684 # Does compiler simultaneously support -c and -o options?
18685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18687 # Must we lock files when doing compilation?
18688 need_locks=$lt_need_locks
18690 # Do we need the lib prefix for modules?
18691 need_lib_prefix=$need_lib_prefix
18693 # Do we need a version for libraries?
18694 need_version=$need_version
18696 # Whether dlopen is supported.
18697 dlopen_support=$enable_dlopen
18699 # Whether dlopen of programs is supported.
18700 dlopen_self=$enable_dlopen_self
18702 # Whether dlopen of statically linked programs is supported.
18703 dlopen_self_static=$enable_dlopen_self_static
18705 # Compiler flag to prevent dynamic linking.
18706 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18708 # Compiler flag to turn off builtin functions.
18709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18711 # Compiler flag to allow reflexive dlopens.
18712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18714 # Compiler flag to generate shared objects directly from archives.
18715 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18717 # Compiler flag to generate thread-safe objects.
18718 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18720 # Library versioning type.
18721 version_type=$version_type
18723 # Format of library name prefix.
18724 libname_spec=$lt_libname_spec
18726 # List of archive names. First name is the real one, the rest are links.
18727 # The last name is the one that the linker finds with -lNAME.
18728 library_names_spec=$lt_library_names_spec
18730 # The coded name of the library, if different from the real name.
18731 soname_spec=$lt_soname_spec
18733 # Commands used to build and install an old-style archive.
18734 RANLIB=$lt_RANLIB
18735 old_archive_cmds=$lt_old_archive_cmds_GCJ
18736 old_postinstall_cmds=$lt_old_postinstall_cmds
18737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18739 # Create an old-style archive from a shared archive.
18740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18742 # Create a temporary old-style archive to link instead of a shared archive.
18743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18745 # Commands used to build and install a shared archive.
18746 archive_cmds=$lt_archive_cmds_GCJ
18747 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18748 postinstall_cmds=$lt_postinstall_cmds
18749 postuninstall_cmds=$lt_postuninstall_cmds
18751 # Commands used to build a loadable module (assumed same as above if empty)
18752 module_cmds=$lt_module_cmds_GCJ
18753 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18755 # Commands to strip libraries.
18756 old_striplib=$lt_old_striplib
18757 striplib=$lt_striplib
18759 # Dependencies to place before the objects being linked to create a
18760 # shared library.
18761 predep_objects=$lt_predep_objects_GCJ
18763 # Dependencies to place after the objects being linked to create a
18764 # shared library.
18765 postdep_objects=$lt_postdep_objects_GCJ
18767 # Dependencies to place before the objects being linked to create a
18768 # shared library.
18769 predeps=$lt_predeps_GCJ
18771 # Dependencies to place after the objects being linked to create a
18772 # shared library.
18773 postdeps=$lt_postdeps_GCJ
18775 # The library search path used internally by the compiler when linking
18776 # a shared library.
18777 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18779 # Method to check whether dependent libraries are shared objects.
18780 deplibs_check_method=$lt_deplibs_check_method
18782 # Command to use when deplibs_check_method == file_magic.
18783 file_magic_cmd=$lt_file_magic_cmd
18785 # Flag that allows shared libraries with undefined symbols to be built.
18786 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18788 # Flag that forces no undefined symbols.
18789 no_undefined_flag=$lt_no_undefined_flag_GCJ
18791 # Commands used to finish a libtool library installation in a directory.
18792 finish_cmds=$lt_finish_cmds
18794 # Same as above, but a single script fragment to be evaled but not shown.
18795 finish_eval=$lt_finish_eval
18797 # Take the output of nm and produce a listing of raw symbols and C names.
18798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18800 # Transform the output of nm in a proper C declaration
18801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18803 # Transform the output of nm in a C name address pair
18804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18806 # This is the shared library runtime path variable.
18807 runpath_var=$runpath_var
18809 # This is the shared library path variable.
18810 shlibpath_var=$shlibpath_var
18812 # Is shlibpath searched before the hard-coded library search path?
18813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18815 # How to hardcode a shared library path into an executable.
18816 hardcode_action=$hardcode_action_GCJ
18818 # Whether we should hardcode library paths into libraries.
18819 hardcode_into_libs=$hardcode_into_libs
18821 # Flag to hardcode \$libdir into a binary during linking.
18822 # This must work even if \$libdir does not exist.
18823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18825 # If ld is used when linking, flag to hardcode \$libdir into
18826 # a binary during linking. This must work even if \$libdir does
18827 # not exist.
18828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18830 # Whether we need a single -rpath flag with a separated argument.
18831 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18834 # resulting binary.
18835 hardcode_direct=$hardcode_direct_GCJ
18837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18838 # resulting binary.
18839 hardcode_minus_L=$hardcode_minus_L_GCJ
18841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18842 # the resulting binary.
18843 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18845 # Set to yes if building a shared library automatically hardcodes DIR into the library
18846 # and all subsequent libraries and executables linked against it.
18847 hardcode_automatic=$hardcode_automatic_GCJ
18849 # Variables whose values should be saved in libtool wrapper scripts and
18850 # restored at relink time.
18851 variables_saved_for_relink="$variables_saved_for_relink"
18853 # Whether libtool must link a program against all its dependency libraries.
18854 link_all_deplibs=$link_all_deplibs_GCJ
18856 # Compile-time system search path for libraries
18857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18859 # Run-time system search path for libraries
18860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18862 # Fix the shell variable \$srcfile for the compiler.
18863 fix_srcfile_path="$fix_srcfile_path_GCJ"
18865 # Set to yes if exported symbols are required.
18866 always_export_symbols=$always_export_symbols_GCJ
18868 # The commands to list exported symbols.
18869 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18871 # The commands to extract the exported symbol list from a shared archive.
18872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18874 # Symbols that should not be listed in the preloaded symbols.
18875 exclude_expsyms=$lt_exclude_expsyms_GCJ
18877 # Symbols that must always be exported.
18878 include_expsyms=$lt_include_expsyms_GCJ
18880 # ### END LIBTOOL TAG CONFIG: $tagname
18882 __EOF__
18885 else
18886 # If there is no Makefile yet, we rely on a make rule to execute
18887 # `config.status --recheck' to rerun these tests and create the
18888 # libtool script then.
18889 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18890 if test -f "$ltmain_in"; then
18891 test -f Makefile && make "$ltmain"
18892 fi
18893 fi
18896 ac_ext=c
18897 ac_cpp='$CPP $CPPFLAGS'
18898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18902 CC="$lt_save_CC"
18904 else
18905 tagname=""
18906 fi
18907 ;;
18909 RC)
18912 # Source file extension for RC test sources.
18913 ac_ext=rc
18915 # Object file extension for compiled RC test sources.
18916 objext=o
18917 objext_RC=$objext
18919 # Code to be used in simple compile tests
18920 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18922 # Code to be used in simple link tests
18923 lt_simple_link_test_code="$lt_simple_compile_test_code"
18925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18927 # If no C compiler was specified, use CC.
18928 LTCC=${LTCC-"$CC"}
18930 # If no C compiler flags were specified, use CFLAGS.
18931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18933 # Allow CC to be a program name with arguments.
18934 compiler=$CC
18937 # save warnings/boilerplate of simple test code
18938 ac_outfile=conftest.$ac_objext
18939 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18940 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18941 _lt_compiler_boilerplate=`cat conftest.err`
18942 $rm conftest*
18944 ac_outfile=conftest.$ac_objext
18945 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18946 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18947 _lt_linker_boilerplate=`cat conftest.err`
18948 $rm conftest*
18951 # Allow CC to be a program name with arguments.
18952 lt_save_CC="$CC"
18953 CC=${RC-"windres"}
18954 compiler=$CC
18955 compiler_RC=$CC
18956 for cc_temp in $compiler""; do
18957 case $cc_temp in
18958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18960 \-*) ;;
18961 *) break;;
18962 esac
18963 done
18964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18966 lt_cv_prog_compiler_c_o_RC=yes
18968 # The else clause should only fire when bootstrapping the
18969 # libtool distribution, otherwise you forgot to ship ltmain.sh
18970 # with your package, and you will get complaints that there are
18971 # no rules to generate ltmain.sh.
18972 if test -f "$ltmain"; then
18973 # See if we are running on zsh, and set the options which allow our commands through
18974 # without removal of \ escapes.
18975 if test -n "${ZSH_VERSION+set}" ; then
18976 setopt NO_GLOB_SUBST
18977 fi
18978 # Now quote all the things that may contain metacharacters while being
18979 # careful not to overquote the AC_SUBSTed values. We take copies of the
18980 # variables and quote the copies for generation of the libtool script.
18981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18982 SED SHELL STRIP \
18983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18985 deplibs_check_method reload_flag reload_cmds need_locks \
18986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18987 lt_cv_sys_global_symbol_to_c_name_address \
18988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18989 old_postinstall_cmds old_postuninstall_cmds \
18990 compiler_RC \
18991 CC_RC \
18992 LD_RC \
18993 lt_prog_compiler_wl_RC \
18994 lt_prog_compiler_pic_RC \
18995 lt_prog_compiler_static_RC \
18996 lt_prog_compiler_no_builtin_flag_RC \
18997 export_dynamic_flag_spec_RC \
18998 thread_safe_flag_spec_RC \
18999 whole_archive_flag_spec_RC \
19000 enable_shared_with_static_runtimes_RC \
19001 old_archive_cmds_RC \
19002 old_archive_from_new_cmds_RC \
19003 predep_objects_RC \
19004 postdep_objects_RC \
19005 predeps_RC \
19006 postdeps_RC \
19007 compiler_lib_search_path_RC \
19008 archive_cmds_RC \
19009 archive_expsym_cmds_RC \
19010 postinstall_cmds_RC \
19011 postuninstall_cmds_RC \
19012 old_archive_from_expsyms_cmds_RC \
19013 allow_undefined_flag_RC \
19014 no_undefined_flag_RC \
19015 export_symbols_cmds_RC \
19016 hardcode_libdir_flag_spec_RC \
19017 hardcode_libdir_flag_spec_ld_RC \
19018 hardcode_libdir_separator_RC \
19019 hardcode_automatic_RC \
19020 module_cmds_RC \
19021 module_expsym_cmds_RC \
19022 lt_cv_prog_compiler_c_o_RC \
19023 exclude_expsyms_RC \
19024 include_expsyms_RC; do
19026 case $var in
19027 old_archive_cmds_RC | \
19028 old_archive_from_new_cmds_RC | \
19029 archive_cmds_RC | \
19030 archive_expsym_cmds_RC | \
19031 module_cmds_RC | \
19032 module_expsym_cmds_RC | \
19033 old_archive_from_expsyms_cmds_RC | \
19034 export_symbols_cmds_RC | \
19035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19036 postinstall_cmds | postuninstall_cmds | \
19037 old_postinstall_cmds | old_postuninstall_cmds | \
19038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19039 # Double-quote double-evaled strings.
19040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19041 ;;
19042 *)
19043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19044 ;;
19045 esac
19046 done
19048 case $lt_echo in
19049 *'\$0 --fallback-echo"')
19050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19051 ;;
19052 esac
19054 cfgfile="$ofile"
19056 cat <<__EOF__ >> "$cfgfile"
19057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19061 # Shell to use when invoking shell scripts.
19062 SHELL=$lt_SHELL
19064 # Whether or not to build shared libraries.
19065 build_libtool_libs=$enable_shared
19067 # Whether or not to build static libraries.
19068 build_old_libs=$enable_static
19070 # Whether or not to add -lc for building shared libraries.
19071 build_libtool_need_lc=$archive_cmds_need_lc_RC
19073 # Whether or not to disallow shared libs when runtime libs are static
19074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19076 # Whether or not to optimize for fast installation.
19077 fast_install=$enable_fast_install
19079 # The host system.
19080 host_alias=$host_alias
19081 host=$host
19082 host_os=$host_os
19084 # The build system.
19085 build_alias=$build_alias
19086 build=$build
19087 build_os=$build_os
19089 # An echo program that does not interpret backslashes.
19090 echo=$lt_echo
19092 # The archiver.
19093 AR=$lt_AR
19094 AR_FLAGS=$lt_AR_FLAGS
19096 # A C compiler.
19097 LTCC=$lt_LTCC
19099 # LTCC compiler flags.
19100 LTCFLAGS=$lt_LTCFLAGS
19102 # A language-specific compiler.
19103 CC=$lt_compiler_RC
19105 # Is the compiler the GNU C compiler?
19106 with_gcc=$GCC_RC
19108 # An ERE matcher.
19109 EGREP=$lt_EGREP
19111 # The linker used to build libraries.
19112 LD=$lt_LD_RC
19114 # Whether we need hard or soft links.
19115 LN_S=$lt_LN_S
19117 # A BSD-compatible nm program.
19118 NM=$lt_NM
19120 # A symbol stripping program
19121 STRIP=$lt_STRIP
19123 # Used to examine libraries when file_magic_cmd begins "file"
19124 MAGIC_CMD=$MAGIC_CMD
19126 # Used on cygwin: DLL creation program.
19127 DLLTOOL="$DLLTOOL"
19129 # Used on cygwin: object dumper.
19130 OBJDUMP="$OBJDUMP"
19132 # Used on cygwin: assembler.
19133 AS="$AS"
19135 # The name of the directory that contains temporary libtool files.
19136 objdir=$objdir
19138 # How to create reloadable object files.
19139 reload_flag=$lt_reload_flag
19140 reload_cmds=$lt_reload_cmds
19142 # How to pass a linker flag through the compiler.
19143 wl=$lt_lt_prog_compiler_wl_RC
19145 # Object file suffix (normally "o").
19146 objext="$ac_objext"
19148 # Old archive suffix (normally "a").
19149 libext="$libext"
19151 # Shared library suffix (normally ".so").
19152 shrext_cmds='$shrext_cmds'
19154 # Executable file suffix (normally "").
19155 exeext="$exeext"
19157 # Additional compiler flags for building library objects.
19158 pic_flag=$lt_lt_prog_compiler_pic_RC
19159 pic_mode=$pic_mode
19161 # What is the maximum length of a command?
19162 max_cmd_len=$lt_cv_sys_max_cmd_len
19164 # Does compiler simultaneously support -c and -o options?
19165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19167 # Must we lock files when doing compilation?
19168 need_locks=$lt_need_locks
19170 # Do we need the lib prefix for modules?
19171 need_lib_prefix=$need_lib_prefix
19173 # Do we need a version for libraries?
19174 need_version=$need_version
19176 # Whether dlopen is supported.
19177 dlopen_support=$enable_dlopen
19179 # Whether dlopen of programs is supported.
19180 dlopen_self=$enable_dlopen_self
19182 # Whether dlopen of statically linked programs is supported.
19183 dlopen_self_static=$enable_dlopen_self_static
19185 # Compiler flag to prevent dynamic linking.
19186 link_static_flag=$lt_lt_prog_compiler_static_RC
19188 # Compiler flag to turn off builtin functions.
19189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19191 # Compiler flag to allow reflexive dlopens.
19192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19194 # Compiler flag to generate shared objects directly from archives.
19195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19197 # Compiler flag to generate thread-safe objects.
19198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19200 # Library versioning type.
19201 version_type=$version_type
19203 # Format of library name prefix.
19204 libname_spec=$lt_libname_spec
19206 # List of archive names. First name is the real one, the rest are links.
19207 # The last name is the one that the linker finds with -lNAME.
19208 library_names_spec=$lt_library_names_spec
19210 # The coded name of the library, if different from the real name.
19211 soname_spec=$lt_soname_spec
19213 # Commands used to build and install an old-style archive.
19214 RANLIB=$lt_RANLIB
19215 old_archive_cmds=$lt_old_archive_cmds_RC
19216 old_postinstall_cmds=$lt_old_postinstall_cmds
19217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19219 # Create an old-style archive from a shared archive.
19220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19222 # Create a temporary old-style archive to link instead of a shared archive.
19223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19225 # Commands used to build and install a shared archive.
19226 archive_cmds=$lt_archive_cmds_RC
19227 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19228 postinstall_cmds=$lt_postinstall_cmds
19229 postuninstall_cmds=$lt_postuninstall_cmds
19231 # Commands used to build a loadable module (assumed same as above if empty)
19232 module_cmds=$lt_module_cmds_RC
19233 module_expsym_cmds=$lt_module_expsym_cmds_RC
19235 # Commands to strip libraries.
19236 old_striplib=$lt_old_striplib
19237 striplib=$lt_striplib
19239 # Dependencies to place before the objects being linked to create a
19240 # shared library.
19241 predep_objects=$lt_predep_objects_RC
19243 # Dependencies to place after the objects being linked to create a
19244 # shared library.
19245 postdep_objects=$lt_postdep_objects_RC
19247 # Dependencies to place before the objects being linked to create a
19248 # shared library.
19249 predeps=$lt_predeps_RC
19251 # Dependencies to place after the objects being linked to create a
19252 # shared library.
19253 postdeps=$lt_postdeps_RC
19255 # The library search path used internally by the compiler when linking
19256 # a shared library.
19257 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19259 # Method to check whether dependent libraries are shared objects.
19260 deplibs_check_method=$lt_deplibs_check_method
19262 # Command to use when deplibs_check_method == file_magic.
19263 file_magic_cmd=$lt_file_magic_cmd
19265 # Flag that allows shared libraries with undefined symbols to be built.
19266 allow_undefined_flag=$lt_allow_undefined_flag_RC
19268 # Flag that forces no undefined symbols.
19269 no_undefined_flag=$lt_no_undefined_flag_RC
19271 # Commands used to finish a libtool library installation in a directory.
19272 finish_cmds=$lt_finish_cmds
19274 # Same as above, but a single script fragment to be evaled but not shown.
19275 finish_eval=$lt_finish_eval
19277 # Take the output of nm and produce a listing of raw symbols and C names.
19278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19280 # Transform the output of nm in a proper C declaration
19281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19283 # Transform the output of nm in a C name address pair
19284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19286 # This is the shared library runtime path variable.
19287 runpath_var=$runpath_var
19289 # This is the shared library path variable.
19290 shlibpath_var=$shlibpath_var
19292 # Is shlibpath searched before the hard-coded library search path?
19293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19295 # How to hardcode a shared library path into an executable.
19296 hardcode_action=$hardcode_action_RC
19298 # Whether we should hardcode library paths into libraries.
19299 hardcode_into_libs=$hardcode_into_libs
19301 # Flag to hardcode \$libdir into a binary during linking.
19302 # This must work even if \$libdir does not exist.
19303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19305 # If ld is used when linking, flag to hardcode \$libdir into
19306 # a binary during linking. This must work even if \$libdir does
19307 # not exist.
19308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19310 # Whether we need a single -rpath flag with a separated argument.
19311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19314 # resulting binary.
19315 hardcode_direct=$hardcode_direct_RC
19317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19318 # resulting binary.
19319 hardcode_minus_L=$hardcode_minus_L_RC
19321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19322 # the resulting binary.
19323 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19325 # Set to yes if building a shared library automatically hardcodes DIR into the library
19326 # and all subsequent libraries and executables linked against it.
19327 hardcode_automatic=$hardcode_automatic_RC
19329 # Variables whose values should be saved in libtool wrapper scripts and
19330 # restored at relink time.
19331 variables_saved_for_relink="$variables_saved_for_relink"
19333 # Whether libtool must link a program against all its dependency libraries.
19334 link_all_deplibs=$link_all_deplibs_RC
19336 # Compile-time system search path for libraries
19337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19339 # Run-time system search path for libraries
19340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19342 # Fix the shell variable \$srcfile for the compiler.
19343 fix_srcfile_path="$fix_srcfile_path_RC"
19345 # Set to yes if exported symbols are required.
19346 always_export_symbols=$always_export_symbols_RC
19348 # The commands to list exported symbols.
19349 export_symbols_cmds=$lt_export_symbols_cmds_RC
19351 # The commands to extract the exported symbol list from a shared archive.
19352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19354 # Symbols that should not be listed in the preloaded symbols.
19355 exclude_expsyms=$lt_exclude_expsyms_RC
19357 # Symbols that must always be exported.
19358 include_expsyms=$lt_include_expsyms_RC
19360 # ### END LIBTOOL TAG CONFIG: $tagname
19362 __EOF__
19365 else
19366 # If there is no Makefile yet, we rely on a make rule to execute
19367 # `config.status --recheck' to rerun these tests and create the
19368 # libtool script then.
19369 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19370 if test -f "$ltmain_in"; then
19371 test -f Makefile && make "$ltmain"
19372 fi
19373 fi
19376 ac_ext=c
19377 ac_cpp='$CPP $CPPFLAGS'
19378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19382 CC="$lt_save_CC"
19384 ;;
19386 *)
19387 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19388 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19389 { (exit 1); exit 1; }; }
19390 ;;
19391 esac
19393 # Append the new tag name to the list of available tags.
19394 if test -n "$tagname" ; then
19395 available_tags="$available_tags $tagname"
19396 fi
19397 fi
19398 done
19399 IFS="$lt_save_ifs"
19401 # Now substitute the updated list of available tags.
19402 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19403 mv "${ofile}T" "$ofile"
19404 chmod +x "$ofile"
19405 else
19406 rm -f "${ofile}T"
19407 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19408 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19409 { (exit 1); exit 1; }; }
19410 fi
19411 fi
19415 # This can be used to rebuild libtool when needed
19416 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19418 # Always use our own libtool.
19419 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19421 # Prevent multiple expansion
19443 CFLAGS="$CFLAGS -D_GNU_SOURCE"
19445 if test "x$GCC" = "xyes"; then
19446 for flag in -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W; do
19447 oCFLAGS="$CFLAGS"
19448 CFLAGS="$CFLAGS $flag"
19449 cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
19450 { echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
19451 echo $ECHO_N "checking if gcc likes the $flag flag... $ECHO_C" >&6; }
19452 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19462 int
19463 main ()
19464 {
19465 return 0
19466 ;
19467 return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext
19471 if { (ac_try="$ac_compile"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_compile") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest.$ac_objext; then
19487 eval $cachename=yes
19488 else
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 eval $cachename=no
19493 fi
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 fi
19497 ac_res=`eval echo '${'$cachename'}'`
19498 { echo "$as_me:$LINENO: result: $ac_res" >&5
19499 echo "${ECHO_T}$ac_res" >&6; }
19500 if eval test \$$cachename = no; then
19501 CFLAGS="$oCFLAGS"
19502 fi
19503 done
19504 fi
19511 case $TERM in
19512 # for the most important terminal types we directly know the sequences
19513 xterm|xterm*|vt220|vt220*)
19514 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
19515 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
19516 ;;
19517 vt100|vt100*|cygwin)
19518 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
19519 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
19520 ;;
19521 *)
19522 T_MD=''
19523 T_ME=''
19524 ;;
19525 esac
19526 { echo "$as_me:$LINENO: result: " >&5
19527 echo "${ECHO_T}" >&6; }
19528 { echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
19529 echo "${ECHO_T}${T_MD}Checking for Header Files${T_ME}" >&6; }
19532 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19533 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19534 if test "${ac_cv_header_stdc+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 #include <stdlib.h>
19544 #include <stdarg.h>
19545 #include <string.h>
19546 #include <float.h>
19548 int
19549 main ()
19550 {
19552 ;
19553 return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext
19557 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest.$ac_objext; then
19573 ac_cv_header_stdc=yes
19574 else
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ac_cv_header_stdc=no
19579 fi
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19583 if test $ac_cv_header_stdc = yes; then
19584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #include <string.h>
19593 _ACEOF
19594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19595 $EGREP "memchr" >/dev/null 2>&1; then
19596 :
19597 else
19598 ac_cv_header_stdc=no
19599 fi
19600 rm -f conftest*
19602 fi
19604 if test $ac_cv_header_stdc = yes; then
19605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h. */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #include <stdlib.h>
19614 _ACEOF
19615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19616 $EGREP "free" >/dev/null 2>&1; then
19617 :
19618 else
19619 ac_cv_header_stdc=no
19620 fi
19621 rm -f conftest*
19623 fi
19625 if test $ac_cv_header_stdc = yes; then
19626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19627 if test "$cross_compiling" = yes; then
19628 :
19629 else
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h. */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636 #include <ctype.h>
19637 #include <stdlib.h>
19638 #if ((' ' & 0x0FF) == 0x020)
19639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19641 #else
19642 # define ISLOWER(c) \
19643 (('a' <= (c) && (c) <= 'i') \
19644 || ('j' <= (c) && (c) <= 'r') \
19645 || ('s' <= (c) && (c) <= 'z'))
19646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19647 #endif
19649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19650 int
19651 main ()
19652 {
19653 int i;
19654 for (i = 0; i < 256; i++)
19655 if (XOR (islower (i), ISLOWER (i))
19656 || toupper (i) != TOUPPER (i))
19657 return 2;
19658 return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest$ac_exeext
19662 if { (ac_try="$ac_link"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_link") 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19672 { (case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_try") 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19681 :
19682 else
19683 echo "$as_me: program exited with status $ac_status" >&5
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ( exit $ac_status )
19688 ac_cv_header_stdc=no
19689 fi
19690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19691 fi
19694 fi
19695 fi
19696 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19697 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19698 if test $ac_cv_header_stdc = yes; then
19700 cat >>confdefs.h <<\_ACEOF
19701 #define STDC_HEADERS 1
19702 _ACEOF
19704 fi
19711 ac_header_dirent=no
19712 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19713 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19714 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19715 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 else
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #include <sys/types.h>
19726 #include <$ac_hdr>
19728 int
19729 main ()
19730 {
19731 if ((DIR *) 0)
19732 return 0;
19733 ;
19734 return 0;
19735 }
19736 _ACEOF
19737 rm -f conftest.$ac_objext
19738 if { (ac_try="$ac_compile"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_compile") 2>conftest.er1
19745 ac_status=$?
19746 grep -v '^ *+' conftest.er1 >conftest.err
19747 rm -f conftest.er1
19748 cat conftest.err >&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } && {
19751 test -z "$ac_c_werror_flag" ||
19752 test ! -s conftest.err
19753 } && test -s conftest.$ac_objext; then
19754 eval "$as_ac_Header=yes"
19755 else
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19759 eval "$as_ac_Header=no"
19760 fi
19762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19763 fi
19764 ac_res=`eval echo '${'$as_ac_Header'}'`
19765 { echo "$as_me:$LINENO: result: $ac_res" >&5
19766 echo "${ECHO_T}$ac_res" >&6; }
19767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19768 cat >>confdefs.h <<_ACEOF
19769 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19770 _ACEOF
19772 ac_header_dirent=$ac_hdr; break
19773 fi
19775 done
19776 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19777 if test $ac_header_dirent = dirent.h; then
19778 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19779 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19780 if test "${ac_cv_search_opendir+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783 ac_func_search_save_LIBS=$LIBS
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h. */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19791 /* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19794 #ifdef __cplusplus
19795 extern "C"
19796 #endif
19797 char opendir ();
19798 int
19799 main ()
19800 {
19801 return opendir ();
19802 ;
19803 return 0;
19804 }
19805 _ACEOF
19806 for ac_lib in '' dir; do
19807 if test -z "$ac_lib"; then
19808 ac_res="none required"
19809 else
19810 ac_res=-l$ac_lib
19811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19812 fi
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (ac_try="$ac_link"
19815 case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_link") 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest$ac_exeext &&
19830 $as_test_x conftest$ac_exeext; then
19831 ac_cv_search_opendir=$ac_res
19832 else
19833 echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19837 fi
19839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19840 conftest$ac_exeext
19841 if test "${ac_cv_search_opendir+set}" = set; then
19842 break
19843 fi
19844 done
19845 if test "${ac_cv_search_opendir+set}" = set; then
19846 :
19847 else
19848 ac_cv_search_opendir=no
19849 fi
19850 rm conftest.$ac_ext
19851 LIBS=$ac_func_search_save_LIBS
19852 fi
19853 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19854 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19855 ac_res=$ac_cv_search_opendir
19856 if test "$ac_res" != no; then
19857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19859 fi
19861 else
19862 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19863 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19864 if test "${ac_cv_search_opendir+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867 ac_func_search_save_LIBS=$LIBS
19868 cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h. */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19875 /* Override any GCC internal prototype to avoid an error.
19876 Use char because int might match the return type of a GCC
19877 builtin and then its argument prototype would still apply. */
19878 #ifdef __cplusplus
19879 extern "C"
19880 #endif
19881 char opendir ();
19882 int
19883 main ()
19884 {
19885 return opendir ();
19886 ;
19887 return 0;
19888 }
19889 _ACEOF
19890 for ac_lib in '' x; do
19891 if test -z "$ac_lib"; then
19892 ac_res="none required"
19893 else
19894 ac_res=-l$ac_lib
19895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19896 fi
19897 rm -f conftest.$ac_objext conftest$ac_exeext
19898 if { (ac_try="$ac_link"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_link") 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest$ac_exeext &&
19914 $as_test_x conftest$ac_exeext; then
19915 ac_cv_search_opendir=$ac_res
19916 else
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19921 fi
19923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19924 conftest$ac_exeext
19925 if test "${ac_cv_search_opendir+set}" = set; then
19926 break
19927 fi
19928 done
19929 if test "${ac_cv_search_opendir+set}" = set; then
19930 :
19931 else
19932 ac_cv_search_opendir=no
19933 fi
19934 rm conftest.$ac_ext
19935 LIBS=$ac_func_search_save_LIBS
19936 fi
19937 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19938 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19939 ac_res=$ac_cv_search_opendir
19940 if test "$ac_res" != no; then
19941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19943 fi
19945 fi
19967 for ac_header in features.h 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 signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
19968 do
19969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 fi
19976 ac_res=`eval echo '${'$as_ac_Header'}'`
19977 { echo "$as_me:$LINENO: result: $ac_res" >&5
19978 echo "${ECHO_T}$ac_res" >&6; }
19979 else
19980 # Is the header compilable?
19981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h. */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 $ac_includes_default
19990 #include <$ac_header>
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20009 ac_header_compiler=yes
20010 else
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_header_compiler=no
20015 fi
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20019 echo "${ECHO_T}$ac_header_compiler" >&6; }
20021 # Is the header present?
20022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20024 cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h. */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20030 #include <$ac_header>
20031 _ACEOF
20032 if { (ac_try="$ac_cpp conftest.$ac_ext"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } >/dev/null && {
20045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 }; then
20048 ac_header_preproc=yes
20049 else
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 ac_header_preproc=no
20054 fi
20056 rm -f conftest.err conftest.$ac_ext
20057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20058 echo "${ECHO_T}$ac_header_preproc" >&6; }
20060 # So? What about this header?
20061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20062 yes:no: )
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20067 ac_header_preproc=yes
20068 ;;
20069 no:yes:* )
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20083 ;;
20084 esac
20085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090 eval "$as_ac_Header=\$ac_header_preproc"
20091 fi
20092 ac_res=`eval echo '${'$as_ac_Header'}'`
20093 { echo "$as_me:$LINENO: result: $ac_res" >&5
20094 echo "${ECHO_T}$ac_res" >&6; }
20096 fi
20097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20098 cat >>confdefs.h <<_ACEOF
20099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20100 _ACEOF
20102 fi
20104 done
20107 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20108 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20109 if test "${ac_cv_c_const+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20119 int
20120 main ()
20121 {
20122 /* FIXME: Include the comments suggested by Paul. */
20123 #ifndef __cplusplus
20124 /* Ultrix mips cc rejects this. */
20125 typedef int charset[2];
20126 const charset cs;
20127 /* SunOS 4.1.1 cc rejects this. */
20128 char const *const *pcpcc;
20129 char **ppc;
20130 /* NEC SVR4.0.2 mips cc rejects this. */
20131 struct point {int x, y;};
20132 static struct point const zero = {0,0};
20133 /* AIX XL C 1.02.0.0 rejects this.
20134 It does not let you subtract one const X* pointer from another in
20135 an arm of an if-expression whose if-part is not a constant
20136 expression */
20137 const char *g = "string";
20138 pcpcc = &g + (g ? g-g : 0);
20139 /* HPUX 7.0 cc rejects these. */
20140 ++pcpcc;
20141 ppc = (char**) pcpcc;
20142 pcpcc = (char const *const *) ppc;
20143 { /* SCO 3.2v4 cc rejects this. */
20144 char *t;
20145 char const *s = 0 ? (char *) 0 : (char const *) 0;
20147 *t++ = 0;
20148 if (s) return 0;
20149 }
20150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20151 int x[] = {25, 17};
20152 const int *foo = &x[0];
20153 ++foo;
20154 }
20155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20156 typedef const int *iptr;
20157 iptr p = 0;
20158 ++p;
20159 }
20160 { /* AIX XL C 1.02.0.0 rejects this saying
20161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20162 struct s { int j; const int *ap[3]; };
20163 struct s *b; b->j = 5;
20164 }
20165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20166 const int foo = 10;
20167 if (!foo) return 0;
20168 }
20169 return !cs[0] && !zero.x;
20170 #endif
20172 ;
20173 return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_compile") 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && {
20190 test -z "$ac_c_werror_flag" ||
20191 test ! -s conftest.err
20192 } && test -s conftest.$ac_objext; then
20193 ac_cv_c_const=yes
20194 else
20195 echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20198 ac_cv_c_const=no
20199 fi
20201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 fi
20203 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20204 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20205 if test $ac_cv_c_const = no; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define const
20209 _ACEOF
20211 fi
20213 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20214 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20215 if test "${ac_cv_header_time+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h. */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include <sys/types.h>
20225 #include <sys/time.h>
20226 #include <time.h>
20228 int
20229 main ()
20230 {
20231 if ((struct tm *) 0)
20232 return 0;
20233 ;
20234 return 0;
20235 }
20236 _ACEOF
20237 rm -f conftest.$ac_objext
20238 if { (ac_try="$ac_compile"
20239 case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_compile") 2>conftest.er1
20245 ac_status=$?
20246 grep -v '^ *+' conftest.er1 >conftest.err
20247 rm -f conftest.er1
20248 cat conftest.err >&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } && {
20251 test -z "$ac_c_werror_flag" ||
20252 test ! -s conftest.err
20253 } && test -s conftest.$ac_objext; then
20254 ac_cv_header_time=yes
20255 else
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_cv_header_time=no
20260 fi
20262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20263 fi
20264 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20265 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20266 if test $ac_cv_header_time = yes; then
20268 cat >>confdefs.h <<\_ACEOF
20269 #define TIME_WITH_SYS_TIME 1
20270 _ACEOF
20272 fi
20274 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20275 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20276 if test "${ac_cv_struct_tm+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 #include <sys/types.h>
20286 #include <time.h>
20288 int
20289 main ()
20290 {
20291 struct tm tm;
20292 int *p = &tm.tm_sec;
20293 return !p;
20294 ;
20295 return 0;
20296 }
20297 _ACEOF
20298 rm -f conftest.$ac_objext
20299 if { (ac_try="$ac_compile"
20300 case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20303 esac
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305 (eval "$ac_compile") 2>conftest.er1
20306 ac_status=$?
20307 grep -v '^ *+' conftest.er1 >conftest.err
20308 rm -f conftest.er1
20309 cat conftest.err >&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } && {
20312 test -z "$ac_c_werror_flag" ||
20313 test ! -s conftest.err
20314 } && test -s conftest.$ac_objext; then
20315 ac_cv_struct_tm=time.h
20316 else
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_struct_tm=sys/time.h
20321 fi
20323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20324 fi
20325 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20326 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20327 if test $ac_cv_struct_tm = sys/time.h; then
20329 cat >>confdefs.h <<\_ACEOF
20330 #define TM_IN_SYS_TIME 1
20331 _ACEOF
20333 fi
20337 case $TERM in
20338 # for the most important terminal types we directly know the sequences
20339 xterm|xterm*|vt220|vt220*)
20340 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20341 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20342 ;;
20343 vt100|vt100*|cygwin)
20344 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20345 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20346 ;;
20347 *)
20348 T_MD=''
20349 T_ME=''
20350 ;;
20351 esac
20352 { echo "$as_me:$LINENO: result: " >&5
20353 echo "${ECHO_T}" >&6; }
20354 { echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
20355 echo "${ECHO_T}${T_MD}Test Library Functions${T_ME}" >&6; }
20358 { echo "$as_me:$LINENO: checking for acos" >&5
20359 echo $ECHO_N "checking for acos... $ECHO_C" >&6; }
20360 if test "${ac_cv_func_acos+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
20370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20371 #define acos innocuous_acos
20373 /* System header to define __stub macros and hopefully few prototypes,
20374 which can conflict with char acos (); below.
20375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20376 <limits.h> exists even on freestanding compilers. */
20378 #ifdef __STDC__
20379 # include <limits.h>
20380 #else
20381 # include <assert.h>
20382 #endif
20384 #undef acos
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20389 #ifdef __cplusplus
20390 extern "C"
20391 #endif
20392 char acos ();
20393 /* The GNU C library defines this for functions which it implements
20394 to always fail with ENOSYS. Some functions are actually named
20395 something starting with __ and the normal name is an alias. */
20396 #if defined __stub_acos || defined __stub___acos
20397 choke me
20398 #endif
20400 int
20401 main ()
20402 {
20403 return acos ();
20404 ;
20405 return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest$ac_exeext &&
20425 $as_test_x conftest$ac_exeext; then
20426 ac_cv_func_acos=yes
20427 else
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_cv_func_acos=no
20432 fi
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435 conftest$ac_exeext conftest.$ac_ext
20436 fi
20437 { echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
20438 echo "${ECHO_T}$ac_cv_func_acos" >&6; }
20439 if test $ac_cv_func_acos = yes; then
20440 :
20441 else
20443 { echo "$as_me:$LINENO: checking for acos in -lm" >&5
20444 echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6; }
20445 if test "${ac_cv_lib_m_acos+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448 ac_check_lib_save_LIBS=$LIBS
20449 LIBS="-lm $LIBS"
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h. */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20457 /* Override any GCC internal prototype to avoid an error.
20458 Use char because int might match the return type of a GCC
20459 builtin and then its argument prototype would still apply. */
20460 #ifdef __cplusplus
20461 extern "C"
20462 #endif
20463 char acos ();
20464 int
20465 main ()
20466 {
20467 return acos ();
20468 ;
20469 return 0;
20470 }
20471 _ACEOF
20472 rm -f conftest.$ac_objext conftest$ac_exeext
20473 if { (ac_try="$ac_link"
20474 case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_link") 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } && {
20486 test -z "$ac_c_werror_flag" ||
20487 test ! -s conftest.err
20488 } && test -s conftest$ac_exeext &&
20489 $as_test_x conftest$ac_exeext; then
20490 ac_cv_lib_m_acos=yes
20491 else
20492 echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20495 ac_cv_lib_m_acos=no
20496 fi
20498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20499 conftest$ac_exeext conftest.$ac_ext
20500 LIBS=$ac_check_lib_save_LIBS
20501 fi
20502 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
20503 echo "${ECHO_T}$ac_cv_lib_m_acos" >&6; }
20504 if test $ac_cv_lib_m_acos = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define HAVE_LIBM 1
20507 _ACEOF
20509 LIBS="-lm $LIBS"
20511 fi
20513 fi
20518 eval `./libtool --config | grep pic_flag`
20519 CFLAGS="$CFLAGS $pic_flag"
20523 for ac_func in strftime
20524 do
20525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h. */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20539 #define $ac_func innocuous_$ac_func
20541 /* System header to define __stub macros and hopefully few prototypes,
20542 which can conflict with char $ac_func (); below.
20543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20544 <limits.h> exists even on freestanding compilers. */
20546 #ifdef __STDC__
20547 # include <limits.h>
20548 #else
20549 # include <assert.h>
20550 #endif
20552 #undef $ac_func
20554 /* Override any GCC internal prototype to avoid an error.
20555 Use char because int might match the return type of a GCC
20556 builtin and then its argument prototype would still apply. */
20557 #ifdef __cplusplus
20558 extern "C"
20559 #endif
20560 char $ac_func ();
20561 /* The GNU C library defines this for functions which it implements
20562 to always fail with ENOSYS. Some functions are actually named
20563 something starting with __ and the normal name is an alias. */
20564 #if defined __stub_$ac_func || defined __stub___$ac_func
20565 choke me
20566 #endif
20568 int
20569 main ()
20570 {
20571 return $ac_func ();
20572 ;
20573 return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_link") 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest$ac_exeext &&
20593 $as_test_x conftest$ac_exeext; then
20594 eval "$as_ac_var=yes"
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 eval "$as_ac_var=no"
20600 fi
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 conftest$ac_exeext conftest.$ac_ext
20604 fi
20605 ac_res=`eval echo '${'$as_ac_var'}'`
20606 { echo "$as_me:$LINENO: result: $ac_res" >&5
20607 echo "${ECHO_T}$ac_res" >&6; }
20608 if test `eval echo '${'$as_ac_var'}'` = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20611 _ACEOF
20613 else
20614 # strftime is in -lintl on SCO UNIX.
20615 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20616 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
20617 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620 ac_check_lib_save_LIBS=$LIBS
20621 LIBS="-lintl $LIBS"
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h. */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20629 /* Override any GCC internal prototype to avoid an error.
20630 Use char because int might match the return type of a GCC
20631 builtin and then its argument prototype would still apply. */
20632 #ifdef __cplusplus
20633 extern "C"
20634 #endif
20635 char strftime ();
20636 int
20637 main ()
20638 {
20639 return strftime ();
20640 ;
20641 return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_link") 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest$ac_exeext &&
20661 $as_test_x conftest$ac_exeext; then
20662 ac_cv_lib_intl_strftime=yes
20663 else
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_cv_lib_intl_strftime=no
20668 fi
20670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20671 conftest$ac_exeext conftest.$ac_ext
20672 LIBS=$ac_check_lib_save_LIBS
20673 fi
20674 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20675 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20676 if test $ac_cv_lib_intl_strftime = yes; then
20677 cat >>confdefs.h <<\_ACEOF
20678 #define HAVE_STRFTIME 1
20679 _ACEOF
20681 LIBS="-lintl $LIBS"
20682 fi
20684 fi
20685 done
20688 for ac_func in vprintf
20689 do
20690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696 cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h. */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20704 #define $ac_func innocuous_$ac_func
20706 /* System header to define __stub macros and hopefully few prototypes,
20707 which can conflict with char $ac_func (); below.
20708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20709 <limits.h> exists even on freestanding compilers. */
20711 #ifdef __STDC__
20712 # include <limits.h>
20713 #else
20714 # include <assert.h>
20715 #endif
20717 #undef $ac_func
20719 /* Override any GCC internal prototype to avoid an error.
20720 Use char because int might match the return type of a GCC
20721 builtin and then its argument prototype would still apply. */
20722 #ifdef __cplusplus
20723 extern "C"
20724 #endif
20725 char $ac_func ();
20726 /* The GNU C library defines this for functions which it implements
20727 to always fail with ENOSYS. Some functions are actually named
20728 something starting with __ and the normal name is an alias. */
20729 #if defined __stub_$ac_func || defined __stub___$ac_func
20730 choke me
20731 #endif
20733 int
20734 main ()
20735 {
20736 return $ac_func ();
20737 ;
20738 return 0;
20739 }
20740 _ACEOF
20741 rm -f conftest.$ac_objext conftest$ac_exeext
20742 if { (ac_try="$ac_link"
20743 case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_link") 2>conftest.er1
20749 ac_status=$?
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && {
20755 test -z "$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 } && test -s conftest$ac_exeext &&
20758 $as_test_x conftest$ac_exeext; then
20759 eval "$as_ac_var=yes"
20760 else
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 eval "$as_ac_var=no"
20765 fi
20767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20768 conftest$ac_exeext conftest.$ac_ext
20769 fi
20770 ac_res=`eval echo '${'$as_ac_var'}'`
20771 { echo "$as_me:$LINENO: result: $ac_res" >&5
20772 echo "${ECHO_T}$ac_res" >&6; }
20773 if test `eval echo '${'$as_ac_var'}'` = yes; then
20774 cat >>confdefs.h <<_ACEOF
20775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20776 _ACEOF
20778 { echo "$as_me:$LINENO: checking for _doprnt" >&5
20779 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
20780 if test "${ac_cv_func__doprnt+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 else
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20791 #define _doprnt innocuous__doprnt
20793 /* System header to define __stub macros and hopefully few prototypes,
20794 which can conflict with char _doprnt (); below.
20795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20796 <limits.h> exists even on freestanding compilers. */
20798 #ifdef __STDC__
20799 # include <limits.h>
20800 #else
20801 # include <assert.h>
20802 #endif
20804 #undef _doprnt
20806 /* Override any GCC internal prototype to avoid an error.
20807 Use char because int might match the return type of a GCC
20808 builtin and then its argument prototype would still apply. */
20809 #ifdef __cplusplus
20810 extern "C"
20811 #endif
20812 char _doprnt ();
20813 /* The GNU C library defines this for functions which it implements
20814 to always fail with ENOSYS. Some functions are actually named
20815 something starting with __ and the normal name is an alias. */
20816 #if defined __stub__doprnt || defined __stub____doprnt
20817 choke me
20818 #endif
20820 int
20821 main ()
20822 {
20823 return _doprnt ();
20824 ;
20825 return 0;
20826 }
20827 _ACEOF
20828 rm -f conftest.$ac_objext conftest$ac_exeext
20829 if { (ac_try="$ac_link"
20830 case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20833 esac
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_link") 2>conftest.er1
20836 ac_status=$?
20837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } && {
20842 test -z "$ac_c_werror_flag" ||
20843 test ! -s conftest.err
20844 } && test -s conftest$ac_exeext &&
20845 $as_test_x conftest$ac_exeext; then
20846 ac_cv_func__doprnt=yes
20847 else
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20851 ac_cv_func__doprnt=no
20852 fi
20854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20855 conftest$ac_exeext conftest.$ac_ext
20856 fi
20857 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20858 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
20859 if test $ac_cv_func__doprnt = yes; then
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_DOPRNT 1
20863 _ACEOF
20865 fi
20867 fi
20868 done
20872 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20873 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20874 if test "${ac_cv_c_bigendian+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877 # See if sys/param.h defines the BYTE_ORDER macro.
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 #include <sys/types.h>
20885 #include <sys/param.h>
20887 int
20888 main ()
20889 {
20890 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20891 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20892 bogus endian macros
20893 #endif
20895 ;
20896 return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_compile") 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } && {
20913 test -z "$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20915 } && test -s conftest.$ac_objext; then
20916 # It does; now see whether it defined to BIG_ENDIAN or not.
20917 cat >conftest.$ac_ext <<_ACEOF
20918 /* confdefs.h. */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20923 #include <sys/types.h>
20924 #include <sys/param.h>
20926 int
20927 main ()
20928 {
20929 #if BYTE_ORDER != BIG_ENDIAN
20930 not big endian
20931 #endif
20933 ;
20934 return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext
20938 if { (ac_try="$ac_compile"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_compile") 2>conftest.er1
20945 ac_status=$?
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && {
20951 test -z "$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 } && test -s conftest.$ac_objext; then
20954 ac_cv_c_bigendian=yes
20955 else
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ac_cv_c_bigendian=no
20960 fi
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 else
20964 echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20967 # It does not; compile a test program.
20968 if test "$cross_compiling" = yes; then
20969 # try to guess the endianness by grepping values into an object file
20970 ac_cv_c_bigendian=unknown
20971 cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h. */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20978 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20979 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20980 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20981 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20982 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20983 int
20984 main ()
20985 {
20986 _ascii (); _ebcdic ();
20987 ;
20988 return 0;
20989 }
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_compile") 2>conftest.er1
20999 ac_status=$?
21000 grep -v '^ *+' conftest.er1 >conftest.err
21001 rm -f conftest.er1
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } && {
21005 test -z "$ac_c_werror_flag" ||
21006 test ! -s conftest.err
21007 } && test -s conftest.$ac_objext; then
21008 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21009 ac_cv_c_bigendian=yes
21010 fi
21011 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21012 if test "$ac_cv_c_bigendian" = unknown; then
21013 ac_cv_c_bigendian=no
21014 else
21015 # finding both strings is unlikely to happen, but who knows?
21016 ac_cv_c_bigendian=unknown
21017 fi
21018 fi
21019 else
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21024 fi
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 else
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h. */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 $ac_includes_default
21035 int
21036 main ()
21037 {
21039 /* Are we little or big endian? From Harbison&Steele. */
21040 union
21041 {
21042 long int l;
21043 char c[sizeof (long int)];
21044 } u;
21045 u.l = 1;
21046 return u.c[sizeof (long int) - 1] == 1;
21048 ;
21049 return 0;
21050 }
21051 _ACEOF
21052 rm -f conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_link") 2>&5
21060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21063 { (case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_try") 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; }; then
21072 ac_cv_c_bigendian=no
21073 else
21074 echo "$as_me: program exited with status $ac_status" >&5
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ( exit $ac_status )
21079 ac_cv_c_bigendian=yes
21080 fi
21081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21082 fi
21085 fi
21087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088 fi
21089 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21090 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21091 case $ac_cv_c_bigendian in
21092 yes)
21094 cat >>confdefs.h <<\_ACEOF
21095 #define WORDS_BIGENDIAN 1
21096 _ACEOF
21097 ;;
21098 no)
21099 ;;
21100 *)
21101 { { echo "$as_me:$LINENO: error: unknown endianness
21102 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21103 echo "$as_me: error: unknown endianness
21104 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21105 { (exit 1); exit 1; }; } ;;
21106 esac
21132 for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror strerror_r snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
21133 do
21134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21148 #define $ac_func innocuous_$ac_func
21150 /* System header to define __stub macros and hopefully few prototypes,
21151 which can conflict with char $ac_func (); below.
21152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21153 <limits.h> exists even on freestanding compilers. */
21155 #ifdef __STDC__
21156 # include <limits.h>
21157 #else
21158 # include <assert.h>
21159 #endif
21161 #undef $ac_func
21163 /* Override any GCC internal prototype to avoid an error.
21164 Use char because int might match the return type of a GCC
21165 builtin and then its argument prototype would still apply. */
21166 #ifdef __cplusplus
21167 extern "C"
21168 #endif
21169 char $ac_func ();
21170 /* The GNU C library defines this for functions which it implements
21171 to always fail with ENOSYS. Some functions are actually named
21172 something starting with __ and the normal name is an alias. */
21173 #if defined __stub_$ac_func || defined __stub___$ac_func
21174 choke me
21175 #endif
21177 int
21178 main ()
21179 {
21180 return $ac_func ();
21181 ;
21182 return 0;
21183 }
21184 _ACEOF
21185 rm -f conftest.$ac_objext conftest$ac_exeext
21186 if { (ac_try="$ac_link"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21190 esac
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_link") 2>conftest.er1
21193 ac_status=$?
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest$ac_exeext &&
21202 $as_test_x conftest$ac_exeext; then
21203 eval "$as_ac_var=yes"
21204 else
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 eval "$as_ac_var=no"
21209 fi
21211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21212 conftest$ac_exeext conftest.$ac_ext
21213 fi
21214 ac_res=`eval echo '${'$as_ac_var'}'`
21215 { echo "$as_me:$LINENO: result: $ac_res" >&5
21216 echo "${ECHO_T}$ac_res" >&6; }
21217 if test `eval echo '${'$as_ac_var'}'` = yes; then
21218 cat >>confdefs.h <<_ACEOF
21219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21220 _ACEOF
21222 fi
21223 done
21227 case $TERM in
21228 # for the most important terminal types we directly know the sequences
21229 xterm|xterm*|vt220|vt220*)
21230 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
21231 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
21232 ;;
21233 vt100|vt100*|cygwin)
21234 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
21235 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
21236 ;;
21237 *)
21238 T_MD=''
21239 T_ME=''
21240 ;;
21241 esac
21242 { echo "$as_me:$LINENO: result: " >&5
21243 echo "${ECHO_T}" >&6; }
21244 { echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
21245 echo "${ECHO_T}${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
21251 for ac_func in fdatasync
21252 do
21253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259 cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h. */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21267 #define $ac_func innocuous_$ac_func
21269 /* System header to define __stub macros and hopefully few prototypes,
21270 which can conflict with char $ac_func (); below.
21271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21272 <limits.h> exists even on freestanding compilers. */
21274 #ifdef __STDC__
21275 # include <limits.h>
21276 #else
21277 # include <assert.h>
21278 #endif
21280 #undef $ac_func
21282 /* Override any GCC internal prototype to avoid an error.
21283 Use char because int might match the return type of a GCC
21284 builtin and then its argument prototype would still apply. */
21285 #ifdef __cplusplus
21286 extern "C"
21287 #endif
21288 char $ac_func ();
21289 /* The GNU C library defines this for functions which it implements
21290 to always fail with ENOSYS. Some functions are actually named
21291 something starting with __ and the normal name is an alias. */
21292 #if defined __stub_$ac_func || defined __stub___$ac_func
21293 choke me
21294 #endif
21296 int
21297 main ()
21298 {
21299 return $ac_func ();
21300 ;
21301 return 0;
21302 }
21303 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_link") 2>conftest.er1
21312 ac_status=$?
21313 grep -v '^ *+' conftest.er1 >conftest.err
21314 rm -f conftest.er1
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } && {
21318 test -z "$ac_c_werror_flag" ||
21319 test ! -s conftest.err
21320 } && test -s conftest$ac_exeext &&
21321 $as_test_x conftest$ac_exeext; then
21322 eval "$as_ac_var=yes"
21323 else
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 eval "$as_ac_var=no"
21328 fi
21330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21331 conftest$ac_exeext conftest.$ac_ext
21332 fi
21333 ac_res=`eval echo '${'$as_ac_var'}'`
21334 { echo "$as_me:$LINENO: result: $ac_res" >&5
21335 echo "${ECHO_T}$ac_res" >&6; }
21336 if test `eval echo '${'$as_ac_var'}'` = yes; then
21337 cat >>confdefs.h <<_ACEOF
21338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21339 _ACEOF
21341 else
21342 { echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
21343 echo $ECHO_N "checking for fdatasync in -lrt... $ECHO_C" >&6; }
21344 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347 ac_check_lib_save_LIBS=$LIBS
21348 LIBS="-lrt $LIBS"
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h. */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21359 #ifdef __cplusplus
21360 extern "C"
21361 #endif
21362 char fdatasync ();
21363 int
21364 main ()
21365 {
21366 return fdatasync ();
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 ac_cv_lib_rt_fdatasync=yes
21390 else
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 ac_cv_lib_rt_fdatasync=no
21395 fi
21397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21398 conftest$ac_exeext conftest.$ac_ext
21399 LIBS=$ac_check_lib_save_LIBS
21400 fi
21401 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
21402 echo "${ECHO_T}$ac_cv_lib_rt_fdatasync" >&6; }
21403 if test $ac_cv_lib_rt_fdatasync = yes; then
21404 LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
21405 #define HAVE_FDATASYNC 1
21406 _ACEOF
21408 fi
21410 fi
21411 done
21414 for ac_func in fsync
21415 do
21416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422 cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h. */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21430 #define $ac_func innocuous_$ac_func
21432 /* System header to define __stub macros and hopefully few prototypes,
21433 which can conflict with char $ac_func (); below.
21434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21435 <limits.h> exists even on freestanding compilers. */
21437 #ifdef __STDC__
21438 # include <limits.h>
21439 #else
21440 # include <assert.h>
21441 #endif
21443 #undef $ac_func
21445 /* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21448 #ifdef __cplusplus
21449 extern "C"
21450 #endif
21451 char $ac_func ();
21452 /* The GNU C library defines this for functions which it implements
21453 to always fail with ENOSYS. Some functions are actually named
21454 something starting with __ and the normal name is an alias. */
21455 #if defined __stub_$ac_func || defined __stub___$ac_func
21456 choke me
21457 #endif
21459 int
21460 main ()
21461 {
21462 return $ac_func ();
21463 ;
21464 return 0;
21465 }
21466 _ACEOF
21467 rm -f conftest.$ac_objext conftest$ac_exeext
21468 if { (ac_try="$ac_link"
21469 case "(($ac_try" in
21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21472 esac
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_link") 2>conftest.er1
21475 ac_status=$?
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest$ac_exeext &&
21484 $as_test_x conftest$ac_exeext; then
21485 eval "$as_ac_var=yes"
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 eval "$as_ac_var=no"
21491 fi
21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21494 conftest$ac_exeext conftest.$ac_ext
21495 fi
21496 ac_res=`eval echo '${'$as_ac_var'}'`
21497 { echo "$as_me:$LINENO: result: $ac_res" >&5
21498 echo "${ECHO_T}$ac_res" >&6; }
21499 if test `eval echo '${'$as_ac_var'}'` = yes; then
21500 cat >>confdefs.h <<_ACEOF
21501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21502 _ACEOF
21504 fi
21505 done
21509 if test "x$enable_mmap" = "xyes"; then
21510 case "$host" in
21511 *cygwin*)
21512 # the normal mmap test does not work in cygwin
21514 for ac_func in mmap
21515 do
21516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522 cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h. */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21530 #define $ac_func innocuous_$ac_func
21532 /* System header to define __stub macros and hopefully few prototypes,
21533 which can conflict with char $ac_func (); below.
21534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21535 <limits.h> exists even on freestanding compilers. */
21537 #ifdef __STDC__
21538 # include <limits.h>
21539 #else
21540 # include <assert.h>
21541 #endif
21543 #undef $ac_func
21545 /* Override any GCC internal prototype to avoid an error.
21546 Use char because int might match the return type of a GCC
21547 builtin and then its argument prototype would still apply. */
21548 #ifdef __cplusplus
21549 extern "C"
21550 #endif
21551 char $ac_func ();
21552 /* The GNU C library defines this for functions which it implements
21553 to always fail with ENOSYS. Some functions are actually named
21554 something starting with __ and the normal name is an alias. */
21555 #if defined __stub_$ac_func || defined __stub___$ac_func
21556 choke me
21557 #endif
21559 int
21560 main ()
21561 {
21562 return $ac_func ();
21563 ;
21564 return 0;
21565 }
21566 _ACEOF
21567 rm -f conftest.$ac_objext conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_link") 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest$ac_exeext &&
21584 $as_test_x conftest$ac_exeext; then
21585 eval "$as_ac_var=yes"
21586 else
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 eval "$as_ac_var=no"
21591 fi
21593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21594 conftest$ac_exeext conftest.$ac_ext
21595 fi
21596 ac_res=`eval echo '${'$as_ac_var'}'`
21597 { echo "$as_me:$LINENO: result: $ac_res" >&5
21598 echo "${ECHO_T}$ac_res" >&6; }
21599 if test `eval echo '${'$as_ac_var'}'` = yes; then
21600 cat >>confdefs.h <<_ACEOF
21601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21602 _ACEOF
21604 fi
21605 done
21607 if test "x$ac_cv_func_mmap" = "xyes"; then
21608 ac_cv_func_mmap_fixed_mapped=yes
21609 fi
21610 ;;
21611 *)
21613 for ac_header in sys/mman.h
21614 do
21615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 fi
21622 ac_res=`eval echo '${'$as_ac_Header'}'`
21623 { echo "$as_me:$LINENO: result: $ac_res" >&5
21624 echo "${ECHO_T}$ac_res" >&6; }
21625 else
21626 # Is the header compilable?
21627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h. */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 $ac_includes_default
21636 #include <$ac_header>
21637 _ACEOF
21638 rm -f conftest.$ac_objext
21639 if { (ac_try="$ac_compile"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_compile") 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest.$ac_objext; then
21655 ac_header_compiler=yes
21656 else
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ac_header_compiler=no
21661 fi
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21665 echo "${ECHO_T}$ac_header_compiler" >&6; }
21667 # Is the header present?
21668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 #include <$ac_header>
21677 _ACEOF
21678 if { (ac_try="$ac_cpp conftest.$ac_ext"
21679 case "(($ac_try" in
21680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681 *) ac_try_echo=$ac_try;;
21682 esac
21683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21685 ac_status=$?
21686 grep -v '^ *+' conftest.er1 >conftest.err
21687 rm -f conftest.er1
21688 cat conftest.err >&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } >/dev/null && {
21691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21692 test ! -s conftest.err
21693 }; then
21694 ac_header_preproc=yes
21695 else
21696 echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21699 ac_header_preproc=no
21700 fi
21702 rm -f conftest.err conftest.$ac_ext
21703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21704 echo "${ECHO_T}$ac_header_preproc" >&6; }
21706 # So? What about this header?
21707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21708 yes:no: )
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21713 ac_header_preproc=yes
21714 ;;
21715 no:yes:* )
21716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21729 ;;
21730 esac
21731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736 eval "$as_ac_Header=\$ac_header_preproc"
21737 fi
21738 ac_res=`eval echo '${'$as_ac_Header'}'`
21739 { echo "$as_me:$LINENO: result: $ac_res" >&5
21740 echo "${ECHO_T}$ac_res" >&6; }
21742 fi
21743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21744 cat >>confdefs.h <<_ACEOF
21745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21746 _ACEOF
21748 fi
21750 done
21754 for ac_header in stdlib.h unistd.h
21755 do
21756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 fi
21763 ac_res=`eval echo '${'$as_ac_Header'}'`
21764 { echo "$as_me:$LINENO: result: $ac_res" >&5
21765 echo "${ECHO_T}$ac_res" >&6; }
21766 else
21767 # Is the header compilable?
21768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21770 cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h. */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 $ac_includes_default
21777 #include <$ac_header>
21778 _ACEOF
21779 rm -f conftest.$ac_objext
21780 if { (ac_try="$ac_compile"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_compile") 2>conftest.er1
21787 ac_status=$?
21788 grep -v '^ *+' conftest.er1 >conftest.err
21789 rm -f conftest.er1
21790 cat conftest.err >&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && {
21793 test -z "$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21795 } && test -s conftest.$ac_objext; then
21796 ac_header_compiler=yes
21797 else
21798 echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21801 ac_header_compiler=no
21802 fi
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21806 echo "${ECHO_T}$ac_header_compiler" >&6; }
21808 # Is the header present?
21809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21811 cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h. */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 #include <$ac_header>
21818 _ACEOF
21819 if { (ac_try="$ac_cpp conftest.$ac_ext"
21820 case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21826 ac_status=$?
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } >/dev/null && {
21832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21834 }; then
21835 ac_header_preproc=yes
21836 else
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ac_header_preproc=no
21841 fi
21843 rm -f conftest.err conftest.$ac_ext
21844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21845 echo "${ECHO_T}$ac_header_preproc" >&6; }
21847 # So? What about this header?
21848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21849 yes:no: )
21850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21854 ac_header_preproc=yes
21855 ;;
21856 no:yes:* )
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21870 ;;
21871 esac
21872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 else
21877 eval "$as_ac_Header=\$ac_header_preproc"
21878 fi
21879 ac_res=`eval echo '${'$as_ac_Header'}'`
21880 { echo "$as_me:$LINENO: result: $ac_res" >&5
21881 echo "${ECHO_T}$ac_res" >&6; }
21883 fi
21884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21885 cat >>confdefs.h <<_ACEOF
21886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21887 _ACEOF
21889 fi
21891 done
21894 for ac_func in getpagesize
21895 do
21896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21901 else
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h. */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21910 #define $ac_func innocuous_$ac_func
21912 /* System header to define __stub macros and hopefully few prototypes,
21913 which can conflict with char $ac_func (); below.
21914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21915 <limits.h> exists even on freestanding compilers. */
21917 #ifdef __STDC__
21918 # include <limits.h>
21919 #else
21920 # include <assert.h>
21921 #endif
21923 #undef $ac_func
21925 /* Override any GCC internal prototype to avoid an error.
21926 Use char because int might match the return type of a GCC
21927 builtin and then its argument prototype would still apply. */
21928 #ifdef __cplusplus
21929 extern "C"
21930 #endif
21931 char $ac_func ();
21932 /* The GNU C library defines this for functions which it implements
21933 to always fail with ENOSYS. Some functions are actually named
21934 something starting with __ and the normal name is an alias. */
21935 #if defined __stub_$ac_func || defined __stub___$ac_func
21936 choke me
21937 #endif
21939 int
21940 main ()
21941 {
21942 return $ac_func ();
21943 ;
21944 return 0;
21945 }
21946 _ACEOF
21947 rm -f conftest.$ac_objext conftest$ac_exeext
21948 if { (ac_try="$ac_link"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_link") 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest$ac_exeext &&
21964 $as_test_x conftest$ac_exeext; then
21965 eval "$as_ac_var=yes"
21966 else
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21970 eval "$as_ac_var=no"
21971 fi
21973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21974 conftest$ac_exeext conftest.$ac_ext
21975 fi
21976 ac_res=`eval echo '${'$as_ac_var'}'`
21977 { echo "$as_me:$LINENO: result: $ac_res" >&5
21978 echo "${ECHO_T}$ac_res" >&6; }
21979 if test `eval echo '${'$as_ac_var'}'` = yes; then
21980 cat >>confdefs.h <<_ACEOF
21981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21982 _ACEOF
21984 fi
21985 done
21987 { echo "$as_me:$LINENO: checking for working mmap" >&5
21988 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21989 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992 if test "$cross_compiling" = yes; then
21993 ac_cv_func_mmap_fixed_mapped=no
21994 else
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 /* malloc might have been renamed as rpl_malloc. */
22003 #undef malloc
22005 /* Thanks to Mike Haertel and Jim Avera for this test.
22006 Here is a matrix of mmap possibilities:
22007 mmap private not fixed
22008 mmap private fixed at somewhere currently unmapped
22009 mmap private fixed at somewhere already mapped
22010 mmap shared not fixed
22011 mmap shared fixed at somewhere currently unmapped
22012 mmap shared fixed at somewhere already mapped
22013 For private mappings, we should verify that changes cannot be read()
22014 back from the file, nor mmap's back from the file at a different
22015 address. (There have been systems where private was not correctly
22016 implemented like the infamous i386 svr4.0, and systems where the
22017 VM page cache was not coherent with the file system buffer cache
22018 like early versions of FreeBSD and possibly contemporary NetBSD.)
22019 For shared mappings, we should conversely verify that changes get
22020 propagated back to all the places they're supposed to be.
22022 Grep wants private fixed already mapped.
22023 The main things grep needs to know about mmap are:
22024 * does it exist and is it safe to write into the mmap'd area
22025 * how to use it (BSD variants) */
22027 #include <fcntl.h>
22028 #include <sys/mman.h>
22030 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22031 char *malloc ();
22032 #endif
22034 /* This mess was copied from the GNU getpagesize.h. */
22035 #ifndef HAVE_GETPAGESIZE
22036 /* Assume that all systems that can run configure have sys/param.h. */
22037 # ifndef HAVE_SYS_PARAM_H
22038 # define HAVE_SYS_PARAM_H 1
22039 # endif
22041 # ifdef _SC_PAGESIZE
22042 # define getpagesize() sysconf(_SC_PAGESIZE)
22043 # else /* no _SC_PAGESIZE */
22044 # ifdef HAVE_SYS_PARAM_H
22045 # include <sys/param.h>
22046 # ifdef EXEC_PAGESIZE
22047 # define getpagesize() EXEC_PAGESIZE
22048 # else /* no EXEC_PAGESIZE */
22049 # ifdef NBPG
22050 # define getpagesize() NBPG * CLSIZE
22051 # ifndef CLSIZE
22052 # define CLSIZE 1
22053 # endif /* no CLSIZE */
22054 # else /* no NBPG */
22055 # ifdef NBPC
22056 # define getpagesize() NBPC
22057 # else /* no NBPC */
22058 # ifdef PAGESIZE
22059 # define getpagesize() PAGESIZE
22060 # endif /* PAGESIZE */
22061 # endif /* no NBPC */
22062 # endif /* no NBPG */
22063 # endif /* no EXEC_PAGESIZE */
22064 # else /* no HAVE_SYS_PARAM_H */
22065 # define getpagesize() 8192 /* punt totally */
22066 # endif /* no HAVE_SYS_PARAM_H */
22067 # endif /* no _SC_PAGESIZE */
22069 #endif /* no HAVE_GETPAGESIZE */
22071 int
22072 main ()
22073 {
22074 char *data, *data2, *data3;
22075 int i, pagesize;
22076 int fd;
22078 pagesize = getpagesize ();
22080 /* First, make a file with some known garbage in it. */
22081 data = (char *) malloc (pagesize);
22082 if (!data)
22083 return 1;
22084 for (i = 0; i < pagesize; ++i)
22085 *(data + i) = rand ();
22086 umask (0);
22087 fd = creat ("conftest.mmap", 0600);
22088 if (fd < 0)
22089 return 1;
22090 if (write (fd, data, pagesize) != pagesize)
22091 return 1;
22092 close (fd);
22094 /* Next, try to mmap the file at a fixed address which already has
22095 something else allocated at it. If we can, also make sure that
22096 we see the same garbage. */
22097 fd = open ("conftest.mmap", O_RDWR);
22098 if (fd < 0)
22099 return 1;
22100 data2 = (char *) malloc (2 * pagesize);
22101 if (!data2)
22102 return 1;
22103 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22104 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22105 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22106 return 1;
22107 for (i = 0; i < pagesize; ++i)
22108 if (*(data + i) != *(data2 + i))
22109 return 1;
22111 /* Finally, make sure that changes to the mapped area do not
22112 percolate back to the file as seen by read(). (This is a bug on
22113 some variants of i386 svr4.0.) */
22114 for (i = 0; i < pagesize; ++i)
22115 *(data2 + i) = *(data2 + i) + 1;
22116 data3 = (char *) malloc (pagesize);
22117 if (!data3)
22118 return 1;
22119 if (read (fd, data3, pagesize) != pagesize)
22120 return 1;
22121 for (i = 0; i < pagesize; ++i)
22122 if (*(data + i) != *(data3 + i))
22123 return 1;
22124 close (fd);
22125 return 0;
22126 }
22127 _ACEOF
22128 rm -f conftest$ac_exeext
22129 if { (ac_try="$ac_link"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_link") 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22139 { (case "(($ac_try" in
22140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141 *) ac_try_echo=$ac_try;;
22142 esac
22143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22144 (eval "$ac_try") 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148 ac_cv_func_mmap_fixed_mapped=yes
22149 else
22150 echo "$as_me: program exited with status $ac_status" >&5
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 ( exit $ac_status )
22155 ac_cv_func_mmap_fixed_mapped=no
22156 fi
22157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22158 fi
22161 fi
22162 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22163 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22164 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22166 cat >>confdefs.h <<\_ACEOF
22167 #define HAVE_MMAP 1
22168 _ACEOF
22170 fi
22171 rm -f conftest.mmap
22176 for ac_func in mmap munmap msync
22177 do
22178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22182 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 else
22184 cat >conftest.$ac_ext <<_ACEOF
22185 /* confdefs.h. */
22186 _ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h. */
22190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22192 #define $ac_func innocuous_$ac_func
22194 /* System header to define __stub macros and hopefully few prototypes,
22195 which can conflict with char $ac_func (); below.
22196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22197 <limits.h> exists even on freestanding compilers. */
22199 #ifdef __STDC__
22200 # include <limits.h>
22201 #else
22202 # include <assert.h>
22203 #endif
22205 #undef $ac_func
22207 /* Override any GCC internal prototype to avoid an error.
22208 Use char because int might match the return type of a GCC
22209 builtin and then its argument prototype would still apply. */
22210 #ifdef __cplusplus
22211 extern "C"
22212 #endif
22213 char $ac_func ();
22214 /* The GNU C library defines this for functions which it implements
22215 to always fail with ENOSYS. Some functions are actually named
22216 something starting with __ and the normal name is an alias. */
22217 #if defined __stub_$ac_func || defined __stub___$ac_func
22218 choke me
22219 #endif
22221 int
22222 main ()
22223 {
22224 return $ac_func ();
22225 ;
22226 return 0;
22227 }
22228 _ACEOF
22229 rm -f conftest.$ac_objext conftest$ac_exeext
22230 if { (ac_try="$ac_link"
22231 case "(($ac_try" in
22232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22233 *) ac_try_echo=$ac_try;;
22234 esac
22235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22236 (eval "$ac_link") 2>conftest.er1
22237 ac_status=$?
22238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest$ac_exeext &&
22246 $as_test_x conftest$ac_exeext; then
22247 eval "$as_ac_var=yes"
22248 else
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22252 eval "$as_ac_var=no"
22253 fi
22255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22256 conftest$ac_exeext conftest.$ac_ext
22257 fi
22258 ac_res=`eval echo '${'$as_ac_var'}'`
22259 { echo "$as_me:$LINENO: result: $ac_res" >&5
22260 echo "${ECHO_T}$ac_res" >&6; }
22261 if test `eval echo '${'$as_ac_var'}'` = yes; then
22262 cat >>confdefs.h <<_ACEOF
22263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22264 _ACEOF
22266 fi
22267 done
22269 { echo "$as_me:$LINENO: checking whether madvise is declared" >&5
22270 echo $ECHO_N "checking whether madvise is declared... $ECHO_C" >&6; }
22271 if test "${ac_cv_have_decl_madvise+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274 cat >conftest.$ac_ext <<_ACEOF
22275 /* confdefs.h. */
22276 _ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22280 #ifdef HAVE_SYS_MMAN_H
22281 # include <sys/mman.h>
22282 #endif
22284 int
22285 main ()
22286 {
22287 #ifndef madvise
22288 (void) madvise;
22289 #endif
22291 ;
22292 return 0;
22293 }
22294 _ACEOF
22295 rm -f conftest.$ac_objext
22296 if { (ac_try="$ac_compile"
22297 case "(($ac_try" in
22298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299 *) ac_try_echo=$ac_try;;
22300 esac
22301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22302 (eval "$ac_compile") 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } && {
22309 test -z "$ac_c_werror_flag" ||
22310 test ! -s conftest.err
22311 } && test -s conftest.$ac_objext; then
22312 ac_cv_have_decl_madvise=yes
22313 else
22314 echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22317 ac_cv_have_decl_madvise=no
22318 fi
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321 fi
22322 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
22323 echo "${ECHO_T}$ac_cv_have_decl_madvise" >&6; }
22324 if test $ac_cv_have_decl_madvise = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define HAVE_DECL_MADVISE 1
22328 _ACEOF
22331 else
22332 cat >>confdefs.h <<_ACEOF
22333 #define HAVE_DECL_MADVISE 0
22334 _ACEOF
22337 fi
22340 if test "x$ac_cv_have_decl_madvise" = "xyes";
22341 then
22343 for ac_func in madvise
22344 do
22345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22359 #define $ac_func innocuous_$ac_func
22361 /* System header to define __stub macros and hopefully few prototypes,
22362 which can conflict with char $ac_func (); below.
22363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22364 <limits.h> exists even on freestanding compilers. */
22366 #ifdef __STDC__
22367 # include <limits.h>
22368 #else
22369 # include <assert.h>
22370 #endif
22372 #undef $ac_func
22374 /* Override any GCC internal prototype to avoid an error.
22375 Use char because int might match the return type of a GCC
22376 builtin and then its argument prototype would still apply. */
22377 #ifdef __cplusplus
22378 extern "C"
22379 #endif
22380 char $ac_func ();
22381 /* The GNU C library defines this for functions which it implements
22382 to always fail with ENOSYS. Some functions are actually named
22383 something starting with __ and the normal name is an alias. */
22384 #if defined __stub_$ac_func || defined __stub___$ac_func
22385 choke me
22386 #endif
22388 int
22389 main ()
22390 {
22391 return $ac_func ();
22392 ;
22393 return 0;
22394 }
22395 _ACEOF
22396 rm -f conftest.$ac_objext conftest$ac_exeext
22397 if { (ac_try="$ac_link"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_link") 2>conftest.er1
22404 ac_status=$?
22405 grep -v '^ *+' conftest.er1 >conftest.err
22406 rm -f conftest.er1
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest$ac_exeext &&
22413 $as_test_x conftest$ac_exeext; then
22414 eval "$as_ac_var=yes"
22415 else
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 eval "$as_ac_var=no"
22420 fi
22422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22423 conftest$ac_exeext conftest.$ac_ext
22424 fi
22425 ac_res=`eval echo '${'$as_ac_var'}'`
22426 { echo "$as_me:$LINENO: result: $ac_res" >&5
22427 echo "${ECHO_T}$ac_res" >&6; }
22428 if test `eval echo '${'$as_ac_var'}'` = yes; then
22429 cat >>confdefs.h <<_ACEOF
22430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22431 _ACEOF
22433 fi
22434 done
22436 else
22438 for ac_func in posix_madvise
22439 do
22440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446 cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h. */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22454 #define $ac_func innocuous_$ac_func
22456 /* System header to define __stub macros and hopefully few prototypes,
22457 which can conflict with char $ac_func (); below.
22458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22459 <limits.h> exists even on freestanding compilers. */
22461 #ifdef __STDC__
22462 # include <limits.h>
22463 #else
22464 # include <assert.h>
22465 #endif
22467 #undef $ac_func
22469 /* Override any GCC internal prototype to avoid an error.
22470 Use char because int might match the return type of a GCC
22471 builtin and then its argument prototype would still apply. */
22472 #ifdef __cplusplus
22473 extern "C"
22474 #endif
22475 char $ac_func ();
22476 /* The GNU C library defines this for functions which it implements
22477 to always fail with ENOSYS. Some functions are actually named
22478 something starting with __ and the normal name is an alias. */
22479 #if defined __stub_$ac_func || defined __stub___$ac_func
22480 choke me
22481 #endif
22483 int
22484 main ()
22485 {
22486 return $ac_func ();
22487 ;
22488 return 0;
22489 }
22490 _ACEOF
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_link") 2>conftest.er1
22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } && {
22505 test -z "$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 } && test -s conftest$ac_exeext &&
22508 $as_test_x conftest$ac_exeext; then
22509 eval "$as_ac_var=yes"
22510 else
22511 echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22514 eval "$as_ac_var=no"
22515 fi
22517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22518 conftest$ac_exeext conftest.$ac_ext
22519 fi
22520 ac_res=`eval echo '${'$as_ac_var'}'`
22521 { echo "$as_me:$LINENO: result: $ac_res" >&5
22522 echo "${ECHO_T}$ac_res" >&6; }
22523 if test `eval echo '${'$as_ac_var'}'` = yes; then
22524 cat >>confdefs.h <<_ACEOF
22525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22526 _ACEOF
22528 fi
22529 done
22531 if test "x$ac_cv_func_posix_madvise" != "xyes"; then
22532 { echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
22533 echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
22534 fi
22535 fi
22536 ;;
22537 esac
22538 if test "x$ac_cv_func_mmap" != "xyes";
22539 then
22540 { { echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
22541 echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
22542 { (exit 1); exit 1; }; }
22543 fi
22544 fi
22546 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
22547 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
22548 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22550 else
22551 cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h. */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22557 #define _XOPEN_SOURCE 600
22558 #include <fcntl.h>
22560 int
22561 main ()
22562 {
22563 #ifndef posix_fadvise
22564 (void) posix_fadvise;
22565 #endif
22567 ;
22568 return 0;
22569 }
22570 _ACEOF
22571 rm -f conftest.$ac_objext
22572 if { (ac_try="$ac_compile"
22573 case "(($ac_try" in
22574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575 *) ac_try_echo=$ac_try;;
22576 esac
22577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22578 (eval "$ac_compile") 2>conftest.er1
22579 ac_status=$?
22580 grep -v '^ *+' conftest.er1 >conftest.err
22581 rm -f conftest.er1
22582 cat conftest.err >&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } && {
22585 test -z "$ac_c_werror_flag" ||
22586 test ! -s conftest.err
22587 } && test -s conftest.$ac_objext; then
22588 ac_cv_have_decl_posix_fadvise=yes
22589 else
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22593 ac_cv_have_decl_posix_fadvise=no
22594 fi
22596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22597 fi
22598 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
22599 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
22600 if test $ac_cv_have_decl_posix_fadvise = yes; then
22602 cat >>confdefs.h <<_ACEOF
22603 #define HAVE_DECL_POSIX_FADVISE 1
22604 _ACEOF
22607 else
22608 cat >>confdefs.h <<_ACEOF
22609 #define HAVE_DECL_POSIX_FADVISE 0
22610 _ACEOF
22613 fi
22617 for ac_func in posix_fadvise
22618 do
22619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625 cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h. */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22633 #define $ac_func innocuous_$ac_func
22635 /* System header to define __stub macros and hopefully few prototypes,
22636 which can conflict with char $ac_func (); below.
22637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22638 <limits.h> exists even on freestanding compilers. */
22640 #ifdef __STDC__
22641 # include <limits.h>
22642 #else
22643 # include <assert.h>
22644 #endif
22646 #undef $ac_func
22648 /* Override any GCC internal prototype to avoid an error.
22649 Use char because int might match the return type of a GCC
22650 builtin and then its argument prototype would still apply. */
22651 #ifdef __cplusplus
22652 extern "C"
22653 #endif
22654 char $ac_func ();
22655 /* The GNU C library defines this for functions which it implements
22656 to always fail with ENOSYS. Some functions are actually named
22657 something starting with __ and the normal name is an alias. */
22658 #if defined __stub_$ac_func || defined __stub___$ac_func
22659 choke me
22660 #endif
22662 int
22663 main ()
22664 {
22665 return $ac_func ();
22666 ;
22667 return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext conftest$ac_exeext
22671 if { (ac_try="$ac_link"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22675 esac
22676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_link") 2>conftest.er1
22678 ac_status=$?
22679 grep -v '^ *+' conftest.er1 >conftest.err
22680 rm -f conftest.er1
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest$ac_exeext &&
22687 $as_test_x conftest$ac_exeext; then
22688 eval "$as_ac_var=yes"
22689 else
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 eval "$as_ac_var=no"
22694 fi
22696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22697 conftest$ac_exeext conftest.$ac_ext
22698 fi
22699 ac_res=`eval echo '${'$as_ac_var'}'`
22700 { echo "$as_me:$LINENO: result: $ac_res" >&5
22701 echo "${ECHO_T}$ac_res" >&6; }
22702 if test `eval echo '${'$as_ac_var'}'` = yes; then
22703 cat >>confdefs.h <<_ACEOF
22704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22705 _ACEOF
22707 fi
22708 done
22712 case $TERM in
22713 # for the most important terminal types we directly know the sequences
22714 xterm|xterm*|vt220|vt220*)
22715 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
22716 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
22717 ;;
22718 vt100|vt100*|cygwin)
22719 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
22720 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
22721 ;;
22722 *)
22723 T_MD=''
22724 T_ME=''
22725 ;;
22726 esac
22727 { echo "$as_me:$LINENO: result: " >&5
22728 echo "${ECHO_T}" >&6; }
22729 { echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
22730 echo "${ECHO_T}${T_MD}Libintl Processing${T_ME}" >&6; }
22734 GETTEXT_PACKAGE=rrdtool
22737 cat >>confdefs.h <<_ACEOF
22738 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
22739 _ACEOF
22744 for ac_header in locale.h
22745 do
22746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22752 fi
22753 ac_res=`eval echo '${'$as_ac_Header'}'`
22754 { echo "$as_me:$LINENO: result: $ac_res" >&5
22755 echo "${ECHO_T}$ac_res" >&6; }
22756 else
22757 # Is the header compilable?
22758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22760 cat >conftest.$ac_ext <<_ACEOF
22761 /* confdefs.h. */
22762 _ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h. */
22766 $ac_includes_default
22767 #include <$ac_header>
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (ac_try="$ac_compile"
22771 case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_compile") 2>conftest.er1
22777 ac_status=$?
22778 grep -v '^ *+' conftest.er1 >conftest.err
22779 rm -f conftest.er1
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } && {
22783 test -z "$ac_c_werror_flag" ||
22784 test ! -s conftest.err
22785 } && test -s conftest.$ac_objext; then
22786 ac_header_compiler=yes
22787 else
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22791 ac_header_compiler=no
22792 fi
22794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22796 echo "${ECHO_T}$ac_header_compiler" >&6; }
22798 # Is the header present?
22799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22801 cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h. */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 #include <$ac_header>
22808 _ACEOF
22809 if { (ac_try="$ac_cpp conftest.$ac_ext"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22813 esac
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22816 ac_status=$?
22817 grep -v '^ *+' conftest.er1 >conftest.err
22818 rm -f conftest.er1
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } >/dev/null && {
22822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 }; then
22825 ac_header_preproc=yes
22826 else
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22830 ac_header_preproc=no
22831 fi
22833 rm -f conftest.err conftest.$ac_ext
22834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22835 echo "${ECHO_T}$ac_header_preproc" >&6; }
22837 # So? What about this header?
22838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22839 yes:no: )
22840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22844 ac_header_preproc=yes
22845 ;;
22846 no:yes:* )
22847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22860 ;;
22861 esac
22862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22865 echo $ECHO_N "(cached) $ECHO_C" >&6
22866 else
22867 eval "$as_ac_Header=\$ac_header_preproc"
22868 fi
22869 ac_res=`eval echo '${'$as_ac_Header'}'`
22870 { echo "$as_me:$LINENO: result: $ac_res" >&5
22871 echo "${ECHO_T}$ac_res" >&6; }
22873 fi
22874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22875 cat >>confdefs.h <<_ACEOF
22876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22877 _ACEOF
22879 fi
22881 done
22883 if test $ac_cv_header_locale_h = yes; then
22884 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22885 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22886 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 else
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 #include <locale.h>
22896 int
22897 main ()
22898 {
22899 return LC_MESSAGES
22900 ;
22901 return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest.$ac_objext conftest$ac_exeext
22905 if { (ac_try="$ac_link"
22906 case "(($ac_try" in
22907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_link") 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest$ac_exeext &&
22921 $as_test_x conftest$ac_exeext; then
22922 am_cv_val_LC_MESSAGES=yes
22923 else
22924 echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22927 am_cv_val_LC_MESSAGES=no
22928 fi
22930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22931 conftest$ac_exeext conftest.$ac_ext
22932 fi
22933 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22934 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
22935 if test $am_cv_val_LC_MESSAGES = yes; then
22937 cat >>confdefs.h <<\_ACEOF
22938 #define HAVE_LC_MESSAGES 1
22939 _ACEOF
22941 fi
22942 fi
22943 USE_NLS=yes
22946 gt_cv_have_gettext=no
22948 CATOBJEXT=NONE
22949 XGETTEXT=:
22950 INTLLIBS=
22952 if test "${ac_cv_header_libintl_h+set}" = set; then
22953 { echo "$as_me:$LINENO: checking for libintl.h" >&5
22954 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22955 if test "${ac_cv_header_libintl_h+set}" = set; then
22956 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 fi
22958 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22959 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22960 else
22961 # Is the header compilable?
22962 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
22963 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
22964 cat >conftest.$ac_ext <<_ACEOF
22965 /* confdefs.h. */
22966 _ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22970 $ac_includes_default
22971 #include <libintl.h>
22972 _ACEOF
22973 rm -f conftest.$ac_objext
22974 if { (ac_try="$ac_compile"
22975 case "(($ac_try" in
22976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22977 *) ac_try_echo=$ac_try;;
22978 esac
22979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22980 (eval "$ac_compile") 2>conftest.er1
22981 ac_status=$?
22982 grep -v '^ *+' conftest.er1 >conftest.err
22983 rm -f conftest.er1
22984 cat conftest.err >&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } && {
22987 test -z "$ac_c_werror_flag" ||
22988 test ! -s conftest.err
22989 } && test -s conftest.$ac_objext; then
22990 ac_header_compiler=yes
22991 else
22992 echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22995 ac_header_compiler=no
22996 fi
22998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23000 echo "${ECHO_T}$ac_header_compiler" >&6; }
23002 # Is the header present?
23003 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
23004 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
23005 cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h. */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23011 #include <libintl.h>
23012 _ACEOF
23013 if { (ac_try="$ac_cpp conftest.$ac_ext"
23014 case "(($ac_try" in
23015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016 *) ac_try_echo=$ac_try;;
23017 esac
23018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23020 ac_status=$?
23021 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1
23023 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } >/dev/null && {
23026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23027 test ! -s conftest.err
23028 }; then
23029 ac_header_preproc=yes
23030 else
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23034 ac_header_preproc=no
23035 fi
23037 rm -f conftest.err conftest.$ac_ext
23038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23039 echo "${ECHO_T}$ac_header_preproc" >&6; }
23041 # So? What about this header?
23042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23043 yes:no: )
23044 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23045 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23046 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23047 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23048 ac_header_preproc=yes
23049 ;;
23050 no:yes:* )
23051 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23052 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23053 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
23054 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
23055 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23056 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23057 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
23058 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23060 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23062 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23064 ;;
23065 esac
23066 { echo "$as_me:$LINENO: checking for libintl.h" >&5
23067 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23068 if test "${ac_cv_header_libintl_h+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23070 else
23071 ac_cv_header_libintl_h=$ac_header_preproc
23072 fi
23073 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23074 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
23076 fi
23077 if test $ac_cv_header_libintl_h = yes; then
23078 gt_cv_func_dgettext_libintl="no"
23079 libintl_extra_libs=""
23081 #
23082 # First check in libc
23083 #
23084 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
23085 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
23086 if test "${gt_cv_func_ngettext_libc+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23088 else
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h. */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23096 #include <libintl.h>
23098 int
23099 main ()
23100 {
23101 return !ngettext ("","", 1)
23102 ;
23103 return 0;
23104 }
23105 _ACEOF
23106 rm -f conftest.$ac_objext conftest$ac_exeext
23107 if { (ac_try="$ac_link"
23108 case "(($ac_try" in
23109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23111 esac
23112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113 (eval "$ac_link") 2>conftest.er1
23114 ac_status=$?
23115 grep -v '^ *+' conftest.er1 >conftest.err
23116 rm -f conftest.er1
23117 cat conftest.err >&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } && {
23120 test -z "$ac_c_werror_flag" ||
23121 test ! -s conftest.err
23122 } && test -s conftest$ac_exeext &&
23123 $as_test_x conftest$ac_exeext; then
23124 gt_cv_func_ngettext_libc=yes
23125 else
23126 echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 gt_cv_func_ngettext_libc=no
23130 fi
23132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23133 conftest$ac_exeext conftest.$ac_ext
23135 fi
23136 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
23137 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
23139 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
23140 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
23141 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
23142 if test "${gt_cv_func_dgettext_libc+set}" = set; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23144 else
23145 cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h. */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23152 #include <libintl.h>
23154 int
23155 main ()
23156 {
23157 return !dgettext ("","")
23158 ;
23159 return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (ac_try="$ac_link"
23164 case "(($ac_try" in
23165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23166 *) ac_try_echo=$ac_try;;
23167 esac
23168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23169 (eval "$ac_link") 2>conftest.er1
23170 ac_status=$?
23171 grep -v '^ *+' conftest.er1 >conftest.err
23172 rm -f conftest.er1
23173 cat conftest.err >&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); } && {
23176 test -z "$ac_c_werror_flag" ||
23177 test ! -s conftest.err
23178 } && test -s conftest$ac_exeext &&
23179 $as_test_x conftest$ac_exeext; then
23180 gt_cv_func_dgettext_libc=yes
23181 else
23182 echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23185 gt_cv_func_dgettext_libc=no
23186 fi
23188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23189 conftest$ac_exeext conftest.$ac_ext
23191 fi
23192 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
23193 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
23194 fi
23196 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
23198 for ac_func in bind_textdomain_codeset
23199 do
23200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23204 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 else
23206 cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h. */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23214 #define $ac_func innocuous_$ac_func
23216 /* System header to define __stub macros and hopefully few prototypes,
23217 which can conflict with char $ac_func (); below.
23218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23219 <limits.h> exists even on freestanding compilers. */
23221 #ifdef __STDC__
23222 # include <limits.h>
23223 #else
23224 # include <assert.h>
23225 #endif
23227 #undef $ac_func
23229 /* Override any GCC internal prototype to avoid an error.
23230 Use char because int might match the return type of a GCC
23231 builtin and then its argument prototype would still apply. */
23232 #ifdef __cplusplus
23233 extern "C"
23234 #endif
23235 char $ac_func ();
23236 /* The GNU C library defines this for functions which it implements
23237 to always fail with ENOSYS. Some functions are actually named
23238 something starting with __ and the normal name is an alias. */
23239 #if defined __stub_$ac_func || defined __stub___$ac_func
23240 choke me
23241 #endif
23243 int
23244 main ()
23245 {
23246 return $ac_func ();
23247 ;
23248 return 0;
23249 }
23250 _ACEOF
23251 rm -f conftest.$ac_objext conftest$ac_exeext
23252 if { (ac_try="$ac_link"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23256 esac
23257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23258 (eval "$ac_link") 2>conftest.er1
23259 ac_status=$?
23260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } && {
23265 test -z "$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23267 } && test -s conftest$ac_exeext &&
23268 $as_test_x conftest$ac_exeext; then
23269 eval "$as_ac_var=yes"
23270 else
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 eval "$as_ac_var=no"
23275 fi
23277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23278 conftest$ac_exeext conftest.$ac_ext
23279 fi
23280 ac_res=`eval echo '${'$as_ac_var'}'`
23281 { echo "$as_me:$LINENO: result: $ac_res" >&5
23282 echo "${ECHO_T}$ac_res" >&6; }
23283 if test `eval echo '${'$as_ac_var'}'` = yes; then
23284 cat >>confdefs.h <<_ACEOF
23285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23286 _ACEOF
23288 fi
23289 done
23291 fi
23293 #
23294 # If we don't have everything we want, check in libintl
23295 #
23296 if test "$gt_cv_func_dgettext_libc" != "yes" \
23297 || test "$gt_cv_func_ngettext_libc" != "yes" \
23298 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
23300 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
23301 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
23302 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 else
23305 ac_check_lib_save_LIBS=$LIBS
23306 LIBS="-lintl $LIBS"
23307 cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h. */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23314 /* Override any GCC internal prototype to avoid an error.
23315 Use char because int might match the return type of a GCC
23316 builtin and then its argument prototype would still apply. */
23317 #ifdef __cplusplus
23318 extern "C"
23319 #endif
23320 char bindtextdomain ();
23321 int
23322 main ()
23323 {
23324 return bindtextdomain ();
23325 ;
23326 return 0;
23327 }
23328 _ACEOF
23329 rm -f conftest.$ac_objext conftest$ac_exeext
23330 if { (ac_try="$ac_link"
23331 case "(($ac_try" in
23332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23333 *) ac_try_echo=$ac_try;;
23334 esac
23335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23336 (eval "$ac_link") 2>conftest.er1
23337 ac_status=$?
23338 grep -v '^ *+' conftest.er1 >conftest.err
23339 rm -f conftest.er1
23340 cat conftest.err >&5
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } && {
23343 test -z "$ac_c_werror_flag" ||
23344 test ! -s conftest.err
23345 } && test -s conftest$ac_exeext &&
23346 $as_test_x conftest$ac_exeext; then
23347 ac_cv_lib_intl_bindtextdomain=yes
23348 else
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23352 ac_cv_lib_intl_bindtextdomain=no
23353 fi
23355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23356 conftest$ac_exeext conftest.$ac_ext
23357 LIBS=$ac_check_lib_save_LIBS
23358 fi
23359 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
23360 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
23361 if test $ac_cv_lib_intl_bindtextdomain = yes; then
23362 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23363 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23364 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23367 ac_check_lib_save_LIBS=$LIBS
23368 LIBS="-lintl $LIBS"
23369 cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h. */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23376 /* Override any GCC internal prototype to avoid an error.
23377 Use char because int might match the return type of a GCC
23378 builtin and then its argument prototype would still apply. */
23379 #ifdef __cplusplus
23380 extern "C"
23381 #endif
23382 char ngettext ();
23383 int
23384 main ()
23385 {
23386 return ngettext ();
23387 ;
23388 return 0;
23389 }
23390 _ACEOF
23391 rm -f conftest.$ac_objext conftest$ac_exeext
23392 if { (ac_try="$ac_link"
23393 case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_link") 2>conftest.er1
23399 ac_status=$?
23400 grep -v '^ *+' conftest.er1 >conftest.err
23401 rm -f conftest.er1
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest$ac_exeext &&
23408 $as_test_x conftest$ac_exeext; then
23409 ac_cv_lib_intl_ngettext=yes
23410 else
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23414 ac_cv_lib_intl_ngettext=no
23415 fi
23417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23418 conftest$ac_exeext conftest.$ac_ext
23419 LIBS=$ac_check_lib_save_LIBS
23420 fi
23421 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23422 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23423 if test $ac_cv_lib_intl_ngettext = yes; then
23424 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23425 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
23426 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23427 echo $ECHO_N "(cached) $ECHO_C" >&6
23428 else
23429 ac_check_lib_save_LIBS=$LIBS
23430 LIBS="-lintl $LIBS"
23431 cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h. */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23438 /* Override any GCC internal prototype to avoid an error.
23439 Use char because int might match the return type of a GCC
23440 builtin and then its argument prototype would still apply. */
23441 #ifdef __cplusplus
23442 extern "C"
23443 #endif
23444 char dgettext ();
23445 int
23446 main ()
23447 {
23448 return dgettext ();
23449 ;
23450 return 0;
23451 }
23452 _ACEOF
23453 rm -f conftest.$ac_objext conftest$ac_exeext
23454 if { (ac_try="$ac_link"
23455 case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23458 esac
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_link") 2>conftest.er1
23461 ac_status=$?
23462 grep -v '^ *+' conftest.er1 >conftest.err
23463 rm -f conftest.er1
23464 cat conftest.err >&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } && {
23467 test -z "$ac_c_werror_flag" ||
23468 test ! -s conftest.err
23469 } && test -s conftest$ac_exeext &&
23470 $as_test_x conftest$ac_exeext; then
23471 ac_cv_lib_intl_dgettext=yes
23472 else
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_cv_lib_intl_dgettext=no
23477 fi
23479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23480 conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23482 fi
23483 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23484 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23485 if test $ac_cv_lib_intl_dgettext = yes; then
23486 gt_cv_func_dgettext_libintl=yes
23487 fi
23489 fi
23491 fi
23494 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
23495 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
23496 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
23497 { echo "$as_me:$LINENO: result: " >&5
23498 echo "${ECHO_T}" >&6; }
23499 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
23500 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
23501 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
23502 echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504 ac_check_lib_save_LIBS=$LIBS
23505 LIBS="-lintl -liconv $LIBS"
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h. */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23513 /* Override any GCC internal prototype to avoid an error.
23514 Use char because int might match the return type of a GCC
23515 builtin and then its argument prototype would still apply. */
23516 #ifdef __cplusplus
23517 extern "C"
23518 #endif
23519 char ngettext ();
23520 int
23521 main ()
23522 {
23523 return ngettext ();
23524 ;
23525 return 0;
23526 }
23527 _ACEOF
23528 rm -f conftest.$ac_objext conftest$ac_exeext
23529 if { (ac_try="$ac_link"
23530 case "(($ac_try" in
23531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532 *) ac_try_echo=$ac_try;;
23533 esac
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535 (eval "$ac_link") 2>conftest.er1
23536 ac_status=$?
23537 grep -v '^ *+' conftest.er1 >conftest.err
23538 rm -f conftest.er1
23539 cat conftest.err >&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); } && {
23542 test -z "$ac_c_werror_flag" ||
23543 test ! -s conftest.err
23544 } && test -s conftest$ac_exeext &&
23545 $as_test_x conftest$ac_exeext; then
23546 ac_cv_lib_intl_ngettext=yes
23547 else
23548 echo "$as_me: failed program was:" >&5
23549 sed 's/^/| /' conftest.$ac_ext >&5
23551 ac_cv_lib_intl_ngettext=no
23552 fi
23554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23555 conftest$ac_exeext conftest.$ac_ext
23556 LIBS=$ac_check_lib_save_LIBS
23557 fi
23558 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
23559 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
23560 if test $ac_cv_lib_intl_ngettext = yes; then
23561 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
23562 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
23563 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23565 else
23566 ac_check_lib_save_LIBS=$LIBS
23567 LIBS="-lintl -liconv $LIBS"
23568 cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h. */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23575 /* Override any GCC internal prototype to avoid an error.
23576 Use char because int might match the return type of a GCC
23577 builtin and then its argument prototype would still apply. */
23578 #ifdef __cplusplus
23579 extern "C"
23580 #endif
23581 char dcgettext ();
23582 int
23583 main ()
23584 {
23585 return dcgettext ();
23586 ;
23587 return 0;
23588 }
23589 _ACEOF
23590 rm -f conftest.$ac_objext conftest$ac_exeext
23591 if { (ac_try="$ac_link"
23592 case "(($ac_try" in
23593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23594 *) ac_try_echo=$ac_try;;
23595 esac
23596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23597 (eval "$ac_link") 2>conftest.er1
23598 ac_status=$?
23599 grep -v '^ *+' conftest.er1 >conftest.err
23600 rm -f conftest.er1
23601 cat conftest.err >&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } && {
23604 test -z "$ac_c_werror_flag" ||
23605 test ! -s conftest.err
23606 } && test -s conftest$ac_exeext &&
23607 $as_test_x conftest$ac_exeext; then
23608 ac_cv_lib_intl_dcgettext=yes
23609 else
23610 echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23613 ac_cv_lib_intl_dcgettext=no
23614 fi
23616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23617 conftest$ac_exeext conftest.$ac_ext
23618 LIBS=$ac_check_lib_save_LIBS
23619 fi
23620 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
23621 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
23622 if test $ac_cv_lib_intl_dcgettext = yes; then
23623 gt_cv_func_dgettext_libintl=yes
23624 libintl_extra_libs=-liconv
23625 else
23626 :
23627 fi
23629 else
23630 :
23631 fi
23633 fi
23635 #
23636 # If we found libintl, then check in it for bind_textdomain_codeset();
23637 # we'll prefer libc if neither have bind_textdomain_codeset(),
23638 # and both have dgettext and ngettext
23639 #
23640 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
23641 glib_save_LIBS="$LIBS"
23642 LIBS="$LIBS -lintl $libintl_extra_libs"
23643 unset ac_cv_func_bind_textdomain_codeset
23645 for ac_func in bind_textdomain_codeset
23646 do
23647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 else
23653 cat >conftest.$ac_ext <<_ACEOF
23654 /* confdefs.h. */
23655 _ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h. */
23659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23661 #define $ac_func innocuous_$ac_func
23663 /* System header to define __stub macros and hopefully few prototypes,
23664 which can conflict with char $ac_func (); below.
23665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23666 <limits.h> exists even on freestanding compilers. */
23668 #ifdef __STDC__
23669 # include <limits.h>
23670 #else
23671 # include <assert.h>
23672 #endif
23674 #undef $ac_func
23676 /* Override any GCC internal prototype to avoid an error.
23677 Use char because int might match the return type of a GCC
23678 builtin and then its argument prototype would still apply. */
23679 #ifdef __cplusplus
23680 extern "C"
23681 #endif
23682 char $ac_func ();
23683 /* The GNU C library defines this for functions which it implements
23684 to always fail with ENOSYS. Some functions are actually named
23685 something starting with __ and the normal name is an alias. */
23686 #if defined __stub_$ac_func || defined __stub___$ac_func
23687 choke me
23688 #endif
23690 int
23691 main ()
23692 {
23693 return $ac_func ();
23694 ;
23695 return 0;
23696 }
23697 _ACEOF
23698 rm -f conftest.$ac_objext conftest$ac_exeext
23699 if { (ac_try="$ac_link"
23700 case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705 (eval "$ac_link") 2>conftest.er1
23706 ac_status=$?
23707 grep -v '^ *+' conftest.er1 >conftest.err
23708 rm -f conftest.er1
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest$ac_exeext &&
23715 $as_test_x conftest$ac_exeext; then
23716 eval "$as_ac_var=yes"
23717 else
23718 echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 eval "$as_ac_var=no"
23722 fi
23724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23725 conftest$ac_exeext conftest.$ac_ext
23726 fi
23727 ac_res=`eval echo '${'$as_ac_var'}'`
23728 { echo "$as_me:$LINENO: result: $ac_res" >&5
23729 echo "${ECHO_T}$ac_res" >&6; }
23730 if test `eval echo '${'$as_ac_var'}'` = yes; then
23731 cat >>confdefs.h <<_ACEOF
23732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23733 _ACEOF
23735 fi
23736 done
23738 LIBS="$glib_save_LIBS"
23740 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
23741 gt_cv_func_dgettext_libc=no
23742 else
23743 if test "$gt_cv_func_dgettext_libc" = "yes" \
23744 && test "$gt_cv_func_ngettext_libc" = "yes"; then
23745 gt_cv_func_dgettext_libintl=no
23746 fi
23747 fi
23748 fi
23749 fi
23751 if test "$gt_cv_func_dgettext_libc" = "yes" \
23752 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
23753 gt_cv_have_gettext=yes
23754 fi
23756 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
23757 INTLLIBS="-lintl $libintl_extra_libs"
23758 fi
23760 if test "$gt_cv_have_gettext" = "yes"; then
23762 cat >>confdefs.h <<\_ACEOF
23763 #define HAVE_GETTEXT 1
23764 _ACEOF
23766 # Extract the first word of "msgfmt", so it can be a program name with args.
23767 set dummy msgfmt; ac_word=$2
23768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23770 if test "${ac_cv_path_MSGFMT+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23772 else
23773 case "$MSGFMT" in
23774 /*)
23775 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23776 ;;
23777 *)
23778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23779 for ac_dir in $PATH; do
23780 test -z "$ac_dir" && ac_dir=.
23781 if test -f $ac_dir/$ac_word; then
23782 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
23783 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
23784 break
23785 fi
23786 fi
23787 done
23788 IFS="$ac_save_ifs"
23789 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
23790 ;;
23791 esac
23792 fi
23793 MSGFMT="$ac_cv_path_MSGFMT"
23794 if test "$MSGFMT" != "no"; then
23795 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
23796 echo "${ECHO_T}$MSGFMT" >&6; }
23797 else
23798 { echo "$as_me:$LINENO: result: no" >&5
23799 echo "${ECHO_T}no" >&6; }
23800 fi
23801 if test "$MSGFMT" != "no"; then
23802 glib_save_LIBS="$LIBS"
23803 LIBS="$LIBS $INTLLIBS"
23805 for ac_func in dcgettext
23806 do
23807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23811 echo $ECHO_N "(cached) $ECHO_C" >&6
23812 else
23813 cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h. */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23821 #define $ac_func innocuous_$ac_func
23823 /* System header to define __stub macros and hopefully few prototypes,
23824 which can conflict with char $ac_func (); below.
23825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23826 <limits.h> exists even on freestanding compilers. */
23828 #ifdef __STDC__
23829 # include <limits.h>
23830 #else
23831 # include <assert.h>
23832 #endif
23834 #undef $ac_func
23836 /* Override any GCC internal prototype to avoid an error.
23837 Use char because int might match the return type of a GCC
23838 builtin and then its argument prototype would still apply. */
23839 #ifdef __cplusplus
23840 extern "C"
23841 #endif
23842 char $ac_func ();
23843 /* The GNU C library defines this for functions which it implements
23844 to always fail with ENOSYS. Some functions are actually named
23845 something starting with __ and the normal name is an alias. */
23846 #if defined __stub_$ac_func || defined __stub___$ac_func
23847 choke me
23848 #endif
23850 int
23851 main ()
23852 {
23853 return $ac_func ();
23854 ;
23855 return 0;
23856 }
23857 _ACEOF
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (ac_try="$ac_link"
23860 case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_link") 2>conftest.er1
23866 ac_status=$?
23867 grep -v '^ *+' conftest.er1 >conftest.err
23868 rm -f conftest.er1
23869 cat conftest.err >&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } && {
23872 test -z "$ac_c_werror_flag" ||
23873 test ! -s conftest.err
23874 } && test -s conftest$ac_exeext &&
23875 $as_test_x conftest$ac_exeext; then
23876 eval "$as_ac_var=yes"
23877 else
23878 echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23881 eval "$as_ac_var=no"
23882 fi
23884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23885 conftest$ac_exeext conftest.$ac_ext
23886 fi
23887 ac_res=`eval echo '${'$as_ac_var'}'`
23888 { echo "$as_me:$LINENO: result: $ac_res" >&5
23889 echo "${ECHO_T}$ac_res" >&6; }
23890 if test `eval echo '${'$as_ac_var'}'` = yes; then
23891 cat >>confdefs.h <<_ACEOF
23892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23893 _ACEOF
23895 fi
23896 done
23898 MSGFMT_OPTS=
23899 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
23900 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
23901 cat >conftest.foo <<_ACEOF
23903 msgid ""
23904 msgstr ""
23905 "Content-Type: text/plain; charset=UTF-8\n"
23906 "Project-Id-Version: test 1.0\n"
23907 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
23908 "Last-Translator: test <foo@bar.xx>\n"
23909 "Language-Team: C <LL@li.org>\n"
23910 "MIME-Version: 1.0\n"
23911 "Content-Transfer-Encoding: 8bit\n"
23913 _ACEOF
23914 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
23915 (msgfmt -c -o /dev/null conftest.foo) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; then
23919 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
23920 echo "${ECHO_T}yes" >&6; }
23921 else { echo "$as_me:$LINENO: result: no" >&5
23922 echo "${ECHO_T}no" >&6; }
23923 echo "$as_me: failed input was:" >&5
23924 sed 's/^/| /' conftest.foo >&5
23925 fi
23927 # Extract the first word of "gmsgfmt", so it can be a program name with args.
23928 set dummy gmsgfmt; ac_word=$2
23929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23931 if test "${ac_cv_path_GMSGFMT+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23933 else
23934 case $GMSGFMT in
23935 [\\/]* | ?:[\\/]*)
23936 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23937 ;;
23938 *)
23939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23940 for as_dir in $PATH
23941 do
23942 IFS=$as_save_IFS
23943 test -z "$as_dir" && as_dir=.
23944 for ac_exec_ext in '' $ac_executable_extensions; do
23945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23946 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23948 break 2
23949 fi
23950 done
23951 done
23952 IFS=$as_save_IFS
23954 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23955 ;;
23956 esac
23957 fi
23958 GMSGFMT=$ac_cv_path_GMSGFMT
23959 if test -n "$GMSGFMT"; then
23960 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23961 echo "${ECHO_T}$GMSGFMT" >&6; }
23962 else
23963 { echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6; }
23965 fi
23968 # Extract the first word of "xgettext", so it can be a program name with args.
23969 set dummy xgettext; ac_word=$2
23970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23972 if test "${ac_cv_path_XGETTEXT+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974 else
23975 case "$XGETTEXT" in
23976 /*)
23977 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23978 ;;
23979 *)
23980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23981 for ac_dir in $PATH; do
23982 test -z "$ac_dir" && ac_dir=.
23983 if test -f $ac_dir/$ac_word; then
23984 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
23985 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
23986 break
23987 fi
23988 fi
23989 done
23990 IFS="$ac_save_ifs"
23991 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23992 ;;
23993 esac
23994 fi
23995 XGETTEXT="$ac_cv_path_XGETTEXT"
23996 if test "$XGETTEXT" != ":"; then
23997 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23998 echo "${ECHO_T}$XGETTEXT" >&6; }
23999 else
24000 { echo "$as_me:$LINENO: result: no" >&5
24001 echo "${ECHO_T}no" >&6; }
24002 fi
24004 cat >conftest.$ac_ext <<_ACEOF
24005 /* confdefs.h. */
24006 _ACEOF
24007 cat confdefs.h >>conftest.$ac_ext
24008 cat >>conftest.$ac_ext <<_ACEOF
24009 /* end confdefs.h. */
24011 int
24012 main ()
24013 {
24014 extern int _nl_msg_cat_cntr;
24015 return _nl_msg_cat_cntr
24016 ;
24017 return 0;
24018 }
24019 _ACEOF
24020 rm -f conftest.$ac_objext conftest$ac_exeext
24021 if { (ac_try="$ac_link"
24022 case "(($ac_try" in
24023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024 *) ac_try_echo=$ac_try;;
24025 esac
24026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24027 (eval "$ac_link") 2>conftest.er1
24028 ac_status=$?
24029 grep -v '^ *+' conftest.er1 >conftest.err
24030 rm -f conftest.er1
24031 cat conftest.err >&5
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } && {
24034 test -z "$ac_c_werror_flag" ||
24035 test ! -s conftest.err
24036 } && test -s conftest$ac_exeext &&
24037 $as_test_x conftest$ac_exeext; then
24038 CATOBJEXT=.gmo
24039 DATADIRNAME=share
24040 else
24041 echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24044 case $host in
24045 *-*-solaris*)
24046 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
24047 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
24048 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24050 else
24051 cat >conftest.$ac_ext <<_ACEOF
24052 /* confdefs.h. */
24053 _ACEOF
24054 cat confdefs.h >>conftest.$ac_ext
24055 cat >>conftest.$ac_ext <<_ACEOF
24056 /* end confdefs.h. */
24057 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
24058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24059 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
24061 /* System header to define __stub macros and hopefully few prototypes,
24062 which can conflict with char bind_textdomain_codeset (); below.
24063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24064 <limits.h> exists even on freestanding compilers. */
24066 #ifdef __STDC__
24067 # include <limits.h>
24068 #else
24069 # include <assert.h>
24070 #endif
24072 #undef bind_textdomain_codeset
24074 /* Override any GCC internal prototype to avoid an error.
24075 Use char because int might match the return type of a GCC
24076 builtin and then its argument prototype would still apply. */
24077 #ifdef __cplusplus
24078 extern "C"
24079 #endif
24080 char bind_textdomain_codeset ();
24081 /* The GNU C library defines this for functions which it implements
24082 to always fail with ENOSYS. Some functions are actually named
24083 something starting with __ and the normal name is an alias. */
24084 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
24085 choke me
24086 #endif
24088 int
24089 main ()
24090 {
24091 return bind_textdomain_codeset ();
24092 ;
24093 return 0;
24094 }
24095 _ACEOF
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (ac_try="$ac_link"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_link") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest$ac_exeext &&
24113 $as_test_x conftest$ac_exeext; then
24114 ac_cv_func_bind_textdomain_codeset=yes
24115 else
24116 echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24119 ac_cv_func_bind_textdomain_codeset=no
24120 fi
24122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24123 conftest$ac_exeext conftest.$ac_ext
24124 fi
24125 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
24126 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
24127 if test $ac_cv_func_bind_textdomain_codeset = yes; then
24128 CATOBJEXT=.gmo
24129 DATADIRNAME=share
24130 else
24131 CATOBJEXT=.mo
24132 DATADIRNAME=lib
24133 fi
24135 ;;
24136 *)
24137 CATOBJEXT=.mo
24138 DATADIRNAME=lib
24139 ;;
24140 esac
24141 fi
24143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24144 conftest$ac_exeext conftest.$ac_ext
24145 LIBS="$glib_save_LIBS"
24146 INSTOBJEXT=.mo
24147 else
24148 gt_cv_have_gettext=no
24149 fi
24150 fi
24152 fi
24156 if test "$gt_cv_have_gettext" = "yes" ; then
24158 cat >>confdefs.h <<\_ACEOF
24159 #define ENABLE_NLS 1
24160 _ACEOF
24162 fi
24164 if test "$XGETTEXT" != ":"; then
24165 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
24166 : ;
24167 else
24168 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
24169 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
24170 XGETTEXT=":"
24171 fi
24172 fi
24174 # We need to process the po/ directory.
24175 POSUB=po
24177 ac_config_commands="$ac_config_commands default-1"
24180 for lang in $ALL_LINGUAS; do
24181 GMOFILES="$GMOFILES $lang.gmo"
24182 POFILES="$POFILES $lang.po"
24183 done
24197 if test "$gt_cv_have_gettext" = "yes"; then
24198 if test "x$ALL_LINGUAS" = "x"; then
24199 LINGUAS=
24200 else
24201 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
24202 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
24203 NEW_LINGUAS=
24204 for presentlang in $ALL_LINGUAS; do
24205 useit=no
24206 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
24207 desiredlanguages="$LINGUAS"
24208 else
24209 desiredlanguages="$ALL_LINGUAS"
24210 fi
24211 for desiredlang in $desiredlanguages; do
24212 # Use the presentlang catalog if desiredlang is
24213 # a. equal to presentlang, or
24214 # b. a variant of presentlang (because in this case,
24215 # presentlang can be used as a fallback for messages
24216 # which are not translated in the desiredlang catalog).
24217 case "$desiredlang" in
24218 "$presentlang"*) useit=yes;;
24219 esac
24220 done
24221 if test $useit = yes; then
24222 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
24223 fi
24224 done
24225 LINGUAS=$NEW_LINGUAS
24226 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
24227 echo "${ECHO_T}$LINGUAS" >&6; }
24228 fi
24230 if test -n "$LINGUAS"; then
24231 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
24232 fi
24233 fi
24235 MKINSTALLDIRS=
24236 if test -n "$ac_aux_dir"; then
24237 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
24238 fi
24239 if test -z "$MKINSTALLDIRS"; then
24240 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
24241 fi
24244 test -d po || mkdir po
24245 if test "x$srcdir" != "x."; then
24246 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
24247 posrcprefix="$srcdir/"
24248 else
24249 posrcprefix="../$srcdir/"
24250 fi
24251 else
24252 posrcprefix="../"
24253 fi
24254 rm -f po/POTFILES
24255 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
24256 < $srcdir/po/POTFILES.in > po/POTFILES
24259 # Check whether --enable-libintl was given.
24260 if test "${enable_libintl+set}" = set; then
24261 enableval=$enable_libintl;
24262 else
24263 enable_libintl=yes
24264 fi
24267 if test x$enable_libintl = xyes; then
24269 case "$am__api_version" in
24270 1.01234)
24271 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
24272 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
24273 { (exit 1); exit 1; }; }
24274 ;;
24275 *)
24276 ;;
24277 esac
24279 if test -n "0.35.0"; then
24280 { echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
24281 echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
24283 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
24284 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
24285 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
24287 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
24288 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
24289 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
24290 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.35.0 or later." >&5
24291 echo "$as_me: error: Your intltool is too old. You need intltool 0.35.0 or later." >&2;}
24292 { (exit 1); exit 1; }; }
24293 fi
24295 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24296 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24297 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24298 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24299 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
24300 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24301 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24302 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24303 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24304 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24305 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24306 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
24307 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24308 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24309 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24310 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24311 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24312 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24333 # Use the tools built into the package, not the ones that are installed.
24334 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
24336 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
24338 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
24341 # Extract the first word of "perl", so it can be a program name with args.
24342 set dummy perl; ac_word=$2
24343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24345 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
24346 echo $ECHO_N "(cached) $ECHO_C" >&6
24347 else
24348 case $INTLTOOL_PERL in
24349 [\\/]* | ?:[\\/]*)
24350 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
24351 ;;
24352 *)
24353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24354 for as_dir in $PATH
24355 do
24356 IFS=$as_save_IFS
24357 test -z "$as_dir" && as_dir=.
24358 for ac_exec_ext in '' $ac_executable_extensions; do
24359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24360 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
24361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24362 break 2
24363 fi
24364 done
24365 done
24366 IFS=$as_save_IFS
24368 ;;
24369 esac
24370 fi
24371 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
24372 if test -n "$INTLTOOL_PERL"; then
24373 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
24374 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
24375 else
24376 { echo "$as_me:$LINENO: result: no" >&5
24377 echo "${ECHO_T}no" >&6; }
24378 fi
24381 if test -z "$INTLTOOL_PERL"; then
24382 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
24383 echo "$as_me: error: perl not found; required for intltool" >&2;}
24384 { (exit 1); exit 1; }; }
24385 fi
24386 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
24387 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
24388 echo "$as_me: error: perl 5.x required for intltool" >&2;}
24389 { (exit 1); exit 1; }; }
24390 fi
24391 if test "xno-xml" != "xno-xml"; then
24392 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
24393 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
24394 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
24395 { echo "$as_me:$LINENO: result: ok" >&5
24396 echo "${ECHO_T}ok" >&6; }
24397 else
24398 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
24399 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
24400 { (exit 1); exit 1; }; }
24401 fi
24402 fi
24404 # Extract the first word of "iconv", so it can be a program name with args.
24405 set dummy iconv; ac_word=$2
24406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24408 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
24409 echo $ECHO_N "(cached) $ECHO_C" >&6
24410 else
24411 case $INTLTOOL_ICONV in
24412 [\\/]* | ?:[\\/]*)
24413 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
24414 ;;
24415 *)
24416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24417 for as_dir in $PATH
24418 do
24419 IFS=$as_save_IFS
24420 test -z "$as_dir" && as_dir=.
24421 for ac_exec_ext in '' $ac_executable_extensions; do
24422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24423 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
24424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24425 break 2
24426 fi
24427 done
24428 done
24429 IFS=$as_save_IFS
24431 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
24432 ;;
24433 esac
24434 fi
24435 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
24436 if test -n "$INTLTOOL_ICONV"; then
24437 { echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
24438 echo "${ECHO_T}$INTLTOOL_ICONV" >&6; }
24439 else
24440 { echo "$as_me:$LINENO: result: no" >&5
24441 echo "${ECHO_T}no" >&6; }
24442 fi
24445 # Extract the first word of "msgfmt", so it can be a program name with args.
24446 set dummy msgfmt; ac_word=$2
24447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24449 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 else
24452 case $INTLTOOL_MSGFMT in
24453 [\\/]* | ?:[\\/]*)
24454 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
24455 ;;
24456 *)
24457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24458 for as_dir in $PATH
24459 do
24460 IFS=$as_save_IFS
24461 test -z "$as_dir" && as_dir=.
24462 for ac_exec_ext in '' $ac_executable_extensions; do
24463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24464 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
24465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24466 break 2
24467 fi
24468 done
24469 done
24470 IFS=$as_save_IFS
24472 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
24473 ;;
24474 esac
24475 fi
24476 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
24477 if test -n "$INTLTOOL_MSGFMT"; then
24478 { echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
24479 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6; }
24480 else
24481 { echo "$as_me:$LINENO: result: no" >&5
24482 echo "${ECHO_T}no" >&6; }
24483 fi
24486 # Extract the first word of "msgmerge", so it can be a program name with args.
24487 set dummy msgmerge; ac_word=$2
24488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24490 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
24492 else
24493 case $INTLTOOL_MSGMERGE in
24494 [\\/]* | ?:[\\/]*)
24495 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
24496 ;;
24497 *)
24498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24499 for as_dir in $PATH
24500 do
24501 IFS=$as_save_IFS
24502 test -z "$as_dir" && as_dir=.
24503 for ac_exec_ext in '' $ac_executable_extensions; do
24504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24505 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
24506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24507 break 2
24508 fi
24509 done
24510 done
24511 IFS=$as_save_IFS
24513 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
24514 ;;
24515 esac
24516 fi
24517 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
24518 if test -n "$INTLTOOL_MSGMERGE"; then
24519 { echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
24520 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6; }
24521 else
24522 { echo "$as_me:$LINENO: result: no" >&5
24523 echo "${ECHO_T}no" >&6; }
24524 fi
24527 # Extract the first word of "xgettext", so it can be a program name with args.
24528 set dummy xgettext; ac_word=$2
24529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24531 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
24533 else
24534 case $INTLTOOL_XGETTEXT in
24535 [\\/]* | ?:[\\/]*)
24536 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
24537 ;;
24538 *)
24539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24540 for as_dir in $PATH
24541 do
24542 IFS=$as_save_IFS
24543 test -z "$as_dir" && as_dir=.
24544 for ac_exec_ext in '' $ac_executable_extensions; do
24545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24546 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
24547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24548 break 2
24549 fi
24550 done
24551 done
24552 IFS=$as_save_IFS
24554 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
24555 ;;
24556 esac
24557 fi
24558 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
24559 if test -n "$INTLTOOL_XGETTEXT"; then
24560 { echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
24561 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6; }
24562 else
24563 { echo "$as_me:$LINENO: result: no" >&5
24564 echo "${ECHO_T}no" >&6; }
24565 fi
24569 # Substitute ALL_LINGUAS so we can use it in po/Makefile
24572 # Set DATADIRNAME correctly if it is not set yet
24573 # (copied from glib-gettext.m4)
24574 if test -z "$DATADIRNAME"; then
24575 cat >conftest.$ac_ext <<_ACEOF
24576 /* confdefs.h. */
24577 _ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h. */
24582 int
24583 main ()
24584 {
24585 extern int _nl_msg_cat_cntr;
24586 return _nl_msg_cat_cntr
24587 ;
24588 return 0;
24589 }
24590 _ACEOF
24591 rm -f conftest.$ac_objext conftest$ac_exeext
24592 if { (ac_try="$ac_link"
24593 case "(($ac_try" in
24594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595 *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_link") 2>conftest.er1
24599 ac_status=$?
24600 grep -v '^ *+' conftest.er1 >conftest.err
24601 rm -f conftest.er1
24602 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } && {
24605 test -z "$ac_c_werror_flag" ||
24606 test ! -s conftest.err
24607 } && test -s conftest$ac_exeext &&
24608 $as_test_x conftest$ac_exeext; then
24609 DATADIRNAME=share
24610 else
24611 echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24614 case $host in
24615 *-*-solaris*)
24616 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
24617 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
24618 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
24619 echo $ECHO_N "(cached) $ECHO_C" >&6
24620 else
24621 cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h. */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h. */
24627 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
24628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24629 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
24631 /* System header to define __stub macros and hopefully few prototypes,
24632 which can conflict with char bind_textdomain_codeset (); below.
24633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24634 <limits.h> exists even on freestanding compilers. */
24636 #ifdef __STDC__
24637 # include <limits.h>
24638 #else
24639 # include <assert.h>
24640 #endif
24642 #undef bind_textdomain_codeset
24644 /* Override any GCC internal prototype to avoid an error.
24645 Use char because int might match the return type of a GCC
24646 builtin and then its argument prototype would still apply. */
24647 #ifdef __cplusplus
24648 extern "C"
24649 #endif
24650 char bind_textdomain_codeset ();
24651 /* The GNU C library defines this for functions which it implements
24652 to always fail with ENOSYS. Some functions are actually named
24653 something starting with __ and the normal name is an alias. */
24654 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
24655 choke me
24656 #endif
24658 int
24659 main ()
24660 {
24661 return bind_textdomain_codeset ();
24662 ;
24663 return 0;
24664 }
24665 _ACEOF
24666 rm -f conftest.$ac_objext conftest$ac_exeext
24667 if { (ac_try="$ac_link"
24668 case "(($ac_try" in
24669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24671 esac
24672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673 (eval "$ac_link") 2>conftest.er1
24674 ac_status=$?
24675 grep -v '^ *+' conftest.er1 >conftest.err
24676 rm -f conftest.er1
24677 cat conftest.err >&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } && {
24680 test -z "$ac_c_werror_flag" ||
24681 test ! -s conftest.err
24682 } && test -s conftest$ac_exeext &&
24683 $as_test_x conftest$ac_exeext; then
24684 ac_cv_func_bind_textdomain_codeset=yes
24685 else
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24689 ac_cv_func_bind_textdomain_codeset=no
24690 fi
24692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24693 conftest$ac_exeext conftest.$ac_ext
24694 fi
24695 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
24696 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
24697 if test $ac_cv_func_bind_textdomain_codeset = yes; then
24698 DATADIRNAME=share
24699 else
24700 DATADIRNAME=lib
24701 fi
24703 ;;
24704 *)
24705 DATADIRNAME=lib
24706 ;;
24707 esac
24708 fi
24710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24711 conftest$ac_exeext conftest.$ac_ext
24712 fi
24718 ac_config_commands="$ac_config_commands intltool"
24722 fi
24724 if test x$enable_libintl = xyes -a x$MSGFMT = xno; then
24725 { echo "$as_me:$LINENO: WARNING: I could not find msgfmt. Diabeling libintl build." >&5
24726 echo "$as_me: WARNING: I could not find msgfmt. Diabeling libintl build." >&2;}
24727 enable_libintl=no
24728 fi
24730 if test x$enable_libintl = xyes; then
24732 for ac_header in libintl.h
24733 do
24734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24739 echo $ECHO_N "(cached) $ECHO_C" >&6
24740 fi
24741 ac_res=`eval echo '${'$as_ac_Header'}'`
24742 { echo "$as_me:$LINENO: result: $ac_res" >&5
24743 echo "${ECHO_T}$ac_res" >&6; }
24744 else
24745 # Is the header compilable?
24746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24748 cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h. */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24754 $ac_includes_default
24755 #include <$ac_header>
24756 _ACEOF
24757 rm -f conftest.$ac_objext
24758 if { (ac_try="$ac_compile"
24759 case "(($ac_try" in
24760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761 *) ac_try_echo=$ac_try;;
24762 esac
24763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24764 (eval "$ac_compile") 2>conftest.er1
24765 ac_status=$?
24766 grep -v '^ *+' conftest.er1 >conftest.err
24767 rm -f conftest.er1
24768 cat conftest.err >&5
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && {
24771 test -z "$ac_c_werror_flag" ||
24772 test ! -s conftest.err
24773 } && test -s conftest.$ac_objext; then
24774 ac_header_compiler=yes
24775 else
24776 echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24779 ac_header_compiler=no
24780 fi
24782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24784 echo "${ECHO_T}$ac_header_compiler" >&6; }
24786 # Is the header present?
24787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24789 cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h. */
24791 _ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h. */
24795 #include <$ac_header>
24796 _ACEOF
24797 if { (ac_try="$ac_cpp conftest.$ac_ext"
24798 case "(($ac_try" in
24799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800 *) ac_try_echo=$ac_try;;
24801 esac
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24804 ac_status=$?
24805 grep -v '^ *+' conftest.er1 >conftest.err
24806 rm -f conftest.er1
24807 cat conftest.err >&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } >/dev/null && {
24810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24811 test ! -s conftest.err
24812 }; then
24813 ac_header_preproc=yes
24814 else
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24818 ac_header_preproc=no
24819 fi
24821 rm -f conftest.err conftest.$ac_ext
24822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24823 echo "${ECHO_T}$ac_header_preproc" >&6; }
24825 # So? What about this header?
24826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24827 yes:no: )
24828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24832 ac_header_preproc=yes
24833 ;;
24834 no:yes:* )
24835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24848 ;;
24849 esac
24850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855 eval "$as_ac_Header=\$ac_header_preproc"
24856 fi
24857 ac_res=`eval echo '${'$as_ac_Header'}'`
24858 { echo "$as_me:$LINENO: result: $ac_res" >&5
24859 echo "${ECHO_T}$ac_res" >&6; }
24861 fi
24862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24863 cat >>confdefs.h <<_ACEOF
24864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24865 _ACEOF
24867 else
24868 { echo "$as_me:$LINENO: result: disabeling libintl build" >&5
24869 echo "${ECHO_T}disabeling libintl build" >&6; }; enable_libintl=no
24870 fi
24872 done
24874 fi
24876 if test x$enable_libintl = xyes ; then
24877 { echo "$as_me:$LINENO: checking for libintl_gettext in -lintl" >&5
24878 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6; }
24879 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
24880 echo $ECHO_N "(cached) $ECHO_C" >&6
24881 else
24882 ac_check_lib_save_LIBS=$LIBS
24883 LIBS="-lintl $LIBS"
24884 cat >conftest.$ac_ext <<_ACEOF
24885 /* confdefs.h. */
24886 _ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h. */
24891 /* Override any GCC internal prototype to avoid an error.
24892 Use char because int might match the return type of a GCC
24893 builtin and then its argument prototype would still apply. */
24894 #ifdef __cplusplus
24895 extern "C"
24896 #endif
24897 char libintl_gettext ();
24898 int
24899 main ()
24900 {
24901 return libintl_gettext ();
24902 ;
24903 return 0;
24904 }
24905 _ACEOF
24906 rm -f conftest.$ac_objext conftest$ac_exeext
24907 if { (ac_try="$ac_link"
24908 case "(($ac_try" in
24909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24911 esac
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913 (eval "$ac_link") 2>conftest.er1
24914 ac_status=$?
24915 grep -v '^ *+' conftest.er1 >conftest.err
24916 rm -f conftest.er1
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest$ac_exeext &&
24923 $as_test_x conftest$ac_exeext; then
24924 ac_cv_lib_intl_libintl_gettext=yes
24925 else
24926 echo "$as_me: failed program was:" >&5
24927 sed 's/^/| /' conftest.$ac_ext >&5
24929 ac_cv_lib_intl_libintl_gettext=no
24930 fi
24932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24933 conftest$ac_exeext conftest.$ac_ext
24934 LIBS=$ac_check_lib_save_LIBS
24935 fi
24936 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_libintl_gettext" >&5
24937 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6; }
24938 if test $ac_cv_lib_intl_libintl_gettext = yes; then
24939 LIB_LIBINTL="-lintl"
24940 fi
24942 fi
24948 if test x$enable_libintl = xyes; then
24949 BUILD_LIBINTL_TRUE=
24950 BUILD_LIBINTL_FALSE='#'
24951 else
24952 BUILD_LIBINTL_TRUE='#'
24953 BUILD_LIBINTL_FALSE=
24954 fi
24957 if test x$enable_libintl = xyes; then
24959 cat >>confdefs.h <<\_ACEOF
24960 #define BUILD_LIBINTL
24961 _ACEOF
24963 fi
24966 case $TERM in
24967 # for the most important terminal types we directly know the sequences
24968 xterm|xterm*|vt220|vt220*)
24969 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
24970 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
24971 ;;
24972 vt100|vt100*|cygwin)
24973 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
24974 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
24975 ;;
24976 *)
24977 T_MD=''
24978 T_ME=''
24979 ;;
24980 esac
24981 { echo "$as_me:$LINENO: result: " >&5
24982 echo "${ECHO_T}" >&6; }
24983 { echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
24984 echo "${ECHO_T}${T_MD}IEEE Math Checks${T_ME}" >&6; }
24989 for ac_func in fpclassify
24990 do
24991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997 cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h. */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25005 #define $ac_func innocuous_$ac_func
25007 /* System header to define __stub macros and hopefully few prototypes,
25008 which can conflict with char $ac_func (); below.
25009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25010 <limits.h> exists even on freestanding compilers. */
25012 #ifdef __STDC__
25013 # include <limits.h>
25014 #else
25015 # include <assert.h>
25016 #endif
25018 #undef $ac_func
25020 /* Override any GCC internal prototype to avoid an error.
25021 Use char because int might match the return type of a GCC
25022 builtin and then its argument prototype would still apply. */
25023 #ifdef __cplusplus
25024 extern "C"
25025 #endif
25026 char $ac_func ();
25027 /* The GNU C library defines this for functions which it implements
25028 to always fail with ENOSYS. Some functions are actually named
25029 something starting with __ and the normal name is an alias. */
25030 #if defined __stub_$ac_func || defined __stub___$ac_func
25031 choke me
25032 #endif
25034 int
25035 main ()
25036 {
25037 return $ac_func ();
25038 ;
25039 return 0;
25040 }
25041 _ACEOF
25042 rm -f conftest.$ac_objext conftest$ac_exeext
25043 if { (ac_try="$ac_link"
25044 case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25047 esac
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049 (eval "$ac_link") 2>conftest.er1
25050 ac_status=$?
25051 grep -v '^ *+' conftest.er1 >conftest.err
25052 rm -f conftest.er1
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } && {
25056 test -z "$ac_c_werror_flag" ||
25057 test ! -s conftest.err
25058 } && test -s conftest$ac_exeext &&
25059 $as_test_x conftest$ac_exeext; then
25060 eval "$as_ac_var=yes"
25061 else
25062 echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25065 eval "$as_ac_var=no"
25066 fi
25068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25069 conftest$ac_exeext conftest.$ac_ext
25070 fi
25071 ac_res=`eval echo '${'$as_ac_var'}'`
25072 { echo "$as_me:$LINENO: result: $ac_res" >&5
25073 echo "${ECHO_T}$ac_res" >&6; }
25074 if test `eval echo '${'$as_ac_var'}'` = yes; then
25075 cat >>confdefs.h <<_ACEOF
25076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25077 _ACEOF
25079 else
25080 { echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
25081 echo $ECHO_N "checking for fpclassify with <math.h>... $ECHO_C" >&6; }
25082 cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h. */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25088 #include <math.h>
25089 volatile int x;volatile float f;
25090 int
25091 main ()
25092 {
25093 x = fpclassify(f)
25094 ;
25095 return 0;
25096 }
25097 _ACEOF
25098 rm -f conftest.$ac_objext conftest$ac_exeext
25099 if { (ac_try="$ac_link"
25100 case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103 esac
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105 (eval "$ac_link") 2>conftest.er1
25106 ac_status=$?
25107 grep -v '^ *+' conftest.er1 >conftest.err
25108 rm -f conftest.er1
25109 cat conftest.err >&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } && {
25112 test -z "$ac_c_werror_flag" ||
25113 test ! -s conftest.err
25114 } && test -s conftest$ac_exeext &&
25115 $as_test_x conftest$ac_exeext; then
25116 { echo "$as_me:$LINENO: result: yes" >&5
25117 echo "${ECHO_T}yes" >&6; }
25118 cat >>confdefs.h <<\_ACEOF
25119 #define HAVE_FPCLASSIFY 1
25120 _ACEOF
25122 else
25123 echo "$as_me: failed program was:" >&5
25124 sed 's/^/| /' conftest.$ac_ext >&5
25126 { echo "$as_me:$LINENO: result: no" >&5
25127 echo "${ECHO_T}no" >&6; }
25128 fi
25130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25131 conftest$ac_exeext conftest.$ac_ext
25132 fi
25133 done
25137 for ac_func in isinf
25138 do
25139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25143 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 else
25145 cat >conftest.$ac_ext <<_ACEOF
25146 /* confdefs.h. */
25147 _ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25153 #define $ac_func innocuous_$ac_func
25155 /* System header to define __stub macros and hopefully few prototypes,
25156 which can conflict with char $ac_func (); below.
25157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25158 <limits.h> exists even on freestanding compilers. */
25160 #ifdef __STDC__
25161 # include <limits.h>
25162 #else
25163 # include <assert.h>
25164 #endif
25166 #undef $ac_func
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 $ac_func ();
25175 /* The GNU C library defines this for functions which it implements
25176 to always fail with ENOSYS. Some functions are actually named
25177 something starting with __ and the normal name is an alias. */
25178 #if defined __stub_$ac_func || defined __stub___$ac_func
25179 choke me
25180 #endif
25182 int
25183 main ()
25184 {
25185 return $ac_func ();
25186 ;
25187 return 0;
25188 }
25189 _ACEOF
25190 rm -f conftest.$ac_objext conftest$ac_exeext
25191 if { (ac_try="$ac_link"
25192 case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25195 esac
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_link") 2>conftest.er1
25198 ac_status=$?
25199 grep -v '^ *+' conftest.er1 >conftest.err
25200 rm -f conftest.er1
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } && {
25204 test -z "$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25206 } && test -s conftest$ac_exeext &&
25207 $as_test_x conftest$ac_exeext; then
25208 eval "$as_ac_var=yes"
25209 else
25210 echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25213 eval "$as_ac_var=no"
25214 fi
25216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25217 conftest$ac_exeext conftest.$ac_ext
25218 fi
25219 ac_res=`eval echo '${'$as_ac_var'}'`
25220 { echo "$as_me:$LINENO: result: $ac_res" >&5
25221 echo "${ECHO_T}$ac_res" >&6; }
25222 if test `eval echo '${'$as_ac_var'}'` = yes; then
25223 cat >>confdefs.h <<_ACEOF
25224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25225 _ACEOF
25227 else
25228 { echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
25229 echo $ECHO_N "checking for isinf with <math.h>... $ECHO_C" >&6; }
25230 cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h. */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h. */
25236 #include <math.h>
25237 volatile int x;volatile float f;
25238 int
25239 main ()
25240 {
25241 x = isinf(f)
25242 ;
25243 return 0;
25244 }
25245 _ACEOF
25246 rm -f conftest.$ac_objext conftest$ac_exeext
25247 if { (ac_try="$ac_link"
25248 case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25251 esac
25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253 (eval "$ac_link") 2>conftest.er1
25254 ac_status=$?
25255 grep -v '^ *+' conftest.er1 >conftest.err
25256 rm -f conftest.er1
25257 cat conftest.err >&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); } && {
25260 test -z "$ac_c_werror_flag" ||
25261 test ! -s conftest.err
25262 } && test -s conftest$ac_exeext &&
25263 $as_test_x conftest$ac_exeext; then
25264 { echo "$as_me:$LINENO: result: yes" >&5
25265 echo "${ECHO_T}yes" >&6; }
25266 cat >>confdefs.h <<\_ACEOF
25267 #define HAVE_ISINF 1
25268 _ACEOF
25270 else
25271 echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25274 { echo "$as_me:$LINENO: result: no" >&5
25275 echo "${ECHO_T}no" >&6; }
25276 fi
25278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25279 conftest$ac_exeext conftest.$ac_ext
25280 fi
25281 done
25284 { echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
25285 echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6; }
25286 if test "${have_broken_isfinite+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 else
25290 if test "$cross_compiling" = yes; then
25292 case "${target}" in
25293 hppa*-*-hpux*) have_broken_isfinite=yes ;;
25294 *) have_broken_isfinite=no ;;
25295 esac
25296 else
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h. */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25304 #ifdef HAVE_MATH_H
25305 #include <math.h>
25306 #endif
25307 #ifdef HAVE_FLOAT_H
25308 #include <float.h>
25309 #endif
25310 int main ()
25311 {
25312 #ifdef isfinite
25313 #ifdef LDBL_MAX
25314 if (!isfinite(LDBL_MAX)) return 1;
25315 #endif
25316 #ifdef DBL_MAX
25317 if (!isfinite(DBL_MAX)) return 1;
25318 #endif
25319 #endif
25320 return 0;
25321 }
25322 _ACEOF
25323 rm -f conftest$ac_exeext
25324 if { (ac_try="$ac_link"
25325 case "(($ac_try" in
25326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327 *) ac_try_echo=$ac_try;;
25328 esac
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330 (eval "$ac_link") 2>&5
25331 ac_status=$?
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25334 { (case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25337 esac
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_try") 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; }; then
25344 have_broken_isfinite=no
25345 else
25346 echo "$as_me: program exited with status $ac_status" >&5
25347 echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25350 ( exit $ac_status )
25351 have_broken_isfinite=yes
25352 fi
25353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25354 fi
25358 fi
25359 { echo "$as_me:$LINENO: result: $have_broken_isfinite" >&5
25360 echo "${ECHO_T}$have_broken_isfinite" >&6; }
25361 if test "x$have_broken_isfinite" = "xno"; then
25362 cat >>confdefs.h <<\_ACEOF
25363 #define HAVE_ISFINITE 1
25364 _ACEOF
25366 else
25368 for ac_func in finite
25369 do
25370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25374 echo $ECHO_N "(cached) $ECHO_C" >&6
25375 else
25376 cat >conftest.$ac_ext <<_ACEOF
25377 /* confdefs.h. */
25378 _ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h. */
25382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25384 #define $ac_func innocuous_$ac_func
25386 /* System header to define __stub macros and hopefully few prototypes,
25387 which can conflict with char $ac_func (); below.
25388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25389 <limits.h> exists even on freestanding compilers. */
25391 #ifdef __STDC__
25392 # include <limits.h>
25393 #else
25394 # include <assert.h>
25395 #endif
25397 #undef $ac_func
25399 /* Override any GCC internal prototype to avoid an error.
25400 Use char because int might match the return type of a GCC
25401 builtin and then its argument prototype would still apply. */
25402 #ifdef __cplusplus
25403 extern "C"
25404 #endif
25405 char $ac_func ();
25406 /* The GNU C library defines this for functions which it implements
25407 to always fail with ENOSYS. Some functions are actually named
25408 something starting with __ and the normal name is an alias. */
25409 #if defined __stub_$ac_func || defined __stub___$ac_func
25410 choke me
25411 #endif
25413 int
25414 main ()
25415 {
25416 return $ac_func ();
25417 ;
25418 return 0;
25419 }
25420 _ACEOF
25421 rm -f conftest.$ac_objext conftest$ac_exeext
25422 if { (ac_try="$ac_link"
25423 case "(($ac_try" in
25424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25425 *) ac_try_echo=$ac_try;;
25426 esac
25427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25428 (eval "$ac_link") 2>conftest.er1
25429 ac_status=$?
25430 grep -v '^ *+' conftest.er1 >conftest.err
25431 rm -f conftest.er1
25432 cat conftest.err >&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); } && {
25435 test -z "$ac_c_werror_flag" ||
25436 test ! -s conftest.err
25437 } && test -s conftest$ac_exeext &&
25438 $as_test_x conftest$ac_exeext; then
25439 eval "$as_ac_var=yes"
25440 else
25441 echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25444 eval "$as_ac_var=no"
25445 fi
25447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25448 conftest$ac_exeext conftest.$ac_ext
25449 fi
25450 ac_res=`eval echo '${'$as_ac_var'}'`
25451 { echo "$as_me:$LINENO: result: $ac_res" >&5
25452 echo "${ECHO_T}$ac_res" >&6; }
25453 if test `eval echo '${'$as_ac_var'}'` = yes; then
25454 cat >>confdefs.h <<_ACEOF
25455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25456 _ACEOF
25458 else
25460 for ac_func in isfinite
25461 do
25462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25467 else
25468 cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h. */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25476 #define $ac_func innocuous_$ac_func
25478 /* System header to define __stub macros and hopefully few prototypes,
25479 which can conflict with char $ac_func (); below.
25480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25481 <limits.h> exists even on freestanding compilers. */
25483 #ifdef __STDC__
25484 # include <limits.h>
25485 #else
25486 # include <assert.h>
25487 #endif
25489 #undef $ac_func
25491 /* Override any GCC internal prototype to avoid an error.
25492 Use char because int might match the return type of a GCC
25493 builtin and then its argument prototype would still apply. */
25494 #ifdef __cplusplus
25495 extern "C"
25496 #endif
25497 char $ac_func ();
25498 /* The GNU C library defines this for functions which it implements
25499 to always fail with ENOSYS. Some functions are actually named
25500 something starting with __ and the normal name is an alias. */
25501 #if defined __stub_$ac_func || defined __stub___$ac_func
25502 choke me
25503 #endif
25505 int
25506 main ()
25507 {
25508 return $ac_func ();
25509 ;
25510 return 0;
25511 }
25512 _ACEOF
25513 rm -f conftest.$ac_objext conftest$ac_exeext
25514 if { (ac_try="$ac_link"
25515 case "(($ac_try" in
25516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517 *) ac_try_echo=$ac_try;;
25518 esac
25519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520 (eval "$ac_link") 2>conftest.er1
25521 ac_status=$?
25522 grep -v '^ *+' conftest.er1 >conftest.err
25523 rm -f conftest.er1
25524 cat conftest.err >&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } && {
25527 test -z "$ac_c_werror_flag" ||
25528 test ! -s conftest.err
25529 } && test -s conftest$ac_exeext &&
25530 $as_test_x conftest$ac_exeext; then
25531 eval "$as_ac_var=yes"
25532 else
25533 echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25536 eval "$as_ac_var=no"
25537 fi
25539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25540 conftest$ac_exeext conftest.$ac_ext
25541 fi
25542 ac_res=`eval echo '${'$as_ac_var'}'`
25543 { echo "$as_me:$LINENO: result: $ac_res" >&5
25544 echo "${ECHO_T}$ac_res" >&6; }
25545 if test `eval echo '${'$as_ac_var'}'` = yes; then
25546 cat >>confdefs.h <<_ACEOF
25547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25548 _ACEOF
25550 else
25551 { echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
25552 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6; }
25553 cat >conftest.$ac_ext <<_ACEOF
25554 /* confdefs.h. */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25559 #include <math.h>
25560 volatile int x;volatile float f;
25561 int
25562 main ()
25563 {
25564 x = isfinite(f)
25565 ;
25566 return 0;
25567 }
25568 _ACEOF
25569 rm -f conftest.$ac_objext conftest$ac_exeext
25570 if { (ac_try="$ac_link"
25571 case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25574 esac
25575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25576 (eval "$ac_link") 2>conftest.er1
25577 ac_status=$?
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } && {
25583 test -z "$ac_c_werror_flag" ||
25584 test ! -s conftest.err
25585 } && test -s conftest$ac_exeext &&
25586 $as_test_x conftest$ac_exeext; then
25587 { echo "$as_me:$LINENO: result: yes" >&5
25588 echo "${ECHO_T}yes" >&6; }
25589 cat >>confdefs.h <<\_ACEOF
25590 #define HAVE_ISFINITE 1
25591 _ACEOF
25593 else
25594 echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25597 { echo "$as_me:$LINENO: result: no" >&5
25598 echo "${ECHO_T}no" >&6; }
25599 fi
25601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25602 conftest$ac_exeext conftest.$ac_ext
25603 fi
25604 done
25606 fi
25607 done
25609 fi
25612 ac_ext=c
25613 ac_cpp='$CPP $CPPFLAGS'
25614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25618 _cflags=${CFLAGS}
25620 { echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
25621 echo $ECHO_N "checking if IEEE math works out of the box... $ECHO_C" >&6; }
25622 if test "${rd_cv_ieee_works+set}" = set; then
25623 echo $ECHO_N "(cached) $ECHO_C" >&6
25624 else
25625 if test "$cross_compiling" = yes; then
25626 :
25627 else
25628 cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h. */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25636 #if HAVE_MATH_H
25637 # include <math.h>
25638 #endif
25640 #if HAVE_FLOAT_H
25641 # include <float.h>
25642 #endif
25644 #if HAVE_IEEEFP_H
25645 # include <ieeefp.h>
25646 #endif
25648 #if HAVE_FP_CLASS_H
25649 # include <fp_class.h>
25650 #endif
25652 /* Solaris */
25653 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25654 # define HAVE_ISINF 1
25655 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25656 #endif
25658 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
25659 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
25660 # undef isnan
25661 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25662 #endif
25664 /* Digital UNIX */
25665 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
25666 # define HAVE_ISINF 1
25667 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25668 #endif
25670 /* AIX */
25671 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25672 # define HAVE_ISINF 1
25673 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25674 #endif
25676 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25677 # define HAVE_ISINF 1
25678 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25679 #endif
25681 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25682 # define HAVE_ISINF 1
25683 # define isinf(a) (fpclassify(a) == FP_INFINITE)
25684 #endif
25686 #include <stdio.h>
25687 int main(void){
25688 double rrdnan,rrdinf,rrdc,rrdzero;
25689 ;
25690 /* some math to see if we get a floating point exception */
25691 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25692 rrdnan=0.0/rrdzero; /* especially here */
25693 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25694 /* at run time without sig fpe */
25695 rrdc = rrdinf + rrdnan;
25696 rrdc = rrdinf / rrdnan;
25697 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25698 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25699 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25700 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25701 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25702 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25703 return 0;
25704 }
25705 _ACEOF
25706 rm -f conftest$ac_exeext
25707 if { (ac_try="$ac_link"
25708 case "(($ac_try" in
25709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710 *) ac_try_echo=$ac_try;;
25711 esac
25712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25713 (eval "$ac_link") 2>&5
25714 ac_status=$?
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25723 ac_status=$?
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; }; then
25726 rd_cv_ieee_works=yes
25727 else
25728 echo "$as_me: program exited with status $ac_status" >&5
25729 echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25732 ( exit $ac_status )
25733 rd_cv_ieee_works=no
25734 fi
25735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25736 fi
25739 fi
25741 if test x${rd_cv_ieee_works} = "xyes"; then
25742 { echo "$as_me:$LINENO: result: yes" >&5
25743 echo "${ECHO_T}yes" >&6; }
25745 else
25746 { echo "$as_me:$LINENO: result: no" >&5
25747 echo "${ECHO_T}no" >&6; }
25748 CFLAGS="$_cflags -ieee"
25750 { echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
25751 echo $ECHO_N "checking if IEEE math works with the -ieee switch... $ECHO_C" >&6; }
25752 if test "${rd_cv_ieee_switch+set}" = set; then
25753 echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
25755 if test "$cross_compiling" = yes; then
25756 :
25757 else
25758 cat >conftest.$ac_ext <<_ACEOF
25759 /* confdefs.h. */
25760 _ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h. */
25766 #if HAVE_MATH_H
25767 # include <math.h>
25768 #endif
25770 #if HAVE_FLOAT_H
25771 # include <float.h>
25772 #endif
25774 #if HAVE_IEEEFP_H
25775 # include <ieeefp.h>
25776 #endif
25778 #if HAVE_FP_CLASS_H
25779 # include <fp_class.h>
25780 #endif
25782 /* Solaris */
25783 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25784 # define HAVE_ISINF 1
25785 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25786 #endif
25788 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
25789 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
25790 # undef isnan
25791 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25792 #endif
25794 /* Digital UNIX */
25795 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
25796 # define HAVE_ISINF 1
25797 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25798 #endif
25800 /* AIX */
25801 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25802 # define HAVE_ISINF 1
25803 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25804 #endif
25806 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25807 # define HAVE_ISINF 1
25808 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25809 #endif
25811 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25812 # define HAVE_ISINF 1
25813 # define isinf(a) (fpclassify(a) == FP_INFINITE)
25814 #endif
25816 #include <stdio.h>
25817 int main(void){
25818 double rrdnan,rrdinf,rrdc,rrdzero;
25819 ;
25820 /* some math to see if we get a floating point exception */
25821 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25822 rrdnan=0.0/rrdzero; /* especially here */
25823 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25824 /* at run time without sig fpe */
25825 rrdc = rrdinf + rrdnan;
25826 rrdc = rrdinf / rrdnan;
25827 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25828 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25829 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25830 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25831 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25832 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25833 return 0;
25834 }
25835 _ACEOF
25836 rm -f conftest$ac_exeext
25837 if { (ac_try="$ac_link"
25838 case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25841 esac
25842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843 (eval "$ac_link") 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25847 { (case "(($ac_try" in
25848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25849 *) ac_try_echo=$ac_try;;
25850 esac
25851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25852 (eval "$ac_try") 2>&5
25853 ac_status=$?
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; }; then
25856 rd_cv_ieee_switch=yes
25857 else
25858 echo "$as_me: program exited with status $ac_status" >&5
25859 echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25862 ( exit $ac_status )
25863 rd_cv_ieee_switch=no
25864 fi
25865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25866 fi
25869 fi
25871 if test x${rd_cv_ieee_switch} = "xyes"; then
25872 { echo "$as_me:$LINENO: result: yes" >&5
25873 echo "${ECHO_T}yes" >&6; }
25875 else
25876 { echo "$as_me:$LINENO: result: no" >&5
25877 echo "${ECHO_T}no" >&6; }
25878 CFLAGS="$_cflags -qfloat=nofold"
25880 { echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
25881 echo $ECHO_N "checking if IEEE math works with the -qfloat=nofold switch... $ECHO_C" >&6; }
25882 if test "${rd_cv_ieee_nofold+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25884 else
25885 if test "$cross_compiling" = yes; then
25886 :
25887 else
25888 cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h. */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25896 #if HAVE_MATH_H
25897 # include <math.h>
25898 #endif
25900 #if HAVE_FLOAT_H
25901 # include <float.h>
25902 #endif
25904 #if HAVE_IEEEFP_H
25905 # include <ieeefp.h>
25906 #endif
25908 #if HAVE_FP_CLASS_H
25909 # include <fp_class.h>
25910 #endif
25912 /* Solaris */
25913 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25914 # define HAVE_ISINF 1
25915 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25916 #endif
25918 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
25919 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
25920 # undef isnan
25921 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25922 #endif
25924 /* Digital UNIX */
25925 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
25926 # define HAVE_ISINF 1
25927 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25928 #endif
25930 /* AIX */
25931 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25932 # define HAVE_ISINF 1
25933 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25934 #endif
25936 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25937 # define HAVE_ISINF 1
25938 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25939 #endif
25941 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25942 # define HAVE_ISINF 1
25943 # define isinf(a) (fpclassify(a) == FP_INFINITE)
25944 #endif
25946 #include <stdio.h>
25947 int main(void){
25948 double rrdnan,rrdinf,rrdc,rrdzero;
25949 ;
25950 /* some math to see if we get a floating point exception */
25951 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25952 rrdnan=0.0/rrdzero; /* especially here */
25953 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25954 /* at run time without sig fpe */
25955 rrdc = rrdinf + rrdnan;
25956 rrdc = rrdinf / rrdnan;
25957 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25958 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25959 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25960 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25961 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25962 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25963 return 0;
25964 }
25965 _ACEOF
25966 rm -f conftest$ac_exeext
25967 if { (ac_try="$ac_link"
25968 case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_link") 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25977 { (case "(($ac_try" in
25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979 *) ac_try_echo=$ac_try;;
25980 esac
25981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25982 (eval "$ac_try") 2>&5
25983 ac_status=$?
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); }; }; then
25986 rd_cv_ieee_nofold=yes
25987 else
25988 echo "$as_me: program exited with status $ac_status" >&5
25989 echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25992 ( exit $ac_status )
25993 rd_cv_ieee_nofold=no
25994 fi
25995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25996 fi
25999 fi
26001 if test x${rd_cv_ieee_nofold} = "xyes"; then
26002 { echo "$as_me:$LINENO: result: yes" >&5
26003 echo "${ECHO_T}yes" >&6; }
26005 else
26006 { echo "$as_me:$LINENO: result: no" >&5
26007 echo "${ECHO_T}no" >&6; }
26008 CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
26010 { echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
26011 echo $ECHO_N "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... $ECHO_C" >&6; }
26012 if test "${rd_cv_ieee_flttrap+set}" = set; then
26013 echo $ECHO_N "(cached) $ECHO_C" >&6
26014 else
26015 if test "$cross_compiling" = yes; then
26016 :
26017 else
26018 cat >conftest.$ac_ext <<_ACEOF
26019 /* confdefs.h. */
26020 _ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h. */
26026 #if HAVE_MATH_H
26027 # include <math.h>
26028 #endif
26030 #if HAVE_FLOAT_H
26031 # include <float.h>
26032 #endif
26034 #if HAVE_IEEEFP_H
26035 # include <ieeefp.h>
26036 #endif
26038 #if HAVE_FP_CLASS_H
26039 # include <fp_class.h>
26040 #endif
26042 /* Solaris */
26043 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26044 # define HAVE_ISINF 1
26045 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26046 #endif
26048 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
26049 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26050 # undef isnan
26051 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26052 #endif
26054 /* Digital UNIX */
26055 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26056 # define HAVE_ISINF 1
26057 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26058 #endif
26060 /* AIX */
26061 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26062 # define HAVE_ISINF 1
26063 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26064 #endif
26066 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26067 # define HAVE_ISINF 1
26068 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26069 #endif
26071 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26072 # define HAVE_ISINF 1
26073 # define isinf(a) (fpclassify(a) == FP_INFINITE)
26074 #endif
26076 #include <stdio.h>
26077 int main(void){
26078 double rrdnan,rrdinf,rrdc,rrdzero;
26079 ;
26080 /* some math to see if we get a floating point exception */
26081 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26082 rrdnan=0.0/rrdzero; /* especially here */
26083 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26084 /* at run time without sig fpe */
26085 rrdc = rrdinf + rrdnan;
26086 rrdc = rrdinf / rrdnan;
26087 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26088 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26089 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26090 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26091 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26092 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26093 return 0;
26094 }
26095 _ACEOF
26096 rm -f conftest$ac_exeext
26097 if { (ac_try="$ac_link"
26098 case "(($ac_try" in
26099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26100 *) ac_try_echo=$ac_try;;
26101 esac
26102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26103 (eval "$ac_link") 2>&5
26104 ac_status=$?
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26107 { (case "(($ac_try" in
26108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26109 *) ac_try_echo=$ac_try;;
26110 esac
26111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26112 (eval "$ac_try") 2>&5
26113 ac_status=$?
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
26116 rd_cv_ieee_flttrap=yes
26117 else
26118 echo "$as_me: program exited with status $ac_status" >&5
26119 echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26122 ( exit $ac_status )
26123 rd_cv_ieee_flttrap=no
26124 fi
26125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26126 fi
26129 fi
26131 if test x${rd_cv_ieee_flttrap} = "xyes"; then
26132 { echo "$as_me:$LINENO: result: yes" >&5
26133 echo "${ECHO_T}yes" >&6; }
26135 else
26136 { echo "$as_me:$LINENO: result: no" >&5
26137 echo "${ECHO_T}no" >&6; }
26138 CFLAGS="$_cflags -mieee"
26140 { echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
26141 echo $ECHO_N "checking if IEEE math works with the -mieee switch... $ECHO_C" >&6; }
26142 if test "${rd_cv_ieee_mswitch+set}" = set; then
26143 echo $ECHO_N "(cached) $ECHO_C" >&6
26144 else
26145 if test "$cross_compiling" = yes; then
26146 :
26147 else
26148 cat >conftest.$ac_ext <<_ACEOF
26149 /* confdefs.h. */
26150 _ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h. */
26156 #if HAVE_MATH_H
26157 # include <math.h>
26158 #endif
26160 #if HAVE_FLOAT_H
26161 # include <float.h>
26162 #endif
26164 #if HAVE_IEEEFP_H
26165 # include <ieeefp.h>
26166 #endif
26168 #if HAVE_FP_CLASS_H
26169 # include <fp_class.h>
26170 #endif
26172 /* Solaris */
26173 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26174 # define HAVE_ISINF 1
26175 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26176 #endif
26178 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
26179 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26180 # undef isnan
26181 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26182 #endif
26184 /* Digital UNIX */
26185 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26186 # define HAVE_ISINF 1
26187 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26188 #endif
26190 /* AIX */
26191 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26192 # define HAVE_ISINF 1
26193 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26194 #endif
26196 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26197 # define HAVE_ISINF 1
26198 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26199 #endif
26201 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26202 # define HAVE_ISINF 1
26203 # define isinf(a) (fpclassify(a) == FP_INFINITE)
26204 #endif
26206 #include <stdio.h>
26207 int main(void){
26208 double rrdnan,rrdinf,rrdc,rrdzero;
26209 ;
26210 /* some math to see if we get a floating point exception */
26211 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26212 rrdnan=0.0/rrdzero; /* especially here */
26213 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26214 /* at run time without sig fpe */
26215 rrdc = rrdinf + rrdnan;
26216 rrdc = rrdinf / rrdnan;
26217 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26218 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26219 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26220 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26221 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26222 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26223 return 0;
26224 }
26225 _ACEOF
26226 rm -f conftest$ac_exeext
26227 if { (ac_try="$ac_link"
26228 case "(($ac_try" in
26229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26230 *) ac_try_echo=$ac_try;;
26231 esac
26232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26233 (eval "$ac_link") 2>&5
26234 ac_status=$?
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26237 { (case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26240 esac
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_try") 2>&5
26243 ac_status=$?
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; }; then
26246 rd_cv_ieee_mswitch=yes
26247 else
26248 echo "$as_me: program exited with status $ac_status" >&5
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 ( exit $ac_status )
26253 rd_cv_ieee_mswitch=no
26254 fi
26255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26256 fi
26259 fi
26261 if test x${rd_cv_ieee_mswitch} = "xyes"; then
26262 { echo "$as_me:$LINENO: result: yes" >&5
26263 echo "${ECHO_T}yes" >&6; }
26265 else
26266 { echo "$as_me:$LINENO: result: no" >&5
26267 echo "${ECHO_T}no" >&6; }
26268 CFLAGS="$_cflags -q float=rndsngl"
26270 { echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
26271 echo $ECHO_N "checking if IEEE math works with the -q float=rndsngl switch... $ECHO_C" >&6; }
26272 if test "${rd_cv_ieee_qswitch+set}" = set; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275 if test "$cross_compiling" = yes; then
26276 :
26277 else
26278 cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h. */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26286 #if HAVE_MATH_H
26287 # include <math.h>
26288 #endif
26290 #if HAVE_FLOAT_H
26291 # include <float.h>
26292 #endif
26294 #if HAVE_IEEEFP_H
26295 # include <ieeefp.h>
26296 #endif
26298 #if HAVE_FP_CLASS_H
26299 # include <fp_class.h>
26300 #endif
26302 /* Solaris */
26303 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26304 # define HAVE_ISINF 1
26305 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26306 #endif
26308 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
26309 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26310 # undef isnan
26311 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26312 #endif
26314 /* Digital UNIX */
26315 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26316 # define HAVE_ISINF 1
26317 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26318 #endif
26320 /* AIX */
26321 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26322 # define HAVE_ISINF 1
26323 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26324 #endif
26326 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26327 # define HAVE_ISINF 1
26328 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26329 #endif
26331 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26332 # define HAVE_ISINF 1
26333 # define isinf(a) (fpclassify(a) == FP_INFINITE)
26334 #endif
26336 #include <stdio.h>
26337 int main(void){
26338 double rrdnan,rrdinf,rrdc,rrdzero;
26339 ;
26340 /* some math to see if we get a floating point exception */
26341 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26342 rrdnan=0.0/rrdzero; /* especially here */
26343 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26344 /* at run time without sig fpe */
26345 rrdc = rrdinf + rrdnan;
26346 rrdc = rrdinf / rrdnan;
26347 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26348 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26349 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26350 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26351 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26352 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26353 return 0;
26354 }
26355 _ACEOF
26356 rm -f conftest$ac_exeext
26357 if { (ac_try="$ac_link"
26358 case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26361 esac
26362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363 (eval "$ac_link") 2>&5
26364 ac_status=$?
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26367 { (case "(($ac_try" in
26368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26369 *) ac_try_echo=$ac_try;;
26370 esac
26371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26372 (eval "$ac_try") 2>&5
26373 ac_status=$?
26374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); }; }; then
26376 rd_cv_ieee_qswitch=yes
26377 else
26378 echo "$as_me: program exited with status $ac_status" >&5
26379 echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26382 ( exit $ac_status )
26383 rd_cv_ieee_qswitch=no
26384 fi
26385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26386 fi
26389 fi
26391 if test x${rd_cv_ieee_qswitch} = "xyes"; then
26392 { echo "$as_me:$LINENO: result: yes" >&5
26393 echo "${ECHO_T}yes" >&6; }
26395 else
26396 { echo "$as_me:$LINENO: result: no" >&5
26397 echo "${ECHO_T}no" >&6; }
26398 CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
26400 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
26401 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... $ECHO_C" >&6; }
26402 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
26403 echo $ECHO_N "(cached) $ECHO_C" >&6
26404 else
26405 if test "$cross_compiling" = yes; then
26406 :
26407 else
26408 cat >conftest.$ac_ext <<_ACEOF
26409 /* confdefs.h. */
26410 _ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h. */
26416 #if HAVE_MATH_H
26417 # include <math.h>
26418 #endif
26420 #if HAVE_FLOAT_H
26421 # include <float.h>
26422 #endif
26424 #if HAVE_IEEEFP_H
26425 # include <ieeefp.h>
26426 #endif
26428 #if HAVE_FP_CLASS_H
26429 # include <fp_class.h>
26430 #endif
26432 /* Solaris */
26433 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26434 # define HAVE_ISINF 1
26435 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26436 #endif
26438 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
26439 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26440 # undef isnan
26441 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26442 #endif
26444 /* Digital UNIX */
26445 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26446 # define HAVE_ISINF 1
26447 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26448 #endif
26450 /* AIX */
26451 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26452 # define HAVE_ISINF 1
26453 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26454 #endif
26456 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26457 # define HAVE_ISINF 1
26458 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26459 #endif
26461 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26462 # define HAVE_ISINF 1
26463 # define isinf(a) (fpclassify(a) == FP_INFINITE)
26464 #endif
26466 #include <stdio.h>
26467 int main(void){
26468 double rrdnan,rrdinf,rrdc,rrdzero;
26469 ;
26470 /* some math to see if we get a floating point exception */
26471 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26472 rrdnan=0.0/rrdzero; /* especially here */
26473 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26474 /* at run time without sig fpe */
26475 rrdc = rrdinf + rrdnan;
26476 rrdc = rrdinf / rrdnan;
26477 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26478 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26479 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26480 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26481 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26482 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26483 return 0;
26484 }
26485 _ACEOF
26486 rm -f conftest$ac_exeext
26487 if { (ac_try="$ac_link"
26488 case "(($ac_try" in
26489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26490 *) ac_try_echo=$ac_try;;
26491 esac
26492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26493 (eval "$ac_link") 2>&5
26494 ac_status=$?
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26497 { (case "(($ac_try" in
26498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26499 *) ac_try_echo=$ac_try;;
26500 esac
26501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26502 (eval "$ac_try") 2>&5
26503 ac_status=$?
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); }; }; then
26506 rd_cv_ieee_ieeenaninfswitch=yes
26507 else
26508 echo "$as_me: program exited with status $ac_status" >&5
26509 echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26512 ( exit $ac_status )
26513 rd_cv_ieee_ieeenaninfswitch=no
26514 fi
26515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26516 fi
26519 fi
26521 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
26522 { echo "$as_me:$LINENO: result: yes" >&5
26523 echo "${ECHO_T}yes" >&6; }
26525 else
26526 { echo "$as_me:$LINENO: result: no" >&5
26527 echo "${ECHO_T}no" >&6; }
26528 CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
26530 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
26531 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... $ECHO_C" >&6; }
26532 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535 if test "$cross_compiling" = yes; then
26536 :
26537 else
26538 cat >conftest.$ac_ext <<_ACEOF
26539 /* confdefs.h. */
26540 _ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h. */
26546 #if HAVE_MATH_H
26547 # include <math.h>
26548 #endif
26550 #if HAVE_FLOAT_H
26551 # include <float.h>
26552 #endif
26554 #if HAVE_IEEEFP_H
26555 # include <ieeefp.h>
26556 #endif
26558 #if HAVE_FP_CLASS_H
26559 # include <fp_class.h>
26560 #endif
26562 /* Solaris */
26563 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26564 # define HAVE_ISINF 1
26565 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26566 #endif
26568 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
26569 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26570 # undef isnan
26571 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26572 #endif
26574 /* Digital UNIX */
26575 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26576 # define HAVE_ISINF 1
26577 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26578 #endif
26580 /* AIX */
26581 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26582 # define HAVE_ISINF 1
26583 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26584 #endif
26586 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26587 # define HAVE_ISINF 1
26588 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26589 #endif
26591 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26592 # define HAVE_ISINF 1
26593 # define isinf(a) (fpclassify(a) == FP_INFINITE)
26594 #endif
26596 #include <stdio.h>
26597 int main(void){
26598 double rrdnan,rrdinf,rrdc,rrdzero;
26599 ;
26600 /* some math to see if we get a floating point exception */
26601 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26602 rrdnan=0.0/rrdzero; /* especially here */
26603 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26604 /* at run time without sig fpe */
26605 rrdc = rrdinf + rrdnan;
26606 rrdc = rrdinf / rrdnan;
26607 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26608 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26609 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26610 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26611 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26612 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26613 return 0;
26614 }
26615 _ACEOF
26616 rm -f conftest$ac_exeext
26617 if { (ac_try="$ac_link"
26618 case "(($ac_try" in
26619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26620 *) ac_try_echo=$ac_try;;
26621 esac
26622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26623 (eval "$ac_link") 2>&5
26624 ac_status=$?
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26627 { (case "(($ac_try" in
26628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26629 *) ac_try_echo=$ac_try;;
26630 esac
26631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26632 (eval "$ac_try") 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; }; then
26636 rd_cv_ieee_ieeecmpswitch=yes
26637 else
26638 echo "$as_me: program exited with status $ac_status" >&5
26639 echo "$as_me: failed program was:" >&5
26640 sed 's/^/| /' conftest.$ac_ext >&5
26642 ( exit $ac_status )
26643 rd_cv_ieee_ieeecmpswitch=no
26644 fi
26645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26646 fi
26649 fi
26651 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
26652 { echo "$as_me:$LINENO: result: yes" >&5
26653 echo "${ECHO_T}yes" >&6; }
26655 else
26656 { echo "$as_me:$LINENO: result: no" >&5
26657 echo "${ECHO_T}no" >&6; }
26658 CFLAGS=$_cflags
26660 { echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
26661 echo $ECHO_N "checking if IEEE math works with fpsetmask(0)... $ECHO_C" >&6; }
26662 if test "${rd_cv_ieee_mask+set}" = set; then
26663 echo $ECHO_N "(cached) $ECHO_C" >&6
26664 else
26665 if test "$cross_compiling" = yes; then
26666 :
26667 else
26668 cat >conftest.$ac_ext <<_ACEOF
26669 /* confdefs.h. */
26670 _ACEOF
26671 cat confdefs.h >>conftest.$ac_ext
26672 cat >>conftest.$ac_ext <<_ACEOF
26673 /* end confdefs.h. */
26674 #include <floatingpoint.h>
26676 #if HAVE_MATH_H
26677 # include <math.h>
26678 #endif
26680 #if HAVE_FLOAT_H
26681 # include <float.h>
26682 #endif
26684 #if HAVE_IEEEFP_H
26685 # include <ieeefp.h>
26686 #endif
26688 #if HAVE_FP_CLASS_H
26689 # include <fp_class.h>
26690 #endif
26692 /* Solaris */
26693 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26694 # define HAVE_ISINF 1
26695 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26696 #endif
26698 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
26699 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26700 # undef isnan
26701 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26702 #endif
26704 /* Digital UNIX */
26705 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26706 # define HAVE_ISINF 1
26707 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26708 #endif
26710 /* AIX */
26711 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26712 # define HAVE_ISINF 1
26713 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26714 #endif
26716 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26717 # define HAVE_ISINF 1
26718 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26719 #endif
26721 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26722 # define HAVE_ISINF 1
26723 # define isinf(a) (fpclassify(a) == FP_INFINITE)
26724 #endif
26726 #include <stdio.h>
26727 int main(void){
26728 double rrdnan,rrdinf,rrdc,rrdzero;
26729 fpsetmask(0);
26730 /* some math to see if we get a floating point exception */
26731 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26732 rrdnan=0.0/rrdzero; /* especially here */
26733 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26734 /* at run time without sig fpe */
26735 rrdc = rrdinf + rrdnan;
26736 rrdc = rrdinf / rrdnan;
26737 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26738 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26739 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26740 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26741 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26742 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26743 return 0;
26744 }
26745 _ACEOF
26746 rm -f conftest$ac_exeext
26747 if { (ac_try="$ac_link"
26748 case "(($ac_try" in
26749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750 *) ac_try_echo=$ac_try;;
26751 esac
26752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26753 (eval "$ac_link") 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26757 { (case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26760 esac
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762 (eval "$ac_try") 2>&5
26763 ac_status=$?
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); }; }; then
26766 rd_cv_ieee_mask=yes
26767 else
26768 echo "$as_me: program exited with status $ac_status" >&5
26769 echo "$as_me: failed program was:" >&5
26770 sed 's/^/| /' conftest.$ac_ext >&5
26772 ( exit $ac_status )
26773 rd_cv_ieee_mask=no
26774 fi
26775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26776 fi
26779 fi
26781 if test x${rd_cv_ieee_mask} = "xyes"; then
26782 { echo "$as_me:$LINENO: result: yes" >&5
26783 echo "${ECHO_T}yes" >&6; }
26784 cat >>confdefs.h <<\_ACEOF
26785 #define MUST_DISABLE_FPMASK 1
26786 _ACEOF
26788 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
26789 else
26790 { echo "$as_me:$LINENO: result: no" >&5
26791 echo "${ECHO_T}no" >&6; }
26793 { echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
26794 echo $ECHO_N "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... $ECHO_C" >&6; }
26795 if test "${rd_cv_ieee_sigfpe+set}" = set; then
26796 echo $ECHO_N "(cached) $ECHO_C" >&6
26797 else
26798 if test "$cross_compiling" = yes; then
26799 :
26800 else
26801 cat >conftest.$ac_ext <<_ACEOF
26802 /* confdefs.h. */
26803 _ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h. */
26807 #include <signal.h>
26809 #if HAVE_MATH_H
26810 # include <math.h>
26811 #endif
26813 #if HAVE_FLOAT_H
26814 # include <float.h>
26815 #endif
26817 #if HAVE_IEEEFP_H
26818 # include <ieeefp.h>
26819 #endif
26821 #if HAVE_FP_CLASS_H
26822 # include <fp_class.h>
26823 #endif
26825 /* Solaris */
26826 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26827 # define HAVE_ISINF 1
26828 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26829 #endif
26831 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
26832 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26833 # undef isnan
26834 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26835 #endif
26837 /* Digital UNIX */
26838 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26839 # define HAVE_ISINF 1
26840 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26841 #endif
26843 /* AIX */
26844 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26845 # define HAVE_ISINF 1
26846 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26847 #endif
26849 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26850 # define HAVE_ISINF 1
26851 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26852 #endif
26854 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26855 # define HAVE_ISINF 1
26856 # define isinf(a) (fpclassify(a) == FP_INFINITE)
26857 #endif
26859 #include <stdio.h>
26860 int main(void){
26861 double rrdnan,rrdinf,rrdc,rrdzero;
26862 signal(SIGFPE,SIG_IGN);
26863 /* some math to see if we get a floating point exception */
26864 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26865 rrdnan=0.0/rrdzero; /* especially here */
26866 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26867 /* at run time without sig fpe */
26868 rrdc = rrdinf + rrdnan;
26869 rrdc = rrdinf / rrdnan;
26870 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26871 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26872 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26873 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26874 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26875 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26876 return 0;
26877 }
26878 _ACEOF
26879 rm -f conftest$ac_exeext
26880 if { (ac_try="$ac_link"
26881 case "(($ac_try" in
26882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883 *) ac_try_echo=$ac_try;;
26884 esac
26885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886 (eval "$ac_link") 2>&5
26887 ac_status=$?
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26890 { (case "(($ac_try" in
26891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26892 *) ac_try_echo=$ac_try;;
26893 esac
26894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26895 (eval "$ac_try") 2>&5
26896 ac_status=$?
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; }; then
26899 rd_cv_ieee_sigfpe=yes
26900 else
26901 echo "$as_me: program exited with status $ac_status" >&5
26902 echo "$as_me: failed program was:" >&5
26903 sed 's/^/| /' conftest.$ac_ext >&5
26905 ( exit $ac_status )
26906 rd_cv_ieee_sigfpe=no
26907 fi
26908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26909 fi
26912 fi
26914 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
26915 { echo "$as_me:$LINENO: result: yes" >&5
26916 echo "${ECHO_T}yes" >&6; }
26917 cat >>confdefs.h <<\_ACEOF
26918 #define MUST_DISABLE_SIGFPE 1
26919 _ACEOF
26921 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
26922 else
26923 { echo "$as_me:$LINENO: result: no" >&5
26924 echo "${ECHO_T}no" >&6; }
26925 { { echo "$as_me:$LINENO: error:
26926 Your Compiler does not do propper IEEE math ... Please find out how to
26927 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
26928 Check config.log to see what went wrong ...
26929 " >&5
26930 echo "$as_me: error:
26931 Your Compiler does not do propper IEEE math ... Please find out how to
26932 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
26933 Check config.log to see what went wrong ...
26934 " >&2;}
26935 { (exit 1); exit 1; }; }
26936 fi
26939 fi
26942 fi
26945 fi
26948 fi
26951 fi
26954 fi
26957 fi
26960 fi
26963 fi
26967 ac_ext=c
26968 ac_cpp='$CPP $CPPFLAGS'
26969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26977 case $TERM in
26978 # for the most important terminal types we directly know the sequences
26979 xterm|xterm*|vt220|vt220*)
26980 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
26981 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
26982 ;;
26983 vt100|vt100*|cygwin)
26984 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
26985 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
26986 ;;
26987 *)
26988 T_MD=''
26989 T_ME=''
26990 ;;
26991 esac
26992 { echo "$as_me:$LINENO: result: " >&5
26993 echo "${ECHO_T}" >&6; }
26994 { echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
26995 echo "${ECHO_T}${T_MD}Resolve Portability Issues${T_ME}" >&6; }
26999 { echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
27000 echo $ECHO_N "checking if realloc can deal with NULL... $ECHO_C" >&6; }
27001 if test "${rd_cv_null_realloc+set}" = set; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27003 else
27004 if test "$cross_compiling" = yes; then
27005 :
27006 else
27007 cat >conftest.$ac_ext <<_ACEOF
27008 /* confdefs.h. */
27009 _ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h. */
27013 #include <stdlib.h>
27014 int main(void){
27015 char *x = NULL;
27016 x = realloc (x,10);
27017 if (x==NULL) return 1;
27018 return 0;
27019 }
27020 _ACEOF
27021 rm -f conftest$ac_exeext
27022 if { (ac_try="$ac_link"
27023 case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27026 esac
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_link") 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27032 { (case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27035 esac
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_try") 2>&5
27038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; }; then
27041 rd_cv_null_realloc=yes
27042 else
27043 echo "$as_me: program exited with status $ac_status" >&5
27044 echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27047 ( exit $ac_status )
27048 rd_cv_null_realloc=nope
27049 fi
27050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27051 fi
27054 fi
27055 { echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
27056 echo "${ECHO_T}$rd_cv_null_realloc" >&6; }
27058 if test x"$rd_cv_null_realloc" = xnope; then
27059 cat >>confdefs.h <<\_ACEOF
27060 #define NO_NULL_REALLOC 1
27061 _ACEOF
27063 fi
27065 ac_ext=c
27066 ac_cpp='$CPP $CPPFLAGS'
27067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27071 { echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
27072 echo $ECHO_N "checking if ctime_r need special care to act posixly correct... $ECHO_C" >&6; }
27073 cat >conftest.$ac_ext <<_ACEOF
27074 /* confdefs.h. */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h. */
27079 #include <time.h>
27080 int
27081 main ()
27082 {
27083 ctime_r(NULL,NULL,0)
27085 ;
27086 return 0;
27087 }
27088 _ACEOF
27089 rm -f conftest.$ac_objext conftest$ac_exeext
27090 if { (ac_try="$ac_link"
27091 case "(($ac_try" in
27092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093 *) ac_try_echo=$ac_try;;
27094 esac
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096 (eval "$ac_link") 2>conftest.er1
27097 ac_status=$?
27098 grep -v '^ *+' conftest.er1 >conftest.err
27099 rm -f conftest.er1
27100 cat conftest.err >&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); } && {
27103 test -z "$ac_c_werror_flag" ||
27104 test ! -s conftest.err
27105 } && test -s conftest$ac_exeext &&
27106 $as_test_x conftest$ac_exeext; then
27107 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
27108 cat >conftest.$ac_ext <<_ACEOF
27109 /* confdefs.h. */
27110 _ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h. */
27114 #include <time.h>
27115 int
27116 main ()
27117 {
27118 ctime_r(NULL,NULL)
27120 ;
27121 return 0;
27122 }
27123 _ACEOF
27124 rm -f conftest.$ac_objext conftest$ac_exeext
27125 if { (ac_try="$ac_link"
27126 case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27129 esac
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_link") 2>conftest.er1
27132 ac_status=$?
27133 grep -v '^ *+' conftest.er1 >conftest.err
27134 rm -f conftest.er1
27135 cat conftest.err >&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); } && {
27138 test -z "$ac_c_werror_flag" ||
27139 test ! -s conftest.err
27140 } && test -s conftest$ac_exeext &&
27141 $as_test_x conftest$ac_exeext; then
27142 { echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
27143 echo "${ECHO_T}yes, this seems to be solaris style" >&6; }
27144 else
27145 echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27148 { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
27149 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
27150 { (exit 1); exit 1; }; }
27152 fi
27154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27155 conftest$ac_exeext conftest.$ac_ext
27157 else
27158 echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27161 cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h. */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167 #include <time.h>
27168 int
27169 main ()
27170 {
27171 ctime_r(NULL,NULL)
27173 ;
27174 return 0;
27175 }
27176 _ACEOF
27177 rm -f conftest.$ac_objext conftest$ac_exeext
27178 if { (ac_try="$ac_link"
27179 case "(($ac_try" in
27180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27181 *) ac_try_echo=$ac_try;;
27182 esac
27183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27184 (eval "$ac_link") 2>conftest.er1
27185 ac_status=$?
27186 grep -v '^ *+' conftest.er1 >conftest.err
27187 rm -f conftest.er1
27188 cat conftest.err >&5
27189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190 (exit $ac_status); } && {
27191 test -z "$ac_c_werror_flag" ||
27192 test ! -s conftest.err
27193 } && test -s conftest$ac_exeext &&
27194 $as_test_x conftest$ac_exeext; then
27195 { echo "$as_me:$LINENO: result: no" >&5
27196 echo "${ECHO_T}no" >&6; }
27197 else
27198 echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27201 { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
27202 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
27203 { (exit 1); exit 1; }; }
27205 fi
27207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27208 conftest$ac_exeext conftest.$ac_ext
27211 fi
27213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27214 conftest$ac_exeext conftest.$ac_ext
27215 ac_ext=c
27216 ac_cpp='$CPP $CPPFLAGS'
27217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27226 if test $enable_pthread != no; then
27229 ac_ext=c
27230 ac_cpp='$CPP $CPPFLAGS'
27231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27235 acx_pthread_ok=no
27237 # We used to check for pthread.h first, but this fails if pthread.h
27238 # requires special compiler flags (e.g. on True64 or Sequent).
27239 # It gets checked for in the link test anyway.
27241 # First of all, check if the user has set any of the PTHREAD_LIBS,
27242 # etcetera environment variables, and if threads linking works using
27243 # them:
27244 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
27245 save_CFLAGS="$CFLAGS"
27246 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
27247 save_LIBS="$LIBS"
27248 LIBS="$PTHREAD_LIBS $LIBS"
27249 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
27250 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
27251 cat >conftest.$ac_ext <<_ACEOF
27252 /* confdefs.h. */
27253 _ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h. */
27258 /* Override any GCC internal prototype to avoid an error.
27259 Use char because int might match the return type of a GCC
27260 builtin and then its argument prototype would still apply. */
27261 #ifdef __cplusplus
27262 extern "C"
27263 #endif
27264 char pthread_join ();
27265 int
27266 main ()
27267 {
27268 return pthread_join ();
27269 ;
27270 return 0;
27271 }
27272 _ACEOF
27273 rm -f conftest.$ac_objext conftest$ac_exeext
27274 if { (ac_try="$ac_link"
27275 case "(($ac_try" in
27276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27278 esac
27279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280 (eval "$ac_link") 2>conftest.er1
27281 ac_status=$?
27282 grep -v '^ *+' conftest.er1 >conftest.err
27283 rm -f conftest.er1
27284 cat conftest.err >&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); } && {
27287 test -z "$ac_c_werror_flag" ||
27288 test ! -s conftest.err
27289 } && test -s conftest$ac_exeext &&
27290 $as_test_x conftest$ac_exeext; then
27291 acx_pthread_ok=yes
27292 else
27293 echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27297 fi
27299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27300 conftest$ac_exeext conftest.$ac_ext
27301 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
27302 echo "${ECHO_T}$acx_pthread_ok" >&6; }
27303 if test x"$acx_pthread_ok" = xno; then
27304 PTHREAD_LIBS=""
27305 PTHREAD_CFLAGS=""
27306 fi
27307 LIBS="$save_LIBS"
27308 CFLAGS="$save_CFLAGS"
27309 fi
27311 # We must check for the threads library under a number of different
27312 # names; the ordering is very important because some systems
27313 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
27314 # libraries is broken (non-POSIX).
27316 # Create a list of thread flags to try. Items starting with a "-" are
27317 # C compiler flags, and other items are library names, except for "none"
27318 # which indicates that we try without any flags at all, and "pthread-config"
27319 # which is a program returning the flags for the Pth emulation library.
27321 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
27323 # The ordering *is* (sometimes) important. Some notes on the
27324 # individual items follow:
27326 # pthreads: AIX (must check this before -lpthread)
27327 # none: in case threads are in libc; should be tried before -Kthread and
27328 # other compiler flags to prevent continual compiler warnings
27329 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
27330 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
27331 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
27332 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
27333 # -pthreads: Solaris/gcc
27334 # -mthreads: Mingw32/gcc, Lynx/gcc
27335 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
27336 # doesn't hurt to check since this sometimes defines pthreads too;
27337 # also defines -D_REENTRANT)
27338 # pthread: Linux, etcetera
27339 # --thread-safe: KAI C++
27340 # pthread-config: use pthread-config program (for GNU Pth library)
27342 case "${host_cpu}-${host_os}" in
27343 *solaris*)
27345 # On Solaris (at least, for some versions), libc contains stubbed
27346 # (non-functional) versions of the pthreads routines, so link-based
27347 # tests will erroneously succeed. (We need to link with -pthread or
27348 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
27349 # a function called by this macro, so we could check for that, but
27350 # who knows whether they'll stub that too in a future libc.) So,
27351 # we'll just look for -pthreads and -lpthread first:
27353 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
27354 ;;
27355 esac
27357 if test x"$acx_pthread_ok" = xno; then
27358 for flag in $acx_pthread_flags; do
27360 case $flag in
27361 none)
27362 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
27363 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
27364 ;;
27366 -*)
27367 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
27368 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
27369 PTHREAD_CFLAGS="$flag"
27370 ;;
27372 pthread-config)
27373 # Extract the first word of "pthread-config", so it can be a program name with args.
27374 set dummy pthread-config; ac_word=$2
27375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27377 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27379 else
27380 if test -n "$acx_pthread_config"; then
27381 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
27382 else
27383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27384 for as_dir in $PATH
27385 do
27386 IFS=$as_save_IFS
27387 test -z "$as_dir" && as_dir=.
27388 for ac_exec_ext in '' $ac_executable_extensions; do
27389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27390 ac_cv_prog_acx_pthread_config="yes"
27391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27392 break 2
27393 fi
27394 done
27395 done
27396 IFS=$as_save_IFS
27398 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
27399 fi
27400 fi
27401 acx_pthread_config=$ac_cv_prog_acx_pthread_config
27402 if test -n "$acx_pthread_config"; then
27403 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
27404 echo "${ECHO_T}$acx_pthread_config" >&6; }
27405 else
27406 { echo "$as_me:$LINENO: result: no" >&5
27407 echo "${ECHO_T}no" >&6; }
27408 fi
27411 if test x"$acx_pthread_config" = xno; then continue; fi
27412 PTHREAD_CFLAGS="`pthread-config --cflags`"
27413 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
27414 ;;
27416 *)
27417 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
27418 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
27419 PTHREAD_LIBS="-l$flag"
27420 ;;
27421 esac
27423 save_LIBS="$LIBS"
27424 save_CFLAGS="$CFLAGS"
27425 LIBS="$PTHREAD_LIBS $LIBS"
27426 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
27428 # Check for various functions. We must include pthread.h,
27429 # since some functions may be macros. (On the Sequent, we
27430 # need a special flag -Kthread to make this header compile.)
27431 # We check for pthread_join because it is in -lpthread on IRIX
27432 # while pthread_create is in libc. We check for pthread_attr_init
27433 # due to DEC craziness with -lpthreads. We check for
27434 # pthread_cleanup_push because it is one of the few pthread
27435 # functions on Solaris that doesn't have a non-functional libc stub.
27436 # We try pthread_create on general principles.
27437 cat >conftest.$ac_ext <<_ACEOF
27438 /* confdefs.h. */
27439 _ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h. */
27443 #include <pthread.h>
27444 int
27445 main ()
27446 {
27447 pthread_t th; pthread_join(th, 0);
27448 pthread_attr_init(0); pthread_cleanup_push(0, 0);
27449 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
27450 ;
27451 return 0;
27452 }
27453 _ACEOF
27454 rm -f conftest.$ac_objext conftest$ac_exeext
27455 if { (ac_try="$ac_link"
27456 case "(($ac_try" in
27457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458 *) ac_try_echo=$ac_try;;
27459 esac
27460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27461 (eval "$ac_link") 2>conftest.er1
27462 ac_status=$?
27463 grep -v '^ *+' conftest.er1 >conftest.err
27464 rm -f conftest.er1
27465 cat conftest.err >&5
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); } && {
27468 test -z "$ac_c_werror_flag" ||
27469 test ! -s conftest.err
27470 } && test -s conftest$ac_exeext &&
27471 $as_test_x conftest$ac_exeext; then
27472 acx_pthread_ok=yes
27473 else
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27478 fi
27480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27481 conftest$ac_exeext conftest.$ac_ext
27483 LIBS="$save_LIBS"
27484 CFLAGS="$save_CFLAGS"
27486 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
27487 echo "${ECHO_T}$acx_pthread_ok" >&6; }
27488 if test "x$acx_pthread_ok" = xyes; then
27489 break;
27490 fi
27492 PTHREAD_LIBS=""
27493 PTHREAD_CFLAGS=""
27494 done
27495 fi
27497 # Various other checks:
27498 if test "x$acx_pthread_ok" = xyes; then
27499 save_LIBS="$LIBS"
27500 LIBS="$PTHREAD_LIBS $LIBS"
27501 save_CFLAGS="$CFLAGS"
27502 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
27504 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
27505 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
27506 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
27507 attr_name=unknown
27508 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
27509 cat >conftest.$ac_ext <<_ACEOF
27510 /* confdefs.h. */
27511 _ACEOF
27512 cat confdefs.h >>conftest.$ac_ext
27513 cat >>conftest.$ac_ext <<_ACEOF
27514 /* end confdefs.h. */
27515 #include <pthread.h>
27516 int
27517 main ()
27518 {
27519 int attr=$attr;
27520 ;
27521 return 0;
27522 }
27523 _ACEOF
27524 rm -f conftest.$ac_objext conftest$ac_exeext
27525 if { (ac_try="$ac_link"
27526 case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529 esac
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_link") 2>conftest.er1
27532 ac_status=$?
27533 grep -v '^ *+' conftest.er1 >conftest.err
27534 rm -f conftest.er1
27535 cat conftest.err >&5
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); } && {
27538 test -z "$ac_c_werror_flag" ||
27539 test ! -s conftest.err
27540 } && test -s conftest$ac_exeext &&
27541 $as_test_x conftest$ac_exeext; then
27542 attr_name=$attr; break
27543 else
27544 echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27548 fi
27550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27551 conftest$ac_exeext conftest.$ac_ext
27552 done
27553 { echo "$as_me:$LINENO: result: $attr_name" >&5
27554 echo "${ECHO_T}$attr_name" >&6; }
27555 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
27557 cat >>confdefs.h <<_ACEOF
27558 #define PTHREAD_CREATE_JOINABLE $attr_name
27559 _ACEOF
27561 fi
27563 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
27564 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
27565 x_rflag=no
27566 case "${host_cpu}-${host_os}" in
27567 *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
27568 *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
27569 *-linux*)
27570 if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
27571 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
27572 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
27573 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
27574 fi;;
27575 esac
27576 { echo "$as_me:$LINENO: result: ${x_rflag}" >&5
27577 echo "${ECHO_T}${x_rflag}" >&6; }
27578 if test "x$x_rflag" != xno; then
27579 PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
27580 fi
27582 LIBS="$save_LIBS"
27583 CFLAGS="$save_CFLAGS"
27585 # More AIX lossage: must compile with cc_r
27586 # Extract the first word of "cc_r", so it can be a program name with args.
27587 set dummy cc_r; ac_word=$2
27588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27590 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593 if test -n "$PTHREAD_CC"; then
27594 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
27595 else
27596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27597 for as_dir in $PATH
27598 do
27599 IFS=$as_save_IFS
27600 test -z "$as_dir" && as_dir=.
27601 for ac_exec_ext in '' $ac_executable_extensions; do
27602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27603 ac_cv_prog_PTHREAD_CC="cc_r"
27604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27605 break 2
27606 fi
27607 done
27608 done
27609 IFS=$as_save_IFS
27611 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
27612 fi
27613 fi
27614 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
27615 if test -n "$PTHREAD_CC"; then
27616 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
27617 echo "${ECHO_T}$PTHREAD_CC" >&6; }
27618 else
27619 { echo "$as_me:$LINENO: result: no" >&5
27620 echo "${ECHO_T}no" >&6; }
27621 fi
27624 else
27625 PTHREAD_CC="$CC"
27626 fi
27632 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
27633 if test x"$acx_pthread_ok" = xyes; then
27635 MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
27636 MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
27638 :
27639 else
27640 acx_pthread_ok=no
27642 fi
27643 ac_ext=c
27644 ac_cpp='$CPP $CPPFLAGS'
27645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27650 fi
27653 if test "x$x_rflag" != "xno"; then
27654 CPPFLAGS="$CPPFLAGS $x_rflag"
27655 fi
27659 if test $enable_pthread != no; then
27660 BUILD_MULTITHREAD_TRUE=
27661 BUILD_MULTITHREAD_FALSE='#'
27662 else
27663 BUILD_MULTITHREAD_TRUE='#'
27664 BUILD_MULTITHREAD_FALSE=
27665 fi
27668 ac_ext=c
27669 ac_cpp='$CPP $CPPFLAGS'
27670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27674 { echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
27675 echo $ECHO_N "checking do we need malloc/malloc.h... $ECHO_C" >&6; }
27676 cat >conftest.$ac_ext <<_ACEOF
27677 /* confdefs.h. */
27678 _ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h. */
27682 #include <stdlib.h>
27683 int
27684 main ()
27685 {
27686 malloc(1)
27688 ;
27689 return 0;
27690 }
27691 _ACEOF
27692 rm -f conftest.$ac_objext conftest$ac_exeext
27693 if { (ac_try="$ac_link"
27694 case "(($ac_try" in
27695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27696 *) ac_try_echo=$ac_try;;
27697 esac
27698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27699 (eval "$ac_link") 2>conftest.er1
27700 ac_status=$?
27701 grep -v '^ *+' conftest.er1 >conftest.err
27702 rm -f conftest.er1
27703 cat conftest.err >&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); } && {
27706 test -z "$ac_c_werror_flag" ||
27707 test ! -s conftest.err
27708 } && test -s conftest$ac_exeext &&
27709 $as_test_x conftest$ac_exeext; then
27710 { echo "$as_me:$LINENO: result: nope, works out of the box" >&5
27711 echo "${ECHO_T}nope, works out of the box" >&6; }
27712 else
27713 echo "$as_me: failed program was:" >&5
27714 sed 's/^/| /' conftest.$ac_ext >&5
27716 cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h. */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h. */
27722 #include <stdlib.h>
27723 #include <malloc/malloc.h>
27724 int
27725 main ()
27726 {
27727 malloc(1)
27729 ;
27730 return 0;
27731 }
27732 _ACEOF
27733 rm -f conftest.$ac_objext conftest$ac_exeext
27734 if { (ac_try="$ac_link"
27735 case "(($ac_try" in
27736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27737 *) ac_try_echo=$ac_try;;
27738 esac
27739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27740 (eval "$ac_link") 2>conftest.er1
27741 ac_status=$?
27742 grep -v '^ *+' conftest.er1 >conftest.err
27743 rm -f conftest.er1
27744 cat conftest.err >&5
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); } && {
27747 test -z "$ac_c_werror_flag" ||
27748 test ! -s conftest.err
27749 } && test -s conftest$ac_exeext &&
27750 $as_test_x conftest$ac_exeext; then
27751 cat >>confdefs.h <<\_ACEOF
27752 #define NEED_MALLOC_MALLOC_H 1
27753 _ACEOF
27755 { echo "$as_me:$LINENO: result: yes we do" >&5
27756 echo "${ECHO_T}yes we do" >&6; }
27757 else
27758 echo "$as_me: failed program was:" >&5
27759 sed 's/^/| /' conftest.$ac_ext >&5
27761 { { echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
27762 echo "$as_me: error: Can not figure how to compile malloc" >&2;}
27763 { (exit 1); exit 1; }; }
27765 fi
27767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27768 conftest$ac_exeext conftest.$ac_ext
27771 fi
27773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27774 conftest$ac_exeext conftest.$ac_ext
27775 ac_ext=c
27776 ac_cpp='$CPP $CPPFLAGS'
27777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27783 case $TERM in
27784 # for the most important terminal types we directly know the sequences
27785 xterm|xterm*|vt220|vt220*)
27786 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
27787 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
27788 ;;
27789 vt100|vt100*|cygwin)
27790 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
27791 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
27792 ;;
27793 *)
27794 T_MD=''
27795 T_ME=''
27796 ;;
27797 esac
27798 { echo "$as_me:$LINENO: result: " >&5
27799 echo "${ECHO_T}" >&6; }
27800 { echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
27801 echo "${ECHO_T}${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
27807 if test $enable_rrdcgi != no; then
27808 BUILD_RRDCGI_TRUE=
27809 BUILD_RRDCGI_FALSE='#'
27810 else
27811 BUILD_RRDCGI_TRUE='#'
27812 BUILD_RRDCGI_FALSE=
27813 fi
27817 CORE_LIBS="$LIBS"
27820 ac_ext=c
27821 ac_cpp='$CPP $CPPFLAGS'
27822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27826 EX_CHECK_STATE=NO
27827 ex_check_save_LIBS=${LIBS}
27828 ex_check_save_CPPFLAGS=${CPPFLAGS}
27829 ex_check_save_LDFLAGS=${LDFLAGS}
27830 if test "x""" != "x"; then
27831 CPPFLAGS="$CPPFLAGS -I"""
27832 fi
27833 { echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
27834 echo $ECHO_N "checking for cairo_font_options_create in -lcairo... $ECHO_C" >&6; }
27835 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27837 else
27838 ac_check_lib_save_LIBS=$LIBS
27839 LIBS="-lcairo $LIBS"
27840 cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h. */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27847 /* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850 #ifdef __cplusplus
27851 extern "C"
27852 #endif
27853 char cairo_font_options_create ();
27854 int
27855 main ()
27856 {
27857 return cairo_font_options_create ();
27858 ;
27859 return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (ac_try="$ac_link"
27864 case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27867 esac
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_link") 2>conftest.er1
27870 ac_status=$?
27871 grep -v '^ *+' conftest.er1 >conftest.err
27872 rm -f conftest.er1
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } && {
27876 test -z "$ac_c_werror_flag" ||
27877 test ! -s conftest.err
27878 } && test -s conftest$ac_exeext &&
27879 $as_test_x conftest$ac_exeext; then
27880 ac_cv_lib_cairo_cairo_font_options_create=yes
27881 else
27882 echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27885 ac_cv_lib_cairo_cairo_font_options_create=no
27886 fi
27888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27889 conftest$ac_exeext conftest.$ac_ext
27890 LIBS=$ac_check_lib_save_LIBS
27891 fi
27892 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
27893 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
27894 if test $ac_cv_lib_cairo_cairo_font_options_create = yes; then
27896 if test "${ac_cv_header_cairo_h+set}" = set; then
27897 { echo "$as_me:$LINENO: checking for cairo.h" >&5
27898 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
27899 if test "${ac_cv_header_cairo_h+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27901 fi
27902 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
27903 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
27904 else
27905 # Is the header compilable?
27906 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
27907 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
27908 cat >conftest.$ac_ext <<_ACEOF
27909 /* confdefs.h. */
27910 _ACEOF
27911 cat confdefs.h >>conftest.$ac_ext
27912 cat >>conftest.$ac_ext <<_ACEOF
27913 /* end confdefs.h. */
27914 $ac_includes_default
27915 #include <cairo.h>
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921 *) ac_try_echo=$ac_try;;
27922 esac
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924 (eval "$ac_compile") 2>conftest.er1
27925 ac_status=$?
27926 grep -v '^ *+' conftest.er1 >conftest.err
27927 rm -f conftest.er1
27928 cat conftest.err >&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); } && {
27931 test -z "$ac_c_werror_flag" ||
27932 test ! -s conftest.err
27933 } && test -s conftest.$ac_objext; then
27934 ac_header_compiler=yes
27935 else
27936 echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27939 ac_header_compiler=no
27940 fi
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27944 echo "${ECHO_T}$ac_header_compiler" >&6; }
27946 # Is the header present?
27947 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
27948 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
27949 cat >conftest.$ac_ext <<_ACEOF
27950 /* confdefs.h. */
27951 _ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h. */
27955 #include <cairo.h>
27956 _ACEOF
27957 if { (ac_try="$ac_cpp conftest.$ac_ext"
27958 case "(($ac_try" in
27959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960 *) ac_try_echo=$ac_try;;
27961 esac
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27964 ac_status=$?
27965 grep -v '^ *+' conftest.er1 >conftest.err
27966 rm -f conftest.er1
27967 cat conftest.err >&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); } >/dev/null && {
27970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27971 test ! -s conftest.err
27972 }; then
27973 ac_header_preproc=yes
27974 else
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27978 ac_header_preproc=no
27979 fi
27981 rm -f conftest.err conftest.$ac_ext
27982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27983 echo "${ECHO_T}$ac_header_preproc" >&6; }
27985 # So? What about this header?
27986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27987 yes:no: )
27988 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
27989 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27990 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
27991 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
27992 ac_header_preproc=yes
27993 ;;
27994 no:yes:* )
27995 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
27996 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
27997 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
27998 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
27999 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
28000 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
28001 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
28002 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
28003 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
28004 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
28005 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
28006 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
28008 ;;
28009 esac
28010 { echo "$as_me:$LINENO: checking for cairo.h" >&5
28011 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28012 if test "${ac_cv_header_cairo_h+set}" = set; then
28013 echo $ECHO_N "(cached) $ECHO_C" >&6
28014 else
28015 ac_cv_header_cairo_h=$ac_header_preproc
28016 fi
28017 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28018 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28020 fi
28021 if test $ac_cv_header_cairo_h = yes; then
28022 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
28023 fi
28026 fi
28028 if test $EX_CHECK_STATE = NO; then
28029 for ac_prog in pkg-config
28030 do
28031 # Extract the first word of "$ac_prog", so it can be a program name with args.
28032 set dummy $ac_prog; ac_word=$2
28033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28035 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28036 echo $ECHO_N "(cached) $ECHO_C" >&6
28037 else
28038 if test -n "$PKGCONFIG"; then
28039 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28040 else
28041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28042 for as_dir in $PATH
28043 do
28044 IFS=$as_save_IFS
28045 test -z "$as_dir" && as_dir=.
28046 for ac_exec_ext in '' $ac_executable_extensions; do
28047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28048 ac_cv_prog_PKGCONFIG="$ac_prog"
28049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28050 break 2
28051 fi
28052 done
28053 done
28054 IFS=$as_save_IFS
28056 fi
28057 fi
28058 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28059 if test -n "$PKGCONFIG"; then
28060 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28061 echo "${ECHO_T}$PKGCONFIG" >&6; }
28062 else
28063 { echo "$as_me:$LINENO: result: no" >&5
28064 echo "${ECHO_T}no" >&6; }
28065 fi
28068 test -n "$PKGCONFIG" && break
28069 done
28070 test -n "$PKGCONFIG" || PKGCONFIG="no"
28072 if test "$PKGCONFIG" != "no"; then
28073 if $PKGCONFIG --exists cairo-png; then
28074 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
28075 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
28076 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
28077 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
28078 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
28079 { echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
28080 echo $ECHO_N "checking for cairo_font_options_create in -lcairo... $ECHO_C" >&6; }
28081 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28083 else
28084 ac_check_lib_save_LIBS=$LIBS
28085 LIBS="-lcairo $LIBS"
28086 cat >conftest.$ac_ext <<_ACEOF
28087 /* confdefs.h. */
28088 _ACEOF
28089 cat confdefs.h >>conftest.$ac_ext
28090 cat >>conftest.$ac_ext <<_ACEOF
28091 /* end confdefs.h. */
28093 /* Override any GCC internal prototype to avoid an error.
28094 Use char because int might match the return type of a GCC
28095 builtin and then its argument prototype would still apply. */
28096 #ifdef __cplusplus
28097 extern "C"
28098 #endif
28099 char cairo_font_options_create ();
28100 int
28101 main ()
28102 {
28103 return cairo_font_options_create ();
28104 ;
28105 return 0;
28106 }
28107 _ACEOF
28108 rm -f conftest.$ac_objext conftest$ac_exeext
28109 if { (ac_try="$ac_link"
28110 case "(($ac_try" in
28111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112 *) ac_try_echo=$ac_try;;
28113 esac
28114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28115 (eval "$ac_link") 2>conftest.er1
28116 ac_status=$?
28117 grep -v '^ *+' conftest.er1 >conftest.err
28118 rm -f conftest.er1
28119 cat conftest.err >&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); } && {
28122 test -z "$ac_c_werror_flag" ||
28123 test ! -s conftest.err
28124 } && test -s conftest$ac_exeext &&
28125 $as_test_x conftest$ac_exeext; then
28126 ac_cv_lib_cairo_cairo_font_options_create=yes
28127 else
28128 echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ac_cv_lib_cairo_cairo_font_options_create=no
28132 fi
28134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28135 conftest$ac_exeext conftest.$ac_ext
28136 LIBS=$ac_check_lib_save_LIBS
28137 fi
28138 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
28139 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
28140 if test $ac_cv_lib_cairo_cairo_font_options_create = yes; then
28142 unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
28143 if test "${ac_cv_header_cairo_h+set}" = set; then
28144 { echo "$as_me:$LINENO: checking for cairo.h" >&5
28145 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28146 if test "${ac_cv_header_cairo_h+set}" = set; then
28147 echo $ECHO_N "(cached) $ECHO_C" >&6
28148 fi
28149 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28150 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28151 else
28152 # Is the header compilable?
28153 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
28154 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
28155 cat >conftest.$ac_ext <<_ACEOF
28156 /* confdefs.h. */
28157 _ACEOF
28158 cat confdefs.h >>conftest.$ac_ext
28159 cat >>conftest.$ac_ext <<_ACEOF
28160 /* end confdefs.h. */
28161 $ac_includes_default
28162 #include <cairo.h>
28163 _ACEOF
28164 rm -f conftest.$ac_objext
28165 if { (ac_try="$ac_compile"
28166 case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169 esac
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_compile") 2>conftest.er1
28172 ac_status=$?
28173 grep -v '^ *+' conftest.er1 >conftest.err
28174 rm -f conftest.er1
28175 cat conftest.err >&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } && {
28178 test -z "$ac_c_werror_flag" ||
28179 test ! -s conftest.err
28180 } && test -s conftest.$ac_objext; then
28181 ac_header_compiler=yes
28182 else
28183 echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28186 ac_header_compiler=no
28187 fi
28189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28191 echo "${ECHO_T}$ac_header_compiler" >&6; }
28193 # Is the header present?
28194 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
28195 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
28196 cat >conftest.$ac_ext <<_ACEOF
28197 /* confdefs.h. */
28198 _ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h. */
28202 #include <cairo.h>
28203 _ACEOF
28204 if { (ac_try="$ac_cpp conftest.$ac_ext"
28205 case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28208 esac
28209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28211 ac_status=$?
28212 grep -v '^ *+' conftest.er1 >conftest.err
28213 rm -f conftest.er1
28214 cat conftest.err >&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); } >/dev/null && {
28217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28218 test ! -s conftest.err
28219 }; then
28220 ac_header_preproc=yes
28221 else
28222 echo "$as_me: failed program was:" >&5
28223 sed 's/^/| /' conftest.$ac_ext >&5
28225 ac_header_preproc=no
28226 fi
28228 rm -f conftest.err conftest.$ac_ext
28229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28230 echo "${ECHO_T}$ac_header_preproc" >&6; }
28232 # So? What about this header?
28233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28234 yes:no: )
28235 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28236 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28237 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
28238 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
28239 ac_header_preproc=yes
28240 ;;
28241 no:yes:* )
28242 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
28243 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
28244 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
28245 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
28246 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
28247 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
28248 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
28249 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
28250 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
28251 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
28252 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
28253 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
28255 ;;
28256 esac
28257 { echo "$as_me:$LINENO: checking for cairo.h" >&5
28258 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28259 if test "${ac_cv_header_cairo_h+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28261 else
28262 ac_cv_header_cairo_h=$ac_header_preproc
28263 fi
28264 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28265 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28267 fi
28268 if test $ac_cv_header_cairo_h = yes; then
28269 EX_CHECK_STATE=YES
28270 fi
28274 fi
28276 else
28277 { echo "$as_me:$LINENO: WARNING:
28278 ----------------------------------------------------------------------------
28279 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
28280 You may want to set the PKG_CONFIG_PATH variable to point to its
28281 location.
28282 ----------------------------------------------------------------------------
28283 " >&5
28284 echo "$as_me: WARNING:
28285 ----------------------------------------------------------------------------
28286 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
28287 You may want to set the PKG_CONFIG_PATH variable to point to its
28288 location.
28289 ----------------------------------------------------------------------------
28290 " >&2;}
28291 fi
28292 fi
28293 fi
28295 if test ${EX_CHECK_STATE} = NO; then
28296 { echo "$as_me:$LINENO: WARNING:
28297 ----------------------------------------------------------------------------
28298 * I could not find a working copy of cairo-png. Check config.log for hints on why
28299 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28300 so that compiler and the linker can find libcairo and its header files. If
28301 you have not installed cairo-png, you can get it either from its original home on
28303 http://cairographics.org/releases/
28305 You can find also find an archive copy on
28307 http://oss.oetiker.ch/rrdtool/pub/libs
28309 The last tested version of cairo-png is 1.4.6.
28311 LIBS=$LIBS
28312 LDFLAGS=$LDFLAGS
28313 CPPFLAGS=$CPPFLAGS
28315 ----------------------------------------------------------------------------
28316 " >&5
28317 echo "$as_me: WARNING:
28318 ----------------------------------------------------------------------------
28319 * I could not find a working copy of cairo-png. Check config.log for hints on why
28320 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28321 so that compiler and the linker can find libcairo and its header files. If
28322 you have not installed cairo-png, you can get it either from its original home on
28324 http://cairographics.org/releases/
28326 You can find also find an archive copy on
28328 http://oss.oetiker.ch/rrdtool/pub/libs
28330 The last tested version of cairo-png is 1.4.6.
28332 LIBS=$LIBS
28333 LDFLAGS=$LDFLAGS
28334 CPPFLAGS=$CPPFLAGS
28336 ----------------------------------------------------------------------------
28337 " >&2;}
28338 EX_CHECK_ALL_ERR=YES
28339 LIBS="${ex_check_save_LIBS}"
28340 CPPFLAGS="${ex_check_save_CPPFLAGS}"
28341 LDFLAGS="${ex_check_save_LDFLAGS}"
28342 fi
28343 ac_ext=c
28344 ac_cpp='$CPP $CPPFLAGS'
28345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28352 ac_ext=c
28353 ac_cpp='$CPP $CPPFLAGS'
28354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28358 EX_CHECK_STATE=NO
28359 ex_check_save_LIBS=${LIBS}
28360 ex_check_save_CPPFLAGS=${CPPFLAGS}
28361 ex_check_save_LDFLAGS=${LDFLAGS}
28362 if test "x""" != "x"; then
28363 CPPFLAGS="$CPPFLAGS -I"""
28364 fi
28365 { echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
28366 echo $ECHO_N "checking for cairo_svg_surface_create in -lcairo... $ECHO_C" >&6; }
28367 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370 ac_check_lib_save_LIBS=$LIBS
28371 LIBS="-lcairo $LIBS"
28372 cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h. */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28379 /* Override any GCC internal prototype to avoid an error.
28380 Use char because int might match the return type of a GCC
28381 builtin and then its argument prototype would still apply. */
28382 #ifdef __cplusplus
28383 extern "C"
28384 #endif
28385 char cairo_svg_surface_create ();
28386 int
28387 main ()
28388 {
28389 return cairo_svg_surface_create ();
28390 ;
28391 return 0;
28392 }
28393 _ACEOF
28394 rm -f conftest.$ac_objext conftest$ac_exeext
28395 if { (ac_try="$ac_link"
28396 case "(($ac_try" in
28397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398 *) ac_try_echo=$ac_try;;
28399 esac
28400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401 (eval "$ac_link") 2>conftest.er1
28402 ac_status=$?
28403 grep -v '^ *+' conftest.er1 >conftest.err
28404 rm -f conftest.er1
28405 cat conftest.err >&5
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } && {
28408 test -z "$ac_c_werror_flag" ||
28409 test ! -s conftest.err
28410 } && test -s conftest$ac_exeext &&
28411 $as_test_x conftest$ac_exeext; then
28412 ac_cv_lib_cairo_cairo_svg_surface_create=yes
28413 else
28414 echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28417 ac_cv_lib_cairo_cairo_svg_surface_create=no
28418 fi
28420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28421 conftest$ac_exeext conftest.$ac_ext
28422 LIBS=$ac_check_lib_save_LIBS
28423 fi
28424 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
28425 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
28426 if test $ac_cv_lib_cairo_cairo_svg_surface_create = yes; then
28428 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
28429 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
28430 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
28431 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28433 fi
28434 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
28435 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
28436 else
28437 # Is the header compilable?
28438 { echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
28439 echo $ECHO_N "checking cairo-svg.h usability... $ECHO_C" >&6; }
28440 cat >conftest.$ac_ext <<_ACEOF
28441 /* confdefs.h. */
28442 _ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h. */
28446 $ac_includes_default
28447 #include <cairo-svg.h>
28448 _ACEOF
28449 rm -f conftest.$ac_objext
28450 if { (ac_try="$ac_compile"
28451 case "(($ac_try" in
28452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453 *) ac_try_echo=$ac_try;;
28454 esac
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456 (eval "$ac_compile") 2>conftest.er1
28457 ac_status=$?
28458 grep -v '^ *+' conftest.er1 >conftest.err
28459 rm -f conftest.er1
28460 cat conftest.err >&5
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); } && {
28463 test -z "$ac_c_werror_flag" ||
28464 test ! -s conftest.err
28465 } && test -s conftest.$ac_objext; then
28466 ac_header_compiler=yes
28467 else
28468 echo "$as_me: failed program was:" >&5
28469 sed 's/^/| /' conftest.$ac_ext >&5
28471 ac_header_compiler=no
28472 fi
28474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28476 echo "${ECHO_T}$ac_header_compiler" >&6; }
28478 # Is the header present?
28479 { echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
28480 echo $ECHO_N "checking cairo-svg.h presence... $ECHO_C" >&6; }
28481 cat >conftest.$ac_ext <<_ACEOF
28482 /* confdefs.h. */
28483 _ACEOF
28484 cat confdefs.h >>conftest.$ac_ext
28485 cat >>conftest.$ac_ext <<_ACEOF
28486 /* end confdefs.h. */
28487 #include <cairo-svg.h>
28488 _ACEOF
28489 if { (ac_try="$ac_cpp conftest.$ac_ext"
28490 case "(($ac_try" in
28491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492 *) ac_try_echo=$ac_try;;
28493 esac
28494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28496 ac_status=$?
28497 grep -v '^ *+' conftest.er1 >conftest.err
28498 rm -f conftest.er1
28499 cat conftest.err >&5
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); } >/dev/null && {
28502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28503 test ! -s conftest.err
28504 }; then
28505 ac_header_preproc=yes
28506 else
28507 echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28510 ac_header_preproc=no
28511 fi
28513 rm -f conftest.err conftest.$ac_ext
28514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28515 echo "${ECHO_T}$ac_header_preproc" >&6; }
28517 # So? What about this header?
28518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28519 yes:no: )
28520 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
28521 echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28522 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
28523 echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
28524 ac_header_preproc=yes
28525 ;;
28526 no:yes:* )
28527 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
28528 echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
28529 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&5
28530 echo "$as_me: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&2;}
28531 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
28532 echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
28533 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&5
28534 echo "$as_me: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&2;}
28535 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
28536 echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
28537 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
28538 echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
28540 ;;
28541 esac
28542 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
28543 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
28544 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
28545 echo $ECHO_N "(cached) $ECHO_C" >&6
28546 else
28547 ac_cv_header_cairo_svg_h=$ac_header_preproc
28548 fi
28549 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
28550 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
28552 fi
28553 if test $ac_cv_header_cairo_svg_h = yes; then
28554 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
28555 fi
28558 fi
28560 if test $EX_CHECK_STATE = NO; then
28561 for ac_prog in pkg-config
28562 do
28563 # Extract the first word of "$ac_prog", so it can be a program name with args.
28564 set dummy $ac_prog; ac_word=$2
28565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28567 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28569 else
28570 if test -n "$PKGCONFIG"; then
28571 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28572 else
28573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28574 for as_dir in $PATH
28575 do
28576 IFS=$as_save_IFS
28577 test -z "$as_dir" && as_dir=.
28578 for ac_exec_ext in '' $ac_executable_extensions; do
28579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28580 ac_cv_prog_PKGCONFIG="$ac_prog"
28581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28582 break 2
28583 fi
28584 done
28585 done
28586 IFS=$as_save_IFS
28588 fi
28589 fi
28590 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28591 if test -n "$PKGCONFIG"; then
28592 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28593 echo "${ECHO_T}$PKGCONFIG" >&6; }
28594 else
28595 { echo "$as_me:$LINENO: result: no" >&5
28596 echo "${ECHO_T}no" >&6; }
28597 fi
28600 test -n "$PKGCONFIG" && break
28601 done
28602 test -n "$PKGCONFIG" || PKGCONFIG="no"
28604 if test "$PKGCONFIG" != "no"; then
28605 if $PKGCONFIG --exists cairo-svg; then
28606 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
28607 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
28608 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
28609 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
28610 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
28611 { echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
28612 echo $ECHO_N "checking for cairo_svg_surface_create in -lcairo... $ECHO_C" >&6; }
28613 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
28614 echo $ECHO_N "(cached) $ECHO_C" >&6
28615 else
28616 ac_check_lib_save_LIBS=$LIBS
28617 LIBS="-lcairo $LIBS"
28618 cat >conftest.$ac_ext <<_ACEOF
28619 /* confdefs.h. */
28620 _ACEOF
28621 cat confdefs.h >>conftest.$ac_ext
28622 cat >>conftest.$ac_ext <<_ACEOF
28623 /* end confdefs.h. */
28625 /* Override any GCC internal prototype to avoid an error.
28626 Use char because int might match the return type of a GCC
28627 builtin and then its argument prototype would still apply. */
28628 #ifdef __cplusplus
28629 extern "C"
28630 #endif
28631 char cairo_svg_surface_create ();
28632 int
28633 main ()
28634 {
28635 return cairo_svg_surface_create ();
28636 ;
28637 return 0;
28638 }
28639 _ACEOF
28640 rm -f conftest.$ac_objext conftest$ac_exeext
28641 if { (ac_try="$ac_link"
28642 case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28645 esac
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_link") 2>conftest.er1
28648 ac_status=$?
28649 grep -v '^ *+' conftest.er1 >conftest.err
28650 rm -f conftest.er1
28651 cat conftest.err >&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); } && {
28654 test -z "$ac_c_werror_flag" ||
28655 test ! -s conftest.err
28656 } && test -s conftest$ac_exeext &&
28657 $as_test_x conftest$ac_exeext; then
28658 ac_cv_lib_cairo_cairo_svg_surface_create=yes
28659 else
28660 echo "$as_me: failed program was:" >&5
28661 sed 's/^/| /' conftest.$ac_ext >&5
28663 ac_cv_lib_cairo_cairo_svg_surface_create=no
28664 fi
28666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28667 conftest$ac_exeext conftest.$ac_ext
28668 LIBS=$ac_check_lib_save_LIBS
28669 fi
28670 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
28671 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
28672 if test $ac_cv_lib_cairo_cairo_svg_surface_create = yes; then
28674 unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
28675 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
28676 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
28677 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
28678 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
28679 echo $ECHO_N "(cached) $ECHO_C" >&6
28680 fi
28681 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
28682 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
28683 else
28684 # Is the header compilable?
28685 { echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
28686 echo $ECHO_N "checking cairo-svg.h usability... $ECHO_C" >&6; }
28687 cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h. */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h. */
28693 $ac_includes_default
28694 #include <cairo-svg.h>
28695 _ACEOF
28696 rm -f conftest.$ac_objext
28697 if { (ac_try="$ac_compile"
28698 case "(($ac_try" in
28699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28700 *) ac_try_echo=$ac_try;;
28701 esac
28702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28703 (eval "$ac_compile") 2>conftest.er1
28704 ac_status=$?
28705 grep -v '^ *+' conftest.er1 >conftest.err
28706 rm -f conftest.er1
28707 cat conftest.err >&5
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); } && {
28710 test -z "$ac_c_werror_flag" ||
28711 test ! -s conftest.err
28712 } && test -s conftest.$ac_objext; then
28713 ac_header_compiler=yes
28714 else
28715 echo "$as_me: failed program was:" >&5
28716 sed 's/^/| /' conftest.$ac_ext >&5
28718 ac_header_compiler=no
28719 fi
28721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28723 echo "${ECHO_T}$ac_header_compiler" >&6; }
28725 # Is the header present?
28726 { echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
28727 echo $ECHO_N "checking cairo-svg.h presence... $ECHO_C" >&6; }
28728 cat >conftest.$ac_ext <<_ACEOF
28729 /* confdefs.h. */
28730 _ACEOF
28731 cat confdefs.h >>conftest.$ac_ext
28732 cat >>conftest.$ac_ext <<_ACEOF
28733 /* end confdefs.h. */
28734 #include <cairo-svg.h>
28735 _ACEOF
28736 if { (ac_try="$ac_cpp conftest.$ac_ext"
28737 case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28740 esac
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28743 ac_status=$?
28744 grep -v '^ *+' conftest.er1 >conftest.err
28745 rm -f conftest.er1
28746 cat conftest.err >&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); } >/dev/null && {
28749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28750 test ! -s conftest.err
28751 }; then
28752 ac_header_preproc=yes
28753 else
28754 echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.$ac_ext >&5
28757 ac_header_preproc=no
28758 fi
28760 rm -f conftest.err conftest.$ac_ext
28761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28762 echo "${ECHO_T}$ac_header_preproc" >&6; }
28764 # So? What about this header?
28765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28766 yes:no: )
28767 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
28768 echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28769 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
28770 echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
28771 ac_header_preproc=yes
28772 ;;
28773 no:yes:* )
28774 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
28775 echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
28776 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&5
28777 echo "$as_me: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&2;}
28778 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
28779 echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
28780 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&5
28781 echo "$as_me: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&2;}
28782 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
28783 echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
28784 { echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
28785 echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
28787 ;;
28788 esac
28789 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
28790 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
28791 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
28792 echo $ECHO_N "(cached) $ECHO_C" >&6
28793 else
28794 ac_cv_header_cairo_svg_h=$ac_header_preproc
28795 fi
28796 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
28797 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
28799 fi
28800 if test $ac_cv_header_cairo_svg_h = yes; then
28801 EX_CHECK_STATE=YES
28802 fi
28806 fi
28808 else
28809 { echo "$as_me:$LINENO: WARNING:
28810 ----------------------------------------------------------------------------
28811 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
28812 You may want to set the PKG_CONFIG_PATH variable to point to its
28813 location.
28814 ----------------------------------------------------------------------------
28815 " >&5
28816 echo "$as_me: WARNING:
28817 ----------------------------------------------------------------------------
28818 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
28819 You may want to set the PKG_CONFIG_PATH variable to point to its
28820 location.
28821 ----------------------------------------------------------------------------
28822 " >&2;}
28823 fi
28824 fi
28825 fi
28827 if test ${EX_CHECK_STATE} = NO; then
28828 { echo "$as_me:$LINENO: WARNING:
28829 ----------------------------------------------------------------------------
28830 * I could not find a working copy of cairo-svg. Check config.log for hints on why
28831 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28832 so that compiler and the linker can find libcairo and its header files. If
28833 you have not installed cairo-svg, you can get it either from its original home on
28835 http://cairographics.org/releases/
28837 You can find also find an archive copy on
28839 http://oss.oetiker.ch/rrdtool/pub/libs
28841 The last tested version of cairo-svg is 1.4.6.
28843 LIBS=$LIBS
28844 LDFLAGS=$LDFLAGS
28845 CPPFLAGS=$CPPFLAGS
28847 ----------------------------------------------------------------------------
28848 " >&5
28849 echo "$as_me: WARNING:
28850 ----------------------------------------------------------------------------
28851 * I could not find a working copy of cairo-svg. Check config.log for hints on why
28852 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28853 so that compiler and the linker can find libcairo and its header files. If
28854 you have not installed cairo-svg, you can get it either from its original home on
28856 http://cairographics.org/releases/
28858 You can find also find an archive copy on
28860 http://oss.oetiker.ch/rrdtool/pub/libs
28862 The last tested version of cairo-svg is 1.4.6.
28864 LIBS=$LIBS
28865 LDFLAGS=$LDFLAGS
28866 CPPFLAGS=$CPPFLAGS
28868 ----------------------------------------------------------------------------
28869 " >&2;}
28870 EX_CHECK_ALL_ERR=YES
28871 LIBS="${ex_check_save_LIBS}"
28872 CPPFLAGS="${ex_check_save_CPPFLAGS}"
28873 LDFLAGS="${ex_check_save_LDFLAGS}"
28874 fi
28875 ac_ext=c
28876 ac_cpp='$CPP $CPPFLAGS'
28877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28884 ac_ext=c
28885 ac_cpp='$CPP $CPPFLAGS'
28886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28890 EX_CHECK_STATE=NO
28891 ex_check_save_LIBS=${LIBS}
28892 ex_check_save_CPPFLAGS=${CPPFLAGS}
28893 ex_check_save_LDFLAGS=${LDFLAGS}
28894 if test "x""" != "x"; then
28895 CPPFLAGS="$CPPFLAGS -I"""
28896 fi
28897 { echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
28898 echo $ECHO_N "checking for cairo_pdf_surface_create in -lcairo... $ECHO_C" >&6; }
28899 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
28900 echo $ECHO_N "(cached) $ECHO_C" >&6
28901 else
28902 ac_check_lib_save_LIBS=$LIBS
28903 LIBS="-lcairo $LIBS"
28904 cat >conftest.$ac_ext <<_ACEOF
28905 /* confdefs.h. */
28906 _ACEOF
28907 cat confdefs.h >>conftest.$ac_ext
28908 cat >>conftest.$ac_ext <<_ACEOF
28909 /* end confdefs.h. */
28911 /* Override any GCC internal prototype to avoid an error.
28912 Use char because int might match the return type of a GCC
28913 builtin and then its argument prototype would still apply. */
28914 #ifdef __cplusplus
28915 extern "C"
28916 #endif
28917 char cairo_pdf_surface_create ();
28918 int
28919 main ()
28920 {
28921 return cairo_pdf_surface_create ();
28922 ;
28923 return 0;
28924 }
28925 _ACEOF
28926 rm -f conftest.$ac_objext conftest$ac_exeext
28927 if { (ac_try="$ac_link"
28928 case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28931 esac
28932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933 (eval "$ac_link") 2>conftest.er1
28934 ac_status=$?
28935 grep -v '^ *+' conftest.er1 >conftest.err
28936 rm -f conftest.er1
28937 cat conftest.err >&5
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } && {
28940 test -z "$ac_c_werror_flag" ||
28941 test ! -s conftest.err
28942 } && test -s conftest$ac_exeext &&
28943 $as_test_x conftest$ac_exeext; then
28944 ac_cv_lib_cairo_cairo_pdf_surface_create=yes
28945 else
28946 echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28949 ac_cv_lib_cairo_cairo_pdf_surface_create=no
28950 fi
28952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28953 conftest$ac_exeext conftest.$ac_ext
28954 LIBS=$ac_check_lib_save_LIBS
28955 fi
28956 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
28957 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
28958 if test $ac_cv_lib_cairo_cairo_pdf_surface_create = yes; then
28960 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
28961 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
28962 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
28963 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28965 fi
28966 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
28967 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
28968 else
28969 # Is the header compilable?
28970 { echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
28971 echo $ECHO_N "checking cairo-pdf.h usability... $ECHO_C" >&6; }
28972 cat >conftest.$ac_ext <<_ACEOF
28973 /* confdefs.h. */
28974 _ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28978 $ac_includes_default
28979 #include <cairo-pdf.h>
28980 _ACEOF
28981 rm -f conftest.$ac_objext
28982 if { (ac_try="$ac_compile"
28983 case "(($ac_try" in
28984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985 *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_compile") 2>conftest.er1
28989 ac_status=$?
28990 grep -v '^ *+' conftest.er1 >conftest.err
28991 rm -f conftest.er1
28992 cat conftest.err >&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); } && {
28995 test -z "$ac_c_werror_flag" ||
28996 test ! -s conftest.err
28997 } && test -s conftest.$ac_objext; then
28998 ac_header_compiler=yes
28999 else
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 ac_header_compiler=no
29004 fi
29006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29008 echo "${ECHO_T}$ac_header_compiler" >&6; }
29010 # Is the header present?
29011 { echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
29012 echo $ECHO_N "checking cairo-pdf.h presence... $ECHO_C" >&6; }
29013 cat >conftest.$ac_ext <<_ACEOF
29014 /* confdefs.h. */
29015 _ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h. */
29019 #include <cairo-pdf.h>
29020 _ACEOF
29021 if { (ac_try="$ac_cpp conftest.$ac_ext"
29022 case "(($ac_try" in
29023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024 *) ac_try_echo=$ac_try;;
29025 esac
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29028 ac_status=$?
29029 grep -v '^ *+' conftest.er1 >conftest.err
29030 rm -f conftest.er1
29031 cat conftest.err >&5
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); } >/dev/null && {
29034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29035 test ! -s conftest.err
29036 }; then
29037 ac_header_preproc=yes
29038 else
29039 echo "$as_me: failed program was:" >&5
29040 sed 's/^/| /' conftest.$ac_ext >&5
29042 ac_header_preproc=no
29043 fi
29045 rm -f conftest.err conftest.$ac_ext
29046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29047 echo "${ECHO_T}$ac_header_preproc" >&6; }
29049 # So? What about this header?
29050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29051 yes:no: )
29052 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
29053 echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29054 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
29055 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
29056 ac_header_preproc=yes
29057 ;;
29058 no:yes:* )
29059 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
29060 echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
29061 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&5
29062 echo "$as_me: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&2;}
29063 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
29064 echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
29065 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&5
29066 echo "$as_me: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&2;}
29067 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
29068 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
29069 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
29070 echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
29072 ;;
29073 esac
29074 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29075 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29076 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 else
29079 ac_cv_header_cairo_pdf_h=$ac_header_preproc
29080 fi
29081 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29082 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29084 fi
29085 if test $ac_cv_header_cairo_pdf_h = yes; then
29086 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29087 fi
29090 fi
29092 if test $EX_CHECK_STATE = NO; then
29093 for ac_prog in pkg-config
29094 do
29095 # Extract the first word of "$ac_prog", so it can be a program name with args.
29096 set dummy $ac_prog; ac_word=$2
29097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29099 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29101 else
29102 if test -n "$PKGCONFIG"; then
29103 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29104 else
29105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29106 for as_dir in $PATH
29107 do
29108 IFS=$as_save_IFS
29109 test -z "$as_dir" && as_dir=.
29110 for ac_exec_ext in '' $ac_executable_extensions; do
29111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29112 ac_cv_prog_PKGCONFIG="$ac_prog"
29113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29114 break 2
29115 fi
29116 done
29117 done
29118 IFS=$as_save_IFS
29120 fi
29121 fi
29122 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29123 if test -n "$PKGCONFIG"; then
29124 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29125 echo "${ECHO_T}$PKGCONFIG" >&6; }
29126 else
29127 { echo "$as_me:$LINENO: result: no" >&5
29128 echo "${ECHO_T}no" >&6; }
29129 fi
29132 test -n "$PKGCONFIG" && break
29133 done
29134 test -n "$PKGCONFIG" || PKGCONFIG="no"
29136 if test "$PKGCONFIG" != "no"; then
29137 if $PKGCONFIG --exists cairo-pdf; then
29138 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
29139 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
29140 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
29141 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
29142 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
29143 { echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
29144 echo $ECHO_N "checking for cairo_pdf_surface_create in -lcairo... $ECHO_C" >&6; }
29145 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
29146 echo $ECHO_N "(cached) $ECHO_C" >&6
29147 else
29148 ac_check_lib_save_LIBS=$LIBS
29149 LIBS="-lcairo $LIBS"
29150 cat >conftest.$ac_ext <<_ACEOF
29151 /* confdefs.h. */
29152 _ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29157 /* Override any GCC internal prototype to avoid an error.
29158 Use char because int might match the return type of a GCC
29159 builtin and then its argument prototype would still apply. */
29160 #ifdef __cplusplus
29161 extern "C"
29162 #endif
29163 char cairo_pdf_surface_create ();
29164 int
29165 main ()
29166 {
29167 return cairo_pdf_surface_create ();
29168 ;
29169 return 0;
29170 }
29171 _ACEOF
29172 rm -f conftest.$ac_objext conftest$ac_exeext
29173 if { (ac_try="$ac_link"
29174 case "(($ac_try" in
29175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176 *) ac_try_echo=$ac_try;;
29177 esac
29178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179 (eval "$ac_link") 2>conftest.er1
29180 ac_status=$?
29181 grep -v '^ *+' conftest.er1 >conftest.err
29182 rm -f conftest.er1
29183 cat conftest.err >&5
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); } && {
29186 test -z "$ac_c_werror_flag" ||
29187 test ! -s conftest.err
29188 } && test -s conftest$ac_exeext &&
29189 $as_test_x conftest$ac_exeext; then
29190 ac_cv_lib_cairo_cairo_pdf_surface_create=yes
29191 else
29192 echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29195 ac_cv_lib_cairo_cairo_pdf_surface_create=no
29196 fi
29198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29199 conftest$ac_exeext conftest.$ac_ext
29200 LIBS=$ac_check_lib_save_LIBS
29201 fi
29202 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
29203 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
29204 if test $ac_cv_lib_cairo_cairo_pdf_surface_create = yes; then
29206 unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29207 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29208 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29209 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29210 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29211 echo $ECHO_N "(cached) $ECHO_C" >&6
29212 fi
29213 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29214 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29215 else
29216 # Is the header compilable?
29217 { echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
29218 echo $ECHO_N "checking cairo-pdf.h usability... $ECHO_C" >&6; }
29219 cat >conftest.$ac_ext <<_ACEOF
29220 /* confdefs.h. */
29221 _ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29225 $ac_includes_default
29226 #include <cairo-pdf.h>
29227 _ACEOF
29228 rm -f conftest.$ac_objext
29229 if { (ac_try="$ac_compile"
29230 case "(($ac_try" in
29231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29232 *) ac_try_echo=$ac_try;;
29233 esac
29234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29235 (eval "$ac_compile") 2>conftest.er1
29236 ac_status=$?
29237 grep -v '^ *+' conftest.er1 >conftest.err
29238 rm -f conftest.er1
29239 cat conftest.err >&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); } && {
29242 test -z "$ac_c_werror_flag" ||
29243 test ! -s conftest.err
29244 } && test -s conftest.$ac_objext; then
29245 ac_header_compiler=yes
29246 else
29247 echo "$as_me: failed program was:" >&5
29248 sed 's/^/| /' conftest.$ac_ext >&5
29250 ac_header_compiler=no
29251 fi
29253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29255 echo "${ECHO_T}$ac_header_compiler" >&6; }
29257 # Is the header present?
29258 { echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
29259 echo $ECHO_N "checking cairo-pdf.h presence... $ECHO_C" >&6; }
29260 cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h. */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29266 #include <cairo-pdf.h>
29267 _ACEOF
29268 if { (ac_try="$ac_cpp conftest.$ac_ext"
29269 case "(($ac_try" in
29270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271 *) ac_try_echo=$ac_try;;
29272 esac
29273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29275 ac_status=$?
29276 grep -v '^ *+' conftest.er1 >conftest.err
29277 rm -f conftest.er1
29278 cat conftest.err >&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } >/dev/null && {
29281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29282 test ! -s conftest.err
29283 }; then
29284 ac_header_preproc=yes
29285 else
29286 echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29289 ac_header_preproc=no
29290 fi
29292 rm -f conftest.err conftest.$ac_ext
29293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29294 echo "${ECHO_T}$ac_header_preproc" >&6; }
29296 # So? What about this header?
29297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29298 yes:no: )
29299 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
29300 echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29301 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
29302 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
29303 ac_header_preproc=yes
29304 ;;
29305 no:yes:* )
29306 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
29307 echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
29308 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&5
29309 echo "$as_me: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
29311 echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
29312 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&5
29313 echo "$as_me: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&2;}
29314 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
29315 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
29316 { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
29317 echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
29319 ;;
29320 esac
29321 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29322 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29323 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29324 echo $ECHO_N "(cached) $ECHO_C" >&6
29325 else
29326 ac_cv_header_cairo_pdf_h=$ac_header_preproc
29327 fi
29328 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29329 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29331 fi
29332 if test $ac_cv_header_cairo_pdf_h = yes; then
29333 EX_CHECK_STATE=YES
29334 fi
29338 fi
29340 else
29341 { echo "$as_me:$LINENO: WARNING:
29342 ----------------------------------------------------------------------------
29343 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
29344 You may want to set the PKG_CONFIG_PATH variable to point to its
29345 location.
29346 ----------------------------------------------------------------------------
29347 " >&5
29348 echo "$as_me: WARNING:
29349 ----------------------------------------------------------------------------
29350 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
29351 You may want to set the PKG_CONFIG_PATH variable to point to its
29352 location.
29353 ----------------------------------------------------------------------------
29354 " >&2;}
29355 fi
29356 fi
29357 fi
29359 if test ${EX_CHECK_STATE} = NO; then
29360 { echo "$as_me:$LINENO: WARNING:
29361 ----------------------------------------------------------------------------
29362 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
29363 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29364 so that compiler and the linker can find libcairo and its header files. If
29365 you have not installed cairo-pdf, you can get it either from its original home on
29367 http://cairographics.org/releases/
29369 You can find also find an archive copy on
29371 http://oss.oetiker.ch/rrdtool/pub/libs
29373 The last tested version of cairo-pdf is 1.4.6.
29375 LIBS=$LIBS
29376 LDFLAGS=$LDFLAGS
29377 CPPFLAGS=$CPPFLAGS
29379 ----------------------------------------------------------------------------
29380 " >&5
29381 echo "$as_me: WARNING:
29382 ----------------------------------------------------------------------------
29383 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
29384 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29385 so that compiler and the linker can find libcairo and its header files. If
29386 you have not installed cairo-pdf, you can get it either from its original home on
29388 http://cairographics.org/releases/
29390 You can find also find an archive copy on
29392 http://oss.oetiker.ch/rrdtool/pub/libs
29394 The last tested version of cairo-pdf is 1.4.6.
29396 LIBS=$LIBS
29397 LDFLAGS=$LDFLAGS
29398 CPPFLAGS=$CPPFLAGS
29400 ----------------------------------------------------------------------------
29401 " >&2;}
29402 EX_CHECK_ALL_ERR=YES
29403 LIBS="${ex_check_save_LIBS}"
29404 CPPFLAGS="${ex_check_save_CPPFLAGS}"
29405 LDFLAGS="${ex_check_save_LDFLAGS}"
29406 fi
29407 ac_ext=c
29408 ac_cpp='$CPP $CPPFLAGS'
29409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29416 ac_ext=c
29417 ac_cpp='$CPP $CPPFLAGS'
29418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29422 EX_CHECK_STATE=NO
29423 ex_check_save_LIBS=${LIBS}
29424 ex_check_save_CPPFLAGS=${CPPFLAGS}
29425 ex_check_save_LDFLAGS=${LDFLAGS}
29426 if test "x""" != "x"; then
29427 CPPFLAGS="$CPPFLAGS -I"""
29428 fi
29429 { echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
29430 echo $ECHO_N "checking for cairo_ps_surface_create in -lcairo... $ECHO_C" >&6; }
29431 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29433 else
29434 ac_check_lib_save_LIBS=$LIBS
29435 LIBS="-lcairo $LIBS"
29436 cat >conftest.$ac_ext <<_ACEOF
29437 /* confdefs.h. */
29438 _ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h. */
29443 /* Override any GCC internal prototype to avoid an error.
29444 Use char because int might match the return type of a GCC
29445 builtin and then its argument prototype would still apply. */
29446 #ifdef __cplusplus
29447 extern "C"
29448 #endif
29449 char cairo_ps_surface_create ();
29450 int
29451 main ()
29452 {
29453 return cairo_ps_surface_create ();
29454 ;
29455 return 0;
29456 }
29457 _ACEOF
29458 rm -f conftest.$ac_objext conftest$ac_exeext
29459 if { (ac_try="$ac_link"
29460 case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29463 esac
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_link") 2>conftest.er1
29466 ac_status=$?
29467 grep -v '^ *+' conftest.er1 >conftest.err
29468 rm -f conftest.er1
29469 cat conftest.err >&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } && {
29472 test -z "$ac_c_werror_flag" ||
29473 test ! -s conftest.err
29474 } && test -s conftest$ac_exeext &&
29475 $as_test_x conftest$ac_exeext; then
29476 ac_cv_lib_cairo_cairo_ps_surface_create=yes
29477 else
29478 echo "$as_me: failed program was:" >&5
29479 sed 's/^/| /' conftest.$ac_ext >&5
29481 ac_cv_lib_cairo_cairo_ps_surface_create=no
29482 fi
29484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29485 conftest$ac_exeext conftest.$ac_ext
29486 LIBS=$ac_check_lib_save_LIBS
29487 fi
29488 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
29489 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
29490 if test $ac_cv_lib_cairo_cairo_ps_surface_create = yes; then
29492 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
29493 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
29494 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
29495 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
29496 echo $ECHO_N "(cached) $ECHO_C" >&6
29497 fi
29498 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
29499 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
29500 else
29501 # Is the header compilable?
29502 { echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
29503 echo $ECHO_N "checking cairo-ps.h usability... $ECHO_C" >&6; }
29504 cat >conftest.$ac_ext <<_ACEOF
29505 /* confdefs.h. */
29506 _ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h. */
29510 $ac_includes_default
29511 #include <cairo-ps.h>
29512 _ACEOF
29513 rm -f conftest.$ac_objext
29514 if { (ac_try="$ac_compile"
29515 case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29518 esac
29519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520 (eval "$ac_compile") 2>conftest.er1
29521 ac_status=$?
29522 grep -v '^ *+' conftest.er1 >conftest.err
29523 rm -f conftest.er1
29524 cat conftest.err >&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } && {
29527 test -z "$ac_c_werror_flag" ||
29528 test ! -s conftest.err
29529 } && test -s conftest.$ac_objext; then
29530 ac_header_compiler=yes
29531 else
29532 echo "$as_me: failed program was:" >&5
29533 sed 's/^/| /' conftest.$ac_ext >&5
29535 ac_header_compiler=no
29536 fi
29538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29540 echo "${ECHO_T}$ac_header_compiler" >&6; }
29542 # Is the header present?
29543 { echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
29544 echo $ECHO_N "checking cairo-ps.h presence... $ECHO_C" >&6; }
29545 cat >conftest.$ac_ext <<_ACEOF
29546 /* confdefs.h. */
29547 _ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h. */
29551 #include <cairo-ps.h>
29552 _ACEOF
29553 if { (ac_try="$ac_cpp conftest.$ac_ext"
29554 case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29557 esac
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29560 ac_status=$?
29561 grep -v '^ *+' conftest.er1 >conftest.err
29562 rm -f conftest.er1
29563 cat conftest.err >&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); } >/dev/null && {
29566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29567 test ! -s conftest.err
29568 }; then
29569 ac_header_preproc=yes
29570 else
29571 echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29574 ac_header_preproc=no
29575 fi
29577 rm -f conftest.err conftest.$ac_ext
29578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29579 echo "${ECHO_T}$ac_header_preproc" >&6; }
29581 # So? What about this header?
29582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29583 yes:no: )
29584 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
29585 echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29586 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
29587 echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
29588 ac_header_preproc=yes
29589 ;;
29590 no:yes:* )
29591 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
29592 echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
29593 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&5
29594 echo "$as_me: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
29596 echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&5
29598 echo "$as_me: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
29600 echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
29601 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
29602 echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
29604 ;;
29605 esac
29606 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
29607 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
29608 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
29609 echo $ECHO_N "(cached) $ECHO_C" >&6
29610 else
29611 ac_cv_header_cairo_ps_h=$ac_header_preproc
29612 fi
29613 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
29614 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
29616 fi
29617 if test $ac_cv_header_cairo_ps_h = yes; then
29618 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29619 fi
29622 fi
29624 if test $EX_CHECK_STATE = NO; then
29625 for ac_prog in pkg-config
29626 do
29627 # Extract the first word of "$ac_prog", so it can be a program name with args.
29628 set dummy $ac_prog; ac_word=$2
29629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29631 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29632 echo $ECHO_N "(cached) $ECHO_C" >&6
29633 else
29634 if test -n "$PKGCONFIG"; then
29635 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29636 else
29637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29638 for as_dir in $PATH
29639 do
29640 IFS=$as_save_IFS
29641 test -z "$as_dir" && as_dir=.
29642 for ac_exec_ext in '' $ac_executable_extensions; do
29643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29644 ac_cv_prog_PKGCONFIG="$ac_prog"
29645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29646 break 2
29647 fi
29648 done
29649 done
29650 IFS=$as_save_IFS
29652 fi
29653 fi
29654 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29655 if test -n "$PKGCONFIG"; then
29656 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29657 echo "${ECHO_T}$PKGCONFIG" >&6; }
29658 else
29659 { echo "$as_me:$LINENO: result: no" >&5
29660 echo "${ECHO_T}no" >&6; }
29661 fi
29664 test -n "$PKGCONFIG" && break
29665 done
29666 test -n "$PKGCONFIG" || PKGCONFIG="no"
29668 if test "$PKGCONFIG" != "no"; then
29669 if $PKGCONFIG --exists cairo-ps; then
29670 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
29671 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
29672 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
29673 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
29674 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
29675 { echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
29676 echo $ECHO_N "checking for cairo_ps_surface_create in -lcairo... $ECHO_C" >&6; }
29677 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
29678 echo $ECHO_N "(cached) $ECHO_C" >&6
29679 else
29680 ac_check_lib_save_LIBS=$LIBS
29681 LIBS="-lcairo $LIBS"
29682 cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h. */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29689 /* Override any GCC internal prototype to avoid an error.
29690 Use char because int might match the return type of a GCC
29691 builtin and then its argument prototype would still apply. */
29692 #ifdef __cplusplus
29693 extern "C"
29694 #endif
29695 char cairo_ps_surface_create ();
29696 int
29697 main ()
29698 {
29699 return cairo_ps_surface_create ();
29700 ;
29701 return 0;
29702 }
29703 _ACEOF
29704 rm -f conftest.$ac_objext conftest$ac_exeext
29705 if { (ac_try="$ac_link"
29706 case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29709 esac
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_link") 2>conftest.er1
29712 ac_status=$?
29713 grep -v '^ *+' conftest.er1 >conftest.err
29714 rm -f conftest.er1
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } && {
29718 test -z "$ac_c_werror_flag" ||
29719 test ! -s conftest.err
29720 } && test -s conftest$ac_exeext &&
29721 $as_test_x conftest$ac_exeext; then
29722 ac_cv_lib_cairo_cairo_ps_surface_create=yes
29723 else
29724 echo "$as_me: failed program was:" >&5
29725 sed 's/^/| /' conftest.$ac_ext >&5
29727 ac_cv_lib_cairo_cairo_ps_surface_create=no
29728 fi
29730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29731 conftest$ac_exeext conftest.$ac_ext
29732 LIBS=$ac_check_lib_save_LIBS
29733 fi
29734 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
29735 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
29736 if test $ac_cv_lib_cairo_cairo_ps_surface_create = yes; then
29738 unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29739 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
29740 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
29741 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
29742 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
29743 echo $ECHO_N "(cached) $ECHO_C" >&6
29744 fi
29745 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
29746 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
29747 else
29748 # Is the header compilable?
29749 { echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
29750 echo $ECHO_N "checking cairo-ps.h usability... $ECHO_C" >&6; }
29751 cat >conftest.$ac_ext <<_ACEOF
29752 /* confdefs.h. */
29753 _ACEOF
29754 cat confdefs.h >>conftest.$ac_ext
29755 cat >>conftest.$ac_ext <<_ACEOF
29756 /* end confdefs.h. */
29757 $ac_includes_default
29758 #include <cairo-ps.h>
29759 _ACEOF
29760 rm -f conftest.$ac_objext
29761 if { (ac_try="$ac_compile"
29762 case "(($ac_try" in
29763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29764 *) ac_try_echo=$ac_try;;
29765 esac
29766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29767 (eval "$ac_compile") 2>conftest.er1
29768 ac_status=$?
29769 grep -v '^ *+' conftest.er1 >conftest.err
29770 rm -f conftest.er1
29771 cat conftest.err >&5
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); } && {
29774 test -z "$ac_c_werror_flag" ||
29775 test ! -s conftest.err
29776 } && test -s conftest.$ac_objext; then
29777 ac_header_compiler=yes
29778 else
29779 echo "$as_me: failed program was:" >&5
29780 sed 's/^/| /' conftest.$ac_ext >&5
29782 ac_header_compiler=no
29783 fi
29785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29787 echo "${ECHO_T}$ac_header_compiler" >&6; }
29789 # Is the header present?
29790 { echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
29791 echo $ECHO_N "checking cairo-ps.h presence... $ECHO_C" >&6; }
29792 cat >conftest.$ac_ext <<_ACEOF
29793 /* confdefs.h. */
29794 _ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29798 #include <cairo-ps.h>
29799 _ACEOF
29800 if { (ac_try="$ac_cpp conftest.$ac_ext"
29801 case "(($ac_try" in
29802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803 *) ac_try_echo=$ac_try;;
29804 esac
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29807 ac_status=$?
29808 grep -v '^ *+' conftest.er1 >conftest.err
29809 rm -f conftest.er1
29810 cat conftest.err >&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } >/dev/null && {
29813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29814 test ! -s conftest.err
29815 }; then
29816 ac_header_preproc=yes
29817 else
29818 echo "$as_me: failed program was:" >&5
29819 sed 's/^/| /' conftest.$ac_ext >&5
29821 ac_header_preproc=no
29822 fi
29824 rm -f conftest.err conftest.$ac_ext
29825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29826 echo "${ECHO_T}$ac_header_preproc" >&6; }
29828 # So? What about this header?
29829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29830 yes:no: )
29831 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
29832 echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29833 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
29834 echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
29835 ac_header_preproc=yes
29836 ;;
29837 no:yes:* )
29838 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
29839 echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
29840 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&5
29841 echo "$as_me: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&2;}
29842 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
29843 echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
29844 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&5
29845 echo "$as_me: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&2;}
29846 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
29847 echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
29848 { echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
29849 echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
29851 ;;
29852 esac
29853 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
29854 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
29855 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
29856 echo $ECHO_N "(cached) $ECHO_C" >&6
29857 else
29858 ac_cv_header_cairo_ps_h=$ac_header_preproc
29859 fi
29860 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
29861 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
29863 fi
29864 if test $ac_cv_header_cairo_ps_h = yes; then
29865 EX_CHECK_STATE=YES
29866 fi
29870 fi
29872 else
29873 { echo "$as_me:$LINENO: WARNING:
29874 ----------------------------------------------------------------------------
29875 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
29876 You may want to set the PKG_CONFIG_PATH variable to point to its
29877 location.
29878 ----------------------------------------------------------------------------
29879 " >&5
29880 echo "$as_me: WARNING:
29881 ----------------------------------------------------------------------------
29882 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
29883 You may want to set the PKG_CONFIG_PATH variable to point to its
29884 location.
29885 ----------------------------------------------------------------------------
29886 " >&2;}
29887 fi
29888 fi
29889 fi
29891 if test ${EX_CHECK_STATE} = NO; then
29892 { echo "$as_me:$LINENO: WARNING:
29893 ----------------------------------------------------------------------------
29894 * I could not find a working copy of cairo-ps. Check config.log for hints on why
29895 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29896 so that compiler and the linker can find libcairo and its header files. If
29897 you have not installed cairo-ps, you can get it either from its original home on
29899 http://cairographics.org/releases/
29901 You can find also find an archive copy on
29903 http://oss.oetiker.ch/rrdtool/pub/libs
29905 The last tested version of cairo-ps is 1.4.6.
29907 LIBS=$LIBS
29908 LDFLAGS=$LDFLAGS
29909 CPPFLAGS=$CPPFLAGS
29911 ----------------------------------------------------------------------------
29912 " >&5
29913 echo "$as_me: WARNING:
29914 ----------------------------------------------------------------------------
29915 * I could not find a working copy of cairo-ps. Check config.log for hints on why
29916 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29917 so that compiler and the linker can find libcairo and its header files. If
29918 you have not installed cairo-ps, you can get it either from its original home on
29920 http://cairographics.org/releases/
29922 You can find also find an archive copy on
29924 http://oss.oetiker.ch/rrdtool/pub/libs
29926 The last tested version of cairo-ps is 1.4.6.
29928 LIBS=$LIBS
29929 LDFLAGS=$LDFLAGS
29930 CPPFLAGS=$CPPFLAGS
29932 ----------------------------------------------------------------------------
29933 " >&2;}
29934 EX_CHECK_ALL_ERR=YES
29935 LIBS="${ex_check_save_LIBS}"
29936 CPPFLAGS="${ex_check_save_CPPFLAGS}"
29937 LDFLAGS="${ex_check_save_LDFLAGS}"
29938 fi
29939 ac_ext=c
29940 ac_cpp='$CPP $CPPFLAGS'
29941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29948 ac_ext=c
29949 ac_cpp='$CPP $CPPFLAGS'
29950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29954 EX_CHECK_STATE=NO
29955 ex_check_save_LIBS=${LIBS}
29956 ex_check_save_CPPFLAGS=${CPPFLAGS}
29957 ex_check_save_LDFLAGS=${LDFLAGS}
29958 if test "x""" != "x"; then
29959 CPPFLAGS="$CPPFLAGS -I"""
29960 fi
29961 { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
29962 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; }
29963 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29965 else
29966 ac_check_lib_save_LIBS=$LIBS
29967 LIBS="-lpango-1.0 $LIBS"
29968 cat >conftest.$ac_ext <<_ACEOF
29969 /* confdefs.h. */
29970 _ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h. */
29975 /* Override any GCC internal prototype to avoid an error.
29976 Use char because int might match the return type of a GCC
29977 builtin and then its argument prototype would still apply. */
29978 #ifdef __cplusplus
29979 extern "C"
29980 #endif
29981 char pango_cairo_context_set_font_options ();
29982 int
29983 main ()
29984 {
29985 return pango_cairo_context_set_font_options ();
29986 ;
29987 return 0;
29988 }
29989 _ACEOF
29990 rm -f conftest.$ac_objext conftest$ac_exeext
29991 if { (ac_try="$ac_link"
29992 case "(($ac_try" in
29993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29994 *) ac_try_echo=$ac_try;;
29995 esac
29996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29997 (eval "$ac_link") 2>conftest.er1
29998 ac_status=$?
29999 grep -v '^ *+' conftest.er1 >conftest.err
30000 rm -f conftest.er1
30001 cat conftest.err >&5
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } && {
30004 test -z "$ac_c_werror_flag" ||
30005 test ! -s conftest.err
30006 } && test -s conftest$ac_exeext &&
30007 $as_test_x conftest$ac_exeext; then
30008 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
30009 else
30010 echo "$as_me: failed program was:" >&5
30011 sed 's/^/| /' conftest.$ac_ext >&5
30013 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
30014 fi
30016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30017 conftest$ac_exeext conftest.$ac_ext
30018 LIBS=$ac_check_lib_save_LIBS
30019 fi
30020 { echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
30021 echo "${ECHO_T}$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
30022 if test $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options = yes; then
30024 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30025 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30026 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30027 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30028 echo $ECHO_N "(cached) $ECHO_C" >&6
30029 fi
30030 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30031 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
30032 else
30033 # Is the header compilable?
30034 { echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
30035 echo $ECHO_N "checking pango/pango.h usability... $ECHO_C" >&6; }
30036 cat >conftest.$ac_ext <<_ACEOF
30037 /* confdefs.h. */
30038 _ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h. */
30042 $ac_includes_default
30043 #include <pango/pango.h>
30044 _ACEOF
30045 rm -f conftest.$ac_objext
30046 if { (ac_try="$ac_compile"
30047 case "(($ac_try" in
30048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049 *) ac_try_echo=$ac_try;;
30050 esac
30051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052 (eval "$ac_compile") 2>conftest.er1
30053 ac_status=$?
30054 grep -v '^ *+' conftest.er1 >conftest.err
30055 rm -f conftest.er1
30056 cat conftest.err >&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } && {
30059 test -z "$ac_c_werror_flag" ||
30060 test ! -s conftest.err
30061 } && test -s conftest.$ac_objext; then
30062 ac_header_compiler=yes
30063 else
30064 echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30067 ac_header_compiler=no
30068 fi
30070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30072 echo "${ECHO_T}$ac_header_compiler" >&6; }
30074 # Is the header present?
30075 { echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
30076 echo $ECHO_N "checking pango/pango.h presence... $ECHO_C" >&6; }
30077 cat >conftest.$ac_ext <<_ACEOF
30078 /* confdefs.h. */
30079 _ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h. */
30083 #include <pango/pango.h>
30084 _ACEOF
30085 if { (ac_try="$ac_cpp conftest.$ac_ext"
30086 case "(($ac_try" in
30087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30088 *) ac_try_echo=$ac_try;;
30089 esac
30090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30092 ac_status=$?
30093 grep -v '^ *+' conftest.er1 >conftest.err
30094 rm -f conftest.er1
30095 cat conftest.err >&5
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); } >/dev/null && {
30098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30099 test ! -s conftest.err
30100 }; then
30101 ac_header_preproc=yes
30102 else
30103 echo "$as_me: failed program was:" >&5
30104 sed 's/^/| /' conftest.$ac_ext >&5
30106 ac_header_preproc=no
30107 fi
30109 rm -f conftest.err conftest.$ac_ext
30110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30111 echo "${ECHO_T}$ac_header_preproc" >&6; }
30113 # So? What about this header?
30114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30115 yes:no: )
30116 { echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
30117 echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30118 { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
30119 echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
30120 ac_header_preproc=yes
30121 ;;
30122 no:yes:* )
30123 { echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
30124 echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
30125 { echo "$as_me:$LINENO: WARNING: pango/pango.h: check for missing prerequisite headers?" >&5
30126 echo "$as_me: WARNING: pango/pango.h: check for missing prerequisite headers?" >&2;}
30127 { echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
30128 echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
30129 { echo "$as_me:$LINENO: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&5
30130 echo "$as_me: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&2;}
30131 { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
30132 echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
30133 { echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
30134 echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
30136 ;;
30137 esac
30138 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30139 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30140 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30141 echo $ECHO_N "(cached) $ECHO_C" >&6
30142 else
30143 ac_cv_header_pango_pango_h=$ac_header_preproc
30144 fi
30145 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30146 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
30148 fi
30149 if test $ac_cv_header_pango_pango_h = yes; then
30150 LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
30151 fi
30154 fi
30156 if test $EX_CHECK_STATE = NO; then
30157 for ac_prog in pkg-config
30158 do
30159 # Extract the first word of "$ac_prog", so it can be a program name with args.
30160 set dummy $ac_prog; ac_word=$2
30161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30163 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30165 else
30166 if test -n "$PKGCONFIG"; then
30167 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30168 else
30169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30170 for as_dir in $PATH
30171 do
30172 IFS=$as_save_IFS
30173 test -z "$as_dir" && as_dir=.
30174 for ac_exec_ext in '' $ac_executable_extensions; do
30175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30176 ac_cv_prog_PKGCONFIG="$ac_prog"
30177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30178 break 2
30179 fi
30180 done
30181 done
30182 IFS=$as_save_IFS
30184 fi
30185 fi
30186 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30187 if test -n "$PKGCONFIG"; then
30188 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30189 echo "${ECHO_T}$PKGCONFIG" >&6; }
30190 else
30191 { echo "$as_me:$LINENO: result: no" >&5
30192 echo "${ECHO_T}no" >&6; }
30193 fi
30196 test -n "$PKGCONFIG" && break
30197 done
30198 test -n "$PKGCONFIG" || PKGCONFIG="no"
30200 if test "$PKGCONFIG" != "no"; then
30201 if $PKGCONFIG --exists pangocairo; then
30202 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
30203 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
30204 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
30205 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
30206 unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
30207 { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
30208 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; }
30209 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
30210 echo $ECHO_N "(cached) $ECHO_C" >&6
30211 else
30212 ac_check_lib_save_LIBS=$LIBS
30213 LIBS="-lpango-1.0 $LIBS"
30214 cat >conftest.$ac_ext <<_ACEOF
30215 /* confdefs.h. */
30216 _ACEOF
30217 cat confdefs.h >>conftest.$ac_ext
30218 cat >>conftest.$ac_ext <<_ACEOF
30219 /* end confdefs.h. */
30221 /* Override any GCC internal prototype to avoid an error.
30222 Use char because int might match the return type of a GCC
30223 builtin and then its argument prototype would still apply. */
30224 #ifdef __cplusplus
30225 extern "C"
30226 #endif
30227 char pango_cairo_context_set_font_options ();
30228 int
30229 main ()
30230 {
30231 return pango_cairo_context_set_font_options ();
30232 ;
30233 return 0;
30234 }
30235 _ACEOF
30236 rm -f conftest.$ac_objext conftest$ac_exeext
30237 if { (ac_try="$ac_link"
30238 case "(($ac_try" in
30239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30240 *) ac_try_echo=$ac_try;;
30241 esac
30242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30243 (eval "$ac_link") 2>conftest.er1
30244 ac_status=$?
30245 grep -v '^ *+' conftest.er1 >conftest.err
30246 rm -f conftest.er1
30247 cat conftest.err >&5
30248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); } && {
30250 test -z "$ac_c_werror_flag" ||
30251 test ! -s conftest.err
30252 } && test -s conftest$ac_exeext &&
30253 $as_test_x conftest$ac_exeext; then
30254 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
30255 else
30256 echo "$as_me: failed program was:" >&5
30257 sed 's/^/| /' conftest.$ac_ext >&5
30259 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
30260 fi
30262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30263 conftest$ac_exeext conftest.$ac_ext
30264 LIBS=$ac_check_lib_save_LIBS
30265 fi
30266 { echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
30267 echo "${ECHO_T}$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
30268 if test $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options = yes; then
30270 unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30271 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30272 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30273 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30274 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30275 echo $ECHO_N "(cached) $ECHO_C" >&6
30276 fi
30277 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30278 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
30279 else
30280 # Is the header compilable?
30281 { echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
30282 echo $ECHO_N "checking pango/pango.h usability... $ECHO_C" >&6; }
30283 cat >conftest.$ac_ext <<_ACEOF
30284 /* confdefs.h. */
30285 _ACEOF
30286 cat confdefs.h >>conftest.$ac_ext
30287 cat >>conftest.$ac_ext <<_ACEOF
30288 /* end confdefs.h. */
30289 $ac_includes_default
30290 #include <pango/pango.h>
30291 _ACEOF
30292 rm -f conftest.$ac_objext
30293 if { (ac_try="$ac_compile"
30294 case "(($ac_try" in
30295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30296 *) ac_try_echo=$ac_try;;
30297 esac
30298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30299 (eval "$ac_compile") 2>conftest.er1
30300 ac_status=$?
30301 grep -v '^ *+' conftest.er1 >conftest.err
30302 rm -f conftest.er1
30303 cat conftest.err >&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } && {
30306 test -z "$ac_c_werror_flag" ||
30307 test ! -s conftest.err
30308 } && test -s conftest.$ac_objext; then
30309 ac_header_compiler=yes
30310 else
30311 echo "$as_me: failed program was:" >&5
30312 sed 's/^/| /' conftest.$ac_ext >&5
30314 ac_header_compiler=no
30315 fi
30317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30319 echo "${ECHO_T}$ac_header_compiler" >&6; }
30321 # Is the header present?
30322 { echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
30323 echo $ECHO_N "checking pango/pango.h presence... $ECHO_C" >&6; }
30324 cat >conftest.$ac_ext <<_ACEOF
30325 /* confdefs.h. */
30326 _ACEOF
30327 cat confdefs.h >>conftest.$ac_ext
30328 cat >>conftest.$ac_ext <<_ACEOF
30329 /* end confdefs.h. */
30330 #include <pango/pango.h>
30331 _ACEOF
30332 if { (ac_try="$ac_cpp conftest.$ac_ext"
30333 case "(($ac_try" in
30334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335 *) ac_try_echo=$ac_try;;
30336 esac
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30339 ac_status=$?
30340 grep -v '^ *+' conftest.er1 >conftest.err
30341 rm -f conftest.er1
30342 cat conftest.err >&5
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); } >/dev/null && {
30345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30346 test ! -s conftest.err
30347 }; then
30348 ac_header_preproc=yes
30349 else
30350 echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30353 ac_header_preproc=no
30354 fi
30356 rm -f conftest.err conftest.$ac_ext
30357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30358 echo "${ECHO_T}$ac_header_preproc" >&6; }
30360 # So? What about this header?
30361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30362 yes:no: )
30363 { echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
30364 echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30365 { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
30366 echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
30367 ac_header_preproc=yes
30368 ;;
30369 no:yes:* )
30370 { echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
30371 echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
30372 { echo "$as_me:$LINENO: WARNING: pango/pango.h: check for missing prerequisite headers?" >&5
30373 echo "$as_me: WARNING: pango/pango.h: check for missing prerequisite headers?" >&2;}
30374 { echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
30375 echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
30376 { echo "$as_me:$LINENO: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&5
30377 echo "$as_me: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&2;}
30378 { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
30379 echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
30380 { echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
30381 echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
30383 ;;
30384 esac
30385 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30386 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30387 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30389 else
30390 ac_cv_header_pango_pango_h=$ac_header_preproc
30391 fi
30392 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30393 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
30395 fi
30396 if test $ac_cv_header_pango_pango_h = yes; then
30397 EX_CHECK_STATE=YES
30398 fi
30402 fi
30404 else
30405 { echo "$as_me:$LINENO: WARNING:
30406 ----------------------------------------------------------------------------
30407 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
30408 You may want to set the PKG_CONFIG_PATH variable to point to its
30409 location.
30410 ----------------------------------------------------------------------------
30411 " >&5
30412 echo "$as_me: WARNING:
30413 ----------------------------------------------------------------------------
30414 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
30415 You may want to set the PKG_CONFIG_PATH variable to point to its
30416 location.
30417 ----------------------------------------------------------------------------
30418 " >&2;}
30419 fi
30420 fi
30421 fi
30423 if test ${EX_CHECK_STATE} = NO; then
30424 { echo "$as_me:$LINENO: WARNING:
30425 ----------------------------------------------------------------------------
30426 * I could not find a working copy of pangocairo. Check config.log for hints on why
30427 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30428 so that compiler and the linker can find libpango-1.0 and its header files. If
30429 you have not installed pangocairo, you can get it either from its original home on
30431 http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
30433 You can find also find an archive copy on
30435 http://oss.oetiker.ch/rrdtool/pub/libs
30437 The last tested version of pangocairo is 1.17.
30439 LIBS=$LIBS
30440 LDFLAGS=$LDFLAGS
30441 CPPFLAGS=$CPPFLAGS
30443 ----------------------------------------------------------------------------
30444 " >&5
30445 echo "$as_me: WARNING:
30446 ----------------------------------------------------------------------------
30447 * I could not find a working copy of pangocairo. Check config.log for hints on why
30448 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30449 so that compiler and the linker can find libpango-1.0 and its header files. If
30450 you have not installed pangocairo, you can get it either from its original home on
30452 http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
30454 You can find also find an archive copy on
30456 http://oss.oetiker.ch/rrdtool/pub/libs
30458 The last tested version of pangocairo is 1.17.
30460 LIBS=$LIBS
30461 LDFLAGS=$LDFLAGS
30462 CPPFLAGS=$CPPFLAGS
30464 ----------------------------------------------------------------------------
30465 " >&2;}
30466 EX_CHECK_ALL_ERR=YES
30467 LIBS="${ex_check_save_LIBS}"
30468 CPPFLAGS="${ex_check_save_CPPFLAGS}"
30469 LDFLAGS="${ex_check_save_LDFLAGS}"
30470 fi
30471 ac_ext=c
30472 ac_cpp='$CPP $CPPFLAGS'
30473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30480 ac_ext=c
30481 ac_cpp='$CPP $CPPFLAGS'
30482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30486 EX_CHECK_STATE=NO
30487 ex_check_save_LIBS=${LIBS}
30488 ex_check_save_CPPFLAGS=${CPPFLAGS}
30489 ex_check_save_LDFLAGS=${LDFLAGS}
30490 if test "x/usr/include/libxml2" != "x"; then
30491 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
30492 fi
30493 { echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
30494 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6; }
30495 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30497 else
30498 ac_check_lib_save_LIBS=$LIBS
30499 LIBS="-lxml2 $LIBS"
30500 cat >conftest.$ac_ext <<_ACEOF
30501 /* confdefs.h. */
30502 _ACEOF
30503 cat confdefs.h >>conftest.$ac_ext
30504 cat >>conftest.$ac_ext <<_ACEOF
30505 /* end confdefs.h. */
30507 /* Override any GCC internal prototype to avoid an error.
30508 Use char because int might match the return type of a GCC
30509 builtin and then its argument prototype would still apply. */
30510 #ifdef __cplusplus
30511 extern "C"
30512 #endif
30513 char xmlParseFile ();
30514 int
30515 main ()
30516 {
30517 return xmlParseFile ();
30518 ;
30519 return 0;
30520 }
30521 _ACEOF
30522 rm -f conftest.$ac_objext conftest$ac_exeext
30523 if { (ac_try="$ac_link"
30524 case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30527 esac
30528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_link") 2>conftest.er1
30530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } && {
30536 test -z "$ac_c_werror_flag" ||
30537 test ! -s conftest.err
30538 } && test -s conftest$ac_exeext &&
30539 $as_test_x conftest$ac_exeext; then
30540 ac_cv_lib_xml2_xmlParseFile=yes
30541 else
30542 echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30545 ac_cv_lib_xml2_xmlParseFile=no
30546 fi
30548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30549 conftest$ac_exeext conftest.$ac_ext
30550 LIBS=$ac_check_lib_save_LIBS
30551 fi
30552 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
30553 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6; }
30554 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
30556 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30557 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30558 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
30559 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30561 fi
30562 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30563 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
30564 else
30565 # Is the header compilable?
30566 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
30567 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
30568 cat >conftest.$ac_ext <<_ACEOF
30569 /* confdefs.h. */
30570 _ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h. */
30574 $ac_includes_default
30575 #include <libxml/parser.h>
30576 _ACEOF
30577 rm -f conftest.$ac_objext
30578 if { (ac_try="$ac_compile"
30579 case "(($ac_try" in
30580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30581 *) ac_try_echo=$ac_try;;
30582 esac
30583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30584 (eval "$ac_compile") 2>conftest.er1
30585 ac_status=$?
30586 grep -v '^ *+' conftest.er1 >conftest.err
30587 rm -f conftest.er1
30588 cat conftest.err >&5
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); } && {
30591 test -z "$ac_c_werror_flag" ||
30592 test ! -s conftest.err
30593 } && test -s conftest.$ac_objext; then
30594 ac_header_compiler=yes
30595 else
30596 echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30599 ac_header_compiler=no
30600 fi
30602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30604 echo "${ECHO_T}$ac_header_compiler" >&6; }
30606 # Is the header present?
30607 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
30608 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
30609 cat >conftest.$ac_ext <<_ACEOF
30610 /* confdefs.h. */
30611 _ACEOF
30612 cat confdefs.h >>conftest.$ac_ext
30613 cat >>conftest.$ac_ext <<_ACEOF
30614 /* end confdefs.h. */
30615 #include <libxml/parser.h>
30616 _ACEOF
30617 if { (ac_try="$ac_cpp conftest.$ac_ext"
30618 case "(($ac_try" in
30619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620 *) ac_try_echo=$ac_try;;
30621 esac
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30624 ac_status=$?
30625 grep -v '^ *+' conftest.er1 >conftest.err
30626 rm -f conftest.er1
30627 cat conftest.err >&5
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); } >/dev/null && {
30630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30631 test ! -s conftest.err
30632 }; then
30633 ac_header_preproc=yes
30634 else
30635 echo "$as_me: failed program was:" >&5
30636 sed 's/^/| /' conftest.$ac_ext >&5
30638 ac_header_preproc=no
30639 fi
30641 rm -f conftest.err conftest.$ac_ext
30642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30643 echo "${ECHO_T}$ac_header_preproc" >&6; }
30645 # So? What about this header?
30646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30647 yes:no: )
30648 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
30649 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30650 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
30651 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
30652 ac_header_preproc=yes
30653 ;;
30654 no:yes:* )
30655 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
30656 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
30657 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
30658 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
30659 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
30660 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
30661 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
30662 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
30663 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
30664 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
30665 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
30666 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
30668 ;;
30669 esac
30670 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30671 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
30672 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30673 echo $ECHO_N "(cached) $ECHO_C" >&6
30674 else
30675 ac_cv_header_libxml_parser_h=$ac_header_preproc
30676 fi
30677 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30678 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
30680 fi
30681 if test $ac_cv_header_libxml_parser_h = yes; then
30682 LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
30683 fi
30686 fi
30688 if test $EX_CHECK_STATE = NO; then
30689 for ac_prog in pkg-config
30690 do
30691 # Extract the first word of "$ac_prog", so it can be a program name with args.
30692 set dummy $ac_prog; ac_word=$2
30693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30695 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30696 echo $ECHO_N "(cached) $ECHO_C" >&6
30697 else
30698 if test -n "$PKGCONFIG"; then
30699 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30700 else
30701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30702 for as_dir in $PATH
30703 do
30704 IFS=$as_save_IFS
30705 test -z "$as_dir" && as_dir=.
30706 for ac_exec_ext in '' $ac_executable_extensions; do
30707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30708 ac_cv_prog_PKGCONFIG="$ac_prog"
30709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30710 break 2
30711 fi
30712 done
30713 done
30714 IFS=$as_save_IFS
30716 fi
30717 fi
30718 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30719 if test -n "$PKGCONFIG"; then
30720 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30721 echo "${ECHO_T}$PKGCONFIG" >&6; }
30722 else
30723 { echo "$as_me:$LINENO: result: no" >&5
30724 echo "${ECHO_T}no" >&6; }
30725 fi
30728 test -n "$PKGCONFIG" && break
30729 done
30730 test -n "$PKGCONFIG" || PKGCONFIG="no"
30732 if test "$PKGCONFIG" != "no"; then
30733 if $PKGCONFIG --exists libxml-2.0; then
30734 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
30735 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
30736 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
30737 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
30738 unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
30739 { echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
30740 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6; }
30741 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30743 else
30744 ac_check_lib_save_LIBS=$LIBS
30745 LIBS="-lxml2 $LIBS"
30746 cat >conftest.$ac_ext <<_ACEOF
30747 /* confdefs.h. */
30748 _ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h. */
30753 /* Override any GCC internal prototype to avoid an error.
30754 Use char because int might match the return type of a GCC
30755 builtin and then its argument prototype would still apply. */
30756 #ifdef __cplusplus
30757 extern "C"
30758 #endif
30759 char xmlParseFile ();
30760 int
30761 main ()
30762 {
30763 return xmlParseFile ();
30764 ;
30765 return 0;
30766 }
30767 _ACEOF
30768 rm -f conftest.$ac_objext conftest$ac_exeext
30769 if { (ac_try="$ac_link"
30770 case "(($ac_try" in
30771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772 *) ac_try_echo=$ac_try;;
30773 esac
30774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775 (eval "$ac_link") 2>conftest.er1
30776 ac_status=$?
30777 grep -v '^ *+' conftest.er1 >conftest.err
30778 rm -f conftest.er1
30779 cat conftest.err >&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); } && {
30782 test -z "$ac_c_werror_flag" ||
30783 test ! -s conftest.err
30784 } && test -s conftest$ac_exeext &&
30785 $as_test_x conftest$ac_exeext; then
30786 ac_cv_lib_xml2_xmlParseFile=yes
30787 else
30788 echo "$as_me: failed program was:" >&5
30789 sed 's/^/| /' conftest.$ac_ext >&5
30791 ac_cv_lib_xml2_xmlParseFile=no
30792 fi
30794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30795 conftest$ac_exeext conftest.$ac_ext
30796 LIBS=$ac_check_lib_save_LIBS
30797 fi
30798 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
30799 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6; }
30800 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
30802 unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30803 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30804 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30805 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
30806 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30807 echo $ECHO_N "(cached) $ECHO_C" >&6
30808 fi
30809 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30810 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
30811 else
30812 # Is the header compilable?
30813 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
30814 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
30815 cat >conftest.$ac_ext <<_ACEOF
30816 /* confdefs.h. */
30817 _ACEOF
30818 cat confdefs.h >>conftest.$ac_ext
30819 cat >>conftest.$ac_ext <<_ACEOF
30820 /* end confdefs.h. */
30821 $ac_includes_default
30822 #include <libxml/parser.h>
30823 _ACEOF
30824 rm -f conftest.$ac_objext
30825 if { (ac_try="$ac_compile"
30826 case "(($ac_try" in
30827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828 *) ac_try_echo=$ac_try;;
30829 esac
30830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831 (eval "$ac_compile") 2>conftest.er1
30832 ac_status=$?
30833 grep -v '^ *+' conftest.er1 >conftest.err
30834 rm -f conftest.er1
30835 cat conftest.err >&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); } && {
30838 test -z "$ac_c_werror_flag" ||
30839 test ! -s conftest.err
30840 } && test -s conftest.$ac_objext; then
30841 ac_header_compiler=yes
30842 else
30843 echo "$as_me: failed program was:" >&5
30844 sed 's/^/| /' conftest.$ac_ext >&5
30846 ac_header_compiler=no
30847 fi
30849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30851 echo "${ECHO_T}$ac_header_compiler" >&6; }
30853 # Is the header present?
30854 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
30855 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
30856 cat >conftest.$ac_ext <<_ACEOF
30857 /* confdefs.h. */
30858 _ACEOF
30859 cat confdefs.h >>conftest.$ac_ext
30860 cat >>conftest.$ac_ext <<_ACEOF
30861 /* end confdefs.h. */
30862 #include <libxml/parser.h>
30863 _ACEOF
30864 if { (ac_try="$ac_cpp conftest.$ac_ext"
30865 case "(($ac_try" in
30866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867 *) ac_try_echo=$ac_try;;
30868 esac
30869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30871 ac_status=$?
30872 grep -v '^ *+' conftest.er1 >conftest.err
30873 rm -f conftest.er1
30874 cat conftest.err >&5
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); } >/dev/null && {
30877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30878 test ! -s conftest.err
30879 }; then
30880 ac_header_preproc=yes
30881 else
30882 echo "$as_me: failed program was:" >&5
30883 sed 's/^/| /' conftest.$ac_ext >&5
30885 ac_header_preproc=no
30886 fi
30888 rm -f conftest.err conftest.$ac_ext
30889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30890 echo "${ECHO_T}$ac_header_preproc" >&6; }
30892 # So? What about this header?
30893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30894 yes:no: )
30895 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
30896 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30897 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
30898 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
30899 ac_header_preproc=yes
30900 ;;
30901 no:yes:* )
30902 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
30903 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
30904 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
30905 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
30906 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
30907 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
30908 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
30909 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
30910 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
30911 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
30912 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
30913 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
30915 ;;
30916 esac
30917 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30918 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
30919 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922 ac_cv_header_libxml_parser_h=$ac_header_preproc
30923 fi
30924 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30925 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
30927 fi
30928 if test $ac_cv_header_libxml_parser_h = yes; then
30929 EX_CHECK_STATE=YES
30930 fi
30934 fi
30936 else
30937 { echo "$as_me:$LINENO: WARNING:
30938 ----------------------------------------------------------------------------
30939 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
30940 You may want to set the PKG_CONFIG_PATH variable to point to its
30941 location.
30942 ----------------------------------------------------------------------------
30943 " >&5
30944 echo "$as_me: WARNING:
30945 ----------------------------------------------------------------------------
30946 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
30947 You may want to set the PKG_CONFIG_PATH variable to point to its
30948 location.
30949 ----------------------------------------------------------------------------
30950 " >&2;}
30951 fi
30952 fi
30953 fi
30955 if test ${EX_CHECK_STATE} = NO; then
30956 { echo "$as_me:$LINENO: WARNING:
30957 ----------------------------------------------------------------------------
30958 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
30959 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30960 so that compiler and the linker can find libxml2 and its header files. If
30961 you have not installed libxml-2.0, you can get it either from its original home on
30963 http://xmlsoft.org/downloads.html
30965 You can find also find an archive copy on
30967 http://oss.oetiker.ch/rrdtool/pub/libs
30969 The last tested version of libxml-2.0 is 2.6.31.
30971 LIBS=$LIBS
30972 LDFLAGS=$LDFLAGS
30973 CPPFLAGS=$CPPFLAGS
30975 ----------------------------------------------------------------------------
30976 " >&5
30977 echo "$as_me: WARNING:
30978 ----------------------------------------------------------------------------
30979 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
30980 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30981 so that compiler and the linker can find libxml2 and its header files. If
30982 you have not installed libxml-2.0, you can get it either from its original home on
30984 http://xmlsoft.org/downloads.html
30986 You can find also find an archive copy on
30988 http://oss.oetiker.ch/rrdtool/pub/libs
30990 The last tested version of libxml-2.0 is 2.6.31.
30992 LIBS=$LIBS
30993 LDFLAGS=$LDFLAGS
30994 CPPFLAGS=$CPPFLAGS
30996 ----------------------------------------------------------------------------
30997 " >&2;}
30998 EX_CHECK_ALL_ERR=YES
30999 LIBS="${ex_check_save_LIBS}"
31000 CPPFLAGS="${ex_check_save_CPPFLAGS}"
31001 LDFLAGS="${ex_check_save_LDFLAGS}"
31002 fi
31003 ac_ext=c
31004 ac_cpp='$CPP $CPPFLAGS'
31005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31012 if test "$EX_CHECK_ALL_ERR" = "YES"; then
31013 { { echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
31014 echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
31015 { (exit 1); exit 1; }; }
31016 fi
31018 ALL_LIBS="$LIBS"
31019 LIBS=
31025 case $TERM in
31026 # for the most important terminal types we directly know the sequences
31027 xterm|xterm*|vt220|vt220*)
31028 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
31029 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
31030 ;;
31031 vt100|vt100*|cygwin)
31032 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
31033 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
31034 ;;
31035 *)
31036 T_MD=''
31037 T_ME=''
31038 ;;
31039 esac
31040 { echo "$as_me:$LINENO: result: " >&5
31041 echo "${ECHO_T}" >&6; }
31042 { echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
31043 echo "${ECHO_T}${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
31046 PATH=$PATH:/usr/perl5/bin
31047 export PATH
31048 # Extract the first word of "perl", so it can be a program name with args.
31049 set dummy perl; ac_word=$2
31050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31052 if test "${ac_cv_path_PERL+set}" = set; then
31053 echo $ECHO_N "(cached) $ECHO_C" >&6
31054 else
31055 case $PERL in
31056 [\\/]* | ?:[\\/]*)
31057 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31058 ;;
31059 *)
31060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31061 for as_dir in $PATH
31062 do
31063 IFS=$as_save_IFS
31064 test -z "$as_dir" && as_dir=.
31065 for ac_exec_ext in '' $ac_executable_extensions; do
31066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31067 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31069 break 2
31070 fi
31071 done
31072 done
31073 IFS=$as_save_IFS
31075 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
31076 ;;
31077 esac
31078 fi
31079 PERL=$ac_cv_path_PERL
31080 if test -n "$PERL"; then
31081 { echo "$as_me:$LINENO: result: $PERL" >&5
31082 echo "${ECHO_T}$PERL" >&6; }
31083 else
31084 { echo "$as_me:$LINENO: result: no" >&5
31085 echo "${ECHO_T}no" >&6; }
31086 fi
31089 # Extract the first word of "pod2man", so it can be a program name with args.
31090 set dummy pod2man; ac_word=$2
31091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31093 if test "${ac_cv_path_POD2MAN+set}" = set; then
31094 echo $ECHO_N "(cached) $ECHO_C" >&6
31095 else
31096 case $POD2MAN in
31097 [\\/]* | ?:[\\/]*)
31098 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
31099 ;;
31100 *)
31101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31102 for as_dir in $PATH
31103 do
31104 IFS=$as_save_IFS
31105 test -z "$as_dir" && as_dir=.
31106 for ac_exec_ext in '' $ac_executable_extensions; do
31107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31108 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
31109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31110 break 2
31111 fi
31112 done
31113 done
31114 IFS=$as_save_IFS
31116 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
31117 ;;
31118 esac
31119 fi
31120 POD2MAN=$ac_cv_path_POD2MAN
31121 if test -n "$POD2MAN"; then
31122 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
31123 echo "${ECHO_T}$POD2MAN" >&6; }
31124 else
31125 { echo "$as_me:$LINENO: result: no" >&5
31126 echo "${ECHO_T}no" >&6; }
31127 fi
31130 # Extract the first word of "pod2html", so it can be a program name with args.
31131 set dummy pod2html; ac_word=$2
31132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31134 if test "${ac_cv_path_POD2HTML+set}" = set; then
31135 echo $ECHO_N "(cached) $ECHO_C" >&6
31136 else
31137 case $POD2HTML in
31138 [\\/]* | ?:[\\/]*)
31139 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
31140 ;;
31141 *)
31142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31143 for as_dir in $PATH
31144 do
31145 IFS=$as_save_IFS
31146 test -z "$as_dir" && as_dir=.
31147 for ac_exec_ext in '' $ac_executable_extensions; do
31148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31149 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
31150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31151 break 2
31152 fi
31153 done
31154 done
31155 IFS=$as_save_IFS
31157 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
31158 ;;
31159 esac
31160 fi
31161 POD2HTML=$ac_cv_path_POD2HTML
31162 if test -n "$POD2HTML"; then
31163 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
31164 echo "${ECHO_T}$POD2HTML" >&6; }
31165 else
31166 { echo "$as_me:$LINENO: result: no" >&5
31167 echo "${ECHO_T}no" >&6; }
31168 fi
31173 # Check whether --enable-perl was given.
31174 if test "${enable_perl+set}" = set; then
31175 enableval=$enable_perl;
31176 else
31177 enable_perl=yes
31178 fi
31187 if test "x$PERL" = "xno" -o x$enable_perl = xno; then
31188 COMP_PERL=
31189 else
31190 COMP_PERL="perl_piped perl_shared"
31191 { echo "$as_me:$LINENO: checking for the perl version you are running" >&5
31192 echo $ECHO_N "checking for the perl version you are running... $ECHO_C" >&6; }
31193 PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
31194 { echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
31195 echo "${ECHO_T}$PERL_VERSION" >&6; }
31196 if test -z "$PERLCC"; then
31197 { echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
31198 echo $ECHO_N "checking for the C compiler perl wants to use to build its modules... $ECHO_C" >&6; }
31199 perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
31200 { echo "$as_me:$LINENO: result: $perlcc" >&5
31201 echo "${ECHO_T}$perlcc" >&6; }
31202 if test ! -x "$perlcc"; then
31203 # Extract the first word of "${perlcc}", so it can be a program name with args.
31204 set dummy ${perlcc}; ac_word=$2
31205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31207 if test "${ac_cv_path_PERL_CC+set}" = set; then
31208 echo $ECHO_N "(cached) $ECHO_C" >&6
31209 else
31210 case $PERL_CC in
31211 [\\/]* | ?:[\\/]*)
31212 ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
31213 ;;
31214 *)
31215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31216 for as_dir in $PATH
31217 do
31218 IFS=$as_save_IFS
31219 test -z "$as_dir" && as_dir=.
31220 for ac_exec_ext in '' $ac_executable_extensions; do
31221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31222 ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
31223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31224 break 2
31225 fi
31226 done
31227 done
31228 IFS=$as_save_IFS
31230 test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
31231 ;;
31232 esac
31233 fi
31234 PERL_CC=$ac_cv_path_PERL_CC
31235 if test -n "$PERL_CC"; then
31236 { echo "$as_me:$LINENO: result: $PERL_CC" >&5
31237 echo "${ECHO_T}$PERL_CC" >&6; }
31238 else
31239 { echo "$as_me:$LINENO: result: no" >&5
31240 echo "${ECHO_T}no" >&6; }
31241 fi
31244 if test "$PERL_CC" = "no"; then
31245 { echo "$as_me:$LINENO: WARNING:
31246 I would not find the Compiler ($perlcc) that was originally used to compile
31247 your perl binary. You should either make sure that this compiler is
31248 available on your system, pick an other compiler and set PERLCC
31249 appropriately, or use a different perl setup that was compiled locally.
31251 I will disable the compilation of the RRDs perl module for now.
31252 " >&5
31253 echo "$as_me: WARNING:
31254 I would not find the Compiler ($perlcc) that was originally used to compile
31255 your perl binary. You should either make sure that this compiler is
31256 available on your system, pick an other compiler and set PERLCC
31257 appropriately, or use a different perl setup that was compiled locally.
31259 I will disable the compilation of the RRDs perl module for now.
31260 " >&2;}
31261 COMP_PERL="perl_piped"
31262 fi
31263 fi
31264 fi
31265 fi
31267 { echo "$as_me:$LINENO: checking Perl Modules to build" >&5
31268 echo $ECHO_N "checking Perl Modules to build... $ECHO_C" >&6; }
31269 { echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
31270 echo "${ECHO_T}${COMP_PERL:-No Perl Modules will be built}" >&6; }
31272 # Options to pass when configuring perl module
31273 ppref=$prefix
31274 test "$ppref" = "NONE" && ppref=$ac_default_prefix
31276 PERL_MAKE_OPTIONS="PREFIX=$ppref LIB=$ppref/lib/perl/$PERL_VERSION"
31278 # Check whether --enable-perl-site-install was given.
31279 if test "${enable_perl_site_install+set}" = set; then
31280 enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
31281 fi
31284 if test ! -z "$PERLCC"; then
31285 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
31287 if test ! -z "$PERLCCFLAGS"; then
31288 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
31289 fi
31291 if test -z "$PERLLD"; then
31292 PERLLD=$PERLCC
31293 fi
31294 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
31296 if test ! -z "$PERLLDFLAGS"; then
31297 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
31298 fi
31299 fi
31302 # Check whether --with-perl-options was given.
31303 if test "${with_perl_options+set}" = set; then
31304 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
31305 fi
31313 # Extract the first word of "ruby", so it can be a program name with args.
31314 set dummy ruby; ac_word=$2
31315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31317 if test "${ac_cv_path_RUBY+set}" = set; then
31318 echo $ECHO_N "(cached) $ECHO_C" >&6
31319 else
31320 case $RUBY in
31321 [\\/]* | ?:[\\/]*)
31322 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
31323 ;;
31324 *)
31325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31326 for as_dir in $PATH
31327 do
31328 IFS=$as_save_IFS
31329 test -z "$as_dir" && as_dir=.
31330 for ac_exec_ext in '' $ac_executable_extensions; do
31331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31332 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
31333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31334 break 2
31335 fi
31336 done
31337 done
31338 IFS=$as_save_IFS
31340 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
31341 ;;
31342 esac
31343 fi
31344 RUBY=$ac_cv_path_RUBY
31345 if test -n "$RUBY"; then
31346 { echo "$as_me:$LINENO: result: $RUBY" >&5
31347 echo "${ECHO_T}$RUBY" >&6; }
31348 else
31349 { echo "$as_me:$LINENO: result: no" >&5
31350 echo "${ECHO_T}no" >&6; }
31351 fi
31355 # Check whether --enable-ruby was given.
31356 if test "${enable_ruby+set}" = set; then
31357 enableval=$enable_ruby;
31358 else
31359 enable_ruby=yes
31360 fi
31363 { echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
31364 echo $ECHO_N "checking if ruby modules can be built... $ECHO_C" >&6; }
31366 if test "x$RUBY" = "xno" -o x$enable_ruby = xno; then
31367 COMP_RUBY=
31368 { echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
31369 echo "${ECHO_T}No .. Ruby not found or disabled" >&6; }
31370 else
31371 if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
31372 COMP_RUBY="ruby"
31373 { echo "$as_me:$LINENO: result: YES" >&5
31374 echo "${ECHO_T}YES" >&6; }
31375 else
31376 COMP_RUBY=
31377 { echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
31378 echo "${ECHO_T}Ruby found but mkmf is missing! Install the -dev package" >&6; }
31379 fi
31380 fi
31383 # Check whether --enable-ruby-site-install was given.
31384 if test "${enable_ruby_site_install+set}" = set; then
31385 enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
31386 else
31387 RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$prefix/lib/ruby"
31388 fi
31393 # Check whether --with-ruby-options was given.
31394 if test "${with_ruby_options+set}" = set; then
31395 withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
31396 fi
31404 enable_tcl_site=no
31406 # Check whether --enable-tcl was given.
31407 if test "${enable_tcl+set}" = set; then
31408 enableval=$enable_tcl;
31409 else
31410 enable_tcl=yes
31411 fi
31414 if test "$enable_tcl" = "yes"; then
31415 withval=""
31417 # Check whether --with-tcllib was given.
31418 if test "${with_tcllib+set}" = set; then
31419 withval=$with_tcllib;
31420 fi
31422 enable_tcl=no
31423 for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
31424 { echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
31425 echo $ECHO_N "checking for tclConfig.sh in $dir... $ECHO_C" >&6; }
31426 if test -f "$dir/tclConfig.sh" ; then
31427 tcl_config=$dir/tclConfig.sh
31428 enable_tcl=yes
31429 { echo "$as_me:$LINENO: result: yes" >&5
31430 echo "${ECHO_T}yes" >&6; }
31431 break
31432 else
31433 { echo "$as_me:$LINENO: result: no" >&5
31434 echo "${ECHO_T}no" >&6; }
31435 fi
31436 done
31438 if test "$enable_tcl" = "no"; then
31439 { echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
31440 echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
31441 else
31442 . $tcl_config
31443 TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
31444 fi
31445 # Check whether --enable-tcl was given.
31446 if test "${enable_tcl+set}" = set; then
31447 enableval=$enable_tcl;
31448 else
31449 enable_tcl_site=yes
31450 fi
31453 fi
31457 if test "$enable_tcl" = "yes" ; then
31458 BUILD_TCL_TRUE=
31459 BUILD_TCL_FALSE='#'
31460 else
31461 BUILD_TCL_TRUE='#'
31462 BUILD_TCL_FALSE=
31463 fi
31467 if test "$enable_tcl_site" = "yes" ; then
31468 BUILD_TCL_SITE_TRUE=
31469 BUILD_TCL_SITE_FALSE='#'
31470 else
31471 BUILD_TCL_SITE_TRUE='#'
31472 BUILD_TCL_SITE_FALSE=
31473 fi
31488 # Check whether --enable-python was given.
31489 if test "${enable_python+set}" = set; then
31490 enableval=$enable_python;
31491 else
31492 enable_python=yes
31493 fi
31496 if test "$enable_python" = "yes"; then
31501 if test -n "$PYTHON"; then
31502 # If the user set $PYTHON, use it and don't search something else.
31503 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
31504 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
31505 prog="import sys, string
31506 # split strings by '.' and convert to numeric. Append some zeros
31507 # because we need at least 4 digits for the hex conversion.
31508 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
31509 minverhex = 0
31510 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
31511 sys.exit(sys.hexversion < minverhex)"
31512 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
31513 ($PYTHON -c "$prog") >&5 2>&5
31514 ac_status=$?
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); }; then
31517 { echo "$as_me:$LINENO: result: yes" >&5
31518 echo "${ECHO_T}yes" >&6; }
31519 else
31520 { { echo "$as_me:$LINENO: error: too old" >&5
31521 echo "$as_me: error: too old" >&2;}
31522 { (exit 1); exit 1; }; }
31523 fi
31525 am_display_PYTHON=$PYTHON
31526 else
31527 # Otherwise, try each interpreter until we find one that satisfies
31528 # VERSION.
31529 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
31530 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
31531 if test "${am_cv_pathless_PYTHON+set}" = set; then
31532 echo $ECHO_N "(cached) $ECHO_C" >&6
31533 else
31535 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
31536 test "$am_cv_pathless_PYTHON" = none && break
31537 prog="import sys, string
31538 # split strings by '.' and convert to numeric. Append some zeros
31539 # because we need at least 4 digits for the hex conversion.
31540 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
31541 minverhex = 0
31542 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
31543 sys.exit(sys.hexversion < minverhex)"
31544 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
31545 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
31546 ac_status=$?
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); }; then
31549 break
31550 fi
31552 done
31553 fi
31554 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
31555 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
31556 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
31557 if test "$am_cv_pathless_PYTHON" = none; then
31558 PYTHON=:
31559 else
31560 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
31561 set dummy $am_cv_pathless_PYTHON; ac_word=$2
31562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31564 if test "${ac_cv_path_PYTHON+set}" = set; then
31565 echo $ECHO_N "(cached) $ECHO_C" >&6
31566 else
31567 case $PYTHON in
31568 [\\/]* | ?:[\\/]*)
31569 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
31570 ;;
31571 *)
31572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31573 for as_dir in $PATH
31574 do
31575 IFS=$as_save_IFS
31576 test -z "$as_dir" && as_dir=.
31577 for ac_exec_ext in '' $ac_executable_extensions; do
31578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31579 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
31580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31581 break 2
31582 fi
31583 done
31584 done
31585 IFS=$as_save_IFS
31587 ;;
31588 esac
31589 fi
31590 PYTHON=$ac_cv_path_PYTHON
31591 if test -n "$PYTHON"; then
31592 { echo "$as_me:$LINENO: result: $PYTHON" >&5
31593 echo "${ECHO_T}$PYTHON" >&6; }
31594 else
31595 { echo "$as_me:$LINENO: result: no" >&5
31596 echo "${ECHO_T}no" >&6; }
31597 fi
31600 fi
31601 am_display_PYTHON=$am_cv_pathless_PYTHON
31602 fi
31605 if test "$PYTHON" = :; then
31606 enable_python=no
31607 else
31610 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
31611 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
31612 if test "${am_cv_python_version+set}" = set; then
31613 echo $ECHO_N "(cached) $ECHO_C" >&6
31614 else
31615 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
31616 fi
31617 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
31618 echo "${ECHO_T}$am_cv_python_version" >&6; }
31619 PYTHON_VERSION=$am_cv_python_version
31623 PYTHON_PREFIX='${prefix}'
31625 PYTHON_EXEC_PREFIX='${exec_prefix}'
31629 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
31630 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
31631 if test "${am_cv_python_platform+set}" = set; then
31632 echo $ECHO_N "(cached) $ECHO_C" >&6
31633 else
31634 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
31635 fi
31636 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
31637 echo "${ECHO_T}$am_cv_python_platform" >&6; }
31638 PYTHON_PLATFORM=$am_cv_python_platform
31643 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
31644 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
31645 if test "${am_cv_python_pythondir+set}" = set; then
31646 echo $ECHO_N "(cached) $ECHO_C" >&6
31647 else
31648 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
31649 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
31650 fi
31651 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
31652 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
31653 pythondir=$am_cv_python_pythondir
31657 pkgpythondir=\${pythondir}/$PACKAGE
31660 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
31661 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
31662 if test "${am_cv_python_pyexecdir+set}" = set; then
31663 echo $ECHO_N "(cached) $ECHO_C" >&6
31664 else
31665 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
31666 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
31667 fi
31668 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
31669 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
31670 pyexecdir=$am_cv_python_pyexecdir
31674 pkgpyexecdir=\${pyexecdir}/$PACKAGE
31678 fi
31682 { echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
31683 echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
31684 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
31685 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
31686 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
31687 if test "$py_prefix" != "$py_exec_prefix"; then
31688 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
31689 fi
31691 save_CPPFLAGS="$CPPFLAGS"
31692 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
31693 cat >conftest.$ac_ext <<_ACEOF
31694 /* confdefs.h. */
31695 _ACEOF
31696 cat confdefs.h >>conftest.$ac_ext
31697 cat >>conftest.$ac_ext <<_ACEOF
31698 /* end confdefs.h. */
31699 #include <Python.h>
31700 _ACEOF
31701 if { (ac_try="$ac_cpp conftest.$ac_ext"
31702 case "(($ac_try" in
31703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 *) ac_try_echo=$ac_try;;
31705 esac
31706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31708 ac_status=$?
31709 grep -v '^ *+' conftest.er1 >conftest.err
31710 rm -f conftest.er1
31711 cat conftest.err >&5
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); } >/dev/null && {
31714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31715 test ! -s conftest.err
31716 }; then
31717 { echo "$as_me:$LINENO: result: found" >&5
31718 echo "${ECHO_T}found" >&6; }
31720 else
31721 echo "$as_me: failed program was:" >&5
31722 sed 's/^/| /' conftest.$ac_ext >&5
31724 { echo "$as_me:$LINENO: result: not found" >&5
31725 echo "${ECHO_T}not found" >&6; }
31726 enable_python=no;{ echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
31727 echo "$as_me: WARNING: could not find Python headers" >&2;}
31728 fi
31730 rm -f conftest.err conftest.$ac_ext
31731 CPPFLAGS="$save_CPPFLAGS"
31733 fi
31735 if test x$enable_python = xno; then
31736 COMP_PYTHON=
31737 else
31738 COMP_PYTHON="python"
31739 fi
31743 for ac_prog in gnroff nroff
31744 do
31745 # Extract the first word of "$ac_prog", so it can be a program name with args.
31746 set dummy $ac_prog; ac_word=$2
31747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31749 if test "${ac_cv_path_NROFF+set}" = set; then
31750 echo $ECHO_N "(cached) $ECHO_C" >&6
31751 else
31752 case $NROFF in
31753 [\\/]* | ?:[\\/]*)
31754 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
31755 ;;
31756 *)
31757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31758 for as_dir in $PATH
31759 do
31760 IFS=$as_save_IFS
31761 test -z "$as_dir" && as_dir=.
31762 for ac_exec_ext in '' $ac_executable_extensions; do
31763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31764 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
31765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31766 break 2
31767 fi
31768 done
31769 done
31770 IFS=$as_save_IFS
31772 ;;
31773 esac
31774 fi
31775 NROFF=$ac_cv_path_NROFF
31776 if test -n "$NROFF"; then
31777 { echo "$as_me:$LINENO: result: $NROFF" >&5
31778 echo "${ECHO_T}$NROFF" >&6; }
31779 else
31780 { echo "$as_me:$LINENO: result: no" >&5
31781 echo "${ECHO_T}no" >&6; }
31782 fi
31785 test -n "$NROFF" && break
31786 done
31788 for ac_prog in groff troff
31789 do
31790 # Extract the first word of "$ac_prog", so it can be a program name with args.
31791 set dummy $ac_prog; ac_word=$2
31792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31794 if test "${ac_cv_path_TROFF+set}" = set; then
31795 echo $ECHO_N "(cached) $ECHO_C" >&6
31796 else
31797 case $TROFF in
31798 [\\/]* | ?:[\\/]*)
31799 ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
31800 ;;
31801 *)
31802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31803 for as_dir in $PATH
31804 do
31805 IFS=$as_save_IFS
31806 test -z "$as_dir" && as_dir=.
31807 for ac_exec_ext in '' $ac_executable_extensions; do
31808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31809 ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
31810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31811 break 2
31812 fi
31813 done
31814 done
31815 IFS=$as_save_IFS
31817 ;;
31818 esac
31819 fi
31820 TROFF=$ac_cv_path_TROFF
31821 if test -n "$TROFF"; then
31822 { echo "$as_me:$LINENO: result: $TROFF" >&5
31823 echo "${ECHO_T}$TROFF" >&6; }
31824 else
31825 { echo "$as_me:$LINENO: result: no" >&5
31826 echo "${ECHO_T}no" >&6; }
31827 fi
31830 test -n "$TROFF" && break
31831 done
31835 if test -z "$RRDDOCDIR"; then
31836 RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
31840 case $TERM in
31841 # for the most important terminal types we directly know the sequences
31842 xterm|xterm*|vt220|vt220*)
31843 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
31844 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
31845 ;;
31846 vt100|vt100*|cygwin)
31847 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
31848 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
31849 ;;
31850 *)
31851 T_MD=''
31852 T_ME=''
31853 ;;
31854 esac
31855 { echo "$as_me:$LINENO: result: " >&5
31856 echo "${ECHO_T}" >&6; }
31857 { echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
31858 echo "${ECHO_T}${T_MD}Apply Configuration Information${T_ME}" >&6; }
31861 ac_config_files="$ac_config_files examples/shared-demo.pl"
31863 ac_config_files="$ac_config_files examples/piped-demo.pl"
31865 ac_config_files="$ac_config_files examples/stripes.pl"
31867 ac_config_files="$ac_config_files examples/bigtops.pl"
31869 ac_config_files="$ac_config_files examples/minmax.pl"
31871 ac_config_files="$ac_config_files examples/4charts.pl"
31873 ac_config_files="$ac_config_files examples/perftest.pl"
31875 ac_config_files="$ac_config_files examples/Makefile"
31877 ac_config_files="$ac_config_files doc/Makefile"
31879 ac_config_files="$ac_config_files po/Makefile.in"
31881 ac_config_files="$ac_config_files src/Makefile"
31883 ac_config_files="$ac_config_files bindings/Makefile"
31885 ac_config_files="$ac_config_files bindings/tcl/Makefile"
31887 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
31889 ac_config_files="$ac_config_files Makefile"
31892 ac_config_commands="$ac_config_commands default"
31894 cat >confcache <<\_ACEOF
31895 # This file is a shell script that caches the results of configure
31896 # tests run on this system so they can be shared between configure
31897 # scripts and configure runs, see configure's option --config-cache.
31898 # It is not useful on other systems. If it contains results you don't
31899 # want to keep, you may remove or edit it.
31900 #
31901 # config.status only pays attention to the cache file if you give it
31902 # the --recheck option to rerun configure.
31903 #
31904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31906 # following values.
31908 _ACEOF
31910 # The following way of writing the cache mishandles newlines in values,
31911 # but we know of no workaround that is simple, portable, and efficient.
31912 # So, we kill variables containing newlines.
31913 # Ultrix sh set writes to stderr and can't be redirected directly,
31914 # and sets the high bit in the cache file unless we assign to the vars.
31915 (
31916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31917 eval ac_val=\$$ac_var
31918 case $ac_val in #(
31919 *${as_nl}*)
31920 case $ac_var in #(
31921 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31922 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31923 esac
31924 case $ac_var in #(
31925 _ | IFS | as_nl) ;; #(
31926 *) $as_unset $ac_var ;;
31927 esac ;;
31928 esac
31929 done
31931 (set) 2>&1 |
31932 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31933 *${as_nl}ac_space=\ *)
31934 # `set' does not quote correctly, so add quotes (double-quote
31935 # substitution turns \\\\ into \\, and sed turns \\ into \).
31936 sed -n \
31937 "s/'/'\\\\''/g;
31938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31939 ;; #(
31940 *)
31941 # `set' quotes correctly as required by POSIX, so do not add quotes.
31942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31943 ;;
31944 esac |
31945 sort
31946 ) |
31947 sed '
31948 /^ac_cv_env_/b end
31949 t clear
31950 :clear
31951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31952 t end
31953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31954 :end' >>confcache
31955 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31956 if test -w "$cache_file"; then
31957 test "x$cache_file" != "x/dev/null" &&
31958 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31959 echo "$as_me: updating cache $cache_file" >&6;}
31960 cat confcache >$cache_file
31961 else
31962 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31963 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31964 fi
31965 fi
31966 rm -f confcache
31968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31969 # Let make expand exec_prefix.
31970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31972 DEFS=-DHAVE_CONFIG_H
31974 ac_libobjs=
31975 ac_ltlibobjs=
31976 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31977 # 1. Remove the extension, and $U if already installed.
31978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31979 ac_i=`echo "$ac_i" | sed "$ac_script"`
31980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31981 # will be set to the directory where LIBOBJS objects are built.
31982 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31983 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31984 done
31985 LIBOBJS=$ac_libobjs
31987 LTLIBOBJS=$ac_ltlibobjs
31990 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31991 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
31992 Usually this means the macro was only invoked conditionally." >&5
31993 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
31994 Usually this means the macro was only invoked conditionally." >&2;}
31995 { (exit 1); exit 1; }; }
31996 fi
31997 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
31998 { { echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
31999 Usually this means the macro was only invoked conditionally." >&5
32000 echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
32001 Usually this means the macro was only invoked conditionally." >&2;}
32002 { (exit 1); exit 1; }; }
32003 fi
32004 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32005 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32006 Usually this means the macro was only invoked conditionally." >&5
32007 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32008 Usually this means the macro was only invoked conditionally." >&2;}
32009 { (exit 1); exit 1; }; }
32010 fi
32011 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32012 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32013 Usually this means the macro was only invoked conditionally." >&5
32014 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32015 Usually this means the macro was only invoked conditionally." >&2;}
32016 { (exit 1); exit 1; }; }
32017 fi
32018 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32019 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32020 Usually this means the macro was only invoked conditionally." >&5
32021 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32022 Usually this means the macro was only invoked conditionally." >&2;}
32023 { (exit 1); exit 1; }; }
32024 fi
32026 ac_config_commands="$ac_config_commands po/stamp-it"
32029 if test -z "${BUILD_LIBINTL_TRUE}" && test -z "${BUILD_LIBINTL_FALSE}"; then
32030 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBINTL\" was never defined.
32031 Usually this means the macro was only invoked conditionally." >&5
32032 echo "$as_me: error: conditional \"BUILD_LIBINTL\" was never defined.
32033 Usually this means the macro was only invoked conditionally." >&2;}
32034 { (exit 1); exit 1; }; }
32035 fi
32036 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
32037 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
32038 Usually this means the macro was only invoked conditionally." >&5
32039 echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
32040 Usually this means the macro was only invoked conditionally." >&2;}
32041 { (exit 1); exit 1; }; }
32042 fi
32043 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
32044 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
32045 Usually this means the macro was only invoked conditionally." >&5
32046 echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
32047 Usually this means the macro was only invoked conditionally." >&2;}
32048 { (exit 1); exit 1; }; }
32049 fi
32050 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
32051 { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
32052 Usually this means the macro was only invoked conditionally." >&5
32053 echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
32054 Usually this means the macro was only invoked conditionally." >&2;}
32055 { (exit 1); exit 1; }; }
32056 fi
32057 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
32058 { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
32059 Usually this means the macro was only invoked conditionally." >&5
32060 echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
32061 Usually this means the macro was only invoked conditionally." >&2;}
32062 { (exit 1); exit 1; }; }
32063 fi
32065 : ${CONFIG_STATUS=./config.status}
32066 ac_clean_files_save=$ac_clean_files
32067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32068 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32069 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32070 cat >$CONFIG_STATUS <<_ACEOF
32071 #! $SHELL
32072 # Generated by $as_me.
32073 # Run this file to recreate the current configuration.
32074 # Compiler output produced by configure, useful for debugging
32075 # configure, is in config.log if it exists.
32077 debug=false
32078 ac_cs_recheck=false
32079 ac_cs_silent=false
32080 SHELL=\${CONFIG_SHELL-$SHELL}
32081 _ACEOF
32083 cat >>$CONFIG_STATUS <<\_ACEOF
32084 ## --------------------- ##
32085 ## M4sh Initialization. ##
32086 ## --------------------- ##
32088 # Be more Bourne compatible
32089 DUALCASE=1; export DUALCASE # for MKS sh
32090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32091 emulate sh
32092 NULLCMD=:
32093 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32094 # is contrary to our usage. Disable this feature.
32095 alias -g '${1+"$@"}'='"$@"'
32096 setopt NO_GLOB_SUBST
32097 else
32098 case `(set -o) 2>/dev/null` in
32099 *posix*) set -o posix ;;
32100 esac
32102 fi
32107 # PATH needs CR
32108 # Avoid depending upon Character Ranges.
32109 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32110 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32111 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32112 as_cr_digits='0123456789'
32113 as_cr_alnum=$as_cr_Letters$as_cr_digits
32115 # The user is always right.
32116 if test "${PATH_SEPARATOR+set}" != set; then
32117 echo "#! /bin/sh" >conf$$.sh
32118 echo "exit 0" >>conf$$.sh
32119 chmod +x conf$$.sh
32120 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32121 PATH_SEPARATOR=';'
32122 else
32123 PATH_SEPARATOR=:
32124 fi
32125 rm -f conf$$.sh
32126 fi
32128 # Support unset when possible.
32129 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32130 as_unset=unset
32131 else
32132 as_unset=false
32133 fi
32136 # IFS
32137 # We need space, tab and new line, in precisely that order. Quoting is
32138 # there to prevent editors from complaining about space-tab.
32139 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32140 # splitting by setting IFS to empty value.)
32141 as_nl='
32142 '
32143 IFS=" "" $as_nl"
32145 # Find who we are. Look in the path if we contain no directory separator.
32146 case $0 in
32147 *[\\/]* ) as_myself=$0 ;;
32148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32149 for as_dir in $PATH
32150 do
32151 IFS=$as_save_IFS
32152 test -z "$as_dir" && as_dir=.
32153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32154 done
32155 IFS=$as_save_IFS
32157 ;;
32158 esac
32159 # We did not find ourselves, most probably we were run as `sh COMMAND'
32160 # in which case we are not to be found in the path.
32161 if test "x$as_myself" = x; then
32162 as_myself=$0
32163 fi
32164 if test ! -f "$as_myself"; then
32165 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32166 { (exit 1); exit 1; }
32167 fi
32169 # Work around bugs in pre-3.0 UWIN ksh.
32170 for as_var in ENV MAIL MAILPATH
32171 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32172 done
32173 PS1='$ '
32174 PS2='> '
32175 PS4='+ '
32177 # NLS nuisances.
32178 for as_var in \
32179 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32180 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32181 LC_TELEPHONE LC_TIME
32182 do
32183 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32184 eval $as_var=C; export $as_var
32185 else
32186 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32187 fi
32188 done
32190 # Required to use basename.
32191 if expr a : '\(a\)' >/dev/null 2>&1 &&
32192 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32193 as_expr=expr
32194 else
32195 as_expr=false
32196 fi
32198 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32199 as_basename=basename
32200 else
32201 as_basename=false
32202 fi
32205 # Name of the executable.
32206 as_me=`$as_basename -- "$0" ||
32207 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32208 X"$0" : 'X\(//\)$' \| \
32209 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32210 echo X/"$0" |
32211 sed '/^.*\/\([^/][^/]*\)\/*$/{
32212 s//\1/
32213 q
32214 }
32215 /^X\/\(\/\/\)$/{
32216 s//\1/
32217 q
32218 }
32219 /^X\/\(\/\).*/{
32220 s//\1/
32221 q
32222 }
32223 s/.*/./; q'`
32225 # CDPATH.
32226 $as_unset CDPATH
32230 as_lineno_1=$LINENO
32231 as_lineno_2=$LINENO
32232 test "x$as_lineno_1" != "x$as_lineno_2" &&
32233 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32235 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32236 # uniformly replaced by the line number. The first 'sed' inserts a
32237 # line-number line after each line using $LINENO; the second 'sed'
32238 # does the real work. The second script uses 'N' to pair each
32239 # line-number line with the line containing $LINENO, and appends
32240 # trailing '-' during substitution so that $LINENO is not a special
32241 # case at line end.
32242 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32243 # scripts with optimization help from Paolo Bonzini. Blame Lee
32244 # E. McMahon (1931-1989) for sed's syntax. :-)
32245 sed -n '
32246 p
32247 /[$]LINENO/=
32248 ' <$as_myself |
32249 sed '
32250 s/[$]LINENO.*/&-/
32251 t lineno
32252 b
32253 :lineno
32254 N
32255 :loop
32256 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32257 t loop
32258 s/-\n.*//
32259 ' >$as_me.lineno &&
32260 chmod +x "$as_me.lineno" ||
32261 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32262 { (exit 1); exit 1; }; }
32264 # Don't try to exec as it changes $[0], causing all sort of problems
32265 # (the dirname of $[0] is not the place where we might find the
32266 # original and so on. Autoconf is especially sensitive to this).
32267 . "./$as_me.lineno"
32268 # Exit status is that of the last command.
32269 exit
32270 }
32273 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32274 as_dirname=dirname
32275 else
32276 as_dirname=false
32277 fi
32279 ECHO_C= ECHO_N= ECHO_T=
32280 case `echo -n x` in
32281 -n*)
32282 case `echo 'x\c'` in
32283 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32284 *) ECHO_C='\c';;
32285 esac;;
32286 *)
32287 ECHO_N='-n';;
32288 esac
32290 if expr a : '\(a\)' >/dev/null 2>&1 &&
32291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32292 as_expr=expr
32293 else
32294 as_expr=false
32295 fi
32297 rm -f conf$$ conf$$.exe conf$$.file
32298 if test -d conf$$.dir; then
32299 rm -f conf$$.dir/conf$$.file
32300 else
32301 rm -f conf$$.dir
32302 mkdir conf$$.dir
32303 fi
32304 echo >conf$$.file
32305 if ln -s conf$$.file conf$$ 2>/dev/null; then
32306 as_ln_s='ln -s'
32307 # ... but there are two gotchas:
32308 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32309 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32310 # In both cases, we have to default to `cp -p'.
32311 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32312 as_ln_s='cp -p'
32313 elif ln conf$$.file conf$$ 2>/dev/null; then
32314 as_ln_s=ln
32315 else
32316 as_ln_s='cp -p'
32317 fi
32318 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32319 rmdir conf$$.dir 2>/dev/null
32321 if mkdir -p . 2>/dev/null; then
32322 as_mkdir_p=:
32323 else
32324 test -d ./-p && rmdir ./-p
32325 as_mkdir_p=false
32326 fi
32328 if test -x / >/dev/null 2>&1; then
32329 as_test_x='test -x'
32330 else
32331 if ls -dL / >/dev/null 2>&1; then
32332 as_ls_L_option=L
32333 else
32334 as_ls_L_option=
32335 fi
32336 as_test_x='
32337 eval sh -c '\''
32338 if test -d "$1"; then
32339 test -d "$1/.";
32340 else
32341 case $1 in
32342 -*)set "./$1";;
32343 esac;
32344 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32345 ???[sx]*):;;*)false;;esac;fi
32346 '\'' sh
32347 '
32348 fi
32349 as_executable_p=$as_test_x
32351 # Sed expression to map a string onto a valid CPP name.
32352 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32354 # Sed expression to map a string onto a valid variable name.
32355 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32358 exec 6>&1
32360 # Save the log message, to keep $[0] and so on meaningful, and to
32361 # report actual input values of CONFIG_FILES etc. instead of their
32362 # values after options handling.
32363 ac_log="
32364 This file was extended by rrdtool $as_me 1.3rc4, which was
32365 generated by GNU Autoconf 2.61. Invocation command line was
32367 CONFIG_FILES = $CONFIG_FILES
32368 CONFIG_HEADERS = $CONFIG_HEADERS
32369 CONFIG_LINKS = $CONFIG_LINKS
32370 CONFIG_COMMANDS = $CONFIG_COMMANDS
32371 $ $0 $@
32373 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32374 "
32376 _ACEOF
32378 cat >>$CONFIG_STATUS <<_ACEOF
32379 # Files that config.status was made for.
32380 config_files="$ac_config_files"
32381 config_headers="$ac_config_headers"
32382 config_commands="$ac_config_commands"
32384 _ACEOF
32386 cat >>$CONFIG_STATUS <<\_ACEOF
32387 ac_cs_usage="\
32388 \`$as_me' instantiates files from templates according to the
32389 current configuration.
32391 Usage: $0 [OPTIONS] [FILE]...
32393 -h, --help print this help, then exit
32394 -V, --version print version number and configuration settings, then exit
32395 -q, --quiet do not print progress messages
32396 -d, --debug don't remove temporary files
32397 --recheck update $as_me by reconfiguring in the same conditions
32398 --file=FILE[:TEMPLATE]
32399 instantiate the configuration file FILE
32400 --header=FILE[:TEMPLATE]
32401 instantiate the configuration header FILE
32403 Configuration files:
32404 $config_files
32406 Configuration headers:
32407 $config_headers
32409 Configuration commands:
32410 $config_commands
32412 Report bugs to <bug-autoconf@gnu.org>."
32414 _ACEOF
32415 cat >>$CONFIG_STATUS <<_ACEOF
32416 ac_cs_version="\\
32417 rrdtool config.status 1.3rc4
32418 configured by $0, generated by GNU Autoconf 2.61,
32419 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32421 Copyright (C) 2006 Free Software Foundation, Inc.
32422 This config.status script is free software; the Free Software Foundation
32423 gives unlimited permission to copy, distribute and modify it."
32425 ac_pwd='$ac_pwd'
32426 srcdir='$srcdir'
32427 INSTALL='$INSTALL'
32428 _ACEOF
32430 cat >>$CONFIG_STATUS <<\_ACEOF
32431 # If no file are specified by the user, then we need to provide default
32432 # value. By we need to know if files were specified by the user.
32433 ac_need_defaults=:
32434 while test $# != 0
32435 do
32436 case $1 in
32437 --*=*)
32438 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32439 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32440 ac_shift=:
32441 ;;
32442 *)
32443 ac_option=$1
32444 ac_optarg=$2
32445 ac_shift=shift
32446 ;;
32447 esac
32449 case $ac_option in
32450 # Handling of the options.
32451 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32452 ac_cs_recheck=: ;;
32453 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32454 echo "$ac_cs_version"; exit ;;
32455 --debug | --debu | --deb | --de | --d | -d )
32456 debug=: ;;
32457 --file | --fil | --fi | --f )
32458 $ac_shift
32459 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32460 ac_need_defaults=false;;
32461 --header | --heade | --head | --hea )
32462 $ac_shift
32463 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32464 ac_need_defaults=false;;
32465 --he | --h)
32466 # Conflict between --help and --header
32467 { echo "$as_me: error: ambiguous option: $1
32468 Try \`$0 --help' for more information." >&2
32469 { (exit 1); exit 1; }; };;
32470 --help | --hel | -h )
32471 echo "$ac_cs_usage"; exit ;;
32472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32474 ac_cs_silent=: ;;
32476 # This is an error.
32477 -*) { echo "$as_me: error: unrecognized option: $1
32478 Try \`$0 --help' for more information." >&2
32479 { (exit 1); exit 1; }; } ;;
32481 *) ac_config_targets="$ac_config_targets $1"
32482 ac_need_defaults=false ;;
32484 esac
32485 shift
32486 done
32488 ac_configure_extra_args=
32490 if $ac_cs_silent; then
32491 exec 6>/dev/null
32492 ac_configure_extra_args="$ac_configure_extra_args --silent"
32493 fi
32495 _ACEOF
32496 cat >>$CONFIG_STATUS <<_ACEOF
32497 if \$ac_cs_recheck; then
32498 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32499 CONFIG_SHELL=$SHELL
32500 export CONFIG_SHELL
32501 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32502 fi
32504 _ACEOF
32505 cat >>$CONFIG_STATUS <<\_ACEOF
32506 exec 5>>config.log
32507 {
32508 echo
32509 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32510 ## Running $as_me. ##
32511 _ASBOX
32512 echo "$ac_log"
32513 } >&5
32515 _ACEOF
32516 cat >>$CONFIG_STATUS <<_ACEOF
32517 #
32518 # INIT-COMMANDS
32519 #
32520 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32522 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
32523 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
32524 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
32525 INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
32526 INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
32529 _ACEOF
32531 cat >>$CONFIG_STATUS <<\_ACEOF
32533 # Handling of arguments.
32534 for ac_config_target in $ac_config_targets
32535 do
32536 case $ac_config_target in
32537 "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
32538 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32539 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32540 "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
32541 "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
32542 "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
32543 "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
32544 "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
32545 "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
32546 "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
32547 "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
32548 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
32549 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32550 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32551 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32552 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
32553 "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
32554 "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
32555 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32556 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32557 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
32559 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32560 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32561 { (exit 1); exit 1; }; };;
32562 esac
32563 done
32566 # If the user did not use the arguments to specify the items to instantiate,
32567 # then the envvar interface is used. Set only those that are not.
32568 # We use the long form for the default assignment because of an extremely
32569 # bizarre bug on SunOS 4.1.3.
32570 if $ac_need_defaults; then
32571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32573 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32574 fi
32576 # Have a temporary directory for convenience. Make it in the build tree
32577 # simply because there is no reason against having it here, and in addition,
32578 # creating and moving files from /tmp can sometimes cause problems.
32579 # Hook for its removal unless debugging.
32580 # Note that there is a small window in which the directory will not be cleaned:
32581 # after its creation but before its name has been assigned to `$tmp'.
32582 $debug ||
32583 {
32584 tmp=
32585 trap 'exit_status=$?
32586 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32587 ' 0
32588 trap '{ (exit 1); exit 1; }' 1 2 13 15
32589 }
32590 # Create a (secure) tmp directory for tmp files.
32592 {
32593 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32594 test -n "$tmp" && test -d "$tmp"
32595 } ||
32596 {
32597 tmp=./conf$$-$RANDOM
32598 (umask 077 && mkdir "$tmp")
32599 } ||
32600 {
32601 echo "$me: cannot create a temporary directory in ." >&2
32602 { (exit 1); exit 1; }
32603 }
32605 #
32606 # Set up the sed scripts for CONFIG_FILES section.
32607 #
32609 # No need to generate the scripts if there are no CONFIG_FILES.
32610 # This happens for instance when ./config.status config.h
32611 if test -n "$CONFIG_FILES"; then
32613 _ACEOF
32617 ac_delim='%!_!# '
32618 for ac_last_try in false false false false false :; do
32619 cat >conf$$subs.sed <<_ACEOF
32620 PERLFLAGS!$PERLFLAGS$ac_delim
32621 SHELL!$SHELL$ac_delim
32622 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32623 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32624 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32625 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32626 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32627 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32628 exec_prefix!$exec_prefix$ac_delim
32629 prefix!$prefix$ac_delim
32630 program_transform_name!$program_transform_name$ac_delim
32631 bindir!$bindir$ac_delim
32632 sbindir!$sbindir$ac_delim
32633 libexecdir!$libexecdir$ac_delim
32634 datarootdir!$datarootdir$ac_delim
32635 datadir!$datadir$ac_delim
32636 sysconfdir!$sysconfdir$ac_delim
32637 sharedstatedir!$sharedstatedir$ac_delim
32638 localstatedir!$localstatedir$ac_delim
32639 includedir!$includedir$ac_delim
32640 oldincludedir!$oldincludedir$ac_delim
32641 docdir!$docdir$ac_delim
32642 infodir!$infodir$ac_delim
32643 htmldir!$htmldir$ac_delim
32644 dvidir!$dvidir$ac_delim
32645 pdfdir!$pdfdir$ac_delim
32646 psdir!$psdir$ac_delim
32647 libdir!$libdir$ac_delim
32648 localedir!$localedir$ac_delim
32649 mandir!$mandir$ac_delim
32650 DEFS!$DEFS$ac_delim
32651 ECHO_C!$ECHO_C$ac_delim
32652 ECHO_N!$ECHO_N$ac_delim
32653 ECHO_T!$ECHO_T$ac_delim
32654 LIBS!$LIBS$ac_delim
32655 build_alias!$build_alias$ac_delim
32656 host_alias!$host_alias$ac_delim
32657 target_alias!$target_alias$ac_delim
32658 NUMVERS!$NUMVERS$ac_delim
32659 LIBVERS!$LIBVERS$ac_delim
32660 build!$build$ac_delim
32661 build_cpu!$build_cpu$ac_delim
32662 build_vendor!$build_vendor$ac_delim
32663 build_os!$build_os$ac_delim
32664 host!$host$ac_delim
32665 host_cpu!$host_cpu$ac_delim
32666 host_vendor!$host_vendor$ac_delim
32667 host_os!$host_os$ac_delim
32668 target!$target$ac_delim
32669 target_cpu!$target_cpu$ac_delim
32670 target_vendor!$target_vendor$ac_delim
32671 target_os!$target_os$ac_delim
32672 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32673 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32674 INSTALL_DATA!$INSTALL_DATA$ac_delim
32675 CYGPATH_W!$CYGPATH_W$ac_delim
32676 PACKAGE!$PACKAGE$ac_delim
32677 VERSION!$VERSION$ac_delim
32678 ACLOCAL!$ACLOCAL$ac_delim
32679 AUTOCONF!$AUTOCONF$ac_delim
32680 AUTOMAKE!$AUTOMAKE$ac_delim
32681 AUTOHEADER!$AUTOHEADER$ac_delim
32682 MAKEINFO!$MAKEINFO$ac_delim
32683 install_sh!$install_sh$ac_delim
32684 STRIP!$STRIP$ac_delim
32685 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
32686 mkdir_p!$mkdir_p$ac_delim
32687 AWK!$AWK$ac_delim
32688 SET_MAKE!$SET_MAKE$ac_delim
32689 am__leading_dot!$am__leading_dot$ac_delim
32690 AMTAR!$AMTAR$ac_delim
32691 am__tar!$am__tar$ac_delim
32692 am__untar!$am__untar$ac_delim
32693 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
32694 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
32695 MAINT!$MAINT$ac_delim
32696 RRDGRAPH_YLEGEND_ANGLE!$RRDGRAPH_YLEGEND_ANGLE$ac_delim
32697 STATIC_PROGRAMS_TRUE!$STATIC_PROGRAMS_TRUE$ac_delim
32698 STATIC_PROGRAMS_FALSE!$STATIC_PROGRAMS_FALSE$ac_delim
32699 CC!$CC$ac_delim
32700 CFLAGS!$CFLAGS$ac_delim
32701 LDFLAGS!$LDFLAGS$ac_delim
32702 CPPFLAGS!$CPPFLAGS$ac_delim
32703 ac_ct_CC!$ac_ct_CC$ac_delim
32704 EXEEXT!$EXEEXT$ac_delim
32705 OBJEXT!$OBJEXT$ac_delim
32706 DEPDIR!$DEPDIR$ac_delim
32707 am__include!$am__include$ac_delim
32708 am__quote!$am__quote$ac_delim
32709 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
32710 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
32711 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
32712 CCDEPMODE!$CCDEPMODE$ac_delim
32713 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
32714 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
32715 CPP!$CPP$ac_delim
32716 GREP!$GREP$ac_delim
32717 _ACEOF
32719 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32720 break
32721 elif $ac_last_try; then
32722 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32723 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32724 { (exit 1); exit 1; }; }
32725 else
32726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32727 fi
32728 done
32730 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32731 if test -n "$ac_eof"; then
32732 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32733 ac_eof=`expr $ac_eof + 1`
32734 fi
32736 cat >>$CONFIG_STATUS <<_ACEOF
32737 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32739 _ACEOF
32740 sed '
32741 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32742 s/^/s,@/; s/!/@,|#_!!_#|/
32743 :n
32744 t n
32745 s/'"$ac_delim"'$/,g/; t
32746 s/$/\\/; p
32747 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32748 ' >>$CONFIG_STATUS <conf$$subs.sed
32749 rm -f conf$$subs.sed
32750 cat >>$CONFIG_STATUS <<_ACEOF
32751 CEOF$ac_eof
32752 _ACEOF
32755 ac_delim='%!_!# '
32756 for ac_last_try in false false false false false :; do
32757 cat >conf$$subs.sed <<_ACEOF
32758 EGREP!$EGREP$ac_delim
32759 LN_S!$LN_S$ac_delim
32760 ECHO!$ECHO$ac_delim
32761 AR!$AR$ac_delim
32762 RANLIB!$RANLIB$ac_delim
32763 CXX!$CXX$ac_delim
32764 CXXFLAGS!$CXXFLAGS$ac_delim
32765 ac_ct_CXX!$ac_ct_CXX$ac_delim
32766 CXXDEPMODE!$CXXDEPMODE$ac_delim
32767 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
32768 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
32769 CXXCPP!$CXXCPP$ac_delim
32770 F77!$F77$ac_delim
32771 FFLAGS!$FFLAGS$ac_delim
32772 ac_ct_F77!$ac_ct_F77$ac_delim
32773 LIBTOOL!$LIBTOOL$ac_delim
32774 RRD_DEFAULT_FONT!$RRD_DEFAULT_FONT$ac_delim
32775 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
32776 USE_NLS!$USE_NLS$ac_delim
32777 MSGFMT!$MSGFMT$ac_delim
32778 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
32779 GMSGFMT!$GMSGFMT$ac_delim
32780 XGETTEXT!$XGETTEXT$ac_delim
32781 CATALOGS!$CATALOGS$ac_delim
32782 CATOBJEXT!$CATOBJEXT$ac_delim
32783 DATADIRNAME!$DATADIRNAME$ac_delim
32784 GMOFILES!$GMOFILES$ac_delim
32785 INSTOBJEXT!$INSTOBJEXT$ac_delim
32786 INTLLIBS!$INTLLIBS$ac_delim
32787 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
32788 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
32789 POFILES!$POFILES$ac_delim
32790 POSUB!$POSUB$ac_delim
32791 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
32792 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
32793 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
32794 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
32795 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
32796 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
32797 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
32798 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
32799 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
32800 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
32801 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
32802 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
32803 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
32804 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
32805 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
32806 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
32807 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
32808 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
32809 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
32810 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
32811 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
32812 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
32813 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
32814 INTLTOOL_ICONV!$INTLTOOL_ICONV$ac_delim
32815 INTLTOOL_MSGFMT!$INTLTOOL_MSGFMT$ac_delim
32816 INTLTOOL_MSGMERGE!$INTLTOOL_MSGMERGE$ac_delim
32817 INTLTOOL_XGETTEXT!$INTLTOOL_XGETTEXT$ac_delim
32818 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
32819 LIB_LIBINTL!$LIB_LIBINTL$ac_delim
32820 BUILD_LIBINTL_TRUE!$BUILD_LIBINTL_TRUE$ac_delim
32821 BUILD_LIBINTL_FALSE!$BUILD_LIBINTL_FALSE$ac_delim
32822 MULTITHREAD_CFLAGS!$MULTITHREAD_CFLAGS$ac_delim
32823 MULTITHREAD_LDFLAGS!$MULTITHREAD_LDFLAGS$ac_delim
32824 acx_pthread_config!$acx_pthread_config$ac_delim
32825 PTHREAD_CC!$PTHREAD_CC$ac_delim
32826 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32827 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
32828 BUILD_MULTITHREAD_TRUE!$BUILD_MULTITHREAD_TRUE$ac_delim
32829 BUILD_MULTITHREAD_FALSE!$BUILD_MULTITHREAD_FALSE$ac_delim
32830 BUILD_RRDCGI_TRUE!$BUILD_RRDCGI_TRUE$ac_delim
32831 BUILD_RRDCGI_FALSE!$BUILD_RRDCGI_FALSE$ac_delim
32832 PKGCONFIG!$PKGCONFIG$ac_delim
32833 CORE_LIBS!$CORE_LIBS$ac_delim
32834 ALL_LIBS!$ALL_LIBS$ac_delim
32835 PERL!$PERL$ac_delim
32836 POD2MAN!$POD2MAN$ac_delim
32837 POD2HTML!$POD2HTML$ac_delim
32838 PERLCC!$PERLCC$ac_delim
32839 PERLCCFLAGS!$PERLCCFLAGS$ac_delim
32840 PERLLD!$PERLLD$ac_delim
32841 PERLLDFLAGS!$PERLLDFLAGS$ac_delim
32842 PERL_CC!$PERL_CC$ac_delim
32843 PERL_MAKE_OPTIONS!$PERL_MAKE_OPTIONS$ac_delim
32844 COMP_PERL!$COMP_PERL$ac_delim
32845 PERL_VERSION!$PERL_VERSION$ac_delim
32846 RUBY!$RUBY$ac_delim
32847 RUBY_MAKE_OPTIONS!$RUBY_MAKE_OPTIONS$ac_delim
32848 COMP_RUBY!$COMP_RUBY$ac_delim
32849 BUILD_TCL_TRUE!$BUILD_TCL_TRUE$ac_delim
32850 BUILD_TCL_FALSE!$BUILD_TCL_FALSE$ac_delim
32851 BUILD_TCL_SITE_TRUE!$BUILD_TCL_SITE_TRUE$ac_delim
32852 BUILD_TCL_SITE_FALSE!$BUILD_TCL_SITE_FALSE$ac_delim
32853 TCL_PREFIX!$TCL_PREFIX$ac_delim
32854 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
32855 _ACEOF
32857 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32858 break
32859 elif $ac_last_try; then
32860 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32861 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32862 { (exit 1); exit 1; }; }
32863 else
32864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32865 fi
32866 done
32868 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32869 if test -n "$ac_eof"; then
32870 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32871 ac_eof=`expr $ac_eof + 1`
32872 fi
32874 cat >>$CONFIG_STATUS <<_ACEOF
32875 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32877 _ACEOF
32878 sed '
32879 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32880 s/^/s,@/; s/!/@,|#_!!_#|/
32881 :n
32882 t n
32883 s/'"$ac_delim"'$/,g/; t
32884 s/$/\\/; p
32885 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32886 ' >>$CONFIG_STATUS <conf$$subs.sed
32887 rm -f conf$$subs.sed
32888 cat >>$CONFIG_STATUS <<_ACEOF
32889 CEOF$ac_eof
32890 _ACEOF
32893 ac_delim='%!_!# '
32894 for ac_last_try in false false false false false :; do
32895 cat >conf$$subs.sed <<_ACEOF
32896 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
32897 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
32898 TCL_PACKAGE_PATH!$TCL_PACKAGE_PATH$ac_delim
32899 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
32900 TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
32901 TCL_VERSION!$TCL_VERSION$ac_delim
32902 TCL_PACKAGE_DIR!$TCL_PACKAGE_DIR$ac_delim
32903 TCL_INC_DIR!$TCL_INC_DIR$ac_delim
32904 PYTHON!$PYTHON$ac_delim
32905 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
32906 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
32907 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
32908 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
32909 pythondir!$pythondir$ac_delim
32910 pkgpythondir!$pkgpythondir$ac_delim
32911 pyexecdir!$pyexecdir$ac_delim
32912 pkgpyexecdir!$pkgpyexecdir$ac_delim
32913 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
32914 COMP_PYTHON!$COMP_PYTHON$ac_delim
32915 NROFF!$NROFF$ac_delim
32916 TROFF!$TROFF$ac_delim
32917 RRDDOCDIR!$RRDDOCDIR$ac_delim
32918 LIBOBJS!$LIBOBJS$ac_delim
32919 LTLIBOBJS!$LTLIBOBJS$ac_delim
32920 _ACEOF
32922 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
32923 break
32924 elif $ac_last_try; then
32925 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32926 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32927 { (exit 1); exit 1; }; }
32928 else
32929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32930 fi
32931 done
32933 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32934 if test -n "$ac_eof"; then
32935 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32936 ac_eof=`expr $ac_eof + 1`
32937 fi
32939 cat >>$CONFIG_STATUS <<_ACEOF
32940 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
32941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32942 _ACEOF
32943 sed '
32944 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32945 s/^/s,@/; s/!/@,|#_!!_#|/
32946 :n
32947 t n
32948 s/'"$ac_delim"'$/,g/; t
32949 s/$/\\/; p
32950 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32951 ' >>$CONFIG_STATUS <conf$$subs.sed
32952 rm -f conf$$subs.sed
32953 cat >>$CONFIG_STATUS <<_ACEOF
32954 :end
32955 s/|#_!!_#|//g
32956 CEOF$ac_eof
32957 _ACEOF
32960 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32961 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32962 # trailing colons and then remove the whole line if VPATH becomes empty
32963 # (actually we leave an empty line to preserve line numbers).
32964 if test "x$srcdir" = x.; then
32965 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32966 s/:*\$(srcdir):*/:/
32967 s/:*\${srcdir}:*/:/
32968 s/:*@srcdir@:*/:/
32969 s/^\([^=]*=[ ]*\):*/\1/
32970 s/:*$//
32971 s/^[^=]*=[ ]*$//
32972 }'
32973 fi
32975 cat >>$CONFIG_STATUS <<\_ACEOF
32976 fi # test -n "$CONFIG_FILES"
32979 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32980 do
32981 case $ac_tag in
32982 :[FHLC]) ac_mode=$ac_tag; continue;;
32983 esac
32984 case $ac_mode$ac_tag in
32985 :[FHL]*:*);;
32986 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32987 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32988 { (exit 1); exit 1; }; };;
32989 :[FH]-) ac_tag=-:-;;
32990 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32991 esac
32992 ac_save_IFS=$IFS
32993 IFS=:
32994 set x $ac_tag
32995 IFS=$ac_save_IFS
32996 shift
32997 ac_file=$1
32998 shift
33000 case $ac_mode in
33001 :L) ac_source=$1;;
33002 :[FH])
33003 ac_file_inputs=
33004 for ac_f
33005 do
33006 case $ac_f in
33007 -) ac_f="$tmp/stdin";;
33008 *) # Look for the file first in the build tree, then in the source tree
33009 # (if the path is not absolute). The absolute path cannot be DOS-style,
33010 # because $ac_f cannot contain `:'.
33011 test -f "$ac_f" ||
33012 case $ac_f in
33013 [\\/$]*) false;;
33014 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33015 esac ||
33016 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33017 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33018 { (exit 1); exit 1; }; };;
33019 esac
33020 ac_file_inputs="$ac_file_inputs $ac_f"
33021 done
33023 # Let's still pretend it is `configure' which instantiates (i.e., don't
33024 # use $as_me), people would be surprised to read:
33025 # /* config.h. Generated by config.status. */
33026 configure_input="Generated from "`IFS=:
33027 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33028 if test x"$ac_file" != x-; then
33029 configure_input="$ac_file. $configure_input"
33030 { echo "$as_me:$LINENO: creating $ac_file" >&5
33031 echo "$as_me: creating $ac_file" >&6;}
33032 fi
33034 case $ac_tag in
33035 *:-:* | *:-) cat >"$tmp/stdin";;
33036 esac
33037 ;;
33038 esac
33040 ac_dir=`$as_dirname -- "$ac_file" ||
33041 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33042 X"$ac_file" : 'X\(//\)[^/]' \| \
33043 X"$ac_file" : 'X\(//\)$' \| \
33044 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33045 echo X"$ac_file" |
33046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33047 s//\1/
33048 q
33049 }
33050 /^X\(\/\/\)[^/].*/{
33051 s//\1/
33052 q
33053 }
33054 /^X\(\/\/\)$/{
33055 s//\1/
33056 q
33057 }
33058 /^X\(\/\).*/{
33059 s//\1/
33060 q
33061 }
33062 s/.*/./; q'`
33063 { as_dir="$ac_dir"
33064 case $as_dir in #(
33065 -*) as_dir=./$as_dir;;
33066 esac
33067 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33068 as_dirs=
33069 while :; do
33070 case $as_dir in #(
33071 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33072 *) as_qdir=$as_dir;;
33073 esac
33074 as_dirs="'$as_qdir' $as_dirs"
33075 as_dir=`$as_dirname -- "$as_dir" ||
33076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33077 X"$as_dir" : 'X\(//\)[^/]' \| \
33078 X"$as_dir" : 'X\(//\)$' \| \
33079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33080 echo X"$as_dir" |
33081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33082 s//\1/
33083 q
33084 }
33085 /^X\(\/\/\)[^/].*/{
33086 s//\1/
33087 q
33088 }
33089 /^X\(\/\/\)$/{
33090 s//\1/
33091 q
33092 }
33093 /^X\(\/\).*/{
33094 s//\1/
33095 q
33096 }
33097 s/.*/./; q'`
33098 test -d "$as_dir" && break
33099 done
33100 test -z "$as_dirs" || eval "mkdir $as_dirs"
33101 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33102 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33103 { (exit 1); exit 1; }; }; }
33104 ac_builddir=.
33106 case "$ac_dir" in
33107 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33108 *)
33109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33110 # A ".." for each directory in $ac_dir_suffix.
33111 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33112 case $ac_top_builddir_sub in
33113 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33114 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33115 esac ;;
33116 esac
33117 ac_abs_top_builddir=$ac_pwd
33118 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33119 # for backward compatibility:
33120 ac_top_builddir=$ac_top_build_prefix
33122 case $srcdir in
33123 .) # We are building in place.
33124 ac_srcdir=.
33125 ac_top_srcdir=$ac_top_builddir_sub
33126 ac_abs_top_srcdir=$ac_pwd ;;
33127 [\\/]* | ?:[\\/]* ) # Absolute name.
33128 ac_srcdir=$srcdir$ac_dir_suffix;
33129 ac_top_srcdir=$srcdir
33130 ac_abs_top_srcdir=$srcdir ;;
33131 *) # Relative name.
33132 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33133 ac_top_srcdir=$ac_top_build_prefix$srcdir
33134 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33135 esac
33136 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33139 case $ac_mode in
33140 :F)
33141 #
33142 # CONFIG_FILE
33143 #
33145 case $INSTALL in
33146 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33147 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33148 esac
33149 _ACEOF
33151 cat >>$CONFIG_STATUS <<\_ACEOF
33152 # If the template does not know about datarootdir, expand it.
33153 # FIXME: This hack should be removed a few years after 2.60.
33154 ac_datarootdir_hack=; ac_datarootdir_seen=
33156 case `sed -n '/datarootdir/ {
33157 p
33158 q
33159 }
33160 /@datadir@/p
33161 /@docdir@/p
33162 /@infodir@/p
33163 /@localedir@/p
33164 /@mandir@/p
33165 ' $ac_file_inputs` in
33166 *datarootdir*) ac_datarootdir_seen=yes;;
33167 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33168 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33169 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33170 _ACEOF
33171 cat >>$CONFIG_STATUS <<_ACEOF
33172 ac_datarootdir_hack='
33173 s&@datadir@&$datadir&g
33174 s&@docdir@&$docdir&g
33175 s&@infodir@&$infodir&g
33176 s&@localedir@&$localedir&g
33177 s&@mandir@&$mandir&g
33178 s&\\\${datarootdir}&$datarootdir&g' ;;
33179 esac
33180 _ACEOF
33182 # Neutralize VPATH when `$srcdir' = `.'.
33183 # Shell code in configure.ac might set extrasub.
33184 # FIXME: do we really want to maintain this feature?
33185 cat >>$CONFIG_STATUS <<_ACEOF
33186 sed "$ac_vpsub
33187 $extrasub
33188 _ACEOF
33189 cat >>$CONFIG_STATUS <<\_ACEOF
33190 :t
33191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33192 s&@configure_input@&$configure_input&;t t
33193 s&@top_builddir@&$ac_top_builddir_sub&;t t
33194 s&@srcdir@&$ac_srcdir&;t t
33195 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33196 s&@top_srcdir@&$ac_top_srcdir&;t t
33197 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33198 s&@builddir@&$ac_builddir&;t t
33199 s&@abs_builddir@&$ac_abs_builddir&;t t
33200 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33201 s&@INSTALL@&$ac_INSTALL&;t t
33202 $ac_datarootdir_hack
33203 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
33205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33206 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33208 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33209 which seems to be undefined. Please make sure it is defined." >&5
33210 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33211 which seems to be undefined. Please make sure it is defined." >&2;}
33213 rm -f "$tmp/stdin"
33214 case $ac_file in
33215 -) cat "$tmp/out"; rm -f "$tmp/out";;
33216 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33217 esac
33218 ;;
33219 :H)
33220 #
33221 # CONFIG_HEADER
33222 #
33223 _ACEOF
33225 # Transform confdefs.h into a sed script `conftest.defines', that
33226 # substitutes the proper values into config.h.in to produce config.h.
33227 rm -f conftest.defines conftest.tail
33228 # First, append a space to every undef/define line, to ease matching.
33229 echo 's/$/ /' >conftest.defines
33230 # Then, protect against being on the right side of a sed subst, or in
33231 # an unquoted here document, in config.status. If some macros were
33232 # called several times there might be several #defines for the same
33233 # symbol, which is useless. But do not sort them, since the last
33234 # AC_DEFINE must be honored.
33235 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33236 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33237 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33238 # PARAMS is the parameter list in the macro definition--in most cases, it's
33239 # just an empty string.
33240 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33241 ac_dB='\\)[ (].*,\\1define\\2'
33242 ac_dC=' '
33243 ac_dD=' ,'
33245 uniq confdefs.h |
33246 sed -n '
33247 t rset
33248 :rset
33249 s/^[ ]*#[ ]*define[ ][ ]*//
33250 t ok
33251 d
33252 :ok
33253 s/[\\&,]/\\&/g
33254 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33255 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33256 ' >>conftest.defines
33258 # Remove the space that was appended to ease matching.
33259 # Then replace #undef with comments. This is necessary, for
33260 # example, in the case of _POSIX_SOURCE, which is predefined and required
33261 # on some systems where configure will not decide to define it.
33262 # (The regexp can be short, since the line contains either #define or #undef.)
33263 echo 's/ $//
33264 s,^[ #]*u.*,/* & */,' >>conftest.defines
33266 # Break up conftest.defines:
33267 ac_max_sed_lines=50
33269 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33270 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33271 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33272 # et cetera.
33273 ac_in='$ac_file_inputs'
33274 ac_out='"$tmp/out1"'
33275 ac_nxt='"$tmp/out2"'
33277 while :
33278 do
33279 # Write a here document:
33280 cat >>$CONFIG_STATUS <<_ACEOF
33281 # First, check the format of the line:
33282 cat >"\$tmp/defines.sed" <<\\CEOF
33283 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33284 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33285 b
33286 :def
33287 _ACEOF
33288 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33289 echo 'CEOF
33290 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33291 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33292 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33293 grep . conftest.tail >/dev/null || break
33294 rm -f conftest.defines
33295 mv conftest.tail conftest.defines
33296 done
33297 rm -f conftest.defines conftest.tail
33299 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33300 cat >>$CONFIG_STATUS <<\_ACEOF
33301 if test x"$ac_file" != x-; then
33302 echo "/* $configure_input */" >"$tmp/config.h"
33303 cat "$ac_result" >>"$tmp/config.h"
33304 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33306 echo "$as_me: $ac_file is unchanged" >&6;}
33307 else
33308 rm -f $ac_file
33309 mv "$tmp/config.h" $ac_file
33310 fi
33311 else
33312 echo "/* $configure_input */"
33313 cat "$ac_result"
33314 fi
33315 rm -f "$tmp/out12"
33316 # Compute $ac_file's index in $config_headers.
33317 _am_stamp_count=1
33318 for _am_header in $config_headers :; do
33319 case $_am_header in
33320 $ac_file | $ac_file:* )
33321 break ;;
33322 * )
33323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33324 esac
33325 done
33326 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
33327 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33328 X$ac_file : 'X\(//\)[^/]' \| \
33329 X$ac_file : 'X\(//\)$' \| \
33330 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
33331 echo X$ac_file |
33332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33333 s//\1/
33334 q
33335 }
33336 /^X\(\/\/\)[^/].*/{
33337 s//\1/
33338 q
33339 }
33340 /^X\(\/\/\)$/{
33341 s//\1/
33342 q
33343 }
33344 /^X\(\/\).*/{
33345 s//\1/
33346 q
33347 }
33348 s/.*/./; q'`/stamp-h$_am_stamp_count
33349 ;;
33351 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33352 echo "$as_me: executing $ac_file commands" >&6;}
33353 ;;
33354 esac
33357 case $ac_file$ac_mode in
33358 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33359 # Strip MF so we end up with the name of the file.
33360 mf=`echo "$mf" | sed -e 's/:.*$//'`
33361 # Check whether this is an Automake generated Makefile or not.
33362 # We used to match only the files named `Makefile.in', but
33363 # some people rename them; so instead we look at the file content.
33364 # Grep'ing the first line is not enough: some people post-process
33365 # each Makefile.in and add a new line on top of each file to say so.
33366 # So let's grep whole file.
33367 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33368 dirpart=`$as_dirname -- "$mf" ||
33369 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33370 X"$mf" : 'X\(//\)[^/]' \| \
33371 X"$mf" : 'X\(//\)$' \| \
33372 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33373 echo X"$mf" |
33374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33375 s//\1/
33376 q
33377 }
33378 /^X\(\/\/\)[^/].*/{
33379 s//\1/
33380 q
33381 }
33382 /^X\(\/\/\)$/{
33383 s//\1/
33384 q
33385 }
33386 /^X\(\/\).*/{
33387 s//\1/
33388 q
33389 }
33390 s/.*/./; q'`
33391 else
33392 continue
33393 fi
33394 # Extract the definition of DEPDIR, am__include, and am__quote
33395 # from the Makefile without running `make'.
33396 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33397 test -z "$DEPDIR" && continue
33398 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33399 test -z "am__include" && continue
33400 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33401 # When using ansi2knr, U may be empty or an underscore; expand it
33402 U=`sed -n 's/^U = //p' < "$mf"`
33403 # Find all dependency output files, they are included files with
33404 # $(DEPDIR) in their names. We invoke sed twice because it is the
33405 # simplest approach to changing $(DEPDIR) to its actual value in the
33406 # expansion.
33407 for file in `sed -n "
33408 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33409 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33410 # Make sure the directory exists.
33411 test -f "$dirpart/$file" && continue
33412 fdir=`$as_dirname -- "$file" ||
33413 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33414 X"$file" : 'X\(//\)[^/]' \| \
33415 X"$file" : 'X\(//\)$' \| \
33416 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33417 echo X"$file" |
33418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33419 s//\1/
33420 q
33421 }
33422 /^X\(\/\/\)[^/].*/{
33423 s//\1/
33424 q
33425 }
33426 /^X\(\/\/\)$/{
33427 s//\1/
33428 q
33429 }
33430 /^X\(\/\).*/{
33431 s//\1/
33432 q
33433 }
33434 s/.*/./; q'`
33435 { as_dir=$dirpart/$fdir
33436 case $as_dir in #(
33437 -*) as_dir=./$as_dir;;
33438 esac
33439 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33440 as_dirs=
33441 while :; do
33442 case $as_dir in #(
33443 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33444 *) as_qdir=$as_dir;;
33445 esac
33446 as_dirs="'$as_qdir' $as_dirs"
33447 as_dir=`$as_dirname -- "$as_dir" ||
33448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33449 X"$as_dir" : 'X\(//\)[^/]' \| \
33450 X"$as_dir" : 'X\(//\)$' \| \
33451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33452 echo X"$as_dir" |
33453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33454 s//\1/
33455 q
33456 }
33457 /^X\(\/\/\)[^/].*/{
33458 s//\1/
33459 q
33460 }
33461 /^X\(\/\/\)$/{
33462 s//\1/
33463 q
33464 }
33465 /^X\(\/\).*/{
33466 s//\1/
33467 q
33468 }
33469 s/.*/./; q'`
33470 test -d "$as_dir" && break
33471 done
33472 test -z "$as_dirs" || eval "mkdir $as_dirs"
33473 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33474 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33475 { (exit 1); exit 1; }; }; }
33476 # echo "creating $dirpart/$file"
33477 echo '# dummy' > "$dirpart/$file"
33478 done
33479 done
33480 ;;
33481 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
33482 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
33483 esac ;;
33484 "intltool":C)
33486 for file in intltool-extract intltool-merge intltool-update; do
33487 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
33488 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
33489 -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
33490 -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
33491 -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
33492 -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
33493 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
33494 < ${ac_aux_dir}/${file}.in > ${file}.out
33495 if cmp -s ${file} ${file}.out 2>/dev/null; then
33496 rm -f ${file}.out
33497 else
33498 mv -f ${file}.out ${file}
33499 fi
33500 chmod ugo+x ${file}
33501 chmod u+w ${file}
33502 done
33504 ;;
33505 "default":C) chmod +x examples/*.pl ;;
33506 "po/stamp-it":C)
33507 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
33508 >"po/stamp-it.tmp"
33509 sed '/^#/d
33510 s/^[[].*] *//
33511 /^[ ]*$/d
33512 '"s|^| $ac_top_srcdir/|" \
33513 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
33515 if test ! -f "po/Makefile"; then
33516 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
33517 echo "$as_me: error: po/Makefile is not ready." >&2;}
33518 { (exit 1); exit 1; }; }
33519 fi
33520 mv "po/Makefile" "po/Makefile.tmp"
33521 sed '/^POTFILES =/,/[^\\]$/ {
33522 /^POTFILES =/!d
33523 r po/POTFILES
33524 }
33525 ' "po/Makefile.tmp" >"po/Makefile"
33526 rm -f "po/Makefile.tmp"
33527 mv "po/stamp-it.tmp" "po/stamp-it"
33528 ;;
33530 esac
33531 done # for ac_tag
33534 { (exit 0); exit 0; }
33535 _ACEOF
33536 chmod +x $CONFIG_STATUS
33537 ac_clean_files=$ac_clean_files_save
33540 # configure is writing to config.log, and then calls config.status.
33541 # config.status does its own redirection, appending to config.log.
33542 # Unfortunately, on DOS this fails, as config.log is still kept open
33543 # by configure, so config.status won't be able to write to it; its
33544 # output is simply discarded. So we exec the FD to /dev/null,
33545 # effectively closing config.log, so it can be properly (re)opened and
33546 # appended to by config.status. When coming back to configure, we
33547 # need to make the FD available again.
33548 if test "$no_create" != yes; then
33549 ac_cs_success=:
33550 ac_config_status_args=
33551 test "$silent" = yes &&
33552 ac_config_status_args="$ac_config_status_args --quiet"
33553 exec 5>/dev/null
33554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33555 exec 5>>config.log
33556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33557 # would make configure fail if this is the last instruction.
33558 $ac_cs_success || { (exit 1); exit 1; }
33559 fi
33562 { echo "$as_me:$LINENO: checking in" >&5
33563 echo $ECHO_N "checking in... $ECHO_C" >&6; }
33564 { echo "$as_me:$LINENO: result: and out again" >&5
33565 echo "${ECHO_T}and out again" >&6; }
33567 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
33568 sleep 1
33569 echo $ECHO_N ".$ECHO_C" 1>&6
33570 sleep 1
33571 echo $ECHO_N ".$ECHO_C" 1>&6
33572 sleep 1
33573 echo $ECHO_N ".$ECHO_C" 1>&6
33574 sleep 1
33575 echo $ECHO_N ".$ECHO_C" 1>&6
33576 sleep 1
33577 { echo "$as_me:$LINENO: result: just kidding ;-)" >&5
33578 echo "${ECHO_T} just kidding ;-)" >&6; }
33579 echo
33580 echo "----------------------------------------------------------------"
33581 echo "Config is DONE!"
33582 echo
33583 echo " With MMAP IO: $enable_mmap"
33584 echo " Static programs: $staticprogs"
33585 echo " Perl Modules: $COMP_PERL"
33586 echo " Perl Binary: $PERL"
33587 echo " Perl Version: $PERL_VERSION"
33588 echo " Perl Options: $PERL_MAKE_OPTIONS"
33589 echo " Ruby Modules: $COMP_RUBY"
33590 echo " Ruby Binary: $RUBY"
33591 echo " Ruby Options: $RUBY_MAKE_OPTIONS"
33592 echo " Build Tcl Bindings: $enable_tcl"
33593 echo " Build Python Bindings: $enable_python"
33594 echo " Build rrdcgi: $enable_rrdcgi"
33595 echo " Build librrd MT: $enable_pthread"
33596 echo " Link with libintl: $enable_libintl"
33597 echo
33598 echo " Libraries: $ALL_LIBS"
33599 echo
33600 echo "Type 'make' to compile the software and use 'make install' to "
33601 echo "install everything to: $prefix."
33602 echo
33603 echo " ... that wishlist is NO JOKE. If you find RRDtool useful"
33604 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
33605 echo "place an order."
33606 echo
33607 echo " -- Tobi Oetiker <tobi@oetiker.ch>"
33608 echo "----------------------------------------------------------------"